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.

CreateTriggerInput

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

type CreateTriggerInput struct { Actions []*Action `type:"list" required:"true"` Description *string `type:"string"` Name *string `min:"1" type:"string" required:"true"` Predicate *Predicate `type:"structure"` Schedule *string `type:"string"` StartOnCreation *bool `type:"boolean"` Tags map[string]*string `type:"map"` Type *string `type:"string" required:"true" enum:"TriggerType"` }

Actions

Defines an action to be initiated by a trigger.

Description

Type: *string

A description of the new trigger.

Name

Type: *string

The name of the trigger.

Name is a required field

Predicate

Defines the predicate of the trigger, which determines when it fires.

Schedule

Type: *string

A cron expression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers (https://docs.aws.amazon.com/glue/latest/dg/monitor-data-warehouse-schedule.html). For example, to run something every day at 12:15 UTC, you would specify: cron(15 12 * * ? *).

This field is required when the trigger type is SCHEDULED.

StartOnCreation

Type: *bool

Set to true to start SCHEDULED and CONDITIONAL triggers when created. True not supported for ON_DEMAND triggers.

Tags

Type: map[string]*string

The tags to use with this trigger. You may use tags to limit access to the trigger. For more information about tags in AWS Glue, see AWS Tags in AWS Glue (https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html) in the developer guide.

Type

Type: *string

The type of the new trigger.

Type is a required field

Method

GoString

func (s CreateTriggerInput) GoString() string

GoString returns the string representation

SetActions

func (s *CreateTriggerInput) SetActions(v []*Action) *CreateTriggerInput

SetActions sets the Actions field's value.

SetDescription

func (s *CreateTriggerInput) SetDescription(v string) *CreateTriggerInput

SetDescription sets the Description field's value.

SetName

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

SetName sets the Name field's value.

SetPredicate

func (s *CreateTriggerInput) SetPredicate(v *Predicate) *CreateTriggerInput

SetPredicate sets the Predicate field's value.

SetSchedule

func (s *CreateTriggerInput) SetSchedule(v string) *CreateTriggerInput

SetSchedule sets the Schedule field's value.

SetStartOnCreation

func (s *CreateTriggerInput) SetStartOnCreation(v bool) *CreateTriggerInput

SetStartOnCreation sets the StartOnCreation field's value.

SetTags

func (s *CreateTriggerInput) SetTags(v map[string]*string) *CreateTriggerInput

SetTags sets the Tags field's value.

SetType

func (s *CreateTriggerInput) SetType(v string) *CreateTriggerInput

SetType sets the Type field's value.

String

func (s CreateTriggerInput) String() string

String returns the string representation

Validate

func (s *CreateTriggerInput) Validate() error

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

On this page: