Smaws_Client_ResourceGroupsTaggingAPI.TagResourcesApplies one or more tags to the specified resources. Note the following:
UpdateStack operation. This operation may initiate additional resource property updates in addition to the desired tag updates. To avoid unexpected resource updates, Amazon Web Services recommends that you only apply or update tags to your CloudFormation stack sets using Amazon Web Services CloudFormation.Do not store personally identifiable information (PII) or other confidential or sensitive information in tags. We use tags to provide you with billing and administration services. Tags are not intended to be used for private or sensitive data.
Minimum permissions
In addition to the tag:TagResources permission required by this operation, you must also have the tagging permission defined by the service that created the resource. For example, to tag an Amazon EC2 instance using the TagResources operation, you must have both of the following permissions:
tag:TagResourcesec2:CreateTagsIn addition, some services might have specific requirements for tagging some types of resources. For example, to tag an Amazon S3 bucket, you must also have the s3:GetBucketTagging permission. If the expected minimum permissions don't work, check the documentation for that service's tagging APIs for more information.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `InternalServiceException of Types.internal_service_exception
| `InvalidParameterException of Types.invalid_parameter_exception
| `ThrottledException of Types.throttled_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.tag_resources_input ->
(Types.tag_resources_output,
[> Smaws_Lib.Protocols.AwsJson.error
| `InternalServiceException of Types.internal_service_exception
| `InvalidParameterException of Types.invalid_parameter_exception
| `ThrottledException of Types.throttled_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.tag_resources_input ->
(Types.tag_resources_output Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `InternalServiceException of Types.internal_service_exception
| `InvalidParameterException of Types.invalid_parameter_exception
| `ThrottledException of Types.throttled_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result