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.

Trigger

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

type Trigger struct { Actions []*Action `type:"list"` Description *string `type:"string"` Id *string `min:"1" type:"string"` Name *string `min:"1" type:"string"` Predicate *Predicate `type:"structure"` Schedule *string `type:"string"` State *string `type:"string" enum:"TriggerState"` Type *string `type:"string" enum:"TriggerType"` }

Information about a specific trigger.

Actions

Defines an action to be initiated by a trigger.

Description

Type: *string

A description of this trigger.

Id

Type: *string

Reserved for future use.

Name

Type: *string

Name of the trigger.

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 * * ? *).

State

Type: *string

The current state of the trigger.

Type

Type: *string

The type of trigger that this is.

Method

GoString

func (s Trigger) GoString() string

GoString returns the string representation

SetActions

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

SetActions sets the Actions field's value.

SetDescription

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

SetDescription sets the Description field's value.

SetId

func (s *Trigger) SetId(v string) *Trigger

SetId sets the Id field's value.

SetName

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

SetName sets the Name field's value.

SetPredicate

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

SetPredicate sets the Predicate field's value.

SetSchedule

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

SetSchedule sets the Schedule field's value.

SetState

func (s *Trigger) SetState(v string) *Trigger

SetState sets the State field's value.

SetType

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

SetType sets the Type field's value.

String

func (s Trigger) String() string

String returns the string representation

On this page: