AWS SDK Version 3 for .NET
API Reference

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.

Note:

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

Syntax

C#
public virtual TagResourceResponse TagResource(
         TagResourceRequest request
)

Parameters

request
Type: Amazon.SocialMessaging.Model.TagResourceRequest

Container for the necessary parameters to execute the TagResource service method.

Return Value


The response from the TagResource service method, as returned by SocialMessaging.

Exceptions

ExceptionCondition
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.

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also