@aws-sdk/client-pricing 3.34.0 → 3.37.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 (142) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/Pricing.js +1 -28
  3. package/dist-cjs/PricingClient.js +35 -0
  4. package/{dist/cjs → dist-cjs}/commands/DescribeServicesCommand.js +2 -33
  5. package/{dist/cjs → dist-cjs}/commands/GetAttributeValuesCommand.js +2 -30
  6. package/{dist/cjs → dist-cjs}/commands/GetProductsCommand.js +2 -27
  7. package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
  8. package/{dist/cjs → dist-cjs}/index.js +0 -1
  9. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  10. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -43
  11. package/{dist/cjs → dist-cjs}/pagination/DescribeServicesPaginator.js +1 -12
  12. package/{dist/cjs → dist-cjs}/pagination/GetAttributeValuesPaginator.js +1 -12
  13. package/{dist/cjs → dist-cjs}/pagination/GetProductsPaginator.js +1 -12
  14. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
  15. package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -6
  16. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  17. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  18. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  19. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  20. package/{dist/es → dist-es}/Pricing.js +1 -2
  21. package/{dist/es → dist-es}/PricingClient.js +1 -2
  22. package/{dist/es → dist-es}/commands/DescribeServicesCommand.js +2 -3
  23. package/{dist/es → dist-es}/commands/GetAttributeValuesCommand.js +2 -3
  24. package/{dist/es → dist-es}/commands/GetProductsCommand.js +2 -3
  25. package/{dist/es → dist-es}/endpoints.js +1 -2
  26. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  27. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  28. package/{dist/es → dist-es}/models/models_0.js +0 -1
  29. package/{dist/es → dist-es}/pagination/DescribeServicesPaginator.js +1 -2
  30. package/{dist/es → dist-es}/pagination/GetAttributeValuesPaginator.js +1 -2
  31. package/{dist/es → dist-es}/pagination/GetProductsPaginator.js +1 -2
  32. package/dist-es/pagination/Interfaces.js +1 -0
  33. package/{dist/es → dist-es}/protocols/Aws_json1_1.js +1 -2
  34. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
  35. package/{dist/es → dist-es}/runtimeConfig.js +1 -2
  36. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
  37. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
  38. package/{dist/types → dist-types}/Pricing.d.ts +2 -2
  39. package/{dist/types → dist-types}/PricingClient.d.ts +4 -4
  40. package/{dist/types → dist-types}/commands/DescribeServicesCommand.d.ts +3 -3
  41. package/{dist/types → dist-types}/commands/GetAttributeValuesCommand.d.ts +3 -3
  42. package/{dist/types → dist-types}/commands/GetProductsCommand.d.ts +3 -3
  43. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  44. package/{index.ts → dist-types/index.d.ts} +0 -0
  45. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  46. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  47. package/{dist/types → dist-types}/pagination/DescribeServicesPaginator.d.ts +1 -1
  48. package/{dist/types → dist-types}/pagination/GetAttributeValuesPaginator.d.ts +1 -1
  49. package/{dist/types → dist-types}/pagination/GetProductsPaginator.d.ts +1 -1
  50. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  51. package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
  52. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  53. package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
  54. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  55. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  56. package/dist-types/ts3.4/Pricing.d.ts +20 -0
  57. package/dist-types/ts3.4/PricingClient.d.ts +70 -0
  58. package/dist-types/ts3.4/commands/DescribeServicesCommand.d.ts +17 -0
  59. package/dist-types/ts3.4/commands/GetAttributeValuesCommand.d.ts +17 -0
  60. package/dist-types/ts3.4/commands/GetProductsCommand.d.ts +17 -0
  61. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  62. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  63. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  64. package/dist-types/ts3.4/models/models_0.d.ts +166 -0
  65. package/{dist/types → dist-types}/ts3.4/pagination/DescribeServicesPaginator.d.ts +1 -1
  66. package/{dist/types → dist-types}/ts3.4/pagination/GetAttributeValuesPaginator.d.ts +1 -1
  67. package/{dist/types → dist-types}/ts3.4/pagination/GetProductsPaginator.d.ts +1 -1
  68. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  69. package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
  70. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  71. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
  72. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  73. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  74. package/package.json +45 -42
  75. package/Pricing.ts +0 -140
  76. package/PricingClient.ts +0 -264
  77. package/commands/DescribeServicesCommand.ts +0 -100
  78. package/commands/GetAttributeValuesCommand.ts +0 -97
  79. package/commands/GetProductsCommand.ts +0 -94
  80. package/dist/cjs/Pricing.js.map +0 -1
  81. package/dist/cjs/PricingClient.js +0 -67
  82. package/dist/cjs/PricingClient.js.map +0 -1
  83. package/dist/cjs/commands/DescribeServicesCommand.js.map +0 -1
  84. package/dist/cjs/commands/GetAttributeValuesCommand.js.map +0 -1
  85. package/dist/cjs/commands/GetProductsCommand.js.map +0 -1
  86. package/dist/cjs/endpoints.js.map +0 -1
  87. package/dist/cjs/index.js.map +0 -1
  88. package/dist/cjs/models/index.js.map +0 -1
  89. package/dist/cjs/models/models_0.js.map +0 -1
  90. package/dist/cjs/package.json +0 -91
  91. package/dist/cjs/pagination/DescribeServicesPaginator.js.map +0 -1
  92. package/dist/cjs/pagination/GetAttributeValuesPaginator.js.map +0 -1
  93. package/dist/cjs/pagination/GetProductsPaginator.js.map +0 -1
  94. package/dist/cjs/pagination/Interfaces.js.map +0 -1
  95. package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
  96. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  97. package/dist/cjs/runtimeConfig.js.map +0 -1
  98. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  99. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  100. package/dist/es/Pricing.js.map +0 -1
  101. package/dist/es/PricingClient.js.map +0 -1
  102. package/dist/es/commands/DescribeServicesCommand.js.map +0 -1
  103. package/dist/es/commands/GetAttributeValuesCommand.js.map +0 -1
  104. package/dist/es/commands/GetProductsCommand.js.map +0 -1
  105. package/dist/es/endpoints.js.map +0 -1
  106. package/dist/es/index.js +0 -11
  107. package/dist/es/index.js.map +0 -1
  108. package/dist/es/models/index.js +0 -2
  109. package/dist/es/models/index.js.map +0 -1
  110. package/dist/es/models/models_0.js.map +0 -1
  111. package/dist/es/package.json +0 -91
  112. package/dist/es/pagination/DescribeServicesPaginator.js.map +0 -1
  113. package/dist/es/pagination/GetAttributeValuesPaginator.js.map +0 -1
  114. package/dist/es/pagination/GetProductsPaginator.js.map +0 -1
  115. package/dist/es/pagination/Interfaces.js +0 -2
  116. package/dist/es/pagination/Interfaces.js.map +0 -1
  117. package/dist/es/protocols/Aws_json1_1.js.map +0 -1
  118. package/dist/es/runtimeConfig.browser.js.map +0 -1
  119. package/dist/es/runtimeConfig.js.map +0 -1
  120. package/dist/es/runtimeConfig.native.js.map +0 -1
  121. package/dist/es/runtimeConfig.shared.js.map +0 -1
  122. package/dist/types/ts3.4/Pricing.d.ts +0 -60
  123. package/dist/types/ts3.4/PricingClient.d.ts +0 -158
  124. package/dist/types/ts3.4/commands/DescribeServicesCommand.d.ts +0 -41
  125. package/dist/types/ts3.4/commands/GetAttributeValuesCommand.d.ts +0 -38
  126. package/dist/types/ts3.4/commands/GetProductsCommand.d.ts +0 -35
  127. package/dist/types/ts3.4/models/models_0.d.ts +0 -290
  128. package/endpoints.ts +0 -57
  129. package/jest.config.js +0 -4
  130. package/models/models_0.ts +0 -365
  131. package/pagination/DescribeServicesPaginator.ts +0 -58
  132. package/pagination/GetAttributeValuesPaginator.ts +0 -58
  133. package/pagination/GetProductsPaginator.ts +0 -54
  134. package/pagination/Interfaces.ts +0 -7
  135. package/protocols/Aws_json1_1.ts +0 -674
  136. package/runtimeConfig.browser.ts +0 -40
  137. package/runtimeConfig.native.ts +0 -16
  138. package/runtimeConfig.shared.ts +0 -16
  139. package/runtimeConfig.ts +0 -45
  140. package/tsconfig.es.json +0 -10
  141. package/tsconfig.json +0 -31
  142. package/tsconfig.types.json +0 -8
@@ -0,0 +1,166 @@
1
+ import { LazyJsonString as __LazyJsonString } from "@aws-sdk/smithy-client";
2
+ import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
3
+
4
+ export interface AttributeValue {
5
+
6
+ Value?: string;
7
+ }
8
+ export declare namespace AttributeValue {
9
+
10
+ const filterSensitiveLog: (obj: AttributeValue) => any;
11
+ }
12
+ export interface DescribeServicesRequest {
13
+
14
+ ServiceCode?: string;
15
+
16
+ FormatVersion?: string;
17
+
18
+ NextToken?: string;
19
+
20
+ MaxResults?: number;
21
+ }
22
+ export declare namespace DescribeServicesRequest {
23
+
24
+ const filterSensitiveLog: (obj: DescribeServicesRequest) => any;
25
+ }
26
+
27
+ export interface Service {
28
+
29
+ ServiceCode?: string;
30
+
31
+ AttributeNames?: string[];
32
+ }
33
+ export declare namespace Service {
34
+
35
+ const filterSensitiveLog: (obj: Service) => any;
36
+ }
37
+ export interface DescribeServicesResponse {
38
+
39
+ Services?: Service[];
40
+
41
+ FormatVersion?: string;
42
+
43
+ NextToken?: string;
44
+ }
45
+ export declare namespace DescribeServicesResponse {
46
+
47
+ const filterSensitiveLog: (obj: DescribeServicesResponse) => any;
48
+ }
49
+
50
+ export interface ExpiredNextTokenException extends __SmithyException, $MetadataBearer {
51
+ name: "ExpiredNextTokenException";
52
+ $fault: "client";
53
+ Message?: string;
54
+ }
55
+ export declare namespace ExpiredNextTokenException {
56
+
57
+ const filterSensitiveLog: (obj: ExpiredNextTokenException) => any;
58
+ }
59
+
60
+ export interface InternalErrorException extends __SmithyException, $MetadataBearer {
61
+ name: "InternalErrorException";
62
+ $fault: "server";
63
+ Message?: string;
64
+ }
65
+ export declare namespace InternalErrorException {
66
+
67
+ const filterSensitiveLog: (obj: InternalErrorException) => any;
68
+ }
69
+
70
+ export interface InvalidNextTokenException extends __SmithyException, $MetadataBearer {
71
+ name: "InvalidNextTokenException";
72
+ $fault: "client";
73
+ Message?: string;
74
+ }
75
+ export declare namespace InvalidNextTokenException {
76
+
77
+ const filterSensitiveLog: (obj: InvalidNextTokenException) => any;
78
+ }
79
+
80
+ export interface InvalidParameterException extends __SmithyException, $MetadataBearer {
81
+ name: "InvalidParameterException";
82
+ $fault: "client";
83
+ Message?: string;
84
+ }
85
+ export declare namespace InvalidParameterException {
86
+
87
+ const filterSensitiveLog: (obj: InvalidParameterException) => any;
88
+ }
89
+
90
+ export interface NotFoundException extends __SmithyException, $MetadataBearer {
91
+ name: "NotFoundException";
92
+ $fault: "client";
93
+ Message?: string;
94
+ }
95
+ export declare namespace NotFoundException {
96
+
97
+ const filterSensitiveLog: (obj: NotFoundException) => any;
98
+ }
99
+ export interface GetAttributeValuesRequest {
100
+
101
+ ServiceCode: string | undefined;
102
+
103
+ AttributeName: string | undefined;
104
+
105
+ NextToken?: string;
106
+
107
+ MaxResults?: number;
108
+ }
109
+ export declare namespace GetAttributeValuesRequest {
110
+
111
+ const filterSensitiveLog: (obj: GetAttributeValuesRequest) => any;
112
+ }
113
+ export interface GetAttributeValuesResponse {
114
+
115
+ AttributeValues?: AttributeValue[];
116
+
117
+ NextToken?: string;
118
+ }
119
+ export declare namespace GetAttributeValuesResponse {
120
+
121
+ const filterSensitiveLog: (obj: GetAttributeValuesResponse) => any;
122
+ }
123
+ export declare enum FilterType {
124
+ TERM_MATCH = "TERM_MATCH"
125
+ }
126
+
127
+ export interface Filter {
128
+
129
+ Type: FilterType | string | undefined;
130
+
131
+ Field: string | undefined;
132
+
133
+ Value: string | undefined;
134
+ }
135
+ export declare namespace Filter {
136
+
137
+ const filterSensitiveLog: (obj: Filter) => any;
138
+ }
139
+ export interface GetProductsRequest {
140
+
141
+ ServiceCode?: string;
142
+
143
+ Filters?: Filter[];
144
+
145
+ FormatVersion?: string;
146
+
147
+ NextToken?: string;
148
+
149
+ MaxResults?: number;
150
+ }
151
+ export declare namespace GetProductsRequest {
152
+
153
+ const filterSensitiveLog: (obj: GetProductsRequest) => any;
154
+ }
155
+ export interface GetProductsResponse {
156
+
157
+ FormatVersion?: string;
158
+
159
+ PriceList?: (__LazyJsonString | string)[];
160
+
161
+ NextToken?: string;
162
+ }
163
+ export declare namespace GetProductsResponse {
164
+
165
+ const filterSensitiveLog: (obj: GetProductsResponse) => any;
166
+ }
@@ -1,4 +1,4 @@
1
+ import { Paginator } from "@aws-sdk/types";
1
2
  import { DescribeServicesCommandInput, DescribeServicesCommandOutput } from "../commands/DescribeServicesCommand";
2
3
  import { PricingPaginationConfiguration } from "./Interfaces";
3
- import { Paginator } from "@aws-sdk/types";
4
4
  export declare function paginateDescribeServices(config: PricingPaginationConfiguration, input: DescribeServicesCommandInput, ...additionalArguments: any): Paginator<DescribeServicesCommandOutput>;
@@ -1,4 +1,4 @@
1
+ import { Paginator } from "@aws-sdk/types";
1
2
  import { GetAttributeValuesCommandInput, GetAttributeValuesCommandOutput } from "../commands/GetAttributeValuesCommand";
2
3
  import { PricingPaginationConfiguration } from "./Interfaces";
3
- import { Paginator } from "@aws-sdk/types";
4
4
  export declare function paginateGetAttributeValues(config: PricingPaginationConfiguration, input: GetAttributeValuesCommandInput, ...additionalArguments: any): Paginator<GetAttributeValuesCommandOutput>;
@@ -1,4 +1,4 @@
1
+ import { Paginator } from "@aws-sdk/types";
1
2
  import { GetProductsCommandInput, GetProductsCommandOutput } from "../commands/GetProductsCommand";
2
3
  import { PricingPaginationConfiguration } from "./Interfaces";
3
- import { Paginator } from "@aws-sdk/types";
4
4
  export declare function paginateGetProducts(config: PricingPaginationConfiguration, input: GetProductsCommandInput, ...additionalArguments: any): Paginator<GetProductsCommandOutput>;
@@ -1,6 +1,6 @@
1
+ import { PaginationConfiguration } from "@aws-sdk/types";
1
2
  import { Pricing } from "../Pricing";
2
3
  import { PricingClient } from "../PricingClient";
3
- import { PaginationConfiguration } from "@aws-sdk/types";
4
4
  export interface PricingPaginationConfiguration extends PaginationConfiguration {
5
5
  client: Pricing | PricingClient;
6
6
  }
@@ -1,8 +1,8 @@
1
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
2
+ import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
1
3
  import { DescribeServicesCommandInput, DescribeServicesCommandOutput } from "../commands/DescribeServicesCommand";
2
4
  import { GetAttributeValuesCommandInput, GetAttributeValuesCommandOutput } from "../commands/GetAttributeValuesCommand";
3
5
  import { GetProductsCommandInput, GetProductsCommandOutput } from "../commands/GetProductsCommand";
4
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
5
- import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
6
6
  export declare const serializeAws_json1_1DescribeServicesCommand: (input: DescribeServicesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
7
7
  export declare const serializeAws_json1_1GetAttributeValuesCommand: (input: GetAttributeValuesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
8
8
  export declare const serializeAws_json1_1GetProductsCommand: (input: GetProductsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -1,8 +1,6 @@
1
1
  import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { PricingClientConfig } from "./PricingClient";
3
- /**
4
- * @internal
5
- */
3
+
6
4
  export declare const getRuntimeConfig: (config: PricingClientConfig) => {
7
5
  runtime: string;
8
6
  base64Decoder: import("@aws-sdk/types").Decoder;
@@ -1,14 +1,12 @@
1
1
  import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
2
2
  import { PricingClientConfig } from "./PricingClient";
3
- /**
4
- * @internal
5
- */
3
+
6
4
  export declare const getRuntimeConfig: (config: PricingClientConfig) => {
7
5
  runtime: string;
8
6
  base64Decoder: import("@aws-sdk/types").Decoder;
9
7
  base64Encoder: import("@aws-sdk/types").Encoder;
10
8
  bodyLengthChecker: (body: any) => number | undefined;
11
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist/types/defaultStsRoleAssumers").DefaultCredentialProvider;
9
+ credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
12
10
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
11
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
12
  region: string | import("@aws-sdk/types").Provider<string>;
@@ -1,7 +1,5 @@
1
1
  import { PricingClientConfig } from "./PricingClient";
2
- /**
3
- * @internal
4
- */
2
+
5
3
  export declare const getRuntimeConfig: (config: PricingClientConfig) => {
6
4
  runtime: string;
7
5
  sha256: import("@aws-sdk/types").HashConstructor;
@@ -1,8 +1,6 @@
1
1
  import { Logger as __Logger } from "@aws-sdk/types";
2
2
  import { PricingClientConfig } from "./PricingClient";
3
- /**
4
- * @internal
5
- */
3
+
6
4
  export declare const getRuntimeConfig: (config: PricingClientConfig) => {
7
5
  apiVersion: string;
8
6
  disableHostPrefix: boolean;
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.34.0",
4
+ "version": "3.37.0",
5
5
  "scripts": {
6
6
  "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
7
  "build:cjs": "tsc -p tsconfig.json",
@@ -11,54 +11,48 @@
11
11
  "clean": "yarn clean:dist && yarn clean:docs",
12
12
  "clean:dist": "rimraf ./dist",
13
13
  "clean:docs": "rimraf ./docs",
14
- "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4",
14
+ "downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
15
15
  "test": "exit 0"
16
16
  },
17
- "main": "./dist/cjs/index.js",
18
- "types": "./dist/types/index.d.ts",
19
- "module": "./dist/es/index.js",
20
- "browser": {
21
- "./runtimeConfig": "./runtimeConfig.browser"
22
- },
23
- "react-native": {
24
- "./runtimeConfig": "./runtimeConfig.native"
25
- },
17
+ "main": "./dist-cjs/index.js",
18
+ "types": "./dist-types/index.d.ts",
19
+ "module": "./dist-es/index.js",
26
20
  "sideEffects": false,
27
21
  "dependencies": {
28
22
  "@aws-crypto/sha256-browser": "^1.0.0",
29
23
  "@aws-crypto/sha256-js": "^1.0.0",
30
- "@aws-sdk/client-sts": "3.34.0",
31
- "@aws-sdk/config-resolver": "3.34.0",
32
- "@aws-sdk/credential-provider-node": "3.34.0",
33
- "@aws-sdk/fetch-http-handler": "3.34.0",
34
- "@aws-sdk/hash-node": "3.34.0",
35
- "@aws-sdk/invalid-dependency": "3.34.0",
36
- "@aws-sdk/middleware-content-length": "3.34.0",
37
- "@aws-sdk/middleware-host-header": "3.34.0",
38
- "@aws-sdk/middleware-logger": "3.34.0",
39
- "@aws-sdk/middleware-retry": "3.34.0",
40
- "@aws-sdk/middleware-serde": "3.34.0",
41
- "@aws-sdk/middleware-signing": "3.34.0",
42
- "@aws-sdk/middleware-stack": "3.34.0",
43
- "@aws-sdk/middleware-user-agent": "3.34.0",
44
- "@aws-sdk/node-config-provider": "3.34.0",
45
- "@aws-sdk/node-http-handler": "3.34.0",
46
- "@aws-sdk/protocol-http": "3.34.0",
47
- "@aws-sdk/smithy-client": "3.34.0",
48
- "@aws-sdk/types": "3.34.0",
49
- "@aws-sdk/url-parser": "3.34.0",
50
- "@aws-sdk/util-base64-browser": "3.34.0",
51
- "@aws-sdk/util-base64-node": "3.34.0",
52
- "@aws-sdk/util-body-length-browser": "3.34.0",
53
- "@aws-sdk/util-body-length-node": "3.34.0",
54
- "@aws-sdk/util-user-agent-browser": "3.34.0",
55
- "@aws-sdk/util-user-agent-node": "3.34.0",
56
- "@aws-sdk/util-utf8-browser": "3.34.0",
57
- "@aws-sdk/util-utf8-node": "3.34.0",
24
+ "@aws-sdk/client-sts": "3.37.0",
25
+ "@aws-sdk/config-resolver": "3.37.0",
26
+ "@aws-sdk/credential-provider-node": "3.37.0",
27
+ "@aws-sdk/fetch-http-handler": "3.37.0",
28
+ "@aws-sdk/hash-node": "3.37.0",
29
+ "@aws-sdk/invalid-dependency": "3.37.0",
30
+ "@aws-sdk/middleware-content-length": "3.37.0",
31
+ "@aws-sdk/middleware-host-header": "3.37.0",
32
+ "@aws-sdk/middleware-logger": "3.37.0",
33
+ "@aws-sdk/middleware-retry": "3.37.0",
34
+ "@aws-sdk/middleware-serde": "3.37.0",
35
+ "@aws-sdk/middleware-signing": "3.37.0",
36
+ "@aws-sdk/middleware-stack": "3.37.0",
37
+ "@aws-sdk/middleware-user-agent": "3.37.0",
38
+ "@aws-sdk/node-config-provider": "3.37.0",
39
+ "@aws-sdk/node-http-handler": "3.37.0",
40
+ "@aws-sdk/protocol-http": "3.37.0",
41
+ "@aws-sdk/smithy-client": "3.37.0",
42
+ "@aws-sdk/types": "3.37.0",
43
+ "@aws-sdk/url-parser": "3.37.0",
44
+ "@aws-sdk/util-base64-browser": "3.37.0",
45
+ "@aws-sdk/util-base64-node": "3.37.0",
46
+ "@aws-sdk/util-body-length-browser": "3.37.0",
47
+ "@aws-sdk/util-body-length-node": "3.37.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.37.0",
49
+ "@aws-sdk/util-user-agent-node": "3.37.0",
50
+ "@aws-sdk/util-utf8-browser": "3.37.0",
51
+ "@aws-sdk/util-utf8-node": "3.37.0",
58
52
  "tslib": "^2.3.0"
59
53
  },
60
54
  "devDependencies": {
61
- "@aws-sdk/client-documentation-generator": "3.34.0",
55
+ "@aws-sdk/client-documentation-generator": "3.37.0",
62
56
  "@types/node": "^12.7.5",
63
57
  "downlevel-dts": "0.7.0",
64
58
  "jest": "^26.1.0",
@@ -72,16 +66,25 @@
72
66
  },
73
67
  "typesVersions": {
74
68
  "<4.0": {
75
- "dist/types/*": [
76
- "dist/types/ts3.4/*"
69
+ "dist-types/*": [
70
+ "dist-types/ts3.4/*"
77
71
  ]
78
72
  }
79
73
  },
74
+ "files": [
75
+ "dist-*"
76
+ ],
80
77
  "author": {
81
78
  "name": "AWS SDK for JavaScript Team",
82
79
  "url": "https://aws.amazon.com/javascript/"
83
80
  },
84
81
  "license": "Apache-2.0",
82
+ "browser": {
83
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
84
+ },
85
+ "react-native": {
86
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
87
+ },
85
88
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-pricing",
86
89
  "repository": {
87
90
  "type": "git",
package/Pricing.ts DELETED
@@ -1,140 +0,0 @@
1
- import { PricingClient } from "./PricingClient";
2
- import {
3
- DescribeServicesCommand,
4
- DescribeServicesCommandInput,
5
- DescribeServicesCommandOutput,
6
- } from "./commands/DescribeServicesCommand";
7
- import {
8
- GetAttributeValuesCommand,
9
- GetAttributeValuesCommandInput,
10
- GetAttributeValuesCommandOutput,
11
- } from "./commands/GetAttributeValuesCommand";
12
- import { GetProductsCommand, GetProductsCommandInput, GetProductsCommandOutput } from "./commands/GetProductsCommand";
13
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
14
-
15
- /**
16
- * <p>Amazon Web Services Price List Service API (Amazon Web Services Price List Service) is a centralized and convenient way to
17
- * programmatically query Amazon Web Services for services, products, and pricing information. The Amazon Web Services Price List Service
18
- * uses standardized product attributes such as <code>Location</code>, <code>Storage
19
- * Class</code>, and <code>Operating System</code>, and provides prices at the SKU
20
- * level. You can use the Amazon Web Services Price List Service to build cost control and scenario planning tools, reconcile
21
- * billing data, forecast future spend for budgeting purposes, and provide cost benefit
22
- * analysis that compare your internal workloads with Amazon Web Services.</p>
23
- * <p>Use <code>GetServices</code> without a service code to retrieve the service codes for all AWS services, then
24
- * <code>GetServices</code> with a service code to retreive the attribute names for
25
- * that service. After you have the service code and attribute names, you can use <code>GetAttributeValues</code>
26
- * to see what values are available for an attribute. With the service code and an attribute name and value,
27
- * you can use <code>GetProducts</code> to find specific products that you're interested in, such as
28
- * an <code>AmazonEC2</code> instance, with a <code>Provisioned IOPS</code>
29
- * <code>volumeType</code>.</p>
30
- * <p>Service Endpoint</p>
31
- * <p>Amazon Web Services Price List Service API provides the following two endpoints:</p>
32
- * <ul>
33
- * <li>
34
- * <p>https://api.pricing.us-east-1.amazonaws.com</p>
35
- * </li>
36
- * <li>
37
- * <p>https://api.pricing.ap-south-1.amazonaws.com</p>
38
- * </li>
39
- * </ul>
40
- */
41
- export class Pricing extends PricingClient {
42
- /**
43
- * <p>Returns the metadata for one service or a list of the metadata for all services. Use
44
- * this without a service code to get the service codes for all services.
45
- * Use it with a service code, such as <code>AmazonEC2</code>, to get information specific to
46
- * that service, such as the attribute
47
- * names available for that service. For example, some of the attribute names available for EC2 are
48
- * <code>volumeType</code>, <code>maxIopsVolume</code>, <code>operation</code>,
49
- * <code>locationType</code>, and <code>instanceCapacity10xlarge</code>.</p>
50
- */
51
- public describeServices(
52
- args: DescribeServicesCommandInput,
53
- options?: __HttpHandlerOptions
54
- ): Promise<DescribeServicesCommandOutput>;
55
- public describeServices(
56
- args: DescribeServicesCommandInput,
57
- cb: (err: any, data?: DescribeServicesCommandOutput) => void
58
- ): void;
59
- public describeServices(
60
- args: DescribeServicesCommandInput,
61
- options: __HttpHandlerOptions,
62
- cb: (err: any, data?: DescribeServicesCommandOutput) => void
63
- ): void;
64
- public describeServices(
65
- args: DescribeServicesCommandInput,
66
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeServicesCommandOutput) => void),
67
- cb?: (err: any, data?: DescribeServicesCommandOutput) => void
68
- ): Promise<DescribeServicesCommandOutput> | void {
69
- const command = new DescribeServicesCommand(args);
70
- if (typeof optionsOrCb === "function") {
71
- this.send(command, optionsOrCb);
72
- } else if (typeof cb === "function") {
73
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
74
- this.send(command, optionsOrCb || {}, cb);
75
- } else {
76
- return this.send(command, optionsOrCb);
77
- }
78
- }
79
-
80
- /**
81
- * <p>Returns a list of attribute values. Attibutes are similar to the details
82
- * in a Price List API offer file. For a list of available attributes, see
83
- * <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/reading-an-offer.html#pps-defs">Offer File Definitions</a>
84
- * in the <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/billing-what-is.html">Amazon Web Services Billing and Cost Management User Guide</a>.</p>
85
- */
86
- public getAttributeValues(
87
- args: GetAttributeValuesCommandInput,
88
- options?: __HttpHandlerOptions
89
- ): Promise<GetAttributeValuesCommandOutput>;
90
- public getAttributeValues(
91
- args: GetAttributeValuesCommandInput,
92
- cb: (err: any, data?: GetAttributeValuesCommandOutput) => void
93
- ): void;
94
- public getAttributeValues(
95
- args: GetAttributeValuesCommandInput,
96
- options: __HttpHandlerOptions,
97
- cb: (err: any, data?: GetAttributeValuesCommandOutput) => void
98
- ): void;
99
- public getAttributeValues(
100
- args: GetAttributeValuesCommandInput,
101
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetAttributeValuesCommandOutput) => void),
102
- cb?: (err: any, data?: GetAttributeValuesCommandOutput) => void
103
- ): Promise<GetAttributeValuesCommandOutput> | void {
104
- const command = new GetAttributeValuesCommand(args);
105
- if (typeof optionsOrCb === "function") {
106
- this.send(command, optionsOrCb);
107
- } else if (typeof cb === "function") {
108
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
109
- this.send(command, optionsOrCb || {}, cb);
110
- } else {
111
- return this.send(command, optionsOrCb);
112
- }
113
- }
114
-
115
- /**
116
- * <p>Returns a list of all products that match the filter criteria.</p>
117
- */
118
- public getProducts(args: GetProductsCommandInput, options?: __HttpHandlerOptions): Promise<GetProductsCommandOutput>;
119
- public getProducts(args: GetProductsCommandInput, cb: (err: any, data?: GetProductsCommandOutput) => void): void;
120
- public getProducts(
121
- args: GetProductsCommandInput,
122
- options: __HttpHandlerOptions,
123
- cb: (err: any, data?: GetProductsCommandOutput) => void
124
- ): void;
125
- public getProducts(
126
- args: GetProductsCommandInput,
127
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetProductsCommandOutput) => void),
128
- cb?: (err: any, data?: GetProductsCommandOutput) => void
129
- ): Promise<GetProductsCommandOutput> | void {
130
- const command = new GetProductsCommand(args);
131
- if (typeof optionsOrCb === "function") {
132
- this.send(command, optionsOrCb);
133
- } else if (typeof cb === "function") {
134
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
135
- this.send(command, optionsOrCb || {}, cb);
136
- } else {
137
- return this.send(command, optionsOrCb);
138
- }
139
- }
140
- }