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.

RepositoryTrigger

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

type RepositoryTrigger struct { Branches []*string `locationName:"branches" type:"list"` CustomData *string `locationName:"customData" type:"string"` DestinationArn *string `locationName:"destinationArn" type:"string" required:"true"` Events []*string `locationName:"events" type:"list" required:"true"` Name *string `locationName:"name" type:"string" required:"true"` }

Information about a trigger for a repository.

Branches

Type: []*string

The branches that will be included in the trigger configuration. If you specify an empty array, the trigger will apply to all branches.

While no content is required in the array, you must include the array itself.

CustomData

Type: *string

Any custom data associated with the trigger that will be included in the information sent to the target of the trigger.

DestinationArn

Type: *string

The ARN of the resource that is the target for a trigger. For example, the ARN of a topic in Amazon Simple Notification Service (SNS).

DestinationArn is a required field

Events

Type: []*string

The repository events that will cause the trigger to run actions in another service, such as sending a notification through Amazon Simple Notification Service (SNS).

The valid value "all" cannot be used with any other values.

Events is a required field

Name

Type: *string

The name of the trigger.

Name is a required field

Method

GoString

func (s RepositoryTrigger) GoString() string

GoString returns the string representation

SetBranches

func (s *RepositoryTrigger) SetBranches(v []*string) *RepositoryTrigger

SetBranches sets the Branches field's value.

SetCustomData

func (s *RepositoryTrigger) SetCustomData(v string) *RepositoryTrigger

SetCustomData sets the CustomData field's value.

SetDestinationArn

func (s *RepositoryTrigger) SetDestinationArn(v string) *RepositoryTrigger

SetDestinationArn sets the DestinationArn field's value.

SetEvents

func (s *RepositoryTrigger) SetEvents(v []*string) *RepositoryTrigger

SetEvents sets the Events field's value.

SetName

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

SetName sets the Name field's value.

String

func (s RepositoryTrigger) String() string

String returns the string representation

Validate

func (s *RepositoryTrigger) Validate() error

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

On this page: