@aws-sdk/client-pricing 3.509.0 → 3.513.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +1 -0
  2. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  3. package/dist-cjs/index.js +101 -7
  4. package/dist-cjs/runtimeConfig.shared.js +10 -0
  5. package/dist-es/PricingClient.js +17 -4
  6. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  7. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  8. package/dist-es/models/models_0.js +17 -0
  9. package/dist-es/protocols/Aws_json1_1.js +13 -1
  10. package/dist-es/runtimeConfig.shared.js +10 -0
  11. package/dist-es/runtimeExtensions.js +3 -0
  12. package/dist-types/Pricing.d.ts +1 -1
  13. package/dist-types/PricingClient.d.ts +14 -12
  14. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  15. package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
  16. package/dist-types/commands/DescribeServicesCommand.d.ts +4 -0
  17. package/dist-types/commands/GetAttributeValuesCommand.d.ts +4 -0
  18. package/dist-types/commands/GetPriceListFileUrlCommand.d.ts +4 -0
  19. package/dist-types/commands/GetProductsCommand.d.ts +4 -0
  20. package/dist-types/commands/ListPriceListsCommand.d.ts +4 -0
  21. package/dist-types/extensionConfiguration.d.ts +2 -1
  22. package/dist-types/index.d.ts +1 -1
  23. package/dist-types/models/models_0.d.ts +18 -0
  24. package/dist-types/runtimeConfig.browser.d.ts +5 -3
  25. package/dist-types/runtimeConfig.d.ts +4 -2
  26. package/dist-types/runtimeConfig.native.d.ts +6 -4
  27. package/dist-types/runtimeConfig.shared.d.ts +2 -0
  28. package/dist-types/ts3.4/PricingClient.d.ts +11 -9
  29. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  30. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
  31. package/dist-types/ts3.4/extensionConfiguration.d.ts +3 -1
  32. package/dist-types/ts3.4/models/models_0.d.ts +12 -0
  33. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -5
  34. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -4
  35. package/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -8
  36. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
  37. package/package.json +16 -16
@@ -0,0 +1,61 @@
1
+ import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
2
+ import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider } from "@smithy/types";
3
+ import { PricingClientResolvedConfig } from "../PricingClient";
4
+ /**
5
+ * @internal
6
+ */
7
+ export interface PricingHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
8
+ region?: string;
9
+ }
10
+ /**
11
+ * @internal
12
+ */
13
+ export interface PricingHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<PricingClientResolvedConfig, HandlerExecutionContext, PricingHttpAuthSchemeParameters, object> {
14
+ }
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const defaultPricingHttpAuthSchemeParametersProvider: (config: PricingClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<PricingHttpAuthSchemeParameters>;
19
+ /**
20
+ * @internal
21
+ */
22
+ export interface PricingHttpAuthSchemeProvider extends HttpAuthSchemeProvider<PricingHttpAuthSchemeParameters> {
23
+ }
24
+ /**
25
+ * @internal
26
+ */
27
+ export declare const defaultPricingHttpAuthSchemeProvider: PricingHttpAuthSchemeProvider;
28
+ /**
29
+ * @internal
30
+ */
31
+ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
32
+ /**
33
+ * experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
34
+ * @internal
35
+ */
36
+ httpAuthSchemes?: HttpAuthScheme[];
37
+ /**
38
+ * experimentalIdentityAndAuth: Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
39
+ * @internal
40
+ */
41
+ httpAuthSchemeProvider?: PricingHttpAuthSchemeProvider;
42
+ }
43
+ /**
44
+ * @internal
45
+ */
46
+ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
47
+ /**
48
+ * experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
49
+ * @internal
50
+ */
51
+ readonly httpAuthSchemes: HttpAuthScheme[];
52
+ /**
53
+ * experimentalIdentityAndAuth: Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
54
+ * @internal
55
+ */
56
+ readonly httpAuthSchemeProvider: PricingHttpAuthSchemeProvider;
57
+ }
58
+ /**
59
+ * @internal
60
+ */
61
+ export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
@@ -83,6 +83,10 @@ declare const DescribeServicesCommand_base: {
83
83
  * @throws {@link NotFoundException} (client fault)
84
84
  * <p>The requested resource can't be found.</p>
85
85
  *
86
+ * @throws {@link ThrottlingException} (client fault)
87
+ * <p>You've made too many requests exceeding service quotas.
88
+ * </p>
89
+ *
86
90
  * @throws {@link PricingServiceException}
87
91
  * <p>Base exception class for all service exceptions from Pricing service.</p>
88
92
  *
@@ -76,6 +76,10 @@ declare const GetAttributeValuesCommand_base: {
76
76
  * @throws {@link NotFoundException} (client fault)
77
77
  * <p>The requested resource can't be found.</p>
78
78
  *
79
+ * @throws {@link ThrottlingException} (client fault)
80
+ * <p>You've made too many requests exceeding service quotas.
81
+ * </p>
82
+ *
79
83
  * @throws {@link PricingServiceException}
80
84
  * <p>Base exception class for all service exceptions from Pricing service.</p>
81
85
  *
@@ -70,6 +70,10 @@ declare const GetPriceListFileUrlCommand_base: {
70
70
  * @throws {@link NotFoundException} (client fault)
71
71
  * <p>The requested resource can't be found.</p>
72
72
  *
73
+ * @throws {@link ThrottlingException} (client fault)
74
+ * <p>You've made too many requests exceeding service quotas.
75
+ * </p>
76
+ *
73
77
  * @throws {@link PricingServiceException}
74
78
  * <p>Base exception class for all service exceptions from Pricing service.</p>
75
79
  *
@@ -79,6 +79,10 @@ declare const GetProductsCommand_base: {
79
79
  * @throws {@link NotFoundException} (client fault)
80
80
  * <p>The requested resource can't be found.</p>
81
81
  *
82
+ * @throws {@link ThrottlingException} (client fault)
83
+ * <p>You've made too many requests exceeding service quotas.
84
+ * </p>
85
+ *
82
86
  * @throws {@link PricingServiceException}
83
87
  * <p>Base exception class for all service exceptions from Pricing service.</p>
84
88
  *
@@ -94,6 +94,10 @@ declare const ListPriceListsCommand_base: {
94
94
  * @throws {@link NotFoundException} (client fault)
95
95
  * <p>The requested resource can't be found.</p>
96
96
  *
97
+ * @throws {@link ThrottlingException} (client fault)
98
+ * <p>You've made too many requests exceeding service quotas.
99
+ * </p>
100
+ *
97
101
  * @throws {@link PricingServiceException}
98
102
  * <p>Base exception class for all service exceptions from Pricing service.</p>
99
103
  *
@@ -1,8 +1,9 @@
1
1
  import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
2
  import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
3
3
  import { DefaultExtensionConfiguration } from "@smithy/types";
4
+ import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
4
5
  /**
5
6
  * @internal
6
7
  */
7
- export interface PricingExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration {
8
+ export interface PricingExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration, HttpAuthExtensionConfiguration {
8
9
  }
@@ -26,7 +26,7 @@
26
26
  * an <code>AmazonEC2</code> instance, with a <code>Provisioned IOPS</code>
27
27
  * <code>volumeType</code>.</p>
28
28
  * <p>For more information, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/price-changes.html">Using the
29
- * Amazon Web Services Price List API</a> in the <i>Billing User
29
+ * Amazon Web Services Price List API</a> in the <i>Billing User
30
30
  * Guide</i>.</p>
31
31
  *
32
32
  * @packageDocumentation
@@ -112,6 +112,7 @@ export declare class ExpiredNextTokenException extends __BaseException {
112
112
  export declare class InternalErrorException extends __BaseException {
113
113
  readonly name: "InternalErrorException";
114
114
  readonly $fault: "server";
115
+ $retryable: {};
115
116
  Message?: string;
116
117
  /**
117
118
  * @internal
@@ -157,6 +158,23 @@ export declare class NotFoundException extends __BaseException {
157
158
  */
158
159
  constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
159
160
  }
161
+ /**
162
+ * @public
163
+ * <p>You've made too many requests exceeding service quotas.
164
+ * </p>
165
+ */
166
+ export declare class ThrottlingException extends __BaseException {
167
+ readonly name: "ThrottlingException";
168
+ readonly $fault: "client";
169
+ $retryable: {
170
+ throttling: boolean;
171
+ };
172
+ Message?: string;
173
+ /**
174
+ * @internal
175
+ */
176
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
177
+ }
160
178
  /**
161
179
  * @public
162
180
  */
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: PricingClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
10
+ credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
11
11
  defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<any>;
@@ -36,11 +36,13 @@ export declare const getRuntimeConfig: (config: PricingClientConfig) => {
36
36
  }) => import("@smithy/types").EndpointV2;
37
37
  tls?: boolean | undefined;
38
38
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
39
- credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined;
39
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
40
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
41
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").PricingHttpAuthSchemeProvider;
42
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
40
43
  signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
41
44
  signingEscapePath?: boolean | undefined;
42
45
  systemClockOffset?: number | undefined;
43
46
  signingRegion?: string | undefined;
44
47
  signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
45
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
46
48
  };
@@ -36,11 +36,13 @@ export declare const getRuntimeConfig: (config: PricingClientConfig) => {
36
36
  }) => import("@smithy/types").EndpointV2;
37
37
  tls?: boolean | undefined;
38
38
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
39
- credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined;
39
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
40
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
41
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").PricingHttpAuthSchemeProvider;
42
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
40
43
  signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
41
44
  signingEscapePath?: boolean | undefined;
42
45
  systemClockOffset?: number | undefined;
43
46
  signingRegion?: string | undefined;
44
47
  signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
45
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
46
48
  };
@@ -21,9 +21,9 @@ export declare const getRuntimeConfig: (config: PricingClientConfig) => {
21
21
  serviceId: string;
22
22
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
23
23
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
24
- region: string | import("@smithy/types").Provider<any>;
25
- credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
26
24
  defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
25
+ region: string | import("@smithy/types").Provider<any>;
26
+ credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
27
27
  maxAttempts: number | import("@smithy/types").Provider<number>;
28
28
  retryMode: string | import("@smithy/types").Provider<string>;
29
29
  logger: import("@smithy/types").Logger;
@@ -35,11 +35,13 @@ export declare const getRuntimeConfig: (config: PricingClientConfig) => {
35
35
  }) => import("@smithy/types").EndpointV2;
36
36
  tls?: boolean | undefined;
37
37
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
38
- credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined;
38
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
39
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
40
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").PricingHttpAuthSchemeProvider;
41
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
39
42
  signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
40
43
  signingEscapePath?: boolean | undefined;
41
44
  systemClockOffset?: number | undefined;
42
45
  signingRegion?: string | undefined;
43
46
  signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
44
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
45
47
  };
@@ -11,6 +11,8 @@ export declare const getRuntimeConfig: (config: PricingClientConfig) => {
11
11
  logger?: import("@smithy/types").Logger | undefined;
12
12
  }) => import("@smithy/types").EndpointV2;
13
13
  extensions: import("./runtimeExtensions").RuntimeExtension[];
14
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").PricingHttpAuthSchemeProvider;
15
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
14
16
  logger: import("@smithy/types").Logger;
15
17
  serviceId: string;
16
18
  urlParser: import("@smithy/types").UrlParser;
@@ -2,15 +2,10 @@ import {
2
2
  HostHeaderInputConfig,
3
3
  HostHeaderResolvedConfig,
4
4
  } from "@aws-sdk/middleware-host-header";
5
- import {
6
- AwsAuthInputConfig,
7
- AwsAuthResolvedConfig,
8
- } from "@aws-sdk/middleware-signing";
9
5
  import {
10
6
  UserAgentInputConfig,
11
7
  UserAgentResolvedConfig,
12
8
  } from "@aws-sdk/middleware-user-agent";
13
- import { Credentials as __Credentials } from "@aws-sdk/types";
14
9
  import {
15
10
  RegionInputConfig,
16
11
  RegionResolvedConfig,
@@ -31,6 +26,7 @@ import {
31
26
  SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
32
27
  } from "@smithy/smithy-client";
33
28
  import {
29
+ AwsCredentialIdentityProvider,
34
30
  BodyLengthCalculator as __BodyLengthCalculator,
35
31
  CheckOptionalClientConfig as __CheckOptionalClientConfig,
36
32
  ChecksumConstructor as __ChecksumConstructor,
@@ -45,6 +41,10 @@ import {
45
41
  UrlParser as __UrlParser,
46
42
  UserAgent as __UserAgent,
47
43
  } from "@smithy/types";
44
+ import {
45
+ HttpAuthSchemeInputConfig,
46
+ HttpAuthSchemeResolvedConfig,
47
+ } from "./auth/httpAuthSchemeProvider";
48
48
  import {
49
49
  DescribeServicesCommandInput,
50
50
  DescribeServicesCommandOutput,
@@ -100,9 +100,9 @@ export interface ClientDefaults
100
100
  serviceId?: string;
101
101
  useDualstackEndpoint?: boolean | __Provider<boolean>;
102
102
  useFipsEndpoint?: boolean | __Provider<boolean>;
103
- region?: string | __Provider<string>;
104
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
105
103
  defaultUserAgentProvider?: Provider<__UserAgent>;
104
+ region?: string | __Provider<string>;
105
+ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
106
106
  maxAttempts?: number | __Provider<number>;
107
107
  retryMode?: string | __Provider<string>;
108
108
  logger?: __Logger;
@@ -117,8 +117,8 @@ export type PricingClientConfigType = Partial<
117
117
  EndpointInputConfig<EndpointParameters> &
118
118
  RetryInputConfig &
119
119
  HostHeaderInputConfig &
120
- AwsAuthInputConfig &
121
120
  UserAgentInputConfig &
121
+ HttpAuthSchemeInputConfig &
122
122
  ClientInputEndpointParameters;
123
123
  export interface PricingClientConfig extends PricingClientConfigType {}
124
124
  export type PricingClientResolvedConfigType =
@@ -129,8 +129,8 @@ export type PricingClientResolvedConfigType =
129
129
  EndpointResolvedConfig<EndpointParameters> &
130
130
  RetryResolvedConfig &
131
131
  HostHeaderResolvedConfig &
132
- AwsAuthResolvedConfig &
133
132
  UserAgentResolvedConfig &
133
+ HttpAuthSchemeResolvedConfig &
134
134
  ClientResolvedEndpointParameters;
135
135
  export interface PricingClientResolvedConfig
136
136
  extends PricingClientResolvedConfigType {}
@@ -145,4 +145,6 @@ export declare class PricingClient extends __Client<
145
145
  ...[configuration]: __CheckOptionalClientConfig<PricingClientConfig>
146
146
  );
147
147
  destroy(): void;
148
+ private getDefaultHttpAuthSchemeParametersProvider;
149
+ private getIdentityProviderConfigProvider;
148
150
  }
@@ -0,0 +1,32 @@
1
+ import {
2
+ AwsCredentialIdentity,
3
+ AwsCredentialIdentityProvider,
4
+ HttpAuthScheme,
5
+ } from "@smithy/types";
6
+ import { PricingHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
7
+ export interface HttpAuthExtensionConfiguration {
8
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
9
+ httpAuthSchemes(): HttpAuthScheme[];
10
+ setHttpAuthSchemeProvider(
11
+ httpAuthSchemeProvider: PricingHttpAuthSchemeProvider
12
+ ): void;
13
+ httpAuthSchemeProvider(): PricingHttpAuthSchemeProvider;
14
+ setCredentials(
15
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider
16
+ ): void;
17
+ credentials():
18
+ | AwsCredentialIdentity
19
+ | AwsCredentialIdentityProvider
20
+ | undefined;
21
+ }
22
+ export type HttpAuthRuntimeConfig = Partial<{
23
+ httpAuthSchemes: HttpAuthScheme[];
24
+ httpAuthSchemeProvider: PricingHttpAuthSchemeProvider;
25
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
26
+ }>;
27
+ export declare const getHttpAuthExtensionConfiguration: (
28
+ runtimeConfig: HttpAuthRuntimeConfig
29
+ ) => HttpAuthExtensionConfiguration;
30
+ export declare const resolveHttpAuthRuntimeConfig: (
31
+ config: HttpAuthExtensionConfiguration
32
+ ) => HttpAuthRuntimeConfig;
@@ -0,0 +1,44 @@
1
+ import {
2
+ AwsSdkSigV4AuthInputConfig,
3
+ AwsSdkSigV4AuthResolvedConfig,
4
+ AwsSdkSigV4PreviouslyResolved,
5
+ } from "@aws-sdk/core";
6
+ import {
7
+ HandlerExecutionContext,
8
+ HttpAuthScheme,
9
+ HttpAuthSchemeParameters,
10
+ HttpAuthSchemeParametersProvider,
11
+ HttpAuthSchemeProvider,
12
+ } from "@smithy/types";
13
+ import { PricingClientResolvedConfig } from "../PricingClient";
14
+ export interface PricingHttpAuthSchemeParameters
15
+ extends HttpAuthSchemeParameters {
16
+ region?: string;
17
+ }
18
+ export interface PricingHttpAuthSchemeParametersProvider
19
+ extends HttpAuthSchemeParametersProvider<
20
+ PricingClientResolvedConfig,
21
+ HandlerExecutionContext,
22
+ PricingHttpAuthSchemeParameters,
23
+ object
24
+ > {}
25
+ export declare const defaultPricingHttpAuthSchemeParametersProvider: (
26
+ config: PricingClientResolvedConfig,
27
+ context: HandlerExecutionContext,
28
+ input: object
29
+ ) => Promise<PricingHttpAuthSchemeParameters>;
30
+ export interface PricingHttpAuthSchemeProvider
31
+ extends HttpAuthSchemeProvider<PricingHttpAuthSchemeParameters> {}
32
+ export declare const defaultPricingHttpAuthSchemeProvider: PricingHttpAuthSchemeProvider;
33
+ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
34
+ httpAuthSchemes?: HttpAuthScheme[];
35
+ httpAuthSchemeProvider?: PricingHttpAuthSchemeProvider;
36
+ }
37
+ export interface HttpAuthSchemeResolvedConfig
38
+ extends AwsSdkSigV4AuthResolvedConfig {
39
+ readonly httpAuthSchemes: HttpAuthScheme[];
40
+ readonly httpAuthSchemeProvider: PricingHttpAuthSchemeProvider;
41
+ }
42
+ export declare const resolveHttpAuthSchemeConfig: <T>(
43
+ config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
44
+ ) => T & HttpAuthSchemeResolvedConfig;
@@ -1,7 +1,9 @@
1
1
  import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
2
  import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
3
3
  import { DefaultExtensionConfiguration } from "@smithy/types";
4
+ import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
4
5
  export interface PricingExtensionConfiguration
5
6
  extends HttpHandlerExtensionConfiguration,
6
7
  DefaultExtensionConfiguration,
7
- AwsRegionExtensionConfiguration {}
8
+ AwsRegionExtensionConfiguration,
9
+ HttpAuthExtensionConfiguration {}
@@ -40,6 +40,7 @@ export declare class ExpiredNextTokenException extends __BaseException {
40
40
  export declare class InternalErrorException extends __BaseException {
41
41
  readonly name: "InternalErrorException";
42
42
  readonly $fault: "server";
43
+ $retryable: {};
43
44
  Message?: string;
44
45
  constructor(
45
46
  opts: __ExceptionOptionType<InternalErrorException, __BaseException>
@@ -67,6 +68,17 @@ export declare class NotFoundException extends __BaseException {
67
68
  Message?: string;
68
69
  constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
69
70
  }
71
+ export declare class ThrottlingException extends __BaseException {
72
+ readonly name: "ThrottlingException";
73
+ readonly $fault: "client";
74
+ $retryable: {
75
+ throttling: boolean;
76
+ };
77
+ Message?: string;
78
+ constructor(
79
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
80
+ );
81
+ }
70
82
  export interface GetAttributeValuesRequest {
71
83
  ServiceCode: string | undefined;
72
84
  AttributeName: string | undefined;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: PricingClientConfig) => {
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
9
  credentialDefaultProvider: (
10
10
  input: any
11
- ) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
11
+ ) => import("@smithy/types").AwsCredentialIdentityProvider;
12
12
  defaultUserAgentProvider: import("@smithy/types").Provider<
13
13
  import("@smithy/types").UserAgent
14
14
  >;
@@ -72,11 +72,12 @@ export declare const getRuntimeConfig: (config: PricingClientConfig) => {
72
72
  | import("@smithy/types").RetryStrategy
73
73
  | import("@smithy/types").RetryStrategyV2
74
74
  | undefined;
75
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
76
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
77
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").PricingHttpAuthSchemeProvider;
75
78
  credentials?:
76
79
  | import("@smithy/types").AwsCredentialIdentity
77
- | import("@smithy/types").Provider<
78
- import("@smithy/types").AwsCredentialIdentity
79
- >
80
+ | import("@smithy/types").AwsCredentialIdentityProvider
80
81
  | undefined;
81
82
  signer?:
82
83
  | import("@smithy/types").RequestSigner
@@ -93,5 +94,4 @@ export declare const getRuntimeConfig: (config: PricingClientConfig) => {
93
94
  import("@smithy/signature-v4").SignatureV4CryptoInit
94
95
  ) => import("@smithy/types").RequestSigner)
95
96
  | undefined;
96
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
97
97
  };
@@ -76,11 +76,12 @@ export declare const getRuntimeConfig: (config: PricingClientConfig) => {
76
76
  | import("@smithy/types").RetryStrategy
77
77
  | import("@smithy/types").RetryStrategyV2
78
78
  | undefined;
79
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
80
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
81
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").PricingHttpAuthSchemeProvider;
79
82
  credentials?:
80
83
  | import("@smithy/types").AwsCredentialIdentity
81
- | import("@smithy/types").Provider<
82
- import("@smithy/types").AwsCredentialIdentity
83
- >
84
+ | import("@smithy/types").AwsCredentialIdentityProvider
84
85
  | undefined;
85
86
  signer?:
86
87
  | import("@smithy/types").RequestSigner
@@ -97,5 +98,4 @@ export declare const getRuntimeConfig: (config: PricingClientConfig) => {
97
98
  import("@smithy/signature-v4").SignatureV4CryptoInit
98
99
  ) => import("@smithy/types").RequestSigner)
99
100
  | undefined;
100
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
101
101
  };
@@ -29,13 +29,13 @@ export declare const getRuntimeConfig: (config: PricingClientConfig) => {
29
29
  serviceId: string;
30
30
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
31
31
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
32
- region: string | import("@smithy/types").Provider<any>;
33
- credentialDefaultProvider: (
34
- input: any
35
- ) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
36
32
  defaultUserAgentProvider: import("@smithy/types").Provider<
37
33
  import("@smithy/types").UserAgent
38
34
  >;
35
+ region: string | import("@smithy/types").Provider<any>;
36
+ credentialDefaultProvider: (
37
+ input: any
38
+ ) => import("@smithy/types").AwsCredentialIdentityProvider;
39
39
  maxAttempts: number | import("@smithy/types").Provider<number>;
40
40
  retryMode: string | import("@smithy/types").Provider<string>;
41
41
  logger: import("@smithy/types").Logger;
@@ -63,11 +63,12 @@ export declare const getRuntimeConfig: (config: PricingClientConfig) => {
63
63
  | import("@smithy/types").RetryStrategy
64
64
  | import("@smithy/types").RetryStrategyV2
65
65
  | undefined;
66
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
67
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
68
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").PricingHttpAuthSchemeProvider;
66
69
  credentials?:
67
70
  | import("@smithy/types").AwsCredentialIdentity
68
- | import("@smithy/types").Provider<
69
- import("@smithy/types").AwsCredentialIdentity
70
- >
71
+ | import("@smithy/types").AwsCredentialIdentityProvider
71
72
  | undefined;
72
73
  signer?:
73
74
  | import("@smithy/types").RequestSigner
@@ -84,5 +85,4 @@ export declare const getRuntimeConfig: (config: PricingClientConfig) => {
84
85
  import("@smithy/signature-v4").SignatureV4CryptoInit
85
86
  ) => import("@smithy/types").RequestSigner)
86
87
  | undefined;
87
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
88
88
  };
@@ -11,6 +11,8 @@ export declare const getRuntimeConfig: (config: PricingClientConfig) => {
11
11
  }
12
12
  ) => import("@smithy/types").EndpointV2;
13
13
  extensions: import("./runtimeExtensions").RuntimeExtension[];
14
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").PricingHttpAuthSchemeProvider;
15
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
14
16
  logger: import("@smithy/types").Logger;
15
17
  serviceId: string;
16
18
  urlParser: import("@smithy/types").UrlParser;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-pricing",
3
3
  "description": "AWS SDK for JavaScript Pricing Client for Node.js, Browser and React Native",
4
- "version": "3.509.0",
4
+ "version": "3.513.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-pricing",
@@ -20,21 +20,20 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.507.0",
24
- "@aws-sdk/core": "3.496.0",
25
- "@aws-sdk/credential-provider-node": "3.509.0",
26
- "@aws-sdk/middleware-host-header": "3.502.0",
27
- "@aws-sdk/middleware-logger": "3.502.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.502.0",
29
- "@aws-sdk/middleware-signing": "3.502.0",
30
- "@aws-sdk/middleware-user-agent": "3.502.0",
31
- "@aws-sdk/region-config-resolver": "3.502.0",
32
- "@aws-sdk/types": "3.502.0",
33
- "@aws-sdk/util-endpoints": "3.502.0",
34
- "@aws-sdk/util-user-agent-browser": "3.502.0",
35
- "@aws-sdk/util-user-agent-node": "3.502.0",
23
+ "@aws-sdk/client-sts": "3.513.0",
24
+ "@aws-sdk/core": "3.513.0",
25
+ "@aws-sdk/credential-provider-node": "3.513.0",
26
+ "@aws-sdk/middleware-host-header": "3.511.0",
27
+ "@aws-sdk/middleware-logger": "3.511.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.511.0",
29
+ "@aws-sdk/middleware-user-agent": "3.511.0",
30
+ "@aws-sdk/region-config-resolver": "3.511.0",
31
+ "@aws-sdk/types": "3.511.0",
32
+ "@aws-sdk/util-endpoints": "3.511.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.511.0",
34
+ "@aws-sdk/util-user-agent-node": "3.511.0",
36
35
  "@smithy/config-resolver": "^2.1.1",
37
- "@smithy/core": "^1.3.1",
36
+ "@smithy/core": "^1.3.2",
38
37
  "@smithy/fetch-http-handler": "^2.4.1",
39
38
  "@smithy/hash-node": "^2.1.1",
40
39
  "@smithy/invalid-dependency": "^2.1.1",
@@ -53,8 +52,9 @@
53
52
  "@smithy/util-body-length-browser": "^2.1.1",
54
53
  "@smithy/util-body-length-node": "^2.2.1",
55
54
  "@smithy/util-defaults-mode-browser": "^2.1.1",
56
- "@smithy/util-defaults-mode-node": "^2.1.1",
55
+ "@smithy/util-defaults-mode-node": "^2.2.0",
57
56
  "@smithy/util-endpoints": "^1.1.1",
57
+ "@smithy/util-middleware": "^2.1.1",
58
58
  "@smithy/util-retry": "^2.1.1",
59
59
  "@smithy/util-utf8": "^2.1.1",
60
60
  "tslib": "^2.5.0"