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.

CreateEventSubscriptionInput

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

type CreateEventSubscriptionInput struct { Enabled *bool `type:"boolean"` EventCategories []*string `type:"list"` SnsTopicArn *string `type:"string" required:"true"` SourceIds []*string `type:"list"` SourceType *string `type:"string"` SubscriptionName *string `type:"string" required:"true"` Tags []*Tag `type:"list"` }

Enabled

Type: *bool

A Boolean value; set to true to activate the subscription, or set to false to create the subscription but not activate it.

EventCategories

Type: []*string

A list of event categories for a source type that you want to subscribe to. You can see a list of the categories for a given source type by calling the DescribeEventCategories action or in the topic Working with Events and Notifications (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Events.html) in the AWS Database Migration Service User Guide.

SnsTopicArn

Type: *string

The Amazon Resource Name (ARN) of the Amazon SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.

SnsTopicArn is a required field

SourceIds

Type: []*string

The list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens; it cannot end with a hyphen or contain two consecutive hyphens.

SourceType

Type: *string

The type of AWS DMS resource that generates the events. For example, if you want to be notified of events generated by a replication instance, you set this parameter to replication-instance. If this value is not specified, all events are returned.

Valid values: replication-instance | migration-task

SubscriptionName

Type: *string

The name of the AWS DMS event notification subscription.

Constraints: The name must be less than 255 characters.

SubscriptionName is a required field

Tags

Method

GoString

func (s CreateEventSubscriptionInput) GoString() string

GoString returns the string representation

SetEnabled

func (s *CreateEventSubscriptionInput) SetEnabled(v bool) *CreateEventSubscriptionInput

SetEnabled sets the Enabled field's value.

SetEventCategories

func (s *CreateEventSubscriptionInput) SetEventCategories(v []*string) *CreateEventSubscriptionInput

SetEventCategories sets the EventCategories field's value.

SetSnsTopicArn

func (s *CreateEventSubscriptionInput) SetSnsTopicArn(v string) *CreateEventSubscriptionInput

SetSnsTopicArn sets the SnsTopicArn field's value.

SetSourceIds

func (s *CreateEventSubscriptionInput) SetSourceIds(v []*string) *CreateEventSubscriptionInput

SetSourceIds sets the SourceIds field's value.

SetSourceType

func (s *CreateEventSubscriptionInput) SetSourceType(v string) *CreateEventSubscriptionInput

SetSourceType sets the SourceType field's value.

SetSubscriptionName

func (s *CreateEventSubscriptionInput) SetSubscriptionName(v string) *CreateEventSubscriptionInput

SetSubscriptionName sets the SubscriptionName field's value.

SetTags

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

SetTags sets the Tags field's value.

String

func (s CreateEventSubscriptionInput) String() string

String returns the string representation

Validate

func (s *CreateEventSubscriptionInput) Validate() error

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

On this page: