AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Adds or overwrites only the specified tags for the specified resource. When you specify an existing tag key, the value is overwritten with the new value.
For .NET Core this operation is only available in asynchronous form. Please refer to TagResourceAsync.
Namespace: Amazon.SocialMessaging
Assembly: AWSSDK.SocialMessaging.dll
Version: 3.x.y.z
public virtual TagResourceResponse TagResource( TagResourceRequest request )
Container for the necessary parameters to execute the TagResource service method.
Exception | Condition |
---|---|
AccessDeniedException | You do not have sufficient access to perform this action. |
InternalServiceException | The request processing has failed because of an unknown error, exception, or failure. |
InvalidParametersException | One or more parameters provided to the action are not valid. |
ThrottledRequestException | The request was denied due to request throttling. |
ValidationException | The request contains an invalid parameter value. |
.NET Framework:
Supported in: 4.5 and newer, 3.5