From d273f3acd96f9b88b3d41cddff6c47b07cb51bb5 Mon Sep 17 00:00:00 2001 From: AWS SDK for Go v2 automation user Date: Tue, 22 Mar 2022 18:52:09 +0000 Subject: [PATCH] Update API model --- .../sdk-codegen/aws-models/cost-explorer.json | 250 +++++++++++++++++- codegen/sdk-codegen/aws-models/ecs.json | 4 +- .../sdk-codegen/aws-models/lakeformation.json | 16 +- codegen/sdk-codegen/aws-models/location.json | 11 + codegen/sdk-codegen/aws-models/polly.json | 48 ++-- 5 files changed, 290 insertions(+), 39 deletions(-) diff --git a/codegen/sdk-codegen/aws-models/cost-explorer.json b/codegen/sdk-codegen/aws-models/cost-explorer.json index f77fd4044ae..9d0feb5615f 100644 --- a/codegen/sdk-codegen/aws-models/cost-explorer.json +++ b/codegen/sdk-codegen/aws-models/cost-explorer.json @@ -126,9 +126,18 @@ { "target": "com.amazonaws.costexplorer#ListCostCategoryDefinitions" }, + { + "target": "com.amazonaws.costexplorer#ListTagsForResource" + }, { "target": "com.amazonaws.costexplorer#ProvideAnomalyFeedback" }, + { + "target": "com.amazonaws.costexplorer#TagResource" + }, + { + "target": "com.amazonaws.costexplorer#UntagResource" + }, { "target": "com.amazonaws.costexplorer#UpdateAnomalyMonitor" }, @@ -1140,6 +1149,12 @@ "smithy.api#documentation": "

The cost anomaly detection monitor object that you want to create.

", "smithy.api#required": {} } + }, + "ResourceTags": { + "target": "com.amazonaws.costexplorer#ResourceTagList", + "traits": { + "smithy.api#documentation": "

\n An optional list of tags to associate with the specified \n AnomalyMonitor\n . You can use resource tags to control access to your monitor using IAM policies.

\n

Each tag consists of a key and a value, and each key must be unique for the resource. The following restrictions apply to resource tags:

\n " + } } } }, @@ -1184,6 +1199,12 @@ "smithy.api#documentation": "

The cost anomaly subscription object that you want to create.

", "smithy.api#required": {} } + }, + "ResourceTags": { + "target": "com.amazonaws.costexplorer#ResourceTagList", + "traits": { + "smithy.api#documentation": "

\n An optional list of tags to associate with the specified \n AnomalySubscription\n . You can use resource tags to control access to your subscription using IAM policies.

\n

Each tag consists of a key and a value, and each key must be unique for the resource. The following restrictions apply to resource tags:

\n " + } } } }, @@ -1249,6 +1270,12 @@ "traits": { "smithy.api#documentation": "

\n The split charge rules used to allocate your charges between your Cost Category values.\n

" } + }, + "ResourceTags": { + "target": "com.amazonaws.costexplorer#ResourceTagList", + "traits": { + "smithy.api#documentation": "

\n An optional list of tags to associate with the specified \n CostCategory\n . You can use resource tags to control access to your cost category using IAM policies.

\n

Each tag consists of a key and a value, and each key must be unique for the resource. The following restrictions apply to resource tags:

\n " + } } } }, @@ -2506,7 +2533,7 @@ "Filter": { "target": "com.amazonaws.costexplorer#Expression", "traits": { - "smithy.api#documentation": "

Filters Amazon Web Services costs by different dimensions. For example, you can specify SERVICE and LINKED_ACCOUNT \n\t\t\tand get the costs that are associated with that account's usage of that service. You can nest Expression objects \n\t\t\tto define any combination of dimension filters. For more information, see \n\t\t\tExpression.

\n\t

Valid values for MatchOptions for CostCategories and Tags are EQUALS, ABSENT, and CASE_SENSITIVE.

\n\t

The default values are EQUALS and CASE_SENSITIVE. Valid values for MatchOptions for Dimensions are EQUALS and CASE_SENSITIVE.

" + "smithy.api#documentation": "

Filters Amazon Web Services costs by different dimensions. For example, you can specify SERVICE and LINKED_ACCOUNT \n\t\t\tand get the costs that are associated with that account's usage of that service. You can nest Expression objects \n\t\t\tto define any combination of dimension filters. For more information, see \n\t\t\tExpression.

\n\t

Valid values for MatchOptions for Dimensions are EQUALS and CASE_SENSITIVE.

\n\t

Valid values for MatchOptions for CostCategories and Tags are EQUALS, ABSENT, and CASE_SENSITIVE. Default values are EQUALS and CASE_SENSITIVE.

" } }, "Metrics": { @@ -2608,7 +2635,7 @@ "Filter": { "target": "com.amazonaws.costexplorer#Expression", "traits": { - "smithy.api#documentation": "

Filters Amazon Web Services costs by different dimensions. For example, you can specify\n SERVICE and LINKED_ACCOUNT and get the costs that are associated\n with that account's usage of that service. You can nest Expression objects to\n define any combination of dimension filters. For more information, see Expression.

\n

The GetCostAndUsageWithResources operation requires that you either group by or filter by a\n ResourceId. It requires the Expression \n \"SERVICE = Amazon Elastic Compute Cloud - Compute\" in the filter.

\n

Valid values for MatchOptions for CostCategories and Tags are EQUALS, ABSENT, and CASE_SENSITIVE.

\n

The default values are EQUALS and CASE_SENSITIVE. Valid values for MatchOptions for Dimensions are EQUALS and CASE_SENSITIVE.

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

Filters Amazon Web Services costs by different dimensions. For example, you can specify\n SERVICE and LINKED_ACCOUNT and get the costs that are associated\n with that account's usage of that service. You can nest Expression objects to\n define any combination of dimension filters. For more information, see Expression.

\n

The GetCostAndUsageWithResources operation requires that you either group by or filter by a\n ResourceId. It requires the Expression \n \"SERVICE = Amazon Elastic Compute Cloud - Compute\" in the filter.

\n

Valid values for MatchOptions for Dimensions are EQUALS and CASE_SENSITIVE.

\n

Valid values for MatchOptions for CostCategories and Tags are EQUALS, ABSENT, and CASE_SENSITIVE. Default values are EQUALS and CASE_SENSITIVE.

", "smithy.api#required": {} } }, @@ -4163,6 +4190,49 @@ } } }, + "com.amazonaws.costexplorer#ListTagsForResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.costexplorer#ListTagsForResourceRequest" + }, + "output": { + "target": "com.amazonaws.costexplorer#ListTagsForResourceResponse" + }, + "errors": [ + { + "target": "com.amazonaws.costexplorer#LimitExceededException" + }, + { + "target": "com.amazonaws.costexplorer#ResourceNotFoundException" + } + ], + "traits": { + "smithy.api#documentation": "

Returns a list of resource tags associated with the resource specified by the Amazon Resource Name (ARN). \n

" + } + }, + "com.amazonaws.costexplorer#ListTagsForResourceRequest": { + "type": "structure", + "members": { + "ResourceArn": { + "target": "com.amazonaws.costexplorer#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource. For a list of supported resources, see ResourceTag.

", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.costexplorer#ListTagsForResourceResponse": { + "type": "structure", + "members": { + "ResourceTags": { + "target": "com.amazonaws.costexplorer#ResourceTagList", + "traits": { + "smithy.api#documentation": "

A list of tag key value pairs that are associated with the response.\n

" + } + } + } + }, "com.amazonaws.costexplorer#LookbackPeriodInDays": { "type": "string", "traits": { @@ -5185,6 +5255,9 @@ "members": { "Message": { "target": "com.amazonaws.costexplorer#ErrorMessage" + }, + "ResourceName": { + "target": "com.amazonaws.costexplorer#Arn" } }, "traits": { @@ -5193,6 +5266,72 @@ "smithy.api#httpError": 404 } }, + "com.amazonaws.costexplorer#ResourceTag": { + "type": "structure", + "members": { + "Key": { + "target": "com.amazonaws.costexplorer#ResourceTagKey", + "traits": { + "smithy.api#documentation": "

\n The key that is associated with the tag.\n

", + "smithy.api#required": {} + } + }, + "Value": { + "target": "com.amazonaws.costexplorer#ResourceTagValue", + "traits": { + "smithy.api#documentation": "

\n The value that is associated with the tag.\n

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

\n The tag structure that contains a tag key and value. \n

\n \n

Tagging is supported only for the following Cost Explorer resource types: \n AnomalyMonitor\n , \n AnomalySubscription\n , \n CostCategory\n .

\n
" + } + }, + "com.amazonaws.costexplorer#ResourceTagKey": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 128 + }, + "smithy.api#pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" + } + }, + "com.amazonaws.costexplorer#ResourceTagKeyList": { + "type": "list", + "member": { + "target": "com.amazonaws.costexplorer#ResourceTagKey" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 200 + } + } + }, + "com.amazonaws.costexplorer#ResourceTagList": { + "type": "list", + "member": { + "target": "com.amazonaws.costexplorer#ResourceTag" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 200 + } + } + }, + "com.amazonaws.costexplorer#ResourceTagValue": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 256 + }, + "smithy.api#pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" + } + }, "com.amazonaws.costexplorer#ResourceUtilization": { "type": "structure", "members": { @@ -6197,6 +6336,52 @@ "target": "com.amazonaws.costexplorer#Entity" } }, + "com.amazonaws.costexplorer#TagResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.costexplorer#TagResourceRequest" + }, + "output": { + "target": "com.amazonaws.costexplorer#TagResourceResponse" + }, + "errors": [ + { + "target": "com.amazonaws.costexplorer#LimitExceededException" + }, + { + "target": "com.amazonaws.costexplorer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.costexplorer#TooManyTagsException" + } + ], + "traits": { + "smithy.api#documentation": "

An API operation for adding one or more tags (key-value pairs) to a resource.

\n

You can use the TagResource operation with a resource that already has tags. If you specify a new tag key for the resource, this tag is appended to the list of tags associated with the resource. If you specify a tag key that is already associated with the resource, the new tag value you specify replaces the previous value for that tag.

\n

\n Although the maximum number of array members is 200, user-tag maximum is 50. The remaining are reserved for Amazon Web Services use.

" + } + }, + "com.amazonaws.costexplorer#TagResourceRequest": { + "type": "structure", + "members": { + "ResourceArn": { + "target": "com.amazonaws.costexplorer#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource. For a list of supported resources, see ResourceTag.\n

", + "smithy.api#required": {} + } + }, + "ResourceTags": { + "target": "com.amazonaws.costexplorer#ResourceTagList", + "traits": { + "smithy.api#documentation": "

\n A list of tag key-value pairs to be added to the resource.

\n

Each tag consists of a key and a value, and each key must be unique for the resource. The following restrictions apply to resource tags:

\n ", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.costexplorer#TagResourceResponse": { + "type": "structure", + "members": {} + }, "com.amazonaws.costexplorer#TagValues": { "type": "structure", "members": { @@ -6320,6 +6505,22 @@ "smithy.api#documentation": "

Details on termination recommendation.

" } }, + "com.amazonaws.costexplorer#TooManyTagsException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.costexplorer#ErrorMessage" + }, + "ResourceName": { + "target": "com.amazonaws.costexplorer#Arn" + } + }, + "traits": { + "smithy.api#documentation": "

Can occur if you specify a number of tags for a resource greater than the maximum 50 user tags per resource.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, "com.amazonaws.costexplorer#TotalActualHours": { "type": "string" }, @@ -6407,6 +6608,49 @@ "smithy.api#error": "client" } }, + "com.amazonaws.costexplorer#UntagResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.costexplorer#UntagResourceRequest" + }, + "output": { + "target": "com.amazonaws.costexplorer#UntagResourceResponse" + }, + "errors": [ + { + "target": "com.amazonaws.costexplorer#LimitExceededException" + }, + { + "target": "com.amazonaws.costexplorer#ResourceNotFoundException" + } + ], + "traits": { + "smithy.api#documentation": "

\n Removes one or more tags from a resource. Specify only tag key(s) in your request. Do not specify the value. \n

" + } + }, + "com.amazonaws.costexplorer#UntagResourceRequest": { + "type": "structure", + "members": { + "ResourceArn": { + "target": "com.amazonaws.costexplorer#Arn", + "traits": { + "smithy.api#documentation": "

\n The Amazon Resource Name (ARN) of the resource. For a list of supported resources, see ResourceTag.\n

", + "smithy.api#required": {} + } + }, + "ResourceTagKeys": { + "target": "com.amazonaws.costexplorer#ResourceTagKeyList", + "traits": { + "smithy.api#documentation": "

\n A list of tag keys associated with tags that need to be removed from the resource. If you specify a tag key that does not exist, it is ignored. Although the maximum number of array members is 200, user-tag maximum is 50. The remaining are reserved for Amazon Web Services use.\n

", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.costexplorer#UntagResourceResponse": { + "type": "structure", + "members": {} + }, "com.amazonaws.costexplorer#UnusedHours": { "type": "string" }, @@ -6430,7 +6674,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates an existing cost anomaly monitor. The changes made are applied going forward, and\n doesn'tt change anomalies detected in the past.

" + "smithy.api#documentation": "

Updates an existing cost anomaly monitor. The changes made are applied going forward, and\n doesn't change anomalies detected in the past.

" } }, "com.amazonaws.costexplorer#UpdateAnomalyMonitorRequest": { diff --git a/codegen/sdk-codegen/aws-models/ecs.json b/codegen/sdk-codegen/aws-models/ecs.json index 988d58f2d02..4dafab903dd 100644 --- a/codegen/sdk-codegen/aws-models/ecs.json +++ b/codegen/sdk-codegen/aws-models/ecs.json @@ -5175,7 +5175,7 @@ } }, "traits": { - "smithy.api#documentation": "

The load balancer configuration to use with a service or task set.

\n\t\t

For specific notes and restrictions regarding the use of load balancers with services\n\t\t\tand task sets, see the CreateService and CreateTaskSet actions.

\n\t\t

When you add, update, or remove a load blaancer configuration, Amazon ECS starts a new\n\t\t\tdeployment with the updated Elastic Load Balancing configuration. This causes tasks to register to and\n\t\t\tderegister from load balancers.

\n\t\t

We recommend that you verify this on a test environment before you update the Elastic Load Balancing\n\t\t\tconfiguration.

\n\t\t

A service-linked role is required for services that use multiple target groups. For\n\t\t\tmore information, see Service-linked\n\t\t\t\troles in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The load balancer configuration to use with a service or task set.

\n\t\t

For specific notes and restrictions regarding the use of load balancers with services\n\t\t\tand task sets, see the CreateService and CreateTaskSet actions.

\n\t\t

When you add, update, or remove a load balancer configuration, Amazon ECS starts a new deployment\n\t\t\twith the updated Elastic Load Balancing configuration. This causes tasks to register to and deregister\n\t\t\tfrom load balancers.

\n\t\t

We recommend that you verify this on a test environment before you update the Elastic Load Balancing\n\t\t\tconfiguration.

\n\t\t

A service-linked role is required for services that use multiple target groups. For\n\t\t\tmore information, see Service-linked\n\t\t\t\troles in the Amazon Elastic Container Service Developer Guide.

" } }, "com.amazonaws.ecs#LoadBalancers": { @@ -9353,7 +9353,7 @@ "loadBalancers": { "target": "com.amazonaws.ecs#LoadBalancers", "traits": { - "smithy.api#documentation": "

A list of Elastic Load Balancing load balancer objects. It contains the load balancer name, the\n\t\t\tcontainer name, and the container port to access from the load balancer. The container\n\t\t\tname is as it appears in a container definition.

\n\t\t

When you add, update, or remove a load balancer configuration, Amazon ECS starts new tasks with\n\t\t\tthe updated Elastic Load Balancing configuration, and then stops the old tasks when the new tasks are\n\t\t\trunning.

\n\t\t

You can remove existing loadBalancers by passing an empty list.

" + "smithy.api#documentation": "

A list of Elastic Load Balancing load balancer objects. It contains the load balancer name, the\n\t\t\tcontainer name, and the container port to access from the load balancer. The container\n\t\t\tname is as it appears in a container definition.

\n\t\t

When you add, update, or remove a load balancer configuration, Amazon ECS starts new tasks with\n\t\t\tthe updated Elastic Load Balancing configuration, and then stops the old tasks when the new tasks are\n\t\t\trunning.

\n\t\t

For services that use rolling updates, you can add, update, or remove Elastic Load Balancing target groups.\n\t\t\tYou can update from a single target group to multiple target groups and from multiple\n\t\t\ttarget groups to a single target group.

\n\t\t

For services that use blue/green deployments, you can update Elastic Load Balancing target groups by using\n\t\t\t\t\t\n CreateDeployment\n through CodeDeploy. Note that multiple target groups\n\t\t\tare not supported for blue/green deployments. For more information see Register\n\t\t\t\tmultiple target groups with a service in the\n\t\t\t\tAmazon Elastic Container Service Developer Guide.

\n\t\t

For services that use the external deployment controller, you can add, update, or remove\n\t\t\tload balancers by using CreateTaskSet.\n\t\t\tNote that multiple target groups are not supported for external deployments. For more\n\t\t\tinformation see Register\n\t\t\t\tmultiple target groups with a service in the\n\t\t\t\tAmazon Elastic Container Service Developer Guide.

\n\t\t

You can remove existing loadBalancers by passing an empty list.

" } }, "propagateTags": { diff --git a/codegen/sdk-codegen/aws-models/lakeformation.json b/codegen/sdk-codegen/aws-models/lakeformation.json index 4b8d3d67573..f4777a021ee 100644 --- a/codegen/sdk-codegen/aws-models/lakeformation.json +++ b/codegen/sdk-codegen/aws-models/lakeformation.json @@ -3795,20 +3795,8 @@ "name": "CREATE_TAG" }, { - "value": "ALTER_TAG", - "name": "ALTER_TAG" - }, - { - "value": "DELETE_TAG", - "name": "DELETE_TAG" - }, - { - "value": "DESCRIBE_TAG", - "name": "DESCRIBE_TAG" - }, - { - "value": "ASSOCIATE_TAG", - "name": "ASSOCIATE_TAG" + "value": "ASSOCIATE", + "name": "ASSOCIATE" } ] } diff --git a/codegen/sdk-codegen/aws-models/location.json b/codegen/sdk-codegen/aws-models/location.json index c2bce8d9771..88fa871ae45 100644 --- a/codegen/sdk-codegen/aws-models/location.json +++ b/codegen/sdk-codegen/aws-models/location.json @@ -3118,6 +3118,7 @@ "method": "POST" }, "smithy.api#paginated": { + "pageSize": "MaxResults", "inputToken": "NextToken", "outputToken": "NextToken", "items": "DevicePositions" @@ -3161,6 +3162,16 @@ "traits": { "smithy.api#documentation": "

Specify the end time for the position history in ISO 8601\n format: YYYY-MM-DDThh:mm:ss.sssZ. By default, the value will be the time\n that the request is made.

\n

Requirement:

\n " } + }, + "MaxResults": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

An optional limit for the number of device positions returned in a single call.

\n

Default value: 100\n

", + "smithy.api#range": { + "min": 1, + "max": 100 + } + } } } }, diff --git a/codegen/sdk-codegen/aws-models/polly.json b/codegen/sdk-codegen/aws-models/polly.json index b465f7e172a..4112e4878d0 100644 --- a/codegen/sdk-codegen/aws-models/polly.json +++ b/codegen/sdk-codegen/aws-models/polly.json @@ -554,6 +554,10 @@ { "value": "en-ZA", "name": "en_ZA" + }, + { + "value": "ca-ES", + "name": "ca_ES" } ] } @@ -954,6 +958,24 @@ }, "com.amazonaws.polly#Parrot_v1": { "type": "service", + "traits": { + "aws.api#service": { + "sdkId": "Polly", + "arnNamespace": "polly", + "cloudFormationName": "Polly", + "cloudTrailEventSource": "polly.amazonaws.com", + "endpointPrefix": "polly" + }, + "aws.auth#sigv4": { + "name": "polly" + }, + "aws.protocols#restJson1": {}, + "smithy.api#documentation": "

Amazon Polly is a web service that makes it easy to synthesize speech from\n text.

\n

The Amazon Polly service provides API operations for synthesizing\n high-quality speech from plain text and Speech Synthesis Markup Language\n (SSML), along with managing pronunciations lexicons that enable you to get\n the best results for your application domain.

", + "smithy.api#title": "Amazon Polly", + "smithy.api#xmlNamespace": { + "uri": "http://polly.amazonaws.com/doc/v1" + } + }, "version": "2016-06-10", "operations": [ { @@ -983,25 +1005,7 @@ { "target": "com.amazonaws.polly#SynthesizeSpeech" } - ], - "traits": { - "aws.api#service": { - "sdkId": "Polly", - "arnNamespace": "polly", - "cloudFormationName": "Polly", - "cloudTrailEventSource": "polly.amazonaws.com", - "endpointPrefix": "polly" - }, - "aws.auth#sigv4": { - "name": "polly" - }, - "aws.protocols#restJson1": {}, - "smithy.api#documentation": "

Amazon Polly is a web service that makes it easy to synthesize speech from\n text.

\n

The Amazon Polly service provides API operations for synthesizing\n high-quality speech from plain text and Speech Synthesis Markup Language\n (SSML), along with managing pronunciations lexicons that enable you to get\n the best results for your application domain.

", - "smithy.api#title": "Amazon Polly", - "smithy.api#xmlNamespace": { - "uri": "http://polly.amazonaws.com/doc/v1" - } - } + ] }, "com.amazonaws.polly#PutLexicon": { "type": "operation", @@ -1528,7 +1532,7 @@ "ContentType": { "target": "com.amazonaws.polly#ContentType", "traits": { - "smithy.api#documentation": "

Specifies the type audio stream. This should reflect the\n OutputFormat parameter in your request.

\n \n

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

Specifies the type audio stream. This should reflect the\n OutputFormat parameter in your request.

\n \n

", "smithy.api#httpHeader": "Content-Type" } }, @@ -1943,6 +1947,10 @@ { "value": "Ayanda", "name": "Ayanda" + }, + { + "value": "Arlet", + "name": "Arlet" } ] }