From 4e2def0b498eab9f9a9b21a00e5197d5343173a8 Mon Sep 17 00:00:00 2001 From: AWS SDK for Go v2 automation user Date: Fri, 22 Apr 2022 18:07:56 +0000 Subject: [PATCH] Update API model --- .../aws-models/chime-sdk-meetings.json | 161 ++++++++++++++++++ codegen/sdk-codegen/aws-models/ec2.json | 53 ++++-- 2 files changed, 201 insertions(+), 13 deletions(-) diff --git a/codegen/sdk-codegen/aws-models/chime-sdk-meetings.json b/codegen/sdk-codegen/aws-models/chime-sdk-meetings.json index b1a9e9762d2..67ec46a4a95 100644 --- a/codegen/sdk-codegen/aws-models/chime-sdk-meetings.json +++ b/codegen/sdk-codegen/aws-models/chime-sdk-meetings.json @@ -129,11 +129,20 @@ { "target": "com.amazonaws.chimesdkmeetings#NotFoundException" }, + { + "target": "com.amazonaws.chimesdkmeetings#ServiceFailureException" + }, { "target": "com.amazonaws.chimesdkmeetings#ServiceUnavailableException" }, + { + "target": "com.amazonaws.chimesdkmeetings#ThrottlingException" + }, { "target": "com.amazonaws.chimesdkmeetings#UnauthorizedException" + }, + { + "target": "com.amazonaws.chimesdkmeetings#UnprocessableEntityException" } ], "traits": { @@ -277,9 +286,15 @@ { "target": "com.amazonaws.chimesdkmeetings#NotFoundException" }, + { + "target": "com.amazonaws.chimesdkmeetings#ServiceFailureException" + }, { "target": "com.amazonaws.chimesdkmeetings#ServiceUnavailableException" }, + { + "target": "com.amazonaws.chimesdkmeetings#ThrottlingException" + }, { "target": "com.amazonaws.chimesdkmeetings#UnauthorizedException" }, @@ -392,12 +407,21 @@ { "target": "com.amazonaws.chimesdkmeetings#BadRequestException" }, + { + "target": "com.amazonaws.chimesdkmeetings#ForbiddenException" + }, { "target": "com.amazonaws.chimesdkmeetings#LimitExceededException" }, + { + "target": "com.amazonaws.chimesdkmeetings#ServiceFailureException" + }, { "target": "com.amazonaws.chimesdkmeetings#ServiceUnavailableException" }, + { + "target": "com.amazonaws.chimesdkmeetings#ThrottlingException" + }, { "target": "com.amazonaws.chimesdkmeetings#UnauthorizedException" } @@ -485,12 +509,21 @@ { "target": "com.amazonaws.chimesdkmeetings#BadRequestException" }, + { + "target": "com.amazonaws.chimesdkmeetings#ForbiddenException" + }, { "target": "com.amazonaws.chimesdkmeetings#LimitExceededException" }, + { + "target": "com.amazonaws.chimesdkmeetings#ServiceFailureException" + }, { "target": "com.amazonaws.chimesdkmeetings#ServiceUnavailableException" }, + { + "target": "com.amazonaws.chimesdkmeetings#ThrottlingException" + }, { "target": "com.amazonaws.chimesdkmeetings#UnauthorizedException" } @@ -602,12 +635,30 @@ "input": { "target": "com.amazonaws.chimesdkmeetings#DeleteAttendeeRequest" }, + "output": { + "target": "smithy.api#Unit" + }, "errors": [ + { + "target": "com.amazonaws.chimesdkmeetings#BadRequestException" + }, { "target": "com.amazonaws.chimesdkmeetings#ForbiddenException" }, { "target": "com.amazonaws.chimesdkmeetings#NotFoundException" + }, + { + "target": "com.amazonaws.chimesdkmeetings#ServiceFailureException" + }, + { + "target": "com.amazonaws.chimesdkmeetings#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.chimesdkmeetings#ThrottlingException" + }, + { + "target": "com.amazonaws.chimesdkmeetings#UnauthorizedException" } ], "traits": { @@ -645,12 +696,30 @@ "input": { "target": "com.amazonaws.chimesdkmeetings#DeleteMeetingRequest" }, + "output": { + "target": "smithy.api#Unit" + }, "errors": [ { "target": "com.amazonaws.chimesdkmeetings#BadRequestException" }, { "target": "com.amazonaws.chimesdkmeetings#ForbiddenException" + }, + { + "target": "com.amazonaws.chimesdkmeetings#NotFoundException" + }, + { + "target": "com.amazonaws.chimesdkmeetings#ServiceFailureException" + }, + { + "target": "com.amazonaws.chimesdkmeetings#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.chimesdkmeetings#ThrottlingException" + }, + { + "target": "com.amazonaws.chimesdkmeetings#UnauthorizedException" } ], "traits": { @@ -873,6 +942,18 @@ }, { "target": "com.amazonaws.chimesdkmeetings#NotFoundException" + }, + { + "target": "com.amazonaws.chimesdkmeetings#ServiceFailureException" + }, + { + "target": "com.amazonaws.chimesdkmeetings#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.chimesdkmeetings#ThrottlingException" + }, + { + "target": "com.amazonaws.chimesdkmeetings#UnauthorizedException" } ], "traits": { @@ -933,6 +1014,18 @@ }, { "target": "com.amazonaws.chimesdkmeetings#NotFoundException" + }, + { + "target": "com.amazonaws.chimesdkmeetings#ServiceFailureException" + }, + { + "target": "com.amazonaws.chimesdkmeetings#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.chimesdkmeetings#ThrottlingException" + }, + { + "target": "com.amazonaws.chimesdkmeetings#UnauthorizedException" } ], "traits": { @@ -1023,6 +1116,18 @@ }, { "target": "com.amazonaws.chimesdkmeetings#NotFoundException" + }, + { + "target": "com.amazonaws.chimesdkmeetings#ServiceFailureException" + }, + { + "target": "com.amazonaws.chimesdkmeetings#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.chimesdkmeetings#ThrottlingException" + }, + { + "target": "com.amazonaws.chimesdkmeetings#UnauthorizedException" } ], "traits": { @@ -1297,6 +1402,25 @@ "com.amazonaws.chimesdkmeetings#RetryAfterSeconds": { "type": "string" }, + "com.amazonaws.chimesdkmeetings#ServiceFailureException": { + "type": "structure", + "members": { + "Code": { + "target": "com.amazonaws.chimesdkmeetings#String" + }, + "Message": { + "target": "com.amazonaws.chimesdkmeetings#String" + }, + "RequestId": { + "target": "com.amazonaws.chimesdkmeetings#String" + } + }, + "traits": { + "smithy.api#documentation": "

The service encountered an unexpected error.

", + "smithy.api#error": "server", + "smithy.api#httpError": 500 + } + }, "com.amazonaws.chimesdkmeetings#ServiceUnavailableException": { "type": "structure", "members": { @@ -1331,6 +1455,9 @@ "input": { "target": "com.amazonaws.chimesdkmeetings#StartMeetingTranscriptionRequest" }, + "output": { + "target": "smithy.api#Unit" + }, "errors": [ { "target": "com.amazonaws.chimesdkmeetings#BadRequestException" @@ -1344,9 +1471,15 @@ { "target": "com.amazonaws.chimesdkmeetings#NotFoundException" }, + { + "target": "com.amazonaws.chimesdkmeetings#ServiceFailureException" + }, { "target": "com.amazonaws.chimesdkmeetings#ServiceUnavailableException" }, + { + "target": "com.amazonaws.chimesdkmeetings#ThrottlingException" + }, { "target": "com.amazonaws.chimesdkmeetings#UnauthorizedException" }, @@ -1388,6 +1521,9 @@ "input": { "target": "com.amazonaws.chimesdkmeetings#StopMeetingTranscriptionRequest" }, + "output": { + "target": "smithy.api#Unit" + }, "errors": [ { "target": "com.amazonaws.chimesdkmeetings#BadRequestException" @@ -1398,9 +1534,15 @@ { "target": "com.amazonaws.chimesdkmeetings#NotFoundException" }, + { + "target": "com.amazonaws.chimesdkmeetings#ServiceFailureException" + }, { "target": "com.amazonaws.chimesdkmeetings#ServiceUnavailableException" }, + { + "target": "com.amazonaws.chimesdkmeetings#ThrottlingException" + }, { "target": "com.amazonaws.chimesdkmeetings#UnauthorizedException" }, @@ -1439,6 +1581,25 @@ } } }, + "com.amazonaws.chimesdkmeetings#ThrottlingException": { + "type": "structure", + "members": { + "Code": { + "target": "com.amazonaws.chimesdkmeetings#String" + }, + "Message": { + "target": "com.amazonaws.chimesdkmeetings#String" + }, + "RequestId": { + "target": "com.amazonaws.chimesdkmeetings#String" + } + }, + "traits": { + "smithy.api#documentation": "

The number of customer requests exceeds the request rate limit.

", + "smithy.api#error": "client", + "smithy.api#httpError": 429 + } + }, "com.amazonaws.chimesdkmeetings#TranscribeContentIdentificationType": { "type": "string", "traits": { diff --git a/codegen/sdk-codegen/aws-models/ec2.json b/codegen/sdk-codegen/aws-models/ec2.json index 2c469fb7ca1..8721b3fb4f2 100644 --- a/codegen/sdk-codegen/aws-models/ec2.json +++ b/codegen/sdk-codegen/aws-models/ec2.json @@ -23370,7 +23370,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

The filters.

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

The filters.

\n ", "smithy.api#xmlName": "Filter" } }, @@ -24818,6 +24818,27 @@ } ], "minDelay": 15 + }, + "NatGatewayDeleted": { + "acceptors": [ + { + "state": "success", + "matcher": { + "output": { + "path": "NatGateways[].State", + "expected": "deleted", + "comparator": "allStringEquals" + } + } + }, + { + "state": "success", + "matcher": { + "errorType": "NatGatewayNotFound" + } + } + ], + "minDelay": 15 } } } @@ -27639,7 +27660,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

One or more filters.

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

One or more filters.

\n ", "smithy.api#xmlName": "Filter" } }, @@ -41997,7 +42018,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "KeyFingerprint", - "smithy.api#documentation": "

The MD5 public key fingerprint as specified in section 4 of RFC 4716.

", + "smithy.api#documentation": "", "smithy.api#xmlName": "keyFingerprint" } }, @@ -49646,7 +49667,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "KeyFingerprint", - "smithy.api#documentation": "

The SHA-1 digest of the DER encoded private key.

", + "smithy.api#documentation": "", "smithy.api#xmlName": "keyFingerprint" } }, @@ -49714,7 +49735,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "KeyFingerprint", - "smithy.api#documentation": "

If you used CreateKeyPair to create the key pair:

\n \n

If you used ImportKeyPair to provide Amazon Web Services the public key:

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

If you used CreateKeyPair to create the key pair:

\n \n

If you used ImportKeyPair to provide Amazon Web Services the public key:

\n ", "smithy.api#xmlName": "keyFingerprint" } }, @@ -49933,7 +49954,7 @@ "target": "com.amazonaws.ec2#InstanceType", "traits": { "aws.protocols#ec2QueryName": "InstanceType", - "smithy.api#documentation": "

The instance type.

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

The instance type. Only one instance type can be specified.

", "smithy.api#xmlName": "instanceType" } }, @@ -55568,7 +55589,7 @@ "PrivateDnsHostnameTypeOnLaunch": { "target": "com.amazonaws.ec2#HostnameType", "traits": { - "smithy.api#documentation": "

The type of hostnames to assign to instances in the subnet at launch. For IPv4 only subnets, an\n instance DNS name must be based on the instance IPv4 address. For IPv6 only subnets, an instance\n DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS\n names use the instance IPv4 address or the instance ID.

" + "smithy.api#documentation": "

The type of hostname to assign to instances in the subnet at launch. For IPv4-only and dual-stack (IPv4 and IPv6) subnets, an\n instance DNS name can be based on the instance IPv4 address (ip-name) or the instance ID (resource-name). For IPv6 only subnets, an instance\n DNS name must be based on the instance ID (resource-name).

" } }, "EnableResourceNameDnsARecordOnLaunch": { @@ -64098,7 +64119,7 @@ "target": "com.amazonaws.ec2#RequestSpotFleetResponse" }, "traits": { - "smithy.api#documentation": "

Creates a Spot Fleet request.

\n

The Spot Fleet request specifies the total target capacity and the On-Demand target\n capacity. Amazon EC2 calculates the difference between the total capacity and On-Demand\n capacity, and launches the difference as Spot capacity.

\n

You can submit a single request that includes multiple launch specifications that vary\n by instance type, AMI, Availability Zone, or subnet.

\n

By default, the Spot Fleet requests Spot Instances in the Spot Instance pool where the\n price per unit is the lowest. Each launch specification can include its own instance\n weighting that reflects the value of the instance type to your application\n workload.

\n

Alternatively, you can specify that the Spot Fleet distribute the target capacity\n across the Spot pools included in its launch specifications. By ensuring that the Spot\n Instances in your Spot Fleet are in different Spot pools, you can improve the\n availability of your fleet.

\n

You can specify tags for the Spot Fleet request and instances launched by the fleet.\n You cannot tag other resource types in a Spot Fleet request because only the\n spot-fleet-request and instance resource types are\n supported.

\n

For more information, see Spot Fleet requests\n in the Amazon EC2 User Guide for Linux Instances.

" + "smithy.api#documentation": "

Creates a Spot Fleet request.

\n

The Spot Fleet request specifies the total target capacity and the On-Demand target\n capacity. Amazon EC2 calculates the difference between the total capacity and On-Demand\n capacity, and launches the difference as Spot capacity.

\n

You can submit a single request that includes multiple launch specifications that vary\n by instance type, AMI, Availability Zone, or subnet.

\n

By default, the Spot Fleet requests Spot Instances in the Spot Instance pool where the\n price per unit is the lowest. Each launch specification can include its own instance\n weighting that reflects the value of the instance type to your application\n workload.

\n

Alternatively, you can specify that the Spot Fleet distribute the target capacity\n across the Spot pools included in its launch specifications. By ensuring that the Spot\n Instances in your Spot Fleet are in different Spot pools, you can improve the\n availability of your fleet.

\n

You can specify tags for the Spot Fleet request and instances launched by the fleet.\n You cannot tag other resource types in a Spot Fleet request because only the\n spot-fleet-request and instance resource types are\n supported.

\n

For more information, see Spot Fleet requests\n in the Amazon EC2 User Guide for Linux Instances.

\n \n \n

We strongly discourage using the RequestSpotFleet API because it is a legacy\n API with no planned investment. For options for requesting Spot Instances, see\n Which\n is the best Spot request method to use? in the\n Amazon EC2 User Guide for Linux Instances.

\n
" } }, "com.amazonaws.ec2#RequestSpotFleetRequest": { @@ -64151,7 +64172,7 @@ "target": "com.amazonaws.ec2#RequestSpotInstancesResult" }, "traits": { - "smithy.api#documentation": "

Creates a Spot Instance request.

\n

For more information, see Spot Instance requests in\n the Amazon EC2 User Guide for Linux Instances.

" + "smithy.api#documentation": "

Creates a Spot Instance request.

\n

For more information, see Spot Instance requests in\n the Amazon EC2 User Guide for Linux Instances.

\n \n \n

We strongly discourage using the RequestSpotInstances API because it is a legacy\n API with no planned investment. For options for requesting Spot Instances, see\n Which\n is the best Spot request method to use? in the\n Amazon EC2 User Guide for Linux Instances.

\n
" } }, "com.amazonaws.ec2#RequestSpotInstancesRequest": { @@ -64338,7 +64359,7 @@ "target": "com.amazonaws.ec2#InstanceType", "traits": { "aws.protocols#ec2QueryName": "InstanceType", - "smithy.api#documentation": "

The instance type.

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

The instance type. Only one instance type can be specified.

", "smithy.api#xmlName": "instanceType" } }, @@ -67504,7 +67525,7 @@ } }, "UserData": { - "target": "com.amazonaws.ec2#String", + "target": "com.amazonaws.ec2#RunInstancesUserData", "traits": { "smithy.api#documentation": "

The user data script to make available to the instance. For more information, see Run commands\n on your Linux instance at launch and Run commands on your Windows instance at launch. If you are using a command line tool,\n base64-encoding is performed for you, and you can load the text from a file. Otherwise,\n you must provide base64-encoded text. User data is limited to 16 KB.

" } @@ -67671,6 +67692,12 @@ } } }, + "com.amazonaws.ec2#RunInstancesUserData": { + "type": "string", + "traits": { + "smithy.api#sensitive": {} + } + }, "com.amazonaws.ec2#RunScheduledInstances": { "type": "operation", "input": { @@ -71039,7 +71066,7 @@ "target": "com.amazonaws.ec2#SpotInstanceState", "traits": { "aws.protocols#ec2QueryName": "State", - "smithy.api#documentation": "

The state of the Spot Instance request. Spot status information helps track your Spot\n Instance requests. For more information, see Spot status in the\n Amazon EC2 User Guide for Linux Instances.

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

The state of the Spot Instance request. Spot request status information helps track your Spot\n Instance requests. For more information, see Spot request status in the\n Amazon EC2 User Guide for Linux Instances.

", "smithy.api#xmlName": "state" } }, @@ -71175,7 +71202,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "Code", - "smithy.api#documentation": "

The status code. For a list of status codes, see Spot status codes in the Amazon EC2 User Guide for Linux Instances.

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

The status code. For a list of status codes, see Spot request status codes in the Amazon EC2 User Guide for Linux Instances.

", "smithy.api#xmlName": "code" } },