From e28258e790182f2529ac6f17da16087a74df65e1 Mon Sep 17 00:00:00 2001 From: awstools Date: Tue, 4 Apr 2023 18:17:13 +0000 Subject: [PATCH] feat(client-elastic-inference): Updated public documentation for the Describe and Tagging APIs. --- clients/client-elastic-inference/README.md | 5 + .../src/ElasticInference.ts | 35 + .../src/ElasticInferenceClient.ts | 5 + .../DescribeAcceleratorOfferingsCommand.ts | 7 +- .../DescribeAcceleratorTypesCommand.ts | 5 + .../commands/DescribeAcceleratorsCommand.ts | 5 + .../commands/ListTagsForResourceCommand.ts | 5 + .../src/commands/TagResourceCommand.ts | 5 + .../src/commands/UntagResourceCommand.ts | 5 + .../src/endpoint/ruleset.ts | 35 +- .../src/models/models_0.ts | 12 +- .../aws-models/elastic-inference.json | 788 +++++++++--------- 12 files changed, 520 insertions(+), 392 deletions(-) diff --git a/clients/client-elastic-inference/README.md b/clients/client-elastic-inference/README.md index c0b09d5089f8..79b3e2e90db7 100644 --- a/clients/client-elastic-inference/README.md +++ b/clients/client-elastic-inference/README.md @@ -12,6 +12,11 @@ AWS SDK for JavaScript ElasticInference Client for Node.js, Browser and React Na

Elastic Inference public APIs.

+

+February 15, 2023: Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. +After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. +However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service. +

## Installing diff --git a/clients/client-elastic-inference/src/ElasticInference.ts b/clients/client-elastic-inference/src/ElasticInference.ts index 5dfa549d19bf..f2334961dbc6 100644 --- a/clients/client-elastic-inference/src/ElasticInference.ts +++ b/clients/client-elastic-inference/src/ElasticInference.ts @@ -34,6 +34,11 @@ import { ElasticInferenceClient } from "./ElasticInferenceClient"; *

* Elastic Inference public APIs. *

+ *

+ * February 15, 2023: Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. + * After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. + * However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service. + *

*/ export class ElasticInference extends ElasticInferenceClient { /** @@ -41,6 +46,11 @@ export class ElasticInference extends ElasticInferenceClient { *

* Describes the locations in which a given accelerator type or set of types is present in a given region. *

+ *

+ * February 15, 2023: Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. + * After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. + * However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service. + *

*/ public describeAcceleratorOfferings( args: DescribeAcceleratorOfferingsCommandInput, @@ -76,6 +86,11 @@ export class ElasticInference extends ElasticInferenceClient { *

* Describes information over a provided set of accelerators belonging to an account. *

+ *

+ * February 15, 2023: Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. + * After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. + * However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service. + *

*/ public describeAccelerators( args: DescribeAcceleratorsCommandInput, @@ -111,6 +126,11 @@ export class ElasticInference extends ElasticInferenceClient { *

* Describes the accelerator types available in a given region, as well as their characteristics, such as memory and throughput. *

+ *

+ * February 15, 2023: Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. + * After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. + * However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service. + *

*/ public describeAcceleratorTypes( args: DescribeAcceleratorTypesCommandInput, @@ -146,6 +166,11 @@ export class ElasticInference extends ElasticInferenceClient { *

* Returns all tags of an Elastic Inference Accelerator. *

+ *

+ * February 15, 2023: Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. + * After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. + * However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service. + *

*/ public listTagsForResource( args: ListTagsForResourceCommandInput, @@ -181,6 +206,11 @@ export class ElasticInference extends ElasticInferenceClient { *

* Adds the specified tags to an Elastic Inference Accelerator. *

+ *

+ * February 15, 2023: Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. + * After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. + * However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service. + *

*/ public tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise; public tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void; @@ -210,6 +240,11 @@ export class ElasticInference extends ElasticInferenceClient { *

* Removes the specified tags from an Elastic Inference Accelerator. *

+ *

+ * February 15, 2023: Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. + * After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. + * However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service. + *

*/ public untagResource( args: UntagResourceCommandInput, diff --git a/clients/client-elastic-inference/src/ElasticInferenceClient.ts b/clients/client-elastic-inference/src/ElasticInferenceClient.ts index a3630afc364d..29cd6066c5ea 100644 --- a/clients/client-elastic-inference/src/ElasticInferenceClient.ts +++ b/clients/client-elastic-inference/src/ElasticInferenceClient.ts @@ -264,6 +264,11 @@ export interface ElasticInferenceClientResolvedConfig extends ElasticInferenceCl *

* Elastic Inference public APIs. *

+ *

+ * February 15, 2023: Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. + * After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. + * However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service. + *

*/ export class ElasticInferenceClient extends __Client< __HttpHandlerOptions, diff --git a/clients/client-elastic-inference/src/commands/DescribeAcceleratorOfferingsCommand.ts b/clients/client-elastic-inference/src/commands/DescribeAcceleratorOfferingsCommand.ts index c15fdce07c59..f613763b7306 100644 --- a/clients/client-elastic-inference/src/commands/DescribeAcceleratorOfferingsCommand.ts +++ b/clients/client-elastic-inference/src/commands/DescribeAcceleratorOfferingsCommand.ts @@ -40,6 +40,11 @@ export interface DescribeAcceleratorOfferingsCommandOutput *

* Describes the locations in which a given accelerator type or set of types is present in a given region. *

+ *

+ * February 15, 2023: Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. + * After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. + * However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service. + *

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript @@ -47,7 +52,7 @@ export interface DescribeAcceleratorOfferingsCommandOutput * // const { ElasticInferenceClient, DescribeAcceleratorOfferingsCommand } = require("@aws-sdk/client-elastic-inference"); // CommonJS import * const client = new ElasticInferenceClient(config); * const input = { // DescribeAcceleratorOfferingsRequest - * locationType: "STRING_VALUE", // required + * locationType: "region" || "availability-zone" || "availability-zone-id", // required * acceleratorTypes: [ // AcceleratorTypeNameList * "STRING_VALUE", * ], diff --git a/clients/client-elastic-inference/src/commands/DescribeAcceleratorTypesCommand.ts b/clients/client-elastic-inference/src/commands/DescribeAcceleratorTypesCommand.ts index bdb54d43e070..53361d46644d 100644 --- a/clients/client-elastic-inference/src/commands/DescribeAcceleratorTypesCommand.ts +++ b/clients/client-elastic-inference/src/commands/DescribeAcceleratorTypesCommand.ts @@ -38,6 +38,11 @@ export interface DescribeAcceleratorTypesCommandOutput extends DescribeAccelerat *

* Describes the accelerator types available in a given region, as well as their characteristics, such as memory and throughput. *

+ *

+ * February 15, 2023: Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. + * After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. + * However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service. + *

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-elastic-inference/src/commands/DescribeAcceleratorsCommand.ts b/clients/client-elastic-inference/src/commands/DescribeAcceleratorsCommand.ts index 8a9aa6ef87d8..851d14f3c5e9 100644 --- a/clients/client-elastic-inference/src/commands/DescribeAcceleratorsCommand.ts +++ b/clients/client-elastic-inference/src/commands/DescribeAcceleratorsCommand.ts @@ -38,6 +38,11 @@ export interface DescribeAcceleratorsCommandOutput extends DescribeAcceleratorsR *

* Describes information over a provided set of accelerators belonging to an account. *

+ *

+ * February 15, 2023: Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. + * After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. + * However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service. + *

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-elastic-inference/src/commands/ListTagsForResourceCommand.ts b/clients/client-elastic-inference/src/commands/ListTagsForResourceCommand.ts index 6cb46dfdde4c..8b0ea44fbcdb 100644 --- a/clients/client-elastic-inference/src/commands/ListTagsForResourceCommand.ts +++ b/clients/client-elastic-inference/src/commands/ListTagsForResourceCommand.ts @@ -38,6 +38,11 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes *

* Returns all tags of an Elastic Inference Accelerator. *

+ *

+ * February 15, 2023: Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. + * After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. + * However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service. + *

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-elastic-inference/src/commands/TagResourceCommand.ts b/clients/client-elastic-inference/src/commands/TagResourceCommand.ts index d4c57393d0b9..0157d64a3595 100644 --- a/clients/client-elastic-inference/src/commands/TagResourceCommand.ts +++ b/clients/client-elastic-inference/src/commands/TagResourceCommand.ts @@ -38,6 +38,11 @@ export interface TagResourceCommandOutput extends TagResourceResult, __MetadataB *

* Adds the specified tags to an Elastic Inference Accelerator. *

+ *

+ * February 15, 2023: Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. + * After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. + * However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service. + *

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-elastic-inference/src/commands/UntagResourceCommand.ts b/clients/client-elastic-inference/src/commands/UntagResourceCommand.ts index 7c433332bae0..e62253e4a93d 100644 --- a/clients/client-elastic-inference/src/commands/UntagResourceCommand.ts +++ b/clients/client-elastic-inference/src/commands/UntagResourceCommand.ts @@ -38,6 +38,11 @@ export interface UntagResourceCommandOutput extends UntagResourceResult, __Metad *

* Removes the specified tags from an Elastic Inference Accelerator. *

+ *

+ * February 15, 2023: Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. + * After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. + * However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service. + *

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-elastic-inference/src/endpoint/ruleset.ts b/clients/client-elastic-inference/src/endpoint/ruleset.ts index 1fca0f7c8052..47bf00509786 100644 --- a/clients/client-elastic-inference/src/endpoint/ruleset.ts +++ b/clients/client-elastic-inference/src/endpoint/ruleset.ts @@ -6,24 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/elastic-inference.json */ -const p="required", -q="fn", -r="argv", -s="ref"; -const a="PartitionResult", +const q="required", +r="fn", +s="argv", +t="ref"; +const a="isSet", b="tree", c="error", d="endpoint", -e={[p]:false,"type":"String"}, -f={[p]:true,"default":false,"type":"Boolean"}, -g={[s]:"Endpoint"}, -h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, -i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, -j={}, -k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, -l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, -m=[g], -n=[h], -o=[i]; -const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://api.elastic-inference-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://api.elastic-inference-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://api.elastic-inference.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://api.elastic-inference.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; +e="PartitionResult", +f={[q]:false,"type":"String"}, +g={[q]:true,"default":false,"type":"Boolean"}, +h={[t]:"Endpoint"}, +i={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]}, +k={}, +l={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]}, +n=[i], +o=[j], +p=[{[t]:"Region"}]; +const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[r]:a,[s]:[h]}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]}]},{type:b,rules:[{conditions:[{[r]:a,[s]:p}],type:b,rules:[{conditions:[{[r]:"aws.partition",[s]:p,assign:e}],type:b,rules:[{conditions:[i,j],type:b,rules:[{conditions:[l,m],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://api.elastic-inference-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[l],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://api.elastic-inference-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[m],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://api.elastic-inference.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{type:b,rules:[{endpoint:{url:"https://api.elastic-inference.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]}]},{error:"Invalid Configuration: Missing Region",type:c}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-elastic-inference/src/models/models_0.ts b/clients/client-elastic-inference/src/models/models_0.ts index 8bc5df1fd7f7..21839ec7fa0a 100644 --- a/clients/client-elastic-inference/src/models/models_0.ts +++ b/clients/client-elastic-inference/src/models/models_0.ts @@ -73,8 +73,18 @@ export interface AcceleratorType { /** * @public + * @enum */ -export type LocationType = "availability-zone" | "availability-zone-id" | "region"; +export const LocationType = { + availability_zone: "availability-zone", + availability_zone_id: "availability-zone-id", + region: "region", +} as const; + +/** + * @public + */ +export type LocationType = (typeof LocationType)[keyof typeof LocationType]; /** * @public diff --git a/codegen/sdk-codegen/aws-models/elastic-inference.json b/codegen/sdk-codegen/aws-models/elastic-inference.json index 3397e0c23156..5bb35f427530 100644 --- a/codegen/sdk-codegen/aws-models/elastic-inference.json +++ b/codegen/sdk-codegen/aws-models/elastic-inference.json @@ -200,7 +200,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Describes the locations in which a given accelerator type or set of types is present in a given region.\n

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

\n Describes the locations in which a given accelerator type or set of types is present in a given region.\n

\n

\n February 15, 2023: Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance.\n After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2.\n However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.\n

", "smithy.api#http": { "method": "POST", "uri": "/describe-accelerator-offerings", @@ -224,6 +224,9 @@ "smithy.api#documentation": "

\n The list of accelerator types to describe.\n

" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.elasticinference#DescribeAcceleratorOfferingsResponse": { @@ -235,6 +238,9 @@ "smithy.api#documentation": "

\n The list of accelerator type offerings for a specific location.\n

" } } + }, + "traits": { + "smithy.api#output": {} } }, "com.amazonaws.elasticinference#DescribeAcceleratorTypes": { @@ -251,7 +257,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Describes the accelerator types available in a given region, as well as their characteristics, such as memory and throughput.\n

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

\n Describes the accelerator types available in a given region, as well as their characteristics, such as memory and throughput.\n

\n

\n February 15, 2023: Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance.\n After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2.\n However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.\n

", "smithy.api#http": { "method": "GET", "uri": "/describe-accelerator-types", @@ -261,7 +267,10 @@ }, "com.amazonaws.elasticinference#DescribeAcceleratorTypesRequest": { "type": "structure", - "members": {} + "members": {}, + "traits": { + "smithy.api#input": {} + } }, "com.amazonaws.elasticinference#DescribeAcceleratorTypesResponse": { "type": "structure", @@ -272,6 +281,9 @@ "smithy.api#documentation": "

\n The available accelerator types.\n

" } } + }, + "traits": { + "smithy.api#output": {} } }, "com.amazonaws.elasticinference#DescribeAccelerators": { @@ -294,7 +306,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Describes information over a provided set of accelerators belonging to an account.\n

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

\n Describes information over a provided set of accelerators belonging to an account.\n

\n

\n February 15, 2023: Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance.\n After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2.\n However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.\n

", "smithy.api#http": { "method": "POST", "uri": "/describe-accelerators", @@ -303,6 +315,7 @@ "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", + "items": "acceleratorSet", "pageSize": "maxResults" } } @@ -335,6 +348,9 @@ "smithy.api#documentation": "

\n A token to specify where to start paginating. This is the NextToken from a previously truncated response.\n

" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.elasticinference#DescribeAcceleratorsResponse": { @@ -352,6 +368,9 @@ "smithy.api#documentation": "

\n A token to specify where to start paginating. This is the NextToken from a previously truncated response.\n

" } } + }, + "traits": { + "smithy.api#output": {} } }, "com.amazonaws.elasticinference#EC2MatterhornCfSoothsayerApiGatewayLambda": { @@ -389,7 +408,7 @@ "name": "elastic-inference" }, "aws.protocols#restJson1": {}, - "smithy.api#documentation": "

\n Elastic Inference public APIs.\n

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

\n Elastic Inference public APIs.\n

\n

\n February 15, 2023: Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance.\n After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2.\n However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.\n

", "smithy.api#title": "Amazon Elastic Inference", "smithy.rules#endpointRuleSet": { "version": "1.0", @@ -425,13 +444,12 @@ { "conditions": [ { - "fn": "aws.partition", + "fn": "isSet", "argv": [ { - "ref": "Region" + "ref": "Endpoint" } - ], - "assign": "PartitionResult" + ] } ], "type": "tree", @@ -439,23 +457,20 @@ { "conditions": [ { - "fn": "isSet", + "fn": "booleanEquals", "argv": [ { - "ref": "Endpoint" - } + "ref": "UseFIPS" + }, + true ] - }, - { - "fn": "parseURL", - "argv": [ - { - "ref": "Endpoint" - } - ], - "assign": "url" } ], + "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], "type": "tree", "rules": [ { @@ -464,67 +479,42 @@ "fn": "booleanEquals", "argv": [ { - "ref": "UseFIPS" + "ref": "UseDualStack" }, true ] } ], - "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", "type": "error" }, { "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", - "type": "error" + "endpoint": { + "url": { + "ref": "Endpoint" }, - { - "conditions": [], - "endpoint": { - "url": { - "ref": "Endpoint" - }, - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] + "properties": {}, + "headers": {} + }, + "type": "endpoint" } ] - }, + } + ] + }, + { + "conditions": [], + "type": "tree", + "rules": [ { "conditions": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - }, - { - "fn": "booleanEquals", + "fn": "isSet", "argv": [ { - "ref": "UseDualStack" - }, - true + "ref": "Region" + } ] } ], @@ -533,90 +523,215 @@ { "conditions": [ { - "fn": "booleanEquals", + "fn": "aws.partition", "argv": [ - true, { - "fn": "getAttr", + "ref": "Region" + } + ], + "assign": "PartitionResult" + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", "argv": [ { - "ref": "PartitionResult" + "ref": "UseDualStack" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] }, - "supportsFIPS" + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://api.elastic-inference-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } ] + }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" } ] }, { - "fn": "booleanEquals", - "argv": [ - true, + "conditions": [ { - "fn": "getAttr", + "fn": "booleanEquals", "argv": [ { - "ref": "PartitionResult" + "ref": "UseFIPS" }, - "supportsDualStack" + true ] } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://api.elastic-inference-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://api.elastic-inference-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, - { - "conditions": [], - "error": "FIPS and DualStack are enabled, but this partition does not support one or both", - "type": "error" - } - ] - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ { - "fn": "booleanEquals", - "argv": [ - true, + "conditions": [ { - "fn": "getAttr", + "fn": "booleanEquals", "argv": [ { - "ref": "PartitionResult" + "ref": "UseDualStack" }, - "supportsFIPS" + true ] } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://api.elastic-inference.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" + } ] - } - ], - "type": "tree", - "rules": [ + }, { "conditions": [], "type": "tree", @@ -624,7 +739,7 @@ { "conditions": [], "endpoint": { - "url": "https://api.elastic-inference-fips.{Region}.{PartitionResult#dnsSuffix}", + "url": "https://api.elastic-inference.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, @@ -633,74 +748,13 @@ ] } ] - }, - { - "conditions": [], - "error": "FIPS is enabled but this partition does not support FIPS", - "type": "error" - } - ] - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://api.elastic-inference.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, - { - "conditions": [], - "error": "DualStack is enabled but this partition does not support DualStack", - "type": "error" } ] }, { "conditions": [], - "endpoint": { - "url": "https://api.elastic-inference.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "error": "Invalid Configuration: Missing Region", + "type": "error" } ] } @@ -709,94 +763,68 @@ "smithy.rules#endpointTests": { "testCases": [ { - "documentation": "For region eu-central-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://api.elastic-inference-fips.eu-central-1.api.aws" - } - }, - "params": { - "Region": "eu-central-1", - "UseDualStack": true, - "UseFIPS": true - } - }, - { - "documentation": "For region eu-central-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://api.elastic-inference-fips.eu-central-1.amazonaws.com" - } - }, - "params": { - "Region": "eu-central-1", - "UseDualStack": false, - "UseFIPS": true - } - }, - { - "documentation": "For region eu-central-1 with FIPS disabled and DualStack enabled", + "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.elastic-inference.eu-central-1.api.aws" + "url": "https://api.elastic-inference.ap-northeast-1.amazonaws.com" } }, "params": { - "Region": "eu-central-1", - "UseDualStack": true, - "UseFIPS": false + "Region": "ap-northeast-1", + "UseFIPS": false, + "UseDualStack": false } }, { - "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", + "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.elastic-inference.eu-central-1.amazonaws.com" + "url": "https://api.elastic-inference.ap-northeast-2.amazonaws.com" } }, "params": { - "Region": "eu-central-1", - "UseDualStack": false, - "UseFIPS": false + "Region": "ap-northeast-2", + "UseFIPS": false, + "UseDualStack": false } }, { - "documentation": "For region us-west-2 with FIPS enabled and DualStack enabled", + "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.elastic-inference-fips.us-west-2.api.aws" + "url": "https://api.elastic-inference.eu-west-1.amazonaws.com" } }, "params": { - "Region": "us-west-2", - "UseDualStack": true, - "UseFIPS": true + "Region": "eu-west-1", + "UseFIPS": false, + "UseDualStack": false } }, { - "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.elastic-inference-fips.us-west-2.amazonaws.com" + "url": "https://api.elastic-inference.us-east-1.amazonaws.com" } }, "params": { - "Region": "us-west-2", - "UseDualStack": false, - "UseFIPS": true + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": false } }, { - "documentation": "For region us-west-2 with FIPS disabled and DualStack enabled", + "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.elastic-inference.us-west-2.api.aws" + "url": "https://api.elastic-inference.us-east-2.amazonaws.com" } }, "params": { - "Region": "us-west-2", - "UseDualStack": true, - "UseFIPS": false + "Region": "us-east-2", + "UseFIPS": false, + "UseDualStack": false } }, { @@ -808,281 +836,273 @@ }, "params": { "Region": "us-west-2", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { - "documentation": "For region eu-west-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://api.elastic-inference-fips.eu-west-1.api.aws" + "url": "https://api.elastic-inference-fips.us-east-1.api.aws" } }, "params": { - "Region": "eu-west-1", - "UseDualStack": true, - "UseFIPS": true + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": true } }, { - "documentation": "For region eu-west-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.elastic-inference-fips.eu-west-1.amazonaws.com" + "url": "https://api.elastic-inference-fips.us-east-1.amazonaws.com" } }, "params": { - "Region": "eu-west-1", - "UseDualStack": false, - "UseFIPS": true + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": false } }, { - "documentation": "For region eu-west-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://api.elastic-inference.eu-west-1.api.aws" + "url": "https://api.elastic-inference.us-east-1.api.aws" } }, "params": { - "Region": "eu-west-1", - "UseDualStack": true, - "UseFIPS": false + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": true } }, { - "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://api.elastic-inference.eu-west-1.amazonaws.com" + "url": "https://api.elastic-inference-fips.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { - "Region": "eu-west-1", - "UseDualStack": false, - "UseFIPS": false + "Region": "cn-north-1", + "UseFIPS": true, + "UseDualStack": true } }, { - "documentation": "For region ap-northeast-2 with FIPS enabled and DualStack enabled", + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.elastic-inference-fips.ap-northeast-2.api.aws" + "url": "https://api.elastic-inference-fips.cn-north-1.amazonaws.com.cn" } }, "params": { - "Region": "ap-northeast-2", - "UseDualStack": true, - "UseFIPS": true + "Region": "cn-north-1", + "UseFIPS": true, + "UseDualStack": false } }, { - "documentation": "For region ap-northeast-2 with FIPS enabled and DualStack disabled", + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://api.elastic-inference-fips.ap-northeast-2.amazonaws.com" + "url": "https://api.elastic-inference.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { - "Region": "ap-northeast-2", - "UseDualStack": false, - "UseFIPS": true + "Region": "cn-north-1", + "UseFIPS": false, + "UseDualStack": true } }, { - "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack enabled", + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.elastic-inference.ap-northeast-2.api.aws" + "url": "https://api.elastic-inference.cn-north-1.amazonaws.com.cn" } }, "params": { - "Region": "ap-northeast-2", - "UseDualStack": true, - "UseFIPS": false + "Region": "cn-north-1", + "UseFIPS": false, + "UseDualStack": false } }, { - "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://api.elastic-inference.ap-northeast-2.amazonaws.com" + "url": "https://api.elastic-inference-fips.us-gov-east-1.api.aws" } }, "params": { - "Region": "ap-northeast-2", - "UseDualStack": false, - "UseFIPS": false + "Region": "us-gov-east-1", + "UseFIPS": true, + "UseDualStack": true } }, { - "documentation": "For region ap-northeast-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.elastic-inference-fips.ap-northeast-1.api.aws" + "url": "https://api.elastic-inference-fips.us-gov-east-1.amazonaws.com" } }, "params": { - "Region": "ap-northeast-1", - "UseDualStack": true, - "UseFIPS": true + "Region": "us-gov-east-1", + "UseFIPS": true, + "UseDualStack": false } }, { - "documentation": "For region ap-northeast-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://api.elastic-inference-fips.ap-northeast-1.amazonaws.com" + "url": "https://api.elastic-inference.us-gov-east-1.api.aws" } }, "params": { - "Region": "ap-northeast-1", - "UseDualStack": false, - "UseFIPS": true + "Region": "us-gov-east-1", + "UseFIPS": false, + "UseDualStack": true } }, { - "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.elastic-inference.ap-northeast-1.api.aws" + "url": "https://api.elastic-inference.us-gov-east-1.amazonaws.com" } }, "params": { - "Region": "ap-northeast-1", - "UseDualStack": true, - "UseFIPS": false + "Region": "us-gov-east-1", + "UseFIPS": false, + "UseDualStack": false } }, { - "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", "expect": { - "endpoint": { - "url": "https://api.elastic-inference.ap-northeast-1.amazonaws.com" - } + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" }, "params": { - "Region": "ap-northeast-1", - "UseDualStack": false, - "UseFIPS": false + "Region": "us-iso-east-1", + "UseFIPS": true, + "UseDualStack": true } }, { - "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.elastic-inference-fips.us-east-1.api.aws" + "url": "https://api.elastic-inference-fips.us-iso-east-1.c2s.ic.gov" } }, "params": { - "Region": "us-east-1", - "UseDualStack": true, - "UseFIPS": true + "Region": "us-iso-east-1", + "UseFIPS": true, + "UseDualStack": false } }, { - "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", "expect": { - "endpoint": { - "url": "https://api.elastic-inference-fips.us-east-1.amazonaws.com" - } + "error": "DualStack is enabled but this partition does not support DualStack" }, "params": { - "Region": "us-east-1", - "UseDualStack": false, - "UseFIPS": true + "Region": "us-iso-east-1", + "UseFIPS": false, + "UseDualStack": true } }, { - "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.elastic-inference.us-east-1.api.aws" + "url": "https://api.elastic-inference.us-iso-east-1.c2s.ic.gov" } }, "params": { - "Region": "us-east-1", - "UseDualStack": true, - "UseFIPS": false + "Region": "us-iso-east-1", + "UseFIPS": false, + "UseDualStack": false } }, { - "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", "expect": { - "endpoint": { - "url": "https://api.elastic-inference.us-east-1.amazonaws.com" - } + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" }, "params": { - "Region": "us-east-1", - "UseDualStack": false, - "UseFIPS": false + "Region": "us-isob-east-1", + "UseFIPS": true, + "UseDualStack": true } }, { - "documentation": "For region us-east-2 with FIPS enabled and DualStack enabled", + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.elastic-inference-fips.us-east-2.api.aws" + "url": "https://api.elastic-inference-fips.us-isob-east-1.sc2s.sgov.gov" } }, "params": { - "Region": "us-east-2", - "UseDualStack": true, - "UseFIPS": true + "Region": "us-isob-east-1", + "UseFIPS": true, + "UseDualStack": false } }, { - "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled", + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", "expect": { - "endpoint": { - "url": "https://api.elastic-inference-fips.us-east-2.amazonaws.com" - } + "error": "DualStack is enabled but this partition does not support DualStack" }, "params": { - "Region": "us-east-2", - "UseDualStack": false, - "UseFIPS": true + "Region": "us-isob-east-1", + "UseFIPS": false, + "UseDualStack": true } }, { - "documentation": "For region us-east-2 with FIPS disabled and DualStack enabled", + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.elastic-inference.us-east-2.api.aws" + "url": "https://api.elastic-inference.us-isob-east-1.sc2s.sgov.gov" } }, "params": { - "Region": "us-east-2", - "UseDualStack": true, - "UseFIPS": false + "Region": "us-isob-east-1", + "UseFIPS": false, + "UseDualStack": false } }, { - "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", + "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", "expect": { "endpoint": { - "url": "https://api.elastic-inference.us-east-2.amazonaws.com" + "url": "https://example.com" } }, "params": { - "Region": "us-east-2", + "Region": "us-east-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Endpoint": "https://example.com" } }, { - "documentation": "For custom endpoint with fips disabled and dualstack disabled", + "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", "expect": { "endpoint": { "url": "https://example.com" } }, "params": { - "Region": "us-east-1", - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Endpoint": "https://example.com" } }, @@ -1093,8 +1113,8 @@ }, "params": { "Region": "us-east-1", - "UseDualStack": false, "UseFIPS": true, + "UseDualStack": false, "Endpoint": "https://example.com" } }, @@ -1105,10 +1125,16 @@ }, "params": { "Region": "us-east-1", - "UseDualStack": true, "UseFIPS": false, + "UseDualStack": true, "Endpoint": "https://example.com" } + }, + { + "documentation": "Missing region", + "expect": { + "error": "Invalid Configuration: Missing Region" + } } ], "version": "1.0" @@ -1288,7 +1314,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns all tags of an Elastic Inference Accelerator.\n

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

\n Returns all tags of an Elastic Inference Accelerator.\n

\n

\n February 15, 2023: Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance.\n After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2.\n However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.\n

", "smithy.api#http": { "method": "GET", "uri": "/tags/{resourceArn}", @@ -1307,6 +1333,9 @@ "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.elasticinference#ListTagsForResourceResult": { @@ -1330,22 +1359,28 @@ } }, "com.amazonaws.elasticinference#LocationType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "region", - "name": "region" - }, - { - "value": "availability-zone", - "name": "availability_zone" - }, - { - "value": "availability-zone-id", - "name": "availability_zone_id" + "type": "enum", + "members": { + "region": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "region" + } + }, + "availability_zone": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "availability-zone" } - ], + }, + "availability_zone_id": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "availability-zone-id" + } + } + }, + "traits": { "smithy.api#length": { "min": 1, "max": 256 @@ -1394,7 +1429,7 @@ "min": 1, "max": 1011 }, - "smithy.api#pattern": "^arn:aws\\S*:elastic-inference:\\S+:\\d{12}:elastic-inference-accelerator/eia-[0-9a-f]+$" + "smithy.api#pattern": "^arn:aws[^\\s:]*:elastic-inference:[^\\s:]+:\\d{12}:elastic-inference-accelerator/eia-[0-9a-f]+$" } }, "com.amazonaws.elasticinference#ResourceARN2": { @@ -1486,7 +1521,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Adds the specified tags to an Elastic Inference Accelerator.\n

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

\n Adds the specified tags to an Elastic Inference Accelerator.\n

\n

\n February 15, 2023: Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance.\n After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2.\n However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.\n

", "smithy.api#http": { "method": "POST", "uri": "/tags/{resourceArn}", @@ -1512,6 +1547,9 @@ "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.elasticinference#TagResourceResult": { @@ -1524,7 +1562,8 @@ "smithy.api#length": { "min": 0, "max": 256 - } + }, + "smithy.api#pattern": ".*" } }, "com.amazonaws.elasticinference#ThroughputInfoList": { @@ -1562,7 +1601,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Removes the specified tags from an Elastic Inference Accelerator.\n

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

\n Removes the specified tags from an Elastic Inference Accelerator.\n

\n

\n February 15, 2023: Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance.\n After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2.\n However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.\n

", "smithy.api#http": { "method": "DELETE", "uri": "/tags/{resourceArn}", @@ -1589,6 +1628,9 @@ "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.elasticinference#UntagResourceResult": { @@ -1614,4 +1656,4 @@ } } } -} \ No newline at end of file +}