Module Smaws_Client_CostExplorer.TagResource

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

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.

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

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `LimitExceededException of Types.limit_exceeded_exception | `ResourceNotFoundException of Types.resource_not_found_exception | `TooManyTagsException of Types.too_many_tags_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.tag_resource_request -> (Types.tag_resource_response, [> Smaws_Lib.Protocols.AwsJson.error | `LimitExceededException of Types.limit_exceeded_exception | `ResourceNotFoundException of Types.resource_not_found_exception | `TooManyTagsException of Types.too_many_tags_exception ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.tag_resource_request -> (Types.tag_resource_response Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsJson.error | `LimitExceededException of Types.limit_exceeded_exception | `ResourceNotFoundException of Types.resource_not_found_exception | `TooManyTagsException of Types.too_many_tags_exception ] * Smaws_Lib.Response.metadata) Stdlib.result