AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

Tag

import "github.com/aws/aws-sdk-go/service/resourcegroupstaggingapi"

type Tag struct { Key *string `min:"1" type:"string" required:"true"` Value *string `type:"string" required:"true"` }

The metadata that you apply to AWS resources to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. For more information, see Tag Basics (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#tag-basics) in the Amazon EC2 User Guide for Linux Instances.

Key

Type: *string

One part of a key-value pair that make up a tag. A key is a general label that acts like a category for more specific tag values.

Key is a required field

Value

Type: *string

The optional part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key).

Value is a required field

Method

GoString

func (s Tag) GoString() string

GoString returns the string representation

SetKey

func (s *Tag) SetKey(v string) *Tag

SetKey sets the Key field's value.

SetValue

func (s *Tag) SetValue(v string) *Tag

SetValue sets the Value field's value.

String

func (s Tag) String() string

String returns the string representation

On this page: