From 1a86d22d7e0439bf990e33ca2d667f64cf51c7f7 Mon Sep 17 00:00:00 2001 From: aws-sdk-go-automation <43143561+aws-sdk-go-automation@users.noreply.github.com> Date: Tue, 27 Feb 2024 14:19:37 -0500 Subject: [PATCH] Release v1.50.27 (2024-02-27) (#5183) Release v1.50.27 (2024-02-27) === ### Service Client Updates * `service/amplifyuibuilder`: Updates service API and documentation --- CHANGELOG.md | 6 + aws/version.go | 2 +- .../amplifyuibuilder/2021-08-11/api-2.json | 141 ++++- .../amplifyuibuilder/2021-08-11/docs-2.json | 55 +- .../2021-08-11/endpoint-rule-set-1.json | 40 +- .../amplifyuibuilderiface/interface.go | 12 + service/amplifyuibuilder/api.go | 527 ++++++++++++++++++ 7 files changed, 738 insertions(+), 45 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 21938943b58..9648e3d78f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +Release v1.50.27 (2024-02-27) +=== + +### Service Client Updates +* `service/amplifyuibuilder`: Updates service API and documentation + Release v1.50.26 (2024-02-26) === diff --git a/aws/version.go b/aws/version.go index ed0729d446b..f7ab62a809d 100644 --- a/aws/version.go +++ b/aws/version.go @@ -5,4 +5,4 @@ package aws const SDKName = "aws-sdk-go" // SDKVersion is the version of this SDK -const SDKVersion = "1.50.26" +const SDKVersion = "1.50.27" diff --git a/models/apis/amplifyuibuilder/2021-08-11/api-2.json b/models/apis/amplifyuibuilder/2021-08-11/api-2.json index 99cacc4272f..e890602a2be 100644 --- a/models/apis/amplifyuibuilder/2021-08-11/api-2.json +++ b/models/apis/amplifyuibuilder/2021-08-11/api-2.json @@ -281,6 +281,23 @@ {"shape":"InvalidParameterException"} ] }, + "ListTagsForResource":{ + "name":"ListTagsForResource", + "http":{ + "method":"GET", + "requestUri":"/tags/{resourceArn}", + "responseCode":200 + }, + "input":{"shape":"ListTagsForResourceRequest"}, + "output":{"shape":"ListTagsForResourceResponse"}, + "errors":[ + {"shape":"UnauthorizedException"}, + {"shape":"InternalServerException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ] + }, "ListThemes":{ "name":"ListThemes", "http":{ @@ -306,7 +323,8 @@ "errors":[ {"shape":"UnauthorizedException"}, {"shape":"InvalidParameterException"} - ] + ], + "idempotent":true }, "RefreshToken":{ "name":"RefreshToken", @@ -336,6 +354,42 @@ {"shape":"ThrottlingException"} ] }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/tags/{resourceArn}", + "responseCode":200 + }, + "input":{"shape":"TagResourceRequest"}, + "output":{"shape":"TagResourceResponse"}, + "errors":[ + {"shape":"UnauthorizedException"}, + {"shape":"InternalServerException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ], + "idempotent":true + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"DELETE", + "requestUri":"/tags/{resourceArn}", + "responseCode":200 + }, + "input":{"shape":"UntagResourceRequest"}, + "output":{"shape":"UntagResourceResponse"}, + "errors":[ + {"shape":"UnauthorizedException"}, + {"shape":"InternalServerException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ], + "idempotent":true + }, "UpdateComponent":{ "name":"UpdateComponent", "http":{ @@ -1791,11 +1845,6 @@ "nextToken":{"shape":"String"} } }, - "ListComponentsLimit":{ - "type":"integer", - "max":100, - "min":1 - }, "ListComponentsRequest":{ "type":"structure", "required":[ @@ -1819,7 +1868,7 @@ "locationName":"nextToken" }, "maxResults":{ - "shape":"ListComponentsLimit", + "shape":"ListEntityLimit", "location":"querystring", "locationName":"maxResults" } @@ -1833,8 +1882,9 @@ "nextToken":{"shape":"String"} } }, - "ListFormsLimit":{ + "ListEntityLimit":{ "type":"integer", + "box":true, "max":100, "min":1 }, @@ -1861,7 +1911,7 @@ "locationName":"nextToken" }, "maxResults":{ - "shape":"ListFormsLimit", + "shape":"ListEntityLimit", "location":"querystring", "locationName":"maxResults" } @@ -1875,10 +1925,23 @@ "nextToken":{"shape":"String"} } }, - "ListThemesLimit":{ - "type":"integer", - "max":100, - "min":1 + "ListTagsForResourceRequest":{ + "type":"structure", + "required":["resourceArn"], + "members":{ + "resourceArn":{ + "shape":"String", + "location":"uri", + "locationName":"resourceArn" + } + } + }, + "ListTagsForResourceResponse":{ + "type":"structure", + "required":["tags"], + "members":{ + "tags":{"shape":"Tags"} + } }, "ListThemesRequest":{ "type":"structure", @@ -1903,7 +1966,7 @@ "locationName":"nextToken" }, "maxResults":{ - "shape":"ListThemesLimit", + "shape":"ListEntityLimit", "location":"querystring", "locationName":"maxResults" } @@ -2194,6 +2257,32 @@ "min":1, "pattern":"(?!aws:)[a-zA-Z+-=._:/]+" }, + "TagKeyList":{ + "type":"list", + "member":{"shape":"TagKey"}, + "max":200, + "min":0 + }, + "TagResourceRequest":{ + "type":"structure", + "required":[ + "resourceArn", + "tags" + ], + "members":{ + "resourceArn":{ + "shape":"String", + "location":"uri", + "locationName":"resourceArn" + }, + "tags":{"shape":"Tags"} + } + }, + "TagResourceResponse":{ + "type":"structure", + "members":{ + } + }, "TagValue":{ "type":"string", "max":256, @@ -2298,6 +2387,30 @@ }, "exception":true }, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "resourceArn", + "tagKeys" + ], + "members":{ + "resourceArn":{ + "shape":"String", + "location":"uri", + "locationName":"resourceArn" + }, + "tagKeys":{ + "shape":"TagKeyList", + "location":"querystring", + "locationName":"tagKeys" + } + } + }, + "UntagResourceResponse":{ + "type":"structure", + "members":{ + } + }, "UpdateComponentData":{ "type":"structure", "members":{ diff --git a/models/apis/amplifyuibuilder/2021-08-11/docs-2.json b/models/apis/amplifyuibuilder/2021-08-11/docs-2.json index b0105a38f8a..0bef1751a72 100644 --- a/models/apis/amplifyuibuilder/2021-08-11/docs-2.json +++ b/models/apis/amplifyuibuilder/2021-08-11/docs-2.json @@ -20,10 +20,13 @@ "ListCodegenJobs": "

Retrieves a list of code generation jobs for a specified Amplify app and backend environment.

", "ListComponents": "

Retrieves a list of components for a specified Amplify app and backend environment.

", "ListForms": "

Retrieves a list of forms for a specified Amplify app and backend environment.

", + "ListTagsForResource": "

Returns a list of tags for a specified Amazon Resource Name (ARN).

", "ListThemes": "

Retrieves a list of themes for a specified Amplify app and backend environment.

", "PutMetadataFlag": "

Stores the metadata information about a feature on a form.

", "RefreshToken": "

This is for internal use.

Amplify uses this action to refresh a previously issued access token that might have expired.

", "StartCodegenJob": "

Starts a code generation job for a specified Amplify app and backend environment.

", + "TagResource": "

Tags the resource with a tag key and value.

", + "UntagResource": "

Untags a resource with a specified Amazon Resource Name (ARN).

", "UpdateComponent": "

Updates an existing component.

", "UpdateForm": "

Updates an existing form.

", "UpdateTheme": "

Updates an existing theme.

" @@ -877,12 +880,6 @@ "refs": { } }, - "ListComponentsLimit": { - "base": null, - "refs": { - "ListComponentsRequest$maxResults": "

The maximum number of components to retrieve.

" - } - }, "ListComponentsRequest": { "base": null, "refs": { @@ -893,10 +890,12 @@ "refs": { } }, - "ListFormsLimit": { + "ListEntityLimit": { "base": null, "refs": { - "ListFormsRequest$maxResults": "

The maximum number of forms to retrieve.

" + "ListComponentsRequest$maxResults": "

The maximum number of components to retrieve.

", + "ListFormsRequest$maxResults": "

The maximum number of forms to retrieve.

", + "ListThemesRequest$maxResults": "

The maximum number of theme results to return in the response.

" } }, "ListFormsRequest": { @@ -909,10 +908,14 @@ "refs": { } }, - "ListThemesLimit": { + "ListTagsForResourceRequest": { + "base": null, + "refs": { + } + }, + "ListTagsForResourceResponse": { "base": null, "refs": { - "ListThemesRequest$maxResults": "

The maximum number of theme results to return in the response.

" } }, "ListThemesRequest": { @@ -1259,6 +1262,7 @@ "ListFormsRequest$environmentName": "

The name of the backend environment that is a part of the Amplify app.

", "ListFormsRequest$nextToken": "

The token to request the next page of results.

", "ListFormsResponse$nextToken": "

The pagination token that's included if more results are available.

", + "ListTagsForResourceRequest$resourceArn": "

The Amazon Resource Name (ARN) to use to list tags.

", "ListThemesRequest$appId": "

The unique ID for the Amplify app.

", "ListThemesRequest$environmentName": "

The name of the backend environment that is a part of the Amplify app.

", "ListThemesRequest$nextToken": "

The token to request the next page of results.

", @@ -1286,6 +1290,7 @@ "StartCodegenJobRequest$environmentName": "

The name of the backend environment that is a part of the Amplify app.

", "StartCodegenJobRequest$clientToken": "

The idempotency token used to ensure that the code generation job request completes only once.

", "StrValues$member": null, + "TagResourceRequest$resourceArn": "

The Amazon Resource Name (ARN) to use to tag a resource.

", "Theme$appId": "

The unique ID for the Amplify app associated with the theme.

", "Theme$environmentName": "

The name of the backend environment that is a part of the Amplify app.

", "ThemeSummary$appId": "

The unique ID for the app associated with the theme summary.

", @@ -1294,6 +1299,7 @@ "ThemeValues$key": "

The name of the property.

", "ThrottlingException$message": null, "UnauthorizedException$message": null, + "UntagResourceRequest$resourceArn": "

The Amazon Resource Name (ARN) to use to untag a resource.

", "UpdateComponentData$sourceId": "

The unique ID of the component in its original source system, such as Figma.

", "UpdateComponentData$schemaVersion": "

The schema version of the component when it was imported.

", "UpdateComponentRequest$appId": "

The unique ID for the Amplify app.

", @@ -1324,9 +1330,26 @@ "TagKey": { "base": null, "refs": { + "TagKeyList$member": null, "Tags$key": null } }, + "TagKeyList": { + "base": null, + "refs": { + "UntagResourceRequest$tagKeys": "

The tag keys to use to untag a resource.

" + } + }, + "TagResourceRequest": { + "base": null, + "refs": { + } + }, + "TagResourceResponse": { + "base": null, + "refs": { + } + }, "TagValue": { "base": null, "refs": { @@ -1342,7 +1365,9 @@ "CreateFormData$tags": "

One or more key-value pairs to use when tagging the form data.

", "CreateThemeData$tags": "

One or more key-value pairs to use when tagging the theme data.

", "Form$tags": "

One or more key-value pairs to use when tagging the form.

", + "ListTagsForResourceResponse$tags": "

A list of tag key value pairs for a specified Amazon Resource Name (ARN).

", "StartCodegenJobData$tags": "

One or more key-value pairs to use when tagging the code generation job data.

", + "TagResourceRequest$tags": "

A list of tag key value pairs for a specified Amazon Resource Name (ARN).

", "Theme$tags": "

One or more key-value pairs to use when tagging the theme.

" } }, @@ -1423,6 +1448,16 @@ "refs": { } }, + "UntagResourceRequest": { + "base": null, + "refs": { + } + }, + "UntagResourceResponse": { + "base": null, + "refs": { + } + }, "UpdateComponentData": { "base": "

Updates and saves all of the information about a component, based on component ID.

", "refs": { diff --git a/models/apis/amplifyuibuilder/2021-08-11/endpoint-rule-set-1.json b/models/apis/amplifyuibuilder/2021-08-11/endpoint-rule-set-1.json index 24b1f786c62..311de363a48 100644 --- a/models/apis/amplifyuibuilder/2021-08-11/endpoint-rule-set-1.json +++ b/models/apis/amplifyuibuilder/2021-08-11/endpoint-rule-set-1.json @@ -40,7 +40,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -83,7 +82,8 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -96,7 +96,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -110,7 +109,6 @@ "assign": "PartitionResult" } ], - "type": "tree", "rules": [ { "conditions": [ @@ -133,7 +131,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -168,7 +165,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -179,14 +175,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "FIPS and DualStack are enabled, but this partition does not support one or both", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -200,14 +198,12 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ - true, { "fn": "getAttr", "argv": [ @@ -216,11 +212,11 @@ }, "supportsFIPS" ] - } + }, + true ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -231,14 +227,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -252,7 +250,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -272,7 +269,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -283,14 +279,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [], @@ -301,9 +299,11 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [], diff --git a/service/amplifyuibuilder/amplifyuibuilderiface/interface.go b/service/amplifyuibuilder/amplifyuibuilderiface/interface.go index 2bbc744d367..30497499258 100644 --- a/service/amplifyuibuilder/amplifyuibuilderiface/interface.go +++ b/service/amplifyuibuilder/amplifyuibuilderiface/interface.go @@ -150,6 +150,10 @@ type AmplifyUIBuilderAPI interface { ListFormsPages(*amplifyuibuilder.ListFormsInput, func(*amplifyuibuilder.ListFormsOutput, bool) bool) error ListFormsPagesWithContext(aws.Context, *amplifyuibuilder.ListFormsInput, func(*amplifyuibuilder.ListFormsOutput, bool) bool, ...request.Option) error + ListTagsForResource(*amplifyuibuilder.ListTagsForResourceInput) (*amplifyuibuilder.ListTagsForResourceOutput, error) + ListTagsForResourceWithContext(aws.Context, *amplifyuibuilder.ListTagsForResourceInput, ...request.Option) (*amplifyuibuilder.ListTagsForResourceOutput, error) + ListTagsForResourceRequest(*amplifyuibuilder.ListTagsForResourceInput) (*request.Request, *amplifyuibuilder.ListTagsForResourceOutput) + ListThemes(*amplifyuibuilder.ListThemesInput) (*amplifyuibuilder.ListThemesOutput, error) ListThemesWithContext(aws.Context, *amplifyuibuilder.ListThemesInput, ...request.Option) (*amplifyuibuilder.ListThemesOutput, error) ListThemesRequest(*amplifyuibuilder.ListThemesInput) (*request.Request, *amplifyuibuilder.ListThemesOutput) @@ -169,6 +173,14 @@ type AmplifyUIBuilderAPI interface { StartCodegenJobWithContext(aws.Context, *amplifyuibuilder.StartCodegenJobInput, ...request.Option) (*amplifyuibuilder.StartCodegenJobOutput, error) StartCodegenJobRequest(*amplifyuibuilder.StartCodegenJobInput) (*request.Request, *amplifyuibuilder.StartCodegenJobOutput) + TagResource(*amplifyuibuilder.TagResourceInput) (*amplifyuibuilder.TagResourceOutput, error) + TagResourceWithContext(aws.Context, *amplifyuibuilder.TagResourceInput, ...request.Option) (*amplifyuibuilder.TagResourceOutput, error) + TagResourceRequest(*amplifyuibuilder.TagResourceInput) (*request.Request, *amplifyuibuilder.TagResourceOutput) + + UntagResource(*amplifyuibuilder.UntagResourceInput) (*amplifyuibuilder.UntagResourceOutput, error) + UntagResourceWithContext(aws.Context, *amplifyuibuilder.UntagResourceInput, ...request.Option) (*amplifyuibuilder.UntagResourceOutput, error) + UntagResourceRequest(*amplifyuibuilder.UntagResourceInput) (*request.Request, *amplifyuibuilder.UntagResourceOutput) + UpdateComponent(*amplifyuibuilder.UpdateComponentInput) (*amplifyuibuilder.UpdateComponentOutput, error) UpdateComponentWithContext(aws.Context, *amplifyuibuilder.UpdateComponentInput, ...request.Option) (*amplifyuibuilder.UpdateComponentOutput, error) UpdateComponentRequest(*amplifyuibuilder.UpdateComponentInput) (*request.Request, *amplifyuibuilder.UpdateComponentOutput) diff --git a/service/amplifyuibuilder/api.go b/service/amplifyuibuilder/api.go index 90c58f2d2e3..d0c80d7f7c6 100644 --- a/service/amplifyuibuilder/api.go +++ b/service/amplifyuibuilder/api.go @@ -1887,6 +1887,97 @@ func (c *AmplifyUIBuilder) ListFormsPagesWithContext(ctx aws.Context, input *Lis return p.Err() } +const opListTagsForResource = "ListTagsForResource" + +// ListTagsForResourceRequest generates a "aws/request.Request" representing the +// client's request for the ListTagsForResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListTagsForResource for more information on using the ListTagsForResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ListTagsForResourceRequest method. +// req, resp := client.ListTagsForResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListTagsForResource +func (c *AmplifyUIBuilder) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { + op := &request.Operation{ + Name: opListTagsForResource, + HTTPMethod: "GET", + HTTPPath: "/tags/{resourceArn}", + } + + if input == nil { + input = &ListTagsForResourceInput{} + } + + output = &ListTagsForResourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListTagsForResource API operation for AWS Amplify UI Builder. +// +// Returns a list of tags for a specified Amazon Resource Name (ARN). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Amplify UI Builder's +// API operation ListTagsForResource for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedException +// You don't have permission to perform this operation. +// +// - InternalServerException +// An internal error has occurred. Please retry your request. +// +// - InvalidParameterException +// An invalid or out-of-range value was supplied for the input parameter. +// +// - ThrottlingException +// The request was denied due to request throttling. +// +// - ResourceNotFoundException +// The requested resource does not exist, or access was denied. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListTagsForResource +func (c *AmplifyUIBuilder) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + return out, req.Send() +} + +// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of +// the ability to pass a context and additional request options. +// +// See ListTagsForResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AmplifyUIBuilder) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opListThemes = "ListThemes" // ListThemesRequest generates a "aws/request.Request" representing the @@ -2275,6 +2366,190 @@ func (c *AmplifyUIBuilder) StartCodegenJobWithContext(ctx aws.Context, input *St return out, req.Send() } +const opTagResource = "TagResource" + +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See TagResource for more information on using the TagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the TagResourceRequest method. +// req, resp := client.TagResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/TagResource +func (c *AmplifyUIBuilder) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { + op := &request.Operation{ + Name: opTagResource, + HTTPMethod: "POST", + HTTPPath: "/tags/{resourceArn}", + } + + if input == nil { + input = &TagResourceInput{} + } + + output = &TagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// TagResource API operation for AWS Amplify UI Builder. +// +// Tags the resource with a tag key and value. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Amplify UI Builder's +// API operation TagResource for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedException +// You don't have permission to perform this operation. +// +// - InternalServerException +// An internal error has occurred. Please retry your request. +// +// - InvalidParameterException +// An invalid or out-of-range value was supplied for the input parameter. +// +// - ThrottlingException +// The request was denied due to request throttling. +// +// - ResourceNotFoundException +// The requested resource does not exist, or access was denied. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/TagResource +func (c *AmplifyUIBuilder) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + return out, req.Send() +} + +// TagResourceWithContext is the same as TagResource with the addition of +// the ability to pass a context and additional request options. +// +// See TagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AmplifyUIBuilder) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUntagResource = "UntagResource" + +// UntagResourceRequest generates a "aws/request.Request" representing the +// client's request for the UntagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UntagResource for more information on using the UntagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UntagResourceRequest method. +// req, resp := client.UntagResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UntagResource +func (c *AmplifyUIBuilder) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { + op := &request.Operation{ + Name: opUntagResource, + HTTPMethod: "DELETE", + HTTPPath: "/tags/{resourceArn}", + } + + if input == nil { + input = &UntagResourceInput{} + } + + output = &UntagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UntagResource API operation for AWS Amplify UI Builder. +// +// Untags a resource with a specified Amazon Resource Name (ARN). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Amplify UI Builder's +// API operation UntagResource for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedException +// You don't have permission to perform this operation. +// +// - InternalServerException +// An internal error has occurred. Please retry your request. +// +// - InvalidParameterException +// An invalid or out-of-range value was supplied for the input parameter. +// +// - ThrottlingException +// The request was denied due to request throttling. +// +// - ResourceNotFoundException +// The requested resource does not exist, or access was denied. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UntagResource +func (c *AmplifyUIBuilder) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + return out, req.Send() +} + +// UntagResourceWithContext is the same as UntagResource with the addition of +// the ability to pass a context and additional request options. +// +// See UntagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AmplifyUIBuilder) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opUpdateComponent = "UpdateComponent" // UpdateComponentRequest generates a "aws/request.Request" representing the @@ -9122,6 +9397,88 @@ func (s *ListFormsOutput) SetNextToken(v string) *ListFormsOutput { return s } +type ListTagsForResourceInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The Amazon Resource Name (ARN) to use to list tags. + // + // ResourceArn is a required field + ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTagsForResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTagsForResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListTagsForResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { + s.ResourceArn = &v + return s +} + +type ListTagsForResourceOutput struct { + _ struct{} `type:"structure"` + + // A list of tag key value pairs for a specified Amazon Resource Name (ARN). + // + // Tags is a required field + Tags map[string]*string `locationName:"tags" type:"map" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTagsForResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTagsForResourceOutput) GoString() string { + return s.String() +} + +// SetTags sets the Tags field's value. +func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput { + s.Tags = v + return s +} + type ListThemesInput struct { _ struct{} `type:"structure" nopayload:"true"` @@ -10460,6 +10817,91 @@ func (s *StartCodegenJobOutput) SetEntity(v *CodegenJob) *StartCodegenJobOutput return s } +type TagResourceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) to use to tag a resource. + // + // ResourceArn is a required field + ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` + + // A list of tag key value pairs for a specified Amazon Resource Name (ARN). + // + // Tags is a required field + Tags map[string]*string `locationName:"tags" type:"map" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TagResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TagResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { + s.ResourceArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput { + s.Tags = v + return s +} + +type TagResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TagResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TagResourceOutput) GoString() string { + return s.String() +} + // A theme is a collection of style settings that apply globally to the components // associated with an Amplify application. type Theme struct { @@ -10854,6 +11296,91 @@ func (s *UnauthorizedException) RequestID() string { return s.RespMetadata.RequestID } +type UntagResourceInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The Amazon Resource Name (ARN) to use to untag a resource. + // + // ResourceArn is a required field + ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` + + // The tag keys to use to untag a resource. + // + // TagKeys is a required field + TagKeys []*string `location:"querystring" locationName:"tagKeys" type:"list" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UntagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + if s.TagKeys == nil { + invalidParams.Add(request.NewErrParamRequired("TagKeys")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { + s.ResourceArn = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { + s.TagKeys = v + return s +} + +type UntagResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceOutput) GoString() string { + return s.String() +} + // Updates and saves all of the information about a component, based on component // ID. type UpdateComponentData struct {