How to use @aws-sdk/credential-provider-node - 9 common examples

To help you get started, we’ve selected a few @aws-sdk/credential-provider-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-lambda-node / LambdaConfiguration.ts View on Github external
defaultProvider: (configuration: {
      httpHandler: __aws_sdk_types.HttpHandler<_stream.Readable>;
      parser: __aws_sdk_types.ResponseParser<_stream.Readable>;
    }) =>
      __aws_sdk_core_handler.coreHandler(
        configuration.httpHandler,
        configuration.parser
      )
  },
  bodyLengthChecker: {
    defaultValue: __aws_sdk_util_body_length_node.calculateBodyLength
  },
  retryDecider: {},
  delayDecider: {},
  credentials: {
    defaultProvider: __aws_sdk_credential_provider_node.defaultProvider,
    normalize: (
      value:
        | __aws_sdk_types.Credentials
        | __aws_sdk_types.Provider<__aws_sdk_types.Credentials>
        | undefined
    ) => {
      if (typeof value === "object") {
        const promisified = Promise.resolve(value);
        return () => promisified;
      }

      return value!;
    }
  },
  sha256: {
    defaultValue: __aws_sdk_hash_node.Hash.bind(null, "sha256")
github aws / aws-sdk-js-v3 / packages / client-dynamodb-node / DynamoDBConfiguration.ts View on Github external
defaultProvider: (configuration: {
      httpHandler: __aws_sdk_types.HttpHandler<_stream.Readable>;
      parser: __aws_sdk_types.ResponseParser<_stream.Readable>;
    }) =>
      __aws_sdk_core_handler.coreHandler(
        configuration.httpHandler,
        configuration.parser
      )
  },
  bodyLengthChecker: {
    defaultValue: __aws_sdk_util_body_length_node.calculateBodyLength
  },
  retryDecider: {},
  delayDecider: {},
  credentials: {
    defaultProvider: __aws_sdk_credential_provider_node.defaultProvider,
    normalize: (
      value:
        | __aws_sdk_types.Credentials
        | __aws_sdk_types.Provider<__aws_sdk_types.Credentials>
        | undefined
    ) => {
      if (typeof value === "object") {
        const promisified = Promise.resolve(value);
        return () => promisified;
      }

      return value!;
    }
  },
  sha256: {
    defaultValue: __aws_sdk_hash_node.Hash.bind(null, "sha256")
github aws / aws-sdk-js-v3 / clients / node / client-cognito-identity-provider-node / CognitoIdentityProviderConfiguration.ts View on Github external
defaultProvider: (configuration: {
      httpHandler: __aws_sdk_types.HttpHandler<_stream.Readable>;
      parser: __aws_sdk_types.ResponseParser<_stream.Readable>;
    }) =>
      __aws_sdk_core_handler.coreHandler(
        configuration.httpHandler,
        configuration.parser
      )
  },
  bodyLengthChecker: {
    defaultValue: __aws_sdk_util_body_length_node.calculateBodyLength
  },
  retryDecider: {},
  delayDecider: {},
  credentials: {
    defaultProvider: __aws_sdk_credential_provider_node.defaultProvider,
    normalize: (
      value:
        | __aws_sdk_types.Credentials
        | __aws_sdk_types.Provider<__aws_sdk_types.Credentials>
        | undefined
    ) => {
      if (typeof value === "object") {
        const promisified = Promise.resolve(value);
        return () => promisified;
      }

      return value!;
    }
  },
  signingName: {
    defaultValue: "cognito-idp"
github aws / aws-sdk-js-v3 / packages / client-xray-node / XRayConfiguration.ts View on Github external
defaultProvider: (configuration: {
      httpHandler: __aws_sdk_types.HttpHandler<_stream.Readable>;
      parser: __aws_sdk_types.ResponseParser<_stream.Readable>;
    }) =>
      __aws_sdk_core_handler.coreHandler(
        configuration.httpHandler,
        configuration.parser
      )
  },
  bodyLengthChecker: {
    defaultValue: __aws_sdk_util_body_length_node.calculateBodyLength
  },
  retryDecider: {},
  delayDecider: {},
  credentials: {
    defaultProvider: __aws_sdk_credential_provider_node.defaultProvider,
    normalize: (
      value:
        | __aws_sdk_types.Credentials
        | __aws_sdk_types.Provider<__aws_sdk_types.Credentials>
        | undefined
    ) => {
      if (typeof value === "object") {
        const promisified = Promise.resolve(value);
        return () => promisified;
      }

      return value!;
    }
  },
  sha256: {
    defaultValue: __aws_sdk_hash_node.Hash.bind(null, "sha256")
github aws / aws-sdk-js-v3 / packages / client-s3-node / S3Configuration.ts View on Github external
defaultProvider: (configuration: {
      httpHandler: __aws_sdk_types.HttpHandler<_stream.Readable>;
      parser: __aws_sdk_types.ResponseParser<_stream.Readable>;
    }) =>
      __aws_sdk_core_handler.coreHandler(
        configuration.httpHandler,
        configuration.parser
      )
  },
  bodyLengthChecker: {
    defaultValue: __aws_sdk_util_body_length_node.calculateBodyLength
  },
  retryDecider: {},
  delayDecider: {},
  credentials: {
    defaultProvider: __aws_sdk_credential_provider_node.defaultProvider,
    normalize: (
      value:
        | __aws_sdk_types.Credentials
        | __aws_sdk_types.Provider<__aws_sdk_types.Credentials>
        | undefined
    ) => {
      if (typeof value === "object") {
        const promisified = Promise.resolve(value);
        return () => promisified;
      }

      return value!;
    }
  },
  sha256: {
    defaultValue: __aws_sdk_hash_node.Hash.bind(null, "sha256")
github aws / aws-sdk-js-v3 / packages / client-sqs-node / SQSConfiguration.ts View on Github external
defaultProvider: (configuration: {
      httpHandler: __aws_sdk_types.HttpHandler<_stream.Readable>;
      parser: __aws_sdk_types.ResponseParser<_stream.Readable>;
    }) =>
      __aws_sdk_core_handler.coreHandler(
        configuration.httpHandler,
        configuration.parser
      )
  },
  bodyLengthChecker: {
    defaultValue: __aws_sdk_util_body_length_node.calculateBodyLength
  },
  retryDecider: {},
  delayDecider: {},
  credentials: {
    defaultProvider: __aws_sdk_credential_provider_node.defaultProvider,
    normalize: (
      value:
        | __aws_sdk_types.Credentials
        | __aws_sdk_types.Provider<__aws_sdk_types.Credentials>
        | undefined
    ) => {
      if (typeof value === "object") {
        const promisified = Promise.resolve(value);
        return () => promisified;
      }

      return value!;
    }
  },
  sha256: {
    defaultValue: __aws_sdk_hash_node.Hash.bind(null, "sha256")
github aws / aws-sdk-js-v3 / clients / node / client-rekognition-node / RekognitionConfiguration.ts View on Github external
defaultProvider: (configuration: {
      httpHandler: __aws_sdk_types.HttpHandler<_stream.Readable>;
      parser: __aws_sdk_types.ResponseParser<_stream.Readable>;
    }) =>
      __aws_sdk_core_handler.coreHandler(
        configuration.httpHandler,
        configuration.parser
      )
  },
  bodyLengthChecker: {
    defaultValue: __aws_sdk_util_body_length_node.calculateBodyLength
  },
  retryDecider: {},
  delayDecider: {},
  credentials: {
    defaultProvider: __aws_sdk_credential_provider_node.defaultProvider,
    normalize: (
      value:
        | __aws_sdk_types.Credentials
        | __aws_sdk_types.Provider<__aws_sdk_types.Credentials>
        | undefined
    ) => {
      if (typeof value === "object") {
        const promisified = Promise.resolve(value);
        return () => promisified;
      }

      return value!;
    }
  },
  sha256: {
    defaultValue: __aws_sdk_hash_node.Hash.bind(null, "sha256")
github aws / aws-sdk-js-v3 / clients / node / client-codecommit-node / CodeCommitConfiguration.ts View on Github external
defaultProvider: (configuration: {
      httpHandler: __aws_sdk_types.HttpHandler<_stream.Readable>;
      parser: __aws_sdk_types.ResponseParser<_stream.Readable>;
    }) =>
      __aws_sdk_core_handler.coreHandler(
        configuration.httpHandler,
        configuration.parser
      )
  },
  bodyLengthChecker: {
    defaultValue: __aws_sdk_util_body_length_node.calculateBodyLength
  },
  retryDecider: {},
  delayDecider: {},
  credentials: {
    defaultProvider: __aws_sdk_credential_provider_node.defaultProvider,
    normalize: (
      value:
        | __aws_sdk_types.Credentials
        | __aws_sdk_types.Provider<__aws_sdk_types.Credentials>
        | undefined
    ) => {
      if (typeof value === "object") {
        const promisified = Promise.resolve(value);
        return () => promisified;
      }

      return value!;
    }
  },
  sha256: {
    defaultValue: __aws_sdk_hash_node.Hash.bind(null, "sha256")
github aws / aws-sdk-js-v3 / packages / client-kms-node / KMSConfiguration.ts View on Github external
defaultProvider: (configuration: {
      httpHandler: __aws_sdk_types.HttpHandler<_stream.Readable>;
      parser: __aws_sdk_types.ResponseParser<_stream.Readable>;
    }) =>
      __aws_sdk_core_handler.coreHandler(
        configuration.httpHandler,
        configuration.parser
      )
  },
  bodyLengthChecker: {
    defaultValue: __aws_sdk_util_body_length_node.calculateBodyLength
  },
  retryDecider: {},
  delayDecider: {},
  credentials: {
    defaultProvider: __aws_sdk_credential_provider_node.defaultProvider,
    normalize: (
      value:
        | __aws_sdk_types.Credentials
        | __aws_sdk_types.Provider<__aws_sdk_types.Credentials>
        | undefined
    ) => {
      if (typeof value === "object") {
        const promisified = Promise.resolve(value);
        return () => promisified;
      }

      return value!;
    }
  },
  sha256: {
    defaultValue: __aws_sdk_hash_node.Hash.bind(null, "sha256")

@aws-sdk/credential-provider-node

AWS credential provider that sources credentials from a Node.JS environment.

Apache-2.0
Latest version published 2 days ago

Package Health Score

98 / 100
Full package analysis

Popular @aws-sdk/credential-provider-node functions