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.

Add a tag to a Step Functions resource.

An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide, and Controlling Access Using IAM Tags.

Tags may only contain Unicode letters, digits, white space, or these symbols: _ . : / = + - @.

Note:

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

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

Syntax

C#
public abstract TagResourceResponse TagResource(
         TagResourceRequest request
)

Parameters

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

Exceptions

ExceptionCondition
InvalidArnException The provided Amazon Resource Name (ARN) is not valid.
ResourceNotFoundException Could not find the referenced resource.
TooManyTagsException You've exceeded the number of tags allowed for a resource. See the Limits Topic in the Step Functions Developer Guide.

Version Information

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

See Also