From 013587c1e5b9abefb7c062bb8e50bd665b23f8e1 Mon Sep 17 00:00:00 2001
From: aws-sdk-cpp-automation Returns a list of tags for a specified Amazon Resource Name
+ * (ARN).See Also:
AWS
+ * API Reference
Retrieves a list of themes for a specified Amplify app and backend * environment.
Untags a resource with a specified Amazon Resource Name (ARN).
Updates an existing component.
The Amazon Resource Name (ARN) to use to list tags.
+ */ + inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } + + /** + *The Amazon Resource Name (ARN) to use to list tags.
+ */ + inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } + + /** + *The Amazon Resource Name (ARN) to use to list tags.
+ */ + inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } + + /** + *The Amazon Resource Name (ARN) to use to list tags.
+ */ + inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } + + /** + *The Amazon Resource Name (ARN) to use to list tags.
+ */ + inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } + + /** + *The Amazon Resource Name (ARN) to use to list tags.
+ */ + inline ListTagsForResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} + + /** + *The Amazon Resource Name (ARN) to use to list tags.
+ */ + inline ListTagsForResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} + + /** + *The Amazon Resource Name (ARN) to use to list tags.
+ */ + inline ListTagsForResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} + + private: + + Aws::String m_resourceArn; + bool m_resourceArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace AmplifyUIBuilder +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-amplifyuibuilder/include/aws/amplifyuibuilder/model/ListTagsForResourceResult.h b/generated/src/aws-cpp-sdk-amplifyuibuilder/include/aws/amplifyuibuilder/model/ListTagsForResourceResult.h new file mode 100644 index 00000000000..8c4427e83c4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-amplifyuibuilder/include/aws/amplifyuibuilder/model/ListTagsForResourceResult.h @@ -0,0 +1,127 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeA list of tag key value pairs for a specified Amazon Resource Name (ARN).
+ */ + inline const Aws::MapA list of tag key value pairs for a specified Amazon Resource Name (ARN).
+ */ + inline void SetTags(const Aws::MapA list of tag key value pairs for a specified Amazon Resource Name (ARN).
+ */ + inline void SetTags(Aws::MapA list of tag key value pairs for a specified Amazon Resource Name (ARN).
+ */ + inline ListTagsForResourceResult& WithTags(const Aws::MapA list of tag key value pairs for a specified Amazon Resource Name (ARN).
+ */ + inline ListTagsForResourceResult& WithTags(Aws::MapA list of tag key value pairs for a specified Amazon Resource Name (ARN).
+ */ + inline ListTagsForResourceResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } + + /** + *A list of tag key value pairs for a specified Amazon Resource Name (ARN).
+ */ + inline ListTagsForResourceResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } + + /** + *A list of tag key value pairs for a specified Amazon Resource Name (ARN).
+ */ + inline ListTagsForResourceResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + + /** + *A list of tag key value pairs for a specified Amazon Resource Name (ARN).
+ */ + inline ListTagsForResourceResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } + + /** + *A list of tag key value pairs for a specified Amazon Resource Name (ARN).
+ */ + inline ListTagsForResourceResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + + /** + *A list of tag key value pairs for a specified Amazon Resource Name (ARN).
+ */ + inline ListTagsForResourceResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } + + /** + *A list of tag key value pairs for a specified Amazon Resource Name (ARN).
+ */ + inline ListTagsForResourceResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline ListTagsForResourceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline ListTagsForResourceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline ListTagsForResourceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::MapThe Amazon Resource Name (ARN) to use to tag a resource.
+ */ + inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } + + /** + *The Amazon Resource Name (ARN) to use to tag a resource.
+ */ + inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } + + /** + *The Amazon Resource Name (ARN) to use to tag a resource.
+ */ + inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } + + /** + *The Amazon Resource Name (ARN) to use to tag a resource.
+ */ + inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } + + /** + *The Amazon Resource Name (ARN) to use to tag a resource.
+ */ + inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } + + /** + *The Amazon Resource Name (ARN) to use to tag a resource.
+ */ + inline TagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} + + /** + *The Amazon Resource Name (ARN) to use to tag a resource.
+ */ + inline TagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} + + /** + *The Amazon Resource Name (ARN) to use to tag a resource.
+ */ + inline TagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} + + + /** + *A list of tag key value pairs for a specified Amazon Resource Name (ARN).
+ */ + inline const Aws::MapA list of tag key value pairs for a specified Amazon Resource Name (ARN).
+ */ + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + + /** + *A list of tag key value pairs for a specified Amazon Resource Name (ARN).
+ */ + inline void SetTags(const Aws::MapA list of tag key value pairs for a specified Amazon Resource Name (ARN).
+ */ + inline void SetTags(Aws::MapA list of tag key value pairs for a specified Amazon Resource Name (ARN).
+ */ + inline TagResourceRequest& WithTags(const Aws::MapA list of tag key value pairs for a specified Amazon Resource Name (ARN).
+ */ + inline TagResourceRequest& WithTags(Aws::MapA list of tag key value pairs for a specified Amazon Resource Name (ARN).
+ */ + inline TagResourceRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + + /** + *A list of tag key value pairs for a specified Amazon Resource Name (ARN).
+ */ + inline TagResourceRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + + /** + *A list of tag key value pairs for a specified Amazon Resource Name (ARN).
+ */ + inline TagResourceRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + + /** + *A list of tag key value pairs for a specified Amazon Resource Name (ARN).
+ */ + inline TagResourceRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } + + /** + *A list of tag key value pairs for a specified Amazon Resource Name (ARN).
+ */ + inline TagResourceRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + + /** + *A list of tag key value pairs for a specified Amazon Resource Name (ARN).
+ */ + inline TagResourceRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + + /** + *A list of tag key value pairs for a specified Amazon Resource Name (ARN).
+ */ + inline TagResourceRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + + private: + + Aws::String m_resourceArn; + bool m_resourceArnHasBeenSet = false; + + Aws::MapThe Amazon Resource Name (ARN) to use to untag a resource.
+ */ + inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } + + /** + *The Amazon Resource Name (ARN) to use to untag a resource.
+ */ + inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } + + /** + *The Amazon Resource Name (ARN) to use to untag a resource.
+ */ + inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } + + /** + *The Amazon Resource Name (ARN) to use to untag a resource.
+ */ + inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } + + /** + *The Amazon Resource Name (ARN) to use to untag a resource.
+ */ + inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } + + /** + *The Amazon Resource Name (ARN) to use to untag a resource.
+ */ + inline UntagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} + + /** + *The Amazon Resource Name (ARN) to use to untag a resource.
+ */ + inline UntagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} + + /** + *The Amazon Resource Name (ARN) to use to untag a resource.
+ */ + inline UntagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} + + + /** + *The tag keys to use to untag a resource.
+ */ + inline const Aws::VectorThe tag keys to use to untag a resource.
+ */ + inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; } + + /** + *The tag keys to use to untag a resource.
+ */ + inline void SetTagKeys(const Aws::VectorThe tag keys to use to untag a resource.
+ */ + inline void SetTagKeys(Aws::VectorThe tag keys to use to untag a resource.
+ */ + inline UntagResourceRequest& WithTagKeys(const Aws::VectorThe tag keys to use to untag a resource.
+ */ + inline UntagResourceRequest& WithTagKeys(Aws::VectorThe tag keys to use to untag a resource.
+ */ + inline UntagResourceRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; } + + /** + *The tag keys to use to untag a resource.
+ */ + inline UntagResourceRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; } + + /** + *The tag keys to use to untag a resource.
+ */ + inline UntagResourceRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; } + + private: + + Aws::String m_resourceArn; + bool m_resourceArnHasBeenSet = false; + + Aws::VectorRetrieves a list of forms for a specified Amplify app and backend environment.
" }, + "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"} + ], + "documentation":"Returns a list of tags for a specified Amazon Resource Name (ARN).
" + }, "ListThemes":{ "name":"ListThemes", "http":{ @@ -326,7 +344,8 @@ {"shape":"UnauthorizedException"}, {"shape":"InvalidParameterException"} ], - "documentation":"Stores the metadata information about a feature on a form.
" + "documentation":"Stores the metadata information about a feature on a form.
", + "idempotent":true }, "RefreshToken":{ "name":"RefreshToken", @@ -358,6 +377,44 @@ ], "documentation":"Starts a code generation job for a specified Amplify app and backend environment.
" }, + "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"} + ], + "documentation":"Tags the resource with a tag key and value.
", + "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"} + ], + "documentation":"Untags a resource with a specified Amazon Resource Name (ARN).
", + "idempotent":true + }, "UpdateComponent":{ "name":"UpdateComponent", "http":{ @@ -2710,11 +2767,6 @@ } } }, - "ListComponentsLimit":{ - "type":"integer", - "max":100, - "min":1 - }, "ListComponentsRequest":{ "type":"structure", "required":[ @@ -2741,7 +2793,7 @@ "locationName":"nextToken" }, "maxResults":{ - "shape":"ListComponentsLimit", + "shape":"ListEntityLimit", "documentation":"The maximum number of components to retrieve.
", "location":"querystring", "locationName":"maxResults" @@ -2762,8 +2814,9 @@ } } }, - "ListFormsLimit":{ + "ListEntityLimit":{ "type":"integer", + "box":true, "max":100, "min":1 }, @@ -2793,7 +2846,7 @@ "locationName":"nextToken" }, "maxResults":{ - "shape":"ListFormsLimit", + "shape":"ListEntityLimit", "documentation":"The maximum number of forms to retrieve.
", "location":"querystring", "locationName":"maxResults" @@ -2814,10 +2867,27 @@ } } }, - "ListThemesLimit":{ - "type":"integer", - "max":100, - "min":1 + "ListTagsForResourceRequest":{ + "type":"structure", + "required":["resourceArn"], + "members":{ + "resourceArn":{ + "shape":"String", + "documentation":"The Amazon Resource Name (ARN) to use to list tags.
", + "location":"uri", + "locationName":"resourceArn" + } + } + }, + "ListTagsForResourceResponse":{ + "type":"structure", + "required":["tags"], + "members":{ + "tags":{ + "shape":"Tags", + "documentation":"A list of tag key value pairs for a specified Amazon Resource Name (ARN).
" + } + } }, "ListThemesRequest":{ "type":"structure", @@ -2845,7 +2915,7 @@ "locationName":"nextToken" }, "maxResults":{ - "shape":"ListThemesLimit", + "shape":"ListEntityLimit", "documentation":"The maximum number of theme results to return in the response.
", "location":"querystring", "locationName":"maxResults" @@ -3277,6 +3347,36 @@ "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", + "documentation":"The Amazon Resource Name (ARN) to use to tag a resource.
", + "location":"uri", + "locationName":"resourceArn" + }, + "tags":{ + "shape":"Tags", + "documentation":"A list of tag key value pairs for a specified Amazon Resource Name (ARN).
" + } + } + }, + "TagResourceResponse":{ + "type":"structure", + "members":{ + } + }, "TagValue":{ "type":"string", "max":256, @@ -3438,6 +3538,32 @@ }, "exception":true }, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "resourceArn", + "tagKeys" + ], + "members":{ + "resourceArn":{ + "shape":"String", + "documentation":"The Amazon Resource Name (ARN) to use to untag a resource.
", + "location":"uri", + "locationName":"resourceArn" + }, + "tagKeys":{ + "shape":"TagKeyList", + "documentation":"The tag keys to use to untag a resource.
", + "location":"querystring", + "locationName":"tagKeys" + } + } + }, + "UntagResourceResponse":{ + "type":"structure", + "members":{ + } + }, "UpdateComponentData":{ "type":"structure", "members":{ diff --git a/tools/code-generation/endpoints/amplifyuibuilder-2021-08-11.endpoint-rule-set.json b/tools/code-generation/endpoints/amplifyuibuilder-2021-08-11.endpoint-rule-set.json index 24b1f786c62..311de363a48 100644 --- a/tools/code-generation/endpoints/amplifyuibuilder-2021-08-11.endpoint-rule-set.json +++ b/tools/code-generation/endpoints/amplifyuibuilder-2021-08-11.endpoint-rule-set.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": [],