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 Application Migration Service resource or resources. When you specify an existing tag key, the value is overwritten with the new value. Each resource can have a maximum of 50 tags. Each tag consists of a key and optional value.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to TagResourceAsync.

Namespace: Amazon.Mgn
Assembly: AWSSDK.Mgn.dll
Version: 3.x.y.z

Syntax

C#
public abstract TagResourceResponse TagResource(
         TagResourceRequest request
)

Parameters

request
Type: Amazon.Mgn.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 Mgn.

Exceptions

ExceptionCondition
AccessDeniedException Operating denied due to a file permission or access check error.
InternalServerException The server encountered an unexpected condition that prevented it from fulfilling the request.
ResourceNotFoundException Resource not found exception.
ThrottlingException Reached throttling quota exception.
ValidationException Validate exception.

Version Information

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

See Also