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.

RollbackTrigger

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

type RollbackTrigger struct { Arn *string `type:"string" required:"true"` Type *string `type:"string" required:"true"` }

A rollback trigger AWS CloudFormation monitors during creation and updating of stacks. If any of the alarms you specify goes to ALARM state during the stack operation or within the specified monitoring period afterwards, CloudFormation rolls back the entire stack operation.

Arn

Type: *string

The Amazon Resource Name (ARN) of the rollback trigger.

If a specified trigger is missing, the entire stack operation fails and is rolled back.

Arn is a required field

Type

Type: *string

The resource type of the rollback trigger. Currently, AWS::CloudWatch::Alarm (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html) is the only supported resource type.

Type is a required field

Method

GoString

func (s RollbackTrigger) GoString() string

GoString returns the string representation

SetArn

func (s *RollbackTrigger) SetArn(v string) *RollbackTrigger

SetArn sets the Arn field's value.

SetType

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

SetType sets the Type field's value.

String

func (s RollbackTrigger) String() string

String returns the string representation

Validate

func (s *RollbackTrigger) Validate() error

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

On this page: