From b3e58f70ff0fa0e322994fa502ee51dbf79d7382 Mon Sep 17 00:00:00 2001 From: AWS SDK for Go v2 automation user Date: Wed, 11 May 2022 18:04:23 +0000 Subject: [PATCH] Update API model --- codegen/sdk-codegen/aws-models/ec2.json | 225 ++++++++++++++++-- .../aws-models/secrets-manager.json | 8 +- 2 files changed, 210 insertions(+), 23 deletions(-) diff --git a/codegen/sdk-codegen/aws-models/ec2.json b/codegen/sdk-codegen/aws-models/ec2.json index c288bcd654e..a3906537105 100644 --- a/codegen/sdk-codegen/aws-models/ec2.json +++ b/codegen/sdk-codegen/aws-models/ec2.json @@ -13623,13 +13623,6 @@ "com.amazonaws.ec2#CreateSubnetCidrReservationRequest": { "type": "structure", "members": { - "TagSpecifications": { - "target": "com.amazonaws.ec2#TagSpecificationList", - "traits": { - "smithy.api#documentation": "

The tags to assign to the subnet CIDR reservation.

", - "smithy.api#xmlName": "TagSpecification" - } - }, "SubnetId": { "target": "com.amazonaws.ec2#SubnetId", "traits": { @@ -13662,6 +13655,13 @@ "traits": { "smithy.api#documentation": "

Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation. \n Otherwise, it is UnauthorizedOperation.

" } + }, + "TagSpecifications": { + "target": "com.amazonaws.ec2#TagSpecificationList", + "traits": { + "smithy.api#documentation": "

The tags to assign to the subnet CIDR reservation.

", + "smithy.api#xmlName": "TagSpecification" + } } } }, @@ -15091,6 +15091,18 @@ "smithy.api#xmlName": "SecurityGroupId" } }, + "IpAddressType": { + "target": "com.amazonaws.ec2#IpAddressType", + "traits": { + "smithy.api#documentation": "

The IP address type for the endpoint.

" + } + }, + "DnsOptions": { + "target": "com.amazonaws.ec2#DnsOptionsSpecification", + "traits": { + "smithy.api#documentation": "

The DNS options for the endpoint.

" + } + }, "ClientToken": { "target": "com.amazonaws.ec2#String", "traits": { @@ -15186,6 +15198,13 @@ "smithy.api#xmlName": "GatewayLoadBalancerArn" } }, + "SupportedIpAddressTypes": { + "target": "com.amazonaws.ec2#ValueStringList", + "traits": { + "smithy.api#documentation": "

The supported IP address types. The possible values are ipv4 and ipv6.

", + "smithy.api#xmlName": "SupportedIpAddressType" + } + }, "ClientToken": { "target": "com.amazonaws.ec2#String", "traits": { @@ -29814,7 +29833,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

One or more filters.

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

One or more filters.

\n\t\t ", "smithy.api#xmlName": "Filter" } }, @@ -29890,7 +29909,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

One or more filters.

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

One or more filters.

\n\t\t ", "smithy.api#xmlName": "Filter" } }, @@ -30036,7 +30055,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" } }, @@ -30126,7 +30145,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" } }, @@ -32558,6 +32577,59 @@ ] } }, + "com.amazonaws.ec2#DnsOptions": { + "type": "structure", + "members": { + "DnsRecordIpType": { + "target": "com.amazonaws.ec2#DnsRecordIpType", + "traits": { + "aws.protocols#ec2QueryName": "DnsRecordIpType", + "smithy.api#documentation": "

The DNS records created for the endpoint.

", + "smithy.api#xmlName": "dnsRecordIpType" + } + } + }, + "traits": { + "smithy.api#documentation": "

Describes the DNS options for an endpoint.

" + } + }, + "com.amazonaws.ec2#DnsOptionsSpecification": { + "type": "structure", + "members": { + "DnsRecordIpType": { + "target": "com.amazonaws.ec2#DnsRecordIpType", + "traits": { + "smithy.api#documentation": "

The DNS records created for the endpoint.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Describes the DNS options for an endpoint.

" + } + }, + "com.amazonaws.ec2#DnsRecordIpType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "ipv4", + "name": "ipv4" + }, + { + "value": "dualstack", + "name": "dualstack" + }, + { + "value": "ipv6", + "name": "ipv6" + }, + { + "value": "service-defined", + "name": "service_defined" + } + ] + } + }, "com.amazonaws.ec2#DnsServersOptionsModifyStructure": { "type": "structure", "members": { @@ -48075,6 +48147,25 @@ } } }, + "com.amazonaws.ec2#IpAddressType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "ipv4", + "name": "ipv4" + }, + { + "value": "dualstack", + "name": "dualstack" + }, + { + "value": "ipv6", + "name": "ipv6" + } + ] + } + }, "com.amazonaws.ec2#IpPermission": { "type": "structure", "members": { @@ -56632,6 +56723,18 @@ "smithy.api#xmlName": "RemoveSecurityGroupId" } }, + "IpAddressType": { + "target": "com.amazonaws.ec2#IpAddressType", + "traits": { + "smithy.api#documentation": "

The IP address type for the endpoint.

" + } + }, + "DnsOptions": { + "target": "com.amazonaws.ec2#DnsOptionsSpecification", + "traits": { + "smithy.api#documentation": "

The DNS options for the endpoint.

" + } + }, "PrivateDnsEnabled": { "target": "com.amazonaws.ec2#Boolean", "traits": { @@ -56729,6 +56832,20 @@ "smithy.api#documentation": "

The Amazon Resource Names (ARNs) of Gateway Load Balancers to remove from your service\n configuration.

", "smithy.api#xmlName": "RemoveGatewayLoadBalancerArn" } + }, + "AddSupportedIpAddressTypes": { + "target": "com.amazonaws.ec2#ValueStringList", + "traits": { + "smithy.api#documentation": "

The IP address types to add to your service configuration.

", + "smithy.api#xmlName": "AddSupportedIpAddressType" + } + }, + "RemoveSupportedIpAddressTypes": { + "target": "com.amazonaws.ec2#ValueStringList", + "traits": { + "smithy.api#documentation": "

The IP address types to remove from your service configuration.

", + "smithy.api#xmlName": "RemoveSupportedIpAddressType" + } } } }, @@ -69565,6 +69682,14 @@ "smithy.api#xmlName": "gatewayLoadBalancerArnSet" } }, + "SupportedIpAddressTypes": { + "target": "com.amazonaws.ec2#SupportedIpAddressTypes", + "traits": { + "aws.protocols#ec2QueryName": "SupportedIpAddressTypeSet", + "smithy.api#documentation": "

The supported IP address types.

", + "smithy.api#xmlName": "supportedIpAddressTypeSet" + } + }, "BaseEndpointDnsNames": { "target": "com.amazonaws.ec2#ValueStringList", "traits": { @@ -69619,6 +69744,21 @@ } } }, + "com.amazonaws.ec2#ServiceConnectivityType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "ipv4", + "name": "ipv4" + }, + { + "value": "ipv6", + "name": "ipv6" + } + ] + } + }, "com.amazonaws.ec2#ServiceDetail": { "type": "structure", "members": { @@ -69733,6 +69873,14 @@ "smithy.api#documentation": "

The verification state of the VPC endpoint service.

\n

Consumers of the endpoint service cannot use the private name when the state is not verified.

", "smithy.api#xmlName": "privateDnsNameVerificationState" } + }, + "SupportedIpAddressTypes": { + "target": "com.amazonaws.ec2#SupportedIpAddressTypes", + "traits": { + "aws.protocols#ec2QueryName": "SupportedIpAddressTypeSet", + "smithy.api#documentation": "

The supported IP address types.

", + "smithy.api#xmlName": "supportedIpAddressTypeSet" + } } }, "traits": { @@ -72997,6 +73145,21 @@ ] } }, + "com.amazonaws.ec2#SupportedIpAddressTypes": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#ServiceConnectivityType", + "traits": { + "smithy.api#xmlName": "item" + } + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 2 + } + } + }, "com.amazonaws.ec2#Tag": { "type": "structure", "members": { @@ -78920,7 +79083,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "VpcEndpointId", - "smithy.api#documentation": "

The ID of the VPC endpoint.

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

The ID of the endpoint.

", "smithy.api#xmlName": "vpcEndpointId" } }, @@ -78952,7 +79115,7 @@ "target": "com.amazonaws.ec2#State", "traits": { "aws.protocols#ec2QueryName": "State", - "smithy.api#documentation": "

The state of the VPC endpoint.

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

The state of the endpoint.

", "smithy.api#xmlName": "state" } }, @@ -78976,7 +79139,7 @@ "target": "com.amazonaws.ec2#ValueStringList", "traits": { "aws.protocols#ec2QueryName": "SubnetIdSet", - "smithy.api#documentation": "

(Interface endpoint) One or more subnets in which the endpoint is located.

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

(Interface endpoint) The subnets for the endpoint.

", "smithy.api#xmlName": "subnetIdSet" } }, @@ -78988,6 +79151,22 @@ "smithy.api#xmlName": "groupSet" } }, + "IpAddressType": { + "target": "com.amazonaws.ec2#IpAddressType", + "traits": { + "aws.protocols#ec2QueryName": "IpAddressType", + "smithy.api#documentation": "

The IP address type for the endpoint.

", + "smithy.api#xmlName": "ipAddressType" + } + }, + "DnsOptions": { + "target": "com.amazonaws.ec2#DnsOptions", + "traits": { + "aws.protocols#ec2QueryName": "DnsOptions", + "smithy.api#documentation": "

The DNS options for the endpoint.

", + "smithy.api#xmlName": "dnsOptions" + } + }, "PrivateDnsEnabled": { "target": "com.amazonaws.ec2#Boolean", "traits": { @@ -79000,7 +79179,7 @@ "target": "com.amazonaws.ec2#Boolean", "traits": { "aws.protocols#ec2QueryName": "RequesterManaged", - "smithy.api#documentation": "

Indicates whether the VPC endpoint is being managed by its service.

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

Indicates whether the endpoint is being managed by its service.

", "smithy.api#xmlName": "requesterManaged" } }, @@ -79024,7 +79203,7 @@ "target": "com.amazonaws.ec2#MillisecondDateTime", "traits": { "aws.protocols#ec2QueryName": "CreationTimestamp", - "smithy.api#documentation": "

The date and time that the VPC endpoint was created.

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

The date and time that the endpoint was created.

", "smithy.api#xmlName": "creationTimestamp" } }, @@ -79032,7 +79211,7 @@ "target": "com.amazonaws.ec2#TagList", "traits": { "aws.protocols#ec2QueryName": "TagSet", - "smithy.api#documentation": "

Any tags assigned to the VPC endpoint.

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

Any tags assigned to the endpoint.

", "smithy.api#xmlName": "tagSet" } }, @@ -79040,7 +79219,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The ID of the Amazon Web Services account that owns the VPC endpoint.

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

The ID of the Amazon Web Services account that owns the endpoint.

", "smithy.api#xmlName": "ownerId" } }, @@ -79048,7 +79227,7 @@ "target": "com.amazonaws.ec2#LastError", "traits": { "aws.protocols#ec2QueryName": "LastError", - "smithy.api#documentation": "

The last error that occurred for VPC endpoint.

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

The last error that occurred for endpoint.

", "smithy.api#xmlName": "lastError" } } @@ -79123,6 +79302,14 @@ "smithy.api#documentation": "

The Amazon Resource Names (ARNs) of the Gateway Load Balancers for the service.

", "smithy.api#xmlName": "gatewayLoadBalancerArnSet" } + }, + "IpAddressType": { + "target": "com.amazonaws.ec2#IpAddressType", + "traits": { + "aws.protocols#ec2QueryName": "IpAddressType", + "smithy.api#documentation": "

The IP address type for the endpoint.

", + "smithy.api#xmlName": "ipAddressType" + } } }, "traits": { diff --git a/codegen/sdk-codegen/aws-models/secrets-manager.json b/codegen/sdk-codegen/aws-models/secrets-manager.json index 3fc31db8b23..1fd9745d41d 100644 --- a/codegen/sdk-codegen/aws-models/secrets-manager.json +++ b/codegen/sdk-codegen/aws-models/secrets-manager.json @@ -75,7 +75,7 @@ } ], "traits": { - "smithy.api#documentation": "

Turns off automatic rotation, and if a rotation is currently in\n progress, cancels the rotation.

\n

To turn on automatic rotation again, call RotateSecret.

\n \n

If you cancel a rotation in progress, it can leave the VersionStage\n labels in an unexpected state. Depending on the step of the rotation in progress, you might\n need to remove the staging label AWSPENDING from the partially created version, specified\n by the VersionId response value. We recommend you also evaluate the partially rotated\n new version to see if it should be deleted. You can delete a version by removing all staging labels\n from it.

\n
\n

\n Required permissions: \n secretsmanager:CancelRotateSecret. \n For more information, see \n IAM policy actions for Secrets Manager and Authentication \n and access control in Secrets Manager.

" + "smithy.api#documentation": "

Turns off automatic rotation, and if a rotation is currently in\n progress, cancels the rotation.

\n

If you cancel a rotation in progress, it can leave the VersionStage\n labels in an unexpected state. You might\n need to remove the staging label AWSPENDING from the partially created version. \n You also need to determine whether to roll back to the previous version of the secret \n by moving the staging label AWSCURRENT to the version that has AWSPENDING.\n To determine \n which version has a specific staging label, call ListSecretVersionIds. Then use \n UpdateSecretVersionStage to change staging labels. \n For more information, see How rotation works.

\n

To turn on automatic rotation again, call RotateSecret.

\n

\n Required permissions: \n secretsmanager:CancelRotateSecret. \n For more information, see \n IAM policy actions for Secrets Manager and Authentication \n and access control in Secrets Manager.

" } }, "com.amazonaws.secretsmanager#CancelRotateSecretRequest": { @@ -349,7 +349,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes a secret and all of its versions. You can specify a recovery\n window during which you can restore the secret. The minimum recovery window is 7 days. \n The default recovery window is 30 days. Secrets Manager attaches a DeletionDate stamp to\n the secret that specifies the end of the recovery window. At the end of the recovery window,\n Secrets Manager deletes the secret permanently.

\n

For information about deleting a secret in the console, see https://docs.aws.amazon.com/secretsmanager/latest/userguide/manage_delete-secret.html.

\n

Secrets Manager performs the permanent secret deletion at the end of the waiting period as a\n background task with low priority. There is no guarantee of a specific time after the\n recovery window for the permanent delete to occur.

\n

At any time before recovery window ends, you can use RestoreSecret to\n remove the DeletionDate and cancel the deletion of the secret.

\n

In a secret scheduled for deletion, you cannot access the encrypted secret value.\n To access that information, first cancel the deletion with RestoreSecret and then retrieve the information.

\n

\n Required permissions: \n secretsmanager:DeleteSecret. \n For more information, see \n IAM policy actions for Secrets Manager and Authentication \n and access control in Secrets Manager.

" + "smithy.api#documentation": "

Deletes a secret and all of its versions. You can specify a recovery\n window during which you can restore the secret. The minimum recovery window is 7 days. \n The default recovery window is 30 days. Secrets Manager attaches a DeletionDate stamp to\n the secret that specifies the end of the recovery window. At the end of the recovery window,\n Secrets Manager deletes the secret permanently.

\n

You can't delete a primary secret that is replicated to other Regions. You must first delete the \n replicas using RemoveRegionsFromReplication, and then delete the primary secret. \n When you delete a replica, it is deleted immediately.

\n

You can't directly delete a version of a secret. Instead, you remove all staging labels \n from the version using UpdateSecretVersionStage. This marks the version as deprecated, \n and then Secrets Manager can automatically delete the version in the background.

\n

To determine whether an application still uses a secret, you can create an Amazon CloudWatch alarm \n to alert you to any attempts to access a secret during the recovery window. For more information, \n see \n Monitor secrets scheduled for deletion.

\n

Secrets Manager performs the permanent secret deletion at the end of the waiting period as a\n background task with low priority. There is no guarantee of a specific time after the\n recovery window for the permanent delete to occur.

\n

At any time before recovery window ends, you can use RestoreSecret to\n remove the DeletionDate and cancel the deletion of the secret.

\n

When a secret is scheduled for deletion, you cannot retrieve the secret value.\n You must first cancel the deletion with RestoreSecret and then you can retrieve the secret.

\n

\n Required permissions: \n secretsmanager:DeleteSecret. \n For more information, see \n IAM policy actions for Secrets Manager and Authentication \n and access control in Secrets Manager.

" } }, "com.amazonaws.secretsmanager#DeleteSecretRequest": { @@ -1055,7 +1055,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists the versions for a secret.

\n

To list the secrets in the account, use ListSecrets.

\n

To get the secret value from SecretString or SecretBinary, \n call GetSecretValue.

\n

\n Required permissions: \n secretsmanager:ListSecretVersionIds. \n For more information, see \n IAM policy actions for Secrets Manager and Authentication \n and access control in Secrets Manager.

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

Lists the versions of a secret. Secrets Manager uses staging labels to indicate the different versions \n of a secret. For more information, see \n Secrets Manager concepts: Versions.

\n

To list the secrets in the account, use ListSecrets.

\n

\n Required permissions: \n secretsmanager:ListSecretVersionIds. \n For more information, see \n IAM policy actions for Secrets Manager and Authentication \n and access control in Secrets Manager.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -1144,7 +1144,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists the secrets that are stored by Secrets Manager in the Amazon Web Services account, not including secrets \n that are marked for deletion. To see secrets marked for deletion, use the Secrets Manager console.

\n

To list the versions of a secret, use ListSecretVersionIds.

\n

To get the secret value from SecretString or SecretBinary, \n call GetSecretValue.

\n

For information about finding secrets in the console, see Enhanced search capabilities \n for secrets in Secrets Manager.

\n

\n Required permissions: \n secretsmanager:ListSecrets. \n For more information, see \n IAM policy actions for Secrets Manager and Authentication \n and access control in Secrets Manager.

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

Lists the secrets that are stored by Secrets Manager in the Amazon Web Services account, not including secrets \n that are marked for deletion. To see secrets marked for deletion, use the Secrets Manager console.

\n

To list the versions of a secret, use ListSecretVersionIds.

\n

To get the secret value from SecretString or SecretBinary, \n call GetSecretValue.

\n

For information about finding secrets in the console, see Find secrets in Secrets Manager.

\n

\n Required permissions: \n secretsmanager:ListSecrets. \n For more information, see \n IAM policy actions for Secrets Manager and Authentication \n and access control in Secrets Manager.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken",