How to use @aws-sdk/url-parser-node - 9 common examples

To help you get started, we’ve selected a few @aws-sdk/url-parser-node examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aws / aws-sdk-js-v3 / packages / client-dynamodb-node / DynamoDBConfiguration.ts View on Github external
normalize: (
      value: string | __aws_sdk_types.Provider | undefined
    ) => {
      if (typeof value === "string") {
        const promisified = Promise.resolve(value);
        return () => promisified;
      }

      return value!;
    }
  },
  sslEnabled: {
    defaultValue: true
  },
  urlParser: {
    defaultValue: __aws_sdk_url_parser_node.parseUrl
  },
  endpointProvider: {
    defaultValue: (sslEnabled: boolean, region: string) => ({
      protocol: sslEnabled ? "https:" : "http:",
      path: "/",
      hostname: `dynamodb.${region}.amazonaws.com`
    })
  },
  endpoint: {
    defaultProvider: (configuration: {
      sslEnabled: boolean;
      endpointProvider: any;
      region: __aws_sdk_types.Provider;
    }) => {
      const promisified = configuration
        .region()
github aws / aws-sdk-js-v3 / clients / node / client-cognito-identity-provider-node / CognitoIdentityProviderConfiguration.ts View on Github external
normalize: (
      value: string | __aws_sdk_types.Provider | undefined
    ) => {
      if (typeof value === "string") {
        const promisified = Promise.resolve(value);
        return () => promisified;
      }

      return value!;
    }
  },
  sslEnabled: {
    defaultValue: true
  },
  urlParser: {
    defaultValue: __aws_sdk_url_parser_node.parseUrl
  },
  endpointProvider: {
    defaultValue: (sslEnabled: boolean, region: string) => ({
      protocol: sslEnabled ? "https:" : "http:",
      path: "/",
      hostname: `cognito-idp.${region}.amazonaws.com`
    })
  },
  endpoint: {
    defaultProvider: (configuration: {
      sslEnabled: boolean;
      endpointProvider: any;
      region: __aws_sdk_types.Provider;
    }) => {
      const promisified = configuration
        .region()
github aws / aws-sdk-js-v3 / packages / client-lambda-node / LambdaConfiguration.ts View on Github external
normalize: (
      value: string | __aws_sdk_types.Provider | undefined
    ) => {
      if (typeof value === "string") {
        const promisified = Promise.resolve(value);
        return () => promisified;
      }

      return value!;
    }
  },
  sslEnabled: {
    defaultValue: true
  },
  urlParser: {
    defaultValue: __aws_sdk_url_parser_node.parseUrl
  },
  endpointProvider: {
    defaultValue: (sslEnabled: boolean, region: string) => ({
      protocol: sslEnabled ? "https:" : "http:",
      path: "/",
      hostname: `lambda.${region}.amazonaws.com`
    })
  },
  endpoint: {
    defaultProvider: (configuration: {
      sslEnabled: boolean;
      endpointProvider: any;
      region: __aws_sdk_types.Provider;
    }) => {
      const promisified = configuration
        .region()
github aws / aws-sdk-js-v3 / packages / client-s3-node / S3Configuration.ts View on Github external
normalize: (
      value: string | __aws_sdk_types.Provider | undefined
    ) => {
      if (typeof value === "string") {
        const promisified = Promise.resolve(value);
        return () => promisified;
      }

      return value!;
    }
  },
  sslEnabled: {
    defaultValue: true
  },
  urlParser: {
    defaultValue: __aws_sdk_url_parser_node.parseUrl
  },
  endpointProvider: {
    defaultValue: (sslEnabled: boolean, region: string) => ({
      protocol: sslEnabled ? "https:" : "http:",
      path: "/",
      hostname: `s3.${region}.amazonaws.com`
    })
  },
  endpoint: {
    defaultProvider: (configuration: {
      sslEnabled: boolean;
      endpointProvider: any;
      region: __aws_sdk_types.Provider;
    }) => {
      const promisified = configuration
        .region()
github aws / aws-sdk-js-v3 / packages / client-kms-node / KMSConfiguration.ts View on Github external
normalize: (
      value: string | __aws_sdk_types.Provider | undefined
    ) => {
      if (typeof value === "string") {
        const promisified = Promise.resolve(value);
        return () => promisified;
      }

      return value!;
    }
  },
  sslEnabled: {
    defaultValue: true
  },
  urlParser: {
    defaultValue: __aws_sdk_url_parser_node.parseUrl
  },
  endpointProvider: {
    defaultValue: (sslEnabled: boolean, region: string) => ({
      protocol: sslEnabled ? "https:" : "http:",
      path: "/",
      hostname: `kms.${region}.amazonaws.com`
    })
  },
  endpoint: {
    defaultProvider: (configuration: {
      sslEnabled: boolean;
      endpointProvider: any;
      region: __aws_sdk_types.Provider;
    }) => {
      const promisified = configuration
        .region()
github aws / aws-sdk-js-v3 / clients / node / client-codecommit-node / CodeCommitConfiguration.ts View on Github external
normalize: (
      value: string | __aws_sdk_types.Provider | undefined
    ) => {
      if (typeof value === "string") {
        const promisified = Promise.resolve(value);
        return () => promisified;
      }

      return value!;
    }
  },
  sslEnabled: {
    defaultValue: true
  },
  urlParser: {
    defaultValue: __aws_sdk_url_parser_node.parseUrl
  },
  endpointProvider: {
    defaultValue: (sslEnabled: boolean, region: string) => ({
      protocol: sslEnabled ? "https:" : "http:",
      path: "/",
      hostname: `codecommit.${region}.amazonaws.com`
    })
  },
  endpoint: {
    defaultProvider: (configuration: {
      sslEnabled: boolean;
      endpointProvider: any;
      region: __aws_sdk_types.Provider;
    }) => {
      const promisified = configuration
        .region()
github aws / aws-sdk-js-v3 / packages / client-sqs-node / SQSConfiguration.ts View on Github external
normalize: (
      value: string | __aws_sdk_types.Provider | undefined
    ) => {
      if (typeof value === "string") {
        const promisified = Promise.resolve(value);
        return () => promisified;
      }

      return value!;
    }
  },
  sslEnabled: {
    defaultValue: true
  },
  urlParser: {
    defaultValue: __aws_sdk_url_parser_node.parseUrl
  },
  endpointProvider: {
    defaultValue: (sslEnabled: boolean, region: string) => ({
      protocol: sslEnabled ? "https:" : "http:",
      path: "/",
      hostname: `sqs.${region}.amazonaws.com`
    })
  },
  endpoint: {
    defaultProvider: (configuration: {
      sslEnabled: boolean;
      endpointProvider: any;
      region: __aws_sdk_types.Provider;
    }) => {
      const promisified = configuration
        .region()
github aws / aws-sdk-js-v3 / packages / client-xray-node / XRayConfiguration.ts View on Github external
normalize: (
      value: string | __aws_sdk_types.Provider | undefined
    ) => {
      if (typeof value === "string") {
        const promisified = Promise.resolve(value);
        return () => promisified;
      }

      return value!;
    }
  },
  sslEnabled: {
    defaultValue: true
  },
  urlParser: {
    defaultValue: __aws_sdk_url_parser_node.parseUrl
  },
  endpointProvider: {
    defaultValue: (sslEnabled: boolean, region: string) => ({
      protocol: sslEnabled ? "https:" : "http:",
      path: "/",
      hostname: `xray.${region}.amazonaws.com`
    })
  },
  endpoint: {
    defaultProvider: (configuration: {
      sslEnabled: boolean;
      endpointProvider: any;
      region: __aws_sdk_types.Provider;
    }) => {
      const promisified = configuration
        .region()
github aws / aws-sdk-js-v3 / clients / node / client-rekognition-node / RekognitionConfiguration.ts View on Github external
normalize: (
      value: string | __aws_sdk_types.Provider | undefined
    ) => {
      if (typeof value === "string") {
        const promisified = Promise.resolve(value);
        return () => promisified;
      }

      return value!;
    }
  },
  sslEnabled: {
    defaultValue: true
  },
  urlParser: {
    defaultValue: __aws_sdk_url_parser_node.parseUrl
  },
  endpointProvider: {
    defaultValue: (sslEnabled: boolean, region: string) => ({
      protocol: sslEnabled ? "https:" : "http:",
      path: "/",
      hostname: `rekognition.${region}.amazonaws.com`
    })
  },
  endpoint: {
    defaultProvider: (configuration: {
      sslEnabled: boolean;
      endpointProvider: any;
      region: __aws_sdk_types.Provider;
    }) => {
      const promisified = configuration
        .region()

@aws-sdk/url-parser-node

[![NPM version](https://img.shields.io/npm/v/@aws-sdk/url-parser-node/latest.svg)](https://www.npmjs.com/package/@aws-sdk/url-parser-node) [![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/url-parser-node.svg)](https://www.npmjs.com/package/@aws-sd

Apache-2.0
Latest version published 4 years ago

Package Health Score

78 / 100
Full package analysis

Popular @aws-sdk/url-parser-node functions

Similar packages