diff --git a/clients/client-pricing/README.md b/clients/client-pricing/README.md index f0d1c4ca6bfeb..e1d4984763601 100644 --- a/clients/client-pricing/README.md +++ b/clients/client-pricing/README.md @@ -25,7 +25,7 @@ the SKU level. You can use the Amazon Web Services Price List to do the followin

Use GetServices without a service code to retrieve the service codes for -all Amazon Web Services, then GetServices with a service code to +all Amazon Web Services services, then GetServices with a service code to retrieve the attribute names for that service. After you have the service code and attribute names, you can use GetAttributeValues to see what values are available for an attribute. With the service code and an attribute name and value, you can diff --git a/clients/client-pricing/src/Pricing.ts b/clients/client-pricing/src/Pricing.ts index f92170ee68006..4775b041c9981 100644 --- a/clients/client-pricing/src/Pricing.ts +++ b/clients/client-pricing/src/Pricing.ts @@ -132,7 +132,7 @@ export interface Pricing { * * *

Use GetServices without a service code to retrieve the service codes for - * all Amazon Web Services, then GetServices with a service code to + * all Amazon Web Services services, then GetServices with a service code to * retrieve the attribute names for that service. After you have the service code and * attribute names, you can use GetAttributeValues to see what values are * available for an attribute. With the service code and an attribute name and value, you can diff --git a/clients/client-pricing/src/PricingClient.ts b/clients/client-pricing/src/PricingClient.ts index b56be66440b44..9d7239d578803 100644 --- a/clients/client-pricing/src/PricingClient.ts +++ b/clients/client-pricing/src/PricingClient.ts @@ -283,7 +283,7 @@ export interface PricingClientResolvedConfig extends PricingClientResolvedConfig * * *

Use GetServices without a service code to retrieve the service codes for - * all Amazon Web Services, then GetServices with a service code to + * all Amazon Web Services services, then GetServices with a service code to * retrieve the attribute names for that service. After you have the service code and * attribute names, you can use GetAttributeValues to see what values are * available for an attribute. With the service code and an attribute name and value, you can diff --git a/clients/client-pricing/src/index.ts b/clients/client-pricing/src/index.ts index be9c830967c21..30ea3edfbfe2d 100644 --- a/clients/client-pricing/src/index.ts +++ b/clients/client-pricing/src/index.ts @@ -20,7 +20,7 @@ * * *

Use GetServices without a service code to retrieve the service codes for - * all Amazon Web Services, then GetServices with a service code to + * all Amazon Web Services services, then GetServices with a service code to * retrieve the attribute names for that service. After you have the service code and * attribute names, you can use GetAttributeValues to see what values are * available for an attribute. With the service code and an attribute name and value, you can diff --git a/codegen/sdk-codegen/aws-models/pricing.json b/codegen/sdk-codegen/aws-models/pricing.json index a313bdd819123..2eb7f0ea97151 100644 --- a/codegen/sdk-codegen/aws-models/pricing.json +++ b/codegen/sdk-codegen/aws-models/pricing.json @@ -33,7 +33,7 @@ "name": "pricing" }, "aws.protocols#awsJson1_1": {}, - "smithy.api#documentation": "

The Amazon Web Services Price List API is a centralized and convenient way to programmatically\n query Amazon Web Services for services, products, and pricing information. The Amazon Web Services Price List uses standardized product attributes such as Location,\n Storage Class, and Operating System, and provides prices at\n the SKU level. You can use the Amazon Web Services Price List to do the following:

\n \n

Use GetServices without a service code to retrieve the service codes for\n all Amazon Web Services, then GetServices with a service code to\n retrieve the attribute names for that service. After you have the service code and\n attribute names, you can use GetAttributeValues to see what values are\n available for an attribute. With the service code and an attribute name and value, you can\n use GetProducts to find specific products that you're interested in, such as\n an AmazonEC2 instance, with a Provisioned IOPS\n volumeType.

\n

For more information, see Using the\n Amazon Web Services Price List API in the Billing User\n Guide.

", + "smithy.api#documentation": "

The Amazon Web Services Price List API is a centralized and convenient way to programmatically\n query Amazon Web Services for services, products, and pricing information. The Amazon Web Services Price List uses standardized product attributes such as Location,\n Storage Class, and Operating System, and provides prices at\n the SKU level. You can use the Amazon Web Services Price List to do the following:

\n \n

Use GetServices without a service code to retrieve the service codes for\n all Amazon Web Services services, then GetServices with a service code to\n retrieve the attribute names for that service. After you have the service code and\n attribute names, you can use GetAttributeValues to see what values are\n available for an attribute. With the service code and an attribute name and value, you can\n use GetProducts to find specific products that you're interested in, such as\n an AmazonEC2 instance, with a Provisioned IOPS\n volumeType.

\n

For more information, see Using the\n Amazon Web Services Price List API in the Billing User\n Guide.

", "smithy.api#title": "AWS Price List Service", "smithy.rules#endpointRuleSet": { "version": "1.0", @@ -788,6 +788,33 @@ ], "traits": { "smithy.api#documentation": "

Returns the metadata for one service or a list of the metadata for all services. Use\n this without a service code to get the service codes for all services.\n Use it with a service code, such as AmazonEC2, to get information specific to \n that service, such as the attribute \n names available for that service. For example, some of the attribute names available for EC2 are \n volumeType, maxIopsVolume, operation,\n locationType, and instanceCapacity10xlarge.

", + "smithy.api#examples": [ + { + "title": "To retrieve a list of services and service codes", + "documentation": "Retrieves the service for the given Service Code.", + "input": { + "ServiceCode": "AmazonEC2", + "FormatVersion": "aws_v1", + "MaxResults": 1 + }, + "output": { + "FormatVersion": "aws_v1", + "NextToken": "abcdefg123", + "Services": [ + { + "AttributeNames": [ + "volumeType", + "maxIopsvolume", + "instanceCapacity10xlarge", + "locationType", + "operation" + ], + "ServiceCode": "AmazonEC2" + } + ] + } + } + ], "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -962,6 +989,28 @@ ], "traits": { "smithy.api#documentation": "

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 Offer File Definitions\n in the Billing and Cost Management User Guide.

", + "smithy.api#examples": [ + { + "title": "To retrieve a list of attribute values", + "documentation": "This operation returns a list of values available for the given attribute.", + "input": { + "ServiceCode": "AmazonEC2", + "AttributeName": "volumeType", + "MaxResults": 2 + }, + "output": { + "NextToken": "GpgauEXAMPLEezucl5LV0w==:7GzYJ0nw0DBTJ2J66EoTIIynE6O1uXwQtTRqioJzQadBnDVgHPzI1en4BUQnPCLpzeBk9RQQAWaFieA4+DapFAGLgk+Z/9/cTw9GldnPOHN98+FdmJP7wKU3QQpQ8MQr5KOeBkIsAqvAQYdL0DkL7tHwPtE5iCEByAmg9gcC/yBU1vAOsf7R3VaNN4M5jMDv3woSWqASSIlBVB6tgW78YL22KhssoItM/jWW+aP6Jqtq4mldxp/ct6DWAl+xLFwHU/CbketimPPXyqHF3/UXDw==", + "AttributeValues": [ + { + "Value": "Throughput Optimized HDD" + }, + { + "Value": "Provisioned IOPS" + } + ] + } + } + ], "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken",