Skip to content

Commit bdf3c9a

Browse files
author
awstools
committed
feat(client-pricing): This release introduces 1 update to the GetProducts API. The serviceCode attribute is now required when you use the GetProductsRequest.
1 parent 9b215d2 commit bdf3c9a

File tree

6 files changed

+22
-20
lines changed

6 files changed

+22
-20
lines changed

clients/client-pricing/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010
AWS SDK for JavaScript Pricing Client for Node.js, Browser and React Native.
1111

12-
<p>Amazon Web Services Price List Service API (Amazon Web Services Price List Service) is a centralized and convenient way to
13-
programmatically query Amazon Web Services for services, products, and pricing information. The Amazon Web Services Price List Service
12+
<p>Amazon Web Services Price List API is a centralized and convenient way to
13+
programmatically query Amazon Web Services for services, products, and pricing information. The Amazon Web Services Price List
1414
uses standardized product attributes such as <code>Location</code>, <code>Storage
1515
Class</code>, and <code>Operating System</code>, and provides prices at the SKU
16-
level. You can use the Amazon Web Services Price List Service to build cost control and scenario planning tools, reconcile
16+
level. You can use the Amazon Web Services Price List to build cost control and scenario planning tools, reconcile
1717
billing data, forecast future spend for budgeting purposes, and provide cost benefit
1818
analysis that compare your internal workloads with Amazon Web Services.</p>
1919
<p>Use <code>GetServices</code> without a service code to retrieve the service codes for all AWS services, then
@@ -24,7 +24,7 @@ you can use <code>GetProducts</code> to find specific products that you're inter
2424
an <code>AmazonEC2</code> instance, with a <code>Provisioned IOPS</code>
2525
<code>volumeType</code>.</p>
2626
<p>Service Endpoint</p>
27-
<p>Amazon Web Services Price List Service API provides the following two endpoints:</p>
27+
<p>Amazon Web Services Price List service API provides the following two endpoints:</p>
2828
<ul>
2929
<li>
3030
<p>https://api.pricing.us-east-1.amazonaws.com</p>

clients/client-pricing/src/Pricing.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ import { GetProductsCommand, GetProductsCommandInput, GetProductsCommandOutput }
1515
import { PricingClient } from "./PricingClient";
1616

1717
/**
18-
* <p>Amazon Web Services Price List Service API (Amazon Web Services Price List Service) is a centralized and convenient way to
19-
* programmatically query Amazon Web Services for services, products, and pricing information. The Amazon Web Services Price List Service
18+
* <p>Amazon Web Services Price List API is a centralized and convenient way to
19+
* programmatically query Amazon Web Services for services, products, and pricing information. The Amazon Web Services Price List
2020
* uses standardized product attributes such as <code>Location</code>, <code>Storage
2121
* Class</code>, and <code>Operating System</code>, and provides prices at the SKU
22-
* level. You can use the Amazon Web Services Price List Service to build cost control and scenario planning tools, reconcile
22+
* level. You can use the Amazon Web Services Price List to build cost control and scenario planning tools, reconcile
2323
* billing data, forecast future spend for budgeting purposes, and provide cost benefit
2424
* analysis that compare your internal workloads with Amazon Web Services.</p>
2525
* <p>Use <code>GetServices</code> without a service code to retrieve the service codes for all AWS services, then
@@ -30,7 +30,7 @@ import { PricingClient } from "./PricingClient";
3030
* an <code>AmazonEC2</code> instance, with a <code>Provisioned IOPS</code>
3131
* <code>volumeType</code>.</p>
3232
* <p>Service Endpoint</p>
33-
* <p>Amazon Web Services Price List Service API provides the following two endpoints:</p>
33+
* <p>Amazon Web Services Price List service API provides the following two endpoints:</p>
3434
* <ul>
3535
* <li>
3636
* <p>https://api.pricing.us-east-1.amazonaws.com</p>
@@ -83,7 +83,7 @@ export class Pricing extends PricingClient {
8383
* <p>Returns a list of attribute values. Attributes are similar to the details
8484
* in a Price List API offer file. For a list of available attributes, see
8585
* <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/reading-an-offer.html#pps-defs">Offer File Definitions</a>
86-
* 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>
86+
* in the <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/billing-what-is.html">Billing and Cost Management User Guide</a>.</p>
8787
*/
8888
public getAttributeValues(
8989
args: GetAttributeValuesCommandInput,

clients/client-pricing/src/PricingClient.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,11 @@ type PricingClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandl
219219
export interface PricingClientResolvedConfig extends PricingClientResolvedConfigType {}
220220

221221
/**
222-
* <p>Amazon Web Services Price List Service API (Amazon Web Services Price List Service) is a centralized and convenient way to
223-
* programmatically query Amazon Web Services for services, products, and pricing information. The Amazon Web Services Price List Service
222+
* <p>Amazon Web Services Price List API is a centralized and convenient way to
223+
* programmatically query Amazon Web Services for services, products, and pricing information. The Amazon Web Services Price List
224224
* uses standardized product attributes such as <code>Location</code>, <code>Storage
225225
* Class</code>, and <code>Operating System</code>, and provides prices at the SKU
226-
* level. You can use the Amazon Web Services Price List Service to build cost control and scenario planning tools, reconcile
226+
* level. You can use the Amazon Web Services Price List to build cost control and scenario planning tools, reconcile
227227
* billing data, forecast future spend for budgeting purposes, and provide cost benefit
228228
* analysis that compare your internal workloads with Amazon Web Services.</p>
229229
* <p>Use <code>GetServices</code> without a service code to retrieve the service codes for all AWS services, then
@@ -234,7 +234,7 @@ export interface PricingClientResolvedConfig extends PricingClientResolvedConfig
234234
* an <code>AmazonEC2</code> instance, with a <code>Provisioned IOPS</code>
235235
* <code>volumeType</code>.</p>
236236
* <p>Service Endpoint</p>
237-
* <p>Amazon Web Services Price List Service API provides the following two endpoints:</p>
237+
* <p>Amazon Web Services Price List service API provides the following two endpoints:</p>
238238
* <ul>
239239
* <li>
240240
* <p>https://api.pricing.us-east-1.amazonaws.com</p>

clients/client-pricing/src/commands/GetAttributeValuesCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export interface GetAttributeValuesCommandOutput extends GetAttributeValuesRespo
2626
* <p>Returns a list of attribute values. Attributes are similar to the details
2727
* in a Price List API offer file. For a list of available attributes, see
2828
* <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/reading-an-offer.html#pps-defs">Offer File Definitions</a>
29-
* 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+
* in the <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/billing-what-is.html">Billing and Cost Management User Guide</a>.</p>
3030
* @example
3131
* Use a bare-bones client and the command you need to make an API call.
3232
* ```javascript

clients/client-pricing/src/models/models_0.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export interface Service {
7070
/**
7171
* <p>The code for the Amazon Web Services service.</p>
7272
*/
73-
ServiceCode?: string;
73+
ServiceCode: string | undefined;
7474

7575
/**
7676
* <p>The attributes that are available for this service.</p>
@@ -322,7 +322,7 @@ export interface GetProductsRequest {
322322
/**
323323
* <p>The code for the service whose products you want to retrieve. </p>
324324
*/
325-
ServiceCode?: string;
325+
ServiceCode: string | undefined;
326326

327327
/**
328328
* <p>The list of filters that limit the returned products. only products that match all filters

codegen/sdk-codegen/aws-models/pricing.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"name": "pricing"
4444
},
4545
"aws.protocols#awsJson1_1": {},
46-
"smithy.api#documentation": "<p>Amazon Web Services Price List Service API (Amazon Web Services Price List Service) is a centralized and convenient way to\n programmatically query Amazon Web Services for services, products, and pricing information. The Amazon Web Services Price List Service\n uses standardized product attributes such as <code>Location</code>, <code>Storage\n Class</code>, and <code>Operating System</code>, and provides prices at the SKU\n level. You can use the Amazon Web Services Price List Service to build cost control and scenario planning tools, reconcile\n billing data, forecast future spend for budgeting purposes, and provide cost benefit\n analysis that compare your internal workloads with Amazon Web Services.</p>\n <p>Use <code>GetServices</code> without a service code to retrieve the service codes for all AWS services, then \n <code>GetServices</code> with a service code to retrieve the attribute names for \n that service. After you have the service code and attribute names, you can use <code>GetAttributeValues</code>\n to see what values are available for an attribute. With the service code and an attribute name and value, \n you can use <code>GetProducts</code> to find specific products that you're interested in, such as \n an <code>AmazonEC2</code> instance, with a <code>Provisioned IOPS</code> \n <code>volumeType</code>.</p>\n <p>Service Endpoint</p>\n <p>Amazon Web Services Price List Service API provides the following two endpoints:</p>\n <ul>\n <li>\n <p>https://api.pricing.us-east-1.amazonaws.com</p>\n </li>\n <li>\n <p>https://api.pricing.ap-south-1.amazonaws.com</p>\n </li>\n </ul>",
46+
"smithy.api#documentation": "<p>Amazon Web Services Price List API is a centralized and convenient way to\n programmatically query Amazon Web Services for services, products, and pricing information. The Amazon Web Services Price List\n uses standardized product attributes such as <code>Location</code>, <code>Storage\n Class</code>, and <code>Operating System</code>, and provides prices at the SKU\n level. You can use the Amazon Web Services Price List to build cost control and scenario planning tools, reconcile\n billing data, forecast future spend for budgeting purposes, and provide cost benefit\n analysis that compare your internal workloads with Amazon Web Services.</p>\n <p>Use <code>GetServices</code> without a service code to retrieve the service codes for all AWS services, then \n <code>GetServices</code> with a service code to retrieve the attribute names for \n that service. After you have the service code and attribute names, you can use <code>GetAttributeValues</code>\n to see what values are available for an attribute. With the service code and an attribute name and value, \n you can use <code>GetProducts</code> to find specific products that you're interested in, such as \n an <code>AmazonEC2</code> instance, with a <code>Provisioned IOPS</code> \n <code>volumeType</code>.</p>\n <p>Service Endpoint</p>\n <p>Amazon Web Services Price List service API provides the following two endpoints:</p>\n <ul>\n <li>\n <p>https://api.pricing.us-east-1.amazonaws.com</p>\n </li>\n <li>\n <p>https://api.pricing.ap-south-1.amazonaws.com</p>\n </li>\n </ul>",
4747
"smithy.api#title": "AWS Price List Service"
4848
},
4949
"version": "2017-10-15",
@@ -266,7 +266,7 @@
266266
}
267267
],
268268
"traits": {
269-
"smithy.api#documentation": "<p>Returns a list of attribute values. Attributes are similar to the details \n in a Price List API offer file. For a list of available attributes, see \n <a href=\"https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/reading-an-offer.html#pps-defs\">Offer File Definitions</a>\n 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>",
269+
"smithy.api#documentation": "<p>Returns a list of attribute values. Attributes are similar to the details \n in a Price List API offer file. For a list of available attributes, see \n <a href=\"https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/reading-an-offer.html#pps-defs\">Offer File Definitions</a>\n in the <a href=\"https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/billing-what-is.html\">Billing and Cost Management User Guide</a>.</p>",
270270
"smithy.api#paginated": {
271271
"inputToken": "NextToken",
272272
"outputToken": "NextToken",
@@ -363,7 +363,8 @@
363363
"ServiceCode": {
364364
"target": "com.amazonaws.pricing#String",
365365
"traits": {
366-
"smithy.api#documentation": "<p>The code for the service whose products you want to retrieve. </p>"
366+
"smithy.api#documentation": "<p>The code for the service whose products you want to retrieve. </p>",
367+
"smithy.api#required": {}
367368
}
368369
},
369370
"Filters": {
@@ -480,7 +481,8 @@
480481
"ServiceCode": {
481482
"target": "com.amazonaws.pricing#String",
482483
"traits": {
483-
"smithy.api#documentation": "<p>The code for the Amazon Web Services service.</p>"
484+
"smithy.api#documentation": "<p>The code for the Amazon Web Services service.</p>",
485+
"smithy.api#required": {}
484486
}
485487
},
486488
"AttributeNames": {

0 commit comments

Comments
 (0)