@aws-sdk/client-pricing 3.35.0 → 3.38.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.
- package/CHANGELOG.md +47 -0
- package/dist-cjs/Pricing.js +0 -27
- package/dist-cjs/PricingClient.js +0 -32
- package/dist-cjs/commands/DescribeServicesCommand.js +0 -31
- package/dist-cjs/commands/GetAttributeValuesCommand.js +0 -28
- package/dist-cjs/commands/GetProductsCommand.js +0 -25
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +4 -10
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -43
- package/dist-cjs/pagination/DescribeServicesPaginator.js +0 -11
- package/dist-cjs/pagination/GetAttributeValuesPaginator.js +0 -11
- package/dist-cjs/pagination/GetProductsPaginator.js +0 -11
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/index.js +7 -0
- package/dist-cjs/protocols/Aws_json1_1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/Pricing.js +0 -1
- package/dist-es/PricingClient.js +0 -1
- package/dist-es/commands/DescribeServicesCommand.js +0 -1
- package/dist-es/commands/GetAttributeValuesCommand.js +0 -1
- package/dist-es/commands/GetProductsCommand.js +0 -1
- package/dist-es/commands/index.js +3 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +4 -10
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/DescribeServicesPaginator.js +0 -1
- package/dist-es/pagination/GetAttributeValuesPaginator.js +0 -1
- package/dist-es/pagination/GetProductsPaginator.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_json1_1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/index.d.ts +4 -9
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/Pricing.d.ts +4 -44
- package/dist-types/ts3.4/PricingClient.d.ts +24 -112
- package/dist-types/ts3.4/commands/DescribeServicesCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/GetAttributeValuesCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/GetProductsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/index.d.ts +4 -9
- package/dist-types/ts3.4/models/models_0.d.ts +49 -173
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/Pricing.js.map +0 -1
- package/dist-cjs/PricingClient.js.map +0 -1
- package/dist-cjs/commands/DescribeServicesCommand.js.map +0 -1
- package/dist-cjs/commands/GetAttributeValuesCommand.js.map +0 -1
- package/dist-cjs/commands/GetProductsCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/DescribeServicesPaginator.js.map +0 -1
- package/dist-cjs/pagination/GetAttributeValuesPaginator.js.map +0 -1
- package/dist-cjs/pagination/GetProductsPaginator.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/Pricing.js.map +0 -1
- package/dist-es/PricingClient.js.map +0 -1
- package/dist-es/commands/DescribeServicesCommand.js.map +0 -1
- package/dist-es/commands/GetAttributeValuesCommand.js.map +0 -1
- package/dist-es/commands/GetProductsCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/DescribeServicesPaginator.js.map +0 -1
- package/dist-es/pagination/GetAttributeValuesPaginator.js.map +0 -1
- package/dist-es/pagination/GetProductsPaginator.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/protocols/Aws_json1_1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/Pricing.ts +0 -141
- package/src/PricingClient.ts +0 -265
- package/src/commands/DescribeServicesCommand.ts +0 -101
- package/src/commands/GetAttributeValuesCommand.ts +0 -98
- package/src/commands/GetProductsCommand.ts +0 -95
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -10
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -365
- package/src/pagination/DescribeServicesPaginator.ts +0 -59
- package/src/pagination/GetAttributeValuesPaginator.ts +0 -59
- package/src/pagination/GetProductsPaginator.ts +0 -55
- package/src/pagination/Interfaces.ts +0 -8
- package/src/protocols/Aws_json1_1.ts +0 -675
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { GetAttributeValuesRequest, GetAttributeValuesResponse } from "../models/models_0";
|
|
15
|
-
import { PricingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PricingClient";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1GetAttributeValuesCommand,
|
|
18
|
-
serializeAws_json1_1GetAttributeValuesCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface GetAttributeValuesCommandInput extends GetAttributeValuesRequest {}
|
|
22
|
-
export interface GetAttributeValuesCommandOutput extends GetAttributeValuesResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Returns a list of attribute values. Attibutes are similar to the details
|
|
26
|
-
* in a Price List API offer file. For a list of available attributes, see
|
|
27
|
-
* <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/reading-an-offer.html#pps-defs">Offer File Definitions</a>
|
|
28
|
-
* 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>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { PricingClient, GetAttributeValuesCommand } from "@aws-sdk/client-pricing"; // ES Modules import
|
|
33
|
-
* // const { PricingClient, GetAttributeValuesCommand } = require("@aws-sdk/client-pricing"); // CommonJS import
|
|
34
|
-
* const client = new PricingClient(config);
|
|
35
|
-
* const command = new GetAttributeValuesCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link GetAttributeValuesCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link GetAttributeValuesCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link PricingClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export class GetAttributeValuesCommand extends $Command<
|
|
45
|
-
GetAttributeValuesCommandInput,
|
|
46
|
-
GetAttributeValuesCommandOutput,
|
|
47
|
-
PricingClientResolvedConfig
|
|
48
|
-
> {
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
|
-
|
|
52
|
-
constructor(readonly input: GetAttributeValuesCommandInput) {
|
|
53
|
-
// Start section: command_constructor
|
|
54
|
-
super();
|
|
55
|
-
// End section: command_constructor
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
*/
|
|
61
|
-
resolveMiddleware(
|
|
62
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
63
|
-
configuration: PricingClientResolvedConfig,
|
|
64
|
-
options?: __HttpHandlerOptions
|
|
65
|
-
): Handler<GetAttributeValuesCommandInput, GetAttributeValuesCommandOutput> {
|
|
66
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
67
|
-
|
|
68
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
69
|
-
|
|
70
|
-
const { logger } = configuration;
|
|
71
|
-
const clientName = "PricingClient";
|
|
72
|
-
const commandName = "GetAttributeValuesCommand";
|
|
73
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
74
|
-
logger,
|
|
75
|
-
clientName,
|
|
76
|
-
commandName,
|
|
77
|
-
inputFilterSensitiveLog: GetAttributeValuesRequest.filterSensitiveLog,
|
|
78
|
-
outputFilterSensitiveLog: GetAttributeValuesResponse.filterSensitiveLog,
|
|
79
|
-
};
|
|
80
|
-
const { requestHandler } = configuration;
|
|
81
|
-
return stack.resolve(
|
|
82
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
83
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
84
|
-
handlerExecutionContext
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private serialize(input: GetAttributeValuesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
89
|
-
return serializeAws_json1_1GetAttributeValuesCommand(input, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetAttributeValuesCommandOutput> {
|
|
93
|
-
return deserializeAws_json1_1GetAttributeValuesCommand(output, context);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Start section: command_body_extra
|
|
97
|
-
// End section: command_body_extra
|
|
98
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { GetProductsRequest, GetProductsResponse } from "../models/models_0";
|
|
15
|
-
import { PricingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PricingClient";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1GetProductsCommand,
|
|
18
|
-
serializeAws_json1_1GetProductsCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface GetProductsCommandInput extends GetProductsRequest {}
|
|
22
|
-
export interface GetProductsCommandOutput extends GetProductsResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Returns a list of all products that match the filter criteria.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { PricingClient, GetProductsCommand } from "@aws-sdk/client-pricing"; // ES Modules import
|
|
30
|
-
* // const { PricingClient, GetProductsCommand } = require("@aws-sdk/client-pricing"); // CommonJS import
|
|
31
|
-
* const client = new PricingClient(config);
|
|
32
|
-
* const command = new GetProductsCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link GetProductsCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link GetProductsCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link PricingClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class GetProductsCommand extends $Command<
|
|
42
|
-
GetProductsCommandInput,
|
|
43
|
-
GetProductsCommandOutput,
|
|
44
|
-
PricingClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: GetProductsCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: PricingClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<GetProductsCommandInput, GetProductsCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "PricingClient";
|
|
69
|
-
const commandName = "GetProductsCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: GetProductsRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: GetProductsResponse.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: GetProductsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_json1_1GetProductsCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetProductsCommandOutput> {
|
|
90
|
-
return deserializeAws_json1_1GetProductsCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
package/src/endpoints.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
|
|
2
|
-
import { RegionInfoProvider } from "@aws-sdk/types";
|
|
3
|
-
|
|
4
|
-
const regionHash: RegionHash = {};
|
|
5
|
-
|
|
6
|
-
const partitionHash: PartitionHash = {
|
|
7
|
-
aws: {
|
|
8
|
-
regions: [
|
|
9
|
-
"af-south-1",
|
|
10
|
-
"ap-east-1",
|
|
11
|
-
"ap-northeast-1",
|
|
12
|
-
"ap-northeast-2",
|
|
13
|
-
"ap-northeast-3",
|
|
14
|
-
"ap-south-1",
|
|
15
|
-
"ap-southeast-1",
|
|
16
|
-
"ap-southeast-2",
|
|
17
|
-
"ca-central-1",
|
|
18
|
-
"eu-central-1",
|
|
19
|
-
"eu-north-1",
|
|
20
|
-
"eu-south-1",
|
|
21
|
-
"eu-west-1",
|
|
22
|
-
"eu-west-2",
|
|
23
|
-
"eu-west-3",
|
|
24
|
-
"me-south-1",
|
|
25
|
-
"sa-east-1",
|
|
26
|
-
"us-east-1",
|
|
27
|
-
"us-east-2",
|
|
28
|
-
"us-west-1",
|
|
29
|
-
"us-west-2",
|
|
30
|
-
],
|
|
31
|
-
hostname: "api.pricing.{region}.amazonaws.com",
|
|
32
|
-
},
|
|
33
|
-
"aws-cn": {
|
|
34
|
-
regions: ["cn-north-1", "cn-northwest-1"],
|
|
35
|
-
hostname: "api.pricing.{region}.amazonaws.com.cn",
|
|
36
|
-
},
|
|
37
|
-
"aws-iso": {
|
|
38
|
-
regions: ["us-iso-east-1"],
|
|
39
|
-
hostname: "api.pricing.{region}.c2s.ic.gov",
|
|
40
|
-
},
|
|
41
|
-
"aws-iso-b": {
|
|
42
|
-
regions: ["us-isob-east-1"],
|
|
43
|
-
hostname: "api.pricing.{region}.sc2s.sgov.gov",
|
|
44
|
-
},
|
|
45
|
-
"aws-us-gov": {
|
|
46
|
-
regions: ["us-gov-east-1", "us-gov-west-1"],
|
|
47
|
-
hostname: "api.pricing.{region}.amazonaws.com",
|
|
48
|
-
},
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
|
|
52
|
-
getRegionInfo(region, {
|
|
53
|
-
...options,
|
|
54
|
-
signingService: "pricing",
|
|
55
|
-
regionHash,
|
|
56
|
-
partitionHash,
|
|
57
|
-
});
|
package/src/index.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from "./PricingClient";
|
|
2
|
-
export * from "./Pricing";
|
|
3
|
-
export * from "./commands/DescribeServicesCommand";
|
|
4
|
-
export * from "./pagination/DescribeServicesPaginator";
|
|
5
|
-
export * from "./commands/GetAttributeValuesCommand";
|
|
6
|
-
export * from "./pagination/GetAttributeValuesPaginator";
|
|
7
|
-
export * from "./commands/GetProductsCommand";
|
|
8
|
-
export * from "./pagination/GetProductsPaginator";
|
|
9
|
-
export * from "./pagination/Interfaces";
|
|
10
|
-
export * from "./models/index";
|
package/src/models/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./models_0";
|
package/src/models/models_0.ts
DELETED
|
@@ -1,365 +0,0 @@
|
|
|
1
|
-
import { LazyJsonString as __LazyJsonString } from "@aws-sdk/smithy-client";
|
|
2
|
-
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* <p>The values of a given attribute, such as <code>Throughput Optimized HDD</code> or <code>Provisioned
|
|
6
|
-
* IOPS</code> for the <code>Amazon EC2</code>
|
|
7
|
-
* <code>volumeType</code> attribute.</p>
|
|
8
|
-
*/
|
|
9
|
-
export interface AttributeValue {
|
|
10
|
-
/**
|
|
11
|
-
* <p>The specific value of an <code>attributeName</code>.</p>
|
|
12
|
-
*/
|
|
13
|
-
Value?: string;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export namespace AttributeValue {
|
|
17
|
-
/**
|
|
18
|
-
* @internal
|
|
19
|
-
*/
|
|
20
|
-
export const filterSensitiveLog = (obj: AttributeValue): any => ({
|
|
21
|
-
...obj,
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface DescribeServicesRequest {
|
|
26
|
-
/**
|
|
27
|
-
* <p>The code for the service whose information you want to retrieve, such as <code>AmazonEC2</code>.
|
|
28
|
-
* You can use
|
|
29
|
-
* the <code>ServiceCode</code> to filter the results in a <code>GetProducts</code> call.
|
|
30
|
-
* To retrieve a list of all services, leave this blank.</p>
|
|
31
|
-
*/
|
|
32
|
-
ServiceCode?: string;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* <p>The format version that you want the response to be in.</p>
|
|
36
|
-
* <p>Valid values are: <code>aws_v1</code>
|
|
37
|
-
* </p>
|
|
38
|
-
*/
|
|
39
|
-
FormatVersion?: string;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* <p>The pagination token that indicates the next set of results that you want to retrieve.</p>
|
|
43
|
-
*/
|
|
44
|
-
NextToken?: string;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* <p>The maximum number of results that you want returned in the response.</p>
|
|
48
|
-
*/
|
|
49
|
-
MaxResults?: number;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export namespace DescribeServicesRequest {
|
|
53
|
-
/**
|
|
54
|
-
* @internal
|
|
55
|
-
*/
|
|
56
|
-
export const filterSensitiveLog = (obj: DescribeServicesRequest): any => ({
|
|
57
|
-
...obj,
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* <p>The metadata for a service, such as the service code and available attribute names.</p>
|
|
63
|
-
*/
|
|
64
|
-
export interface Service {
|
|
65
|
-
/**
|
|
66
|
-
* <p>The code for the Amazon Web Services service.</p>
|
|
67
|
-
*/
|
|
68
|
-
ServiceCode?: string;
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* <p>The attributes that are available for this service.</p>
|
|
72
|
-
*/
|
|
73
|
-
AttributeNames?: string[];
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export namespace Service {
|
|
77
|
-
/**
|
|
78
|
-
* @internal
|
|
79
|
-
*/
|
|
80
|
-
export const filterSensitiveLog = (obj: Service): any => ({
|
|
81
|
-
...obj,
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export interface DescribeServicesResponse {
|
|
86
|
-
/**
|
|
87
|
-
* <p>The service metadata for the service or services in the response.</p>
|
|
88
|
-
*/
|
|
89
|
-
Services?: Service[];
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* <p>The format version of the response. For example, <code>aws_v1</code>.</p>
|
|
93
|
-
*/
|
|
94
|
-
FormatVersion?: string;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* <p>The pagination token for the next set of retreivable results.</p>
|
|
98
|
-
*/
|
|
99
|
-
NextToken?: string;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export namespace DescribeServicesResponse {
|
|
103
|
-
/**
|
|
104
|
-
* @internal
|
|
105
|
-
*/
|
|
106
|
-
export const filterSensitiveLog = (obj: DescribeServicesResponse): any => ({
|
|
107
|
-
...obj,
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* <p>The pagination token expired. Try again without a pagination token.</p>
|
|
113
|
-
*/
|
|
114
|
-
export interface ExpiredNextTokenException extends __SmithyException, $MetadataBearer {
|
|
115
|
-
name: "ExpiredNextTokenException";
|
|
116
|
-
$fault: "client";
|
|
117
|
-
Message?: string;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
export namespace ExpiredNextTokenException {
|
|
121
|
-
/**
|
|
122
|
-
* @internal
|
|
123
|
-
*/
|
|
124
|
-
export const filterSensitiveLog = (obj: ExpiredNextTokenException): any => ({
|
|
125
|
-
...obj,
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* <p>An error on the server occurred during the processing of your request. Try again later.</p>
|
|
131
|
-
*/
|
|
132
|
-
export interface InternalErrorException extends __SmithyException, $MetadataBearer {
|
|
133
|
-
name: "InternalErrorException";
|
|
134
|
-
$fault: "server";
|
|
135
|
-
Message?: string;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
export namespace InternalErrorException {
|
|
139
|
-
/**
|
|
140
|
-
* @internal
|
|
141
|
-
*/
|
|
142
|
-
export const filterSensitiveLog = (obj: InternalErrorException): any => ({
|
|
143
|
-
...obj,
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* <p>The pagination token is invalid. Try again without a pagination token.</p>
|
|
149
|
-
*/
|
|
150
|
-
export interface InvalidNextTokenException extends __SmithyException, $MetadataBearer {
|
|
151
|
-
name: "InvalidNextTokenException";
|
|
152
|
-
$fault: "client";
|
|
153
|
-
Message?: string;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
export namespace InvalidNextTokenException {
|
|
157
|
-
/**
|
|
158
|
-
* @internal
|
|
159
|
-
*/
|
|
160
|
-
export const filterSensitiveLog = (obj: InvalidNextTokenException): any => ({
|
|
161
|
-
...obj,
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* <p>One or more parameters had an invalid value.</p>
|
|
167
|
-
*/
|
|
168
|
-
export interface InvalidParameterException extends __SmithyException, $MetadataBearer {
|
|
169
|
-
name: "InvalidParameterException";
|
|
170
|
-
$fault: "client";
|
|
171
|
-
Message?: string;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
export namespace InvalidParameterException {
|
|
175
|
-
/**
|
|
176
|
-
* @internal
|
|
177
|
-
*/
|
|
178
|
-
export const filterSensitiveLog = (obj: InvalidParameterException): any => ({
|
|
179
|
-
...obj,
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* <p>The requested resource can't be found.</p>
|
|
185
|
-
*/
|
|
186
|
-
export interface NotFoundException extends __SmithyException, $MetadataBearer {
|
|
187
|
-
name: "NotFoundException";
|
|
188
|
-
$fault: "client";
|
|
189
|
-
Message?: string;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
export namespace NotFoundException {
|
|
193
|
-
/**
|
|
194
|
-
* @internal
|
|
195
|
-
*/
|
|
196
|
-
export const filterSensitiveLog = (obj: NotFoundException): any => ({
|
|
197
|
-
...obj,
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
export interface GetAttributeValuesRequest {
|
|
202
|
-
/**
|
|
203
|
-
* <p>The service code for the service whose attributes you want to retrieve. For example, if you want
|
|
204
|
-
* the retrieve an EC2 attribute, use <code>AmazonEC2</code>.</p>
|
|
205
|
-
*/
|
|
206
|
-
ServiceCode: string | undefined;
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* <p>The name of the attribute that you want to retrieve the values for, such as <code>volumeType</code>.</p>
|
|
210
|
-
*/
|
|
211
|
-
AttributeName: string | undefined;
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* <p>The pagination token that indicates the next set of results that you want to retrieve.</p>
|
|
215
|
-
*/
|
|
216
|
-
NextToken?: string;
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* <p>The maximum number of results to return in response.</p>
|
|
220
|
-
*/
|
|
221
|
-
MaxResults?: number;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
export namespace GetAttributeValuesRequest {
|
|
225
|
-
/**
|
|
226
|
-
* @internal
|
|
227
|
-
*/
|
|
228
|
-
export const filterSensitiveLog = (obj: GetAttributeValuesRequest): any => ({
|
|
229
|
-
...obj,
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
export interface GetAttributeValuesResponse {
|
|
234
|
-
/**
|
|
235
|
-
* <p>The list of values for an attribute. For example, <code>Throughput Optimized HDD</code> and
|
|
236
|
-
* <code>Provisioned IOPS</code> are two available values for the <code>AmazonEC2</code>
|
|
237
|
-
* <code>volumeType</code>.</p>
|
|
238
|
-
*/
|
|
239
|
-
AttributeValues?: AttributeValue[];
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* <p>The pagination token that indicates the next set of results to retrieve.</p>
|
|
243
|
-
*/
|
|
244
|
-
NextToken?: string;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
export namespace GetAttributeValuesResponse {
|
|
248
|
-
/**
|
|
249
|
-
* @internal
|
|
250
|
-
*/
|
|
251
|
-
export const filterSensitiveLog = (obj: GetAttributeValuesResponse): any => ({
|
|
252
|
-
...obj,
|
|
253
|
-
});
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
export enum FilterType {
|
|
257
|
-
TERM_MATCH = "TERM_MATCH",
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* <p>The constraints that you want all returned products to match.</p>
|
|
262
|
-
*/
|
|
263
|
-
export interface Filter {
|
|
264
|
-
/**
|
|
265
|
-
* <p>The type of filter that you want to use.</p>
|
|
266
|
-
* <p>Valid values are: <code>TERM_MATCH</code>. <code>TERM_MATCH</code> returns only
|
|
267
|
-
* products that match both the given filter field and the given value.</p>
|
|
268
|
-
*/
|
|
269
|
-
Type: FilterType | string | undefined;
|
|
270
|
-
|
|
271
|
-
/**
|
|
272
|
-
* <p>The product metadata field that you want to filter on. You can filter by just the
|
|
273
|
-
* service code to see all products for a specific service, filter
|
|
274
|
-
* by just the attribute name to see a specific attribute for multiple services, or use both a service code
|
|
275
|
-
* and an attribute name to retrieve only products that match both fields.</p>
|
|
276
|
-
* <p>Valid values include: <code>ServiceCode</code>, and all attribute names</p>
|
|
277
|
-
*
|
|
278
|
-
* <p>For example, you can filter by the <code>AmazonEC2</code> service code and the
|
|
279
|
-
* <code>volumeType</code> attribute name to get the prices for only Amazon EC2 volumes.</p>
|
|
280
|
-
*/
|
|
281
|
-
Field: string | undefined;
|
|
282
|
-
|
|
283
|
-
/**
|
|
284
|
-
* <p>The service code or attribute value that you want to filter by. If you are filtering by
|
|
285
|
-
* service code this is the actual service code, such as <code>AmazonEC2</code>. If you are
|
|
286
|
-
* filtering by attribute name, this is the attribute value that you want the returned products
|
|
287
|
-
* to match, such as a <code>Provisioned IOPS</code> volume.</p>
|
|
288
|
-
*/
|
|
289
|
-
Value: string | undefined;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
export namespace Filter {
|
|
293
|
-
/**
|
|
294
|
-
* @internal
|
|
295
|
-
*/
|
|
296
|
-
export const filterSensitiveLog = (obj: Filter): any => ({
|
|
297
|
-
...obj,
|
|
298
|
-
});
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
export interface GetProductsRequest {
|
|
302
|
-
/**
|
|
303
|
-
* <p>The code for the service whose products you want to retrieve. </p>
|
|
304
|
-
*/
|
|
305
|
-
ServiceCode?: string;
|
|
306
|
-
|
|
307
|
-
/**
|
|
308
|
-
* <p>The list of filters that limit the returned products. only products that match all filters
|
|
309
|
-
* are returned.</p>
|
|
310
|
-
*/
|
|
311
|
-
Filters?: Filter[];
|
|
312
|
-
|
|
313
|
-
/**
|
|
314
|
-
* <p>The format version that you want the response to be in.</p>
|
|
315
|
-
* <p>Valid values are: <code>aws_v1</code>
|
|
316
|
-
* </p>
|
|
317
|
-
*/
|
|
318
|
-
FormatVersion?: string;
|
|
319
|
-
|
|
320
|
-
/**
|
|
321
|
-
* <p>The pagination token that indicates the next set of results that you want to retrieve.</p>
|
|
322
|
-
*/
|
|
323
|
-
NextToken?: string;
|
|
324
|
-
|
|
325
|
-
/**
|
|
326
|
-
* <p>The maximum number of results to return in the response.</p>
|
|
327
|
-
*/
|
|
328
|
-
MaxResults?: number;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
export namespace GetProductsRequest {
|
|
332
|
-
/**
|
|
333
|
-
* @internal
|
|
334
|
-
*/
|
|
335
|
-
export const filterSensitiveLog = (obj: GetProductsRequest): any => ({
|
|
336
|
-
...obj,
|
|
337
|
-
});
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
export interface GetProductsResponse {
|
|
341
|
-
/**
|
|
342
|
-
* <p>The format version of the response. For example, aws_v1.</p>
|
|
343
|
-
*/
|
|
344
|
-
FormatVersion?: string;
|
|
345
|
-
|
|
346
|
-
/**
|
|
347
|
-
* <p>The list of products that match your filters. The list contains both the product metadata and
|
|
348
|
-
* the price information.</p>
|
|
349
|
-
*/
|
|
350
|
-
PriceList?: (__LazyJsonString | string)[];
|
|
351
|
-
|
|
352
|
-
/**
|
|
353
|
-
* <p>The pagination token that indicates the next set of results to retrieve.</p>
|
|
354
|
-
*/
|
|
355
|
-
NextToken?: string;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
export namespace GetProductsResponse {
|
|
359
|
-
/**
|
|
360
|
-
* @internal
|
|
361
|
-
*/
|
|
362
|
-
export const filterSensitiveLog = (obj: GetProductsResponse): any => ({
|
|
363
|
-
...obj,
|
|
364
|
-
});
|
|
365
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
DescribeServicesCommand,
|
|
5
|
-
DescribeServicesCommandInput,
|
|
6
|
-
DescribeServicesCommandOutput,
|
|
7
|
-
} from "../commands/DescribeServicesCommand";
|
|
8
|
-
import { Pricing } from "../Pricing";
|
|
9
|
-
import { PricingClient } from "../PricingClient";
|
|
10
|
-
import { PricingPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: PricingClient,
|
|
17
|
-
input: DescribeServicesCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<DescribeServicesCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new DescribeServicesCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Pricing,
|
|
28
|
-
input: DescribeServicesCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<DescribeServicesCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.describeServices(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateDescribeServices(
|
|
35
|
-
config: PricingPaginationConfiguration,
|
|
36
|
-
input: DescribeServicesCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<DescribeServicesCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: DescribeServicesCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Pricing) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof PricingClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Pricing | PricingClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|