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.

Container for the parameters to the TagResource operation. Attaches a key-value pair to a resource, as identified by its Amazon Resource Name (ARN). Resources are capability, partnership, profile, transformers and other entities.

There is no response returned from this call.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.B2bi.AmazonB2biRequest
      Amazon.B2bi.Model.TagResourceRequest

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

Syntax

C#
public class TagResourceRequest : AmazonB2biRequest
         IAmazonWebServiceRequest

The TagResourceRequest type exposes the following members

Constructors

NameDescription
Public Method TagResourceRequest()

Properties

NameTypeDescription
Public Property ResourceARN System.String

Gets and sets the property ResourceARN.

Specifies an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer.

Public Property Tags System.Collections.Generic.List<Amazon.B2bi.Model.Tag>

Gets and sets the property Tags.

Specifies the key-value pairs assigned to ARNs that you can use to group and search for resources by type. You can attach this metadata to resources (capabilities, partnerships, and so on) for any purpose.

Examples

Sample TagResource call


var client = new AmazonB2biClient();
var response = client.CreateCapability(new CreateCapabilityRequest 
{
    Name = "b2biexample",
    Type = "edi",
    ClientToken = "foo",
    Configuration = new CapabilityConfiguration { Edi = new EdiConfiguration {
        Type = new EdiType { X12Details = new X12Details {
            Version = "VERSION_4010",
            TransactionSet = "X12_110"
        } },
        InputLocation = new S3Location {
            Key = "input/",
            BucketName = "test-bucket"
        },
        OutputLocation = new S3Location {
            Key = "output/",
            BucketName = "test-bucket"
        },
        TransformerId = "tr-9a893cf536df4658b"
    } },
    InstructionsDocuments = new List<S3Location> {
        new S3Location {
            Key = "instructiondoc.txt",
            BucketName = "test-bucket"
        }
    },
    Tags = new List<Tag> {
        new Tag {
            Key = "capabilityKey1",
            Value = "capabilityValue1"
        }
    }
});

string name = response.Name;
string type = response.Type;
string capabilityArn = response.CapabilityArn;
string capabilityId = response.CapabilityId;
CapabilityConfiguration configuration = response.Configuration;
DateTime createdAt = response.CreatedAt;
List<S3Location> instructionsDocuments = response.InstructionsDocuments;

            

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

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