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.

TagSpecification

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

type TagSpecification struct { ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` Tags []*Tag `locationName:"Tag" locationNameList:"item" type:"list"` }

The tags to apply to a resource when the resource is being created.

ResourceType

Type: *string

The type of resource to tag. Currently, the resource types that support tagging on creation are fleet, dedicated-host, instance, snapshot, and volume. To tag a resource after it has been created, see CreateTags.

Tags

Describes a tag.

Method

GoString

func (s TagSpecification) GoString() string

GoString returns the string representation

SetResourceType

func (s *TagSpecification) SetResourceType(v string) *TagSpecification

SetResourceType sets the ResourceType field's value.

SetTags

func (s *TagSpecification) SetTags(v []*Tag) *TagSpecification

SetTags sets the Tags field's value.

String

func (s TagSpecification) String() string

String returns the string representation

On this page: