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.

MessageTag

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

type MessageTag struct { Name *string `type:"string" required:"true"` Value *string `type:"string" required:"true"` }

Contains the name and value of a tag that you can provide to SendEmail or SendRawEmail to apply to an email.

Message tags, which you use with configuration sets, enable you to publish email sending events. For information about using configuration sets, see the Amazon SES Developer Guide (https://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html).

Name

Type: *string

The name of the tag. The name must:

  • This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).

  • Contain less than 256 characters.

Name is a required field

Value

Type: *string

The value of the tag. The value must:

  • This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).

  • Contain less than 256 characters.

Value is a required field

Method

GoString

func (s MessageTag) GoString() string

GoString returns the string representation

SetName

func (s *MessageTag) SetName(v string) *MessageTag

SetName sets the Name field's value.

SetValue

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

SetValue sets the Value field's value.

String

func (s MessageTag) String() string

String returns the string representation

Validate

func (s *MessageTag) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: