How to use @aws-sdk/middleware-user-agent - 4 common examples

To help you get started, we’ve selected a few @aws-sdk/middleware-user-agent 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 / clients / node / client-rds-data-node / RDSDataClient.ts View on Github external
constructor(configuration: RDSDataConfiguration) {
    const intermediaConfig_0 = ProtocolConfig.resolve({
      ...RDSRuntimeConfiguration,
      ...configuration
    });
    super(intermediaConfig_0);
    let intermediaConfig_1 = RegionConfiguration.resolve(intermediaConfig_0);
    let intermediaConfig_2 = AwsAuthConfiguration.resolve(intermediaConfig_1);
    let intermediaConfig_3 = EndpointsConfig.resolve(intermediaConfig_2);
    let intermediaConfig_4 = RetryConfig.resolve(intermediaConfig_3);
    let intermediaConfig_5 = UserAgentConfig.resolve(intermediaConfig_4);
    this.config = intermediaConfig_5;
    super.use(contentLengthPlugin(this.config));
    if (this.config.maxRetries > 0) {
      super.use(retryPlugin(this.config));
    }
    super.use(signingPlugin(this.config));
    super.use(UserAgentPlugin(this.config));
  }
github aws / aws-sdk-js-v3 / clients / node / client-rds-data-node / RDSDataClient.ts View on Github external
...RDSRuntimeConfiguration,
      ...configuration
    });
    super(intermediaConfig_0);
    let intermediaConfig_1 = RegionConfiguration.resolve(intermediaConfig_0);
    let intermediaConfig_2 = AwsAuthConfiguration.resolve(intermediaConfig_1);
    let intermediaConfig_3 = EndpointsConfig.resolve(intermediaConfig_2);
    let intermediaConfig_4 = RetryConfig.resolve(intermediaConfig_3);
    let intermediaConfig_5 = UserAgentConfig.resolve(intermediaConfig_4);
    this.config = intermediaConfig_5;
    super.use(contentLengthPlugin(this.config));
    if (this.config.maxRetries > 0) {
      super.use(retryPlugin(this.config));
    }
    super.use(signingPlugin(this.config));
    super.use(UserAgentPlugin(this.config));
  }
github aws / aws-sdk-js-v3 / clients / client-rds-data / RDSDataClient.ts View on Github external
constructor(configuration: RDSDataClientConfig) {
    let _config_0 = {
      ...__ClientDefaultValues,
      ...configuration
    };
    let _config_1 = resolveRegionConfig(_config_0);
    let _config_2 = resolveAwsAuthConfig(_config_1);
    let _config_3 = resolveEndpointsConfig(_config_2);
    let _config_4 = resolveRetryConfig(_config_3);
    let _config_5 = resolveUserAgentConfig(_config_4);
    super(_config_5);
    this.config = _config_5;
    this.middlewareStack.use(getAwsAuthPlugin(this.config));
    this.middlewareStack.use(getRetryPlugin(this.config));
    this.middlewareStack.use(getUserAgentPlugin(this.config));
    this.middlewareStack.use(getContentLengthPlugin(this.config));
  }
github aws / aws-sdk-js-v3 / clients / client-rds-data / RDSDataClient.ts View on Github external
constructor(configuration: RDSDataClientConfig) {
    let _config_0 = {
      ...__ClientDefaultValues,
      ...configuration
    };
    let _config_1 = resolveRegionConfig(_config_0);
    let _config_2 = resolveAwsAuthConfig(_config_1);
    let _config_3 = resolveEndpointsConfig(_config_2);
    let _config_4 = resolveRetryConfig(_config_3);
    let _config_5 = resolveUserAgentConfig(_config_4);
    super(_config_5);
    this.config = _config_5;
    this.middlewareStack.use(getAwsAuthPlugin(this.config));
    this.middlewareStack.use(getRetryPlugin(this.config));
    this.middlewareStack.use(getUserAgentPlugin(this.config));
    this.middlewareStack.use(getContentLengthPlugin(this.config));
  }

@aws-sdk/middleware-user-agent

[![NPM version](https://img.shields.io/npm/v/@aws-sdk/middleware-user-agent/latest.svg)](https://www.npmjs.com/package/@aws-sdk/middleware-user-agent) [![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/middleware-user-agent.svg)](https://www.npmjs.c

Apache-2.0
Latest version published 7 days ago

Package Health Score

100 / 100
Full package analysis