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.

SetLoadBasedAutoScalingInput

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

type SetLoadBasedAutoScalingInput struct { DownScaling *AutoScalingThresholds `type:"structure"` Enable *bool `type:"boolean"` LayerId *string `type:"string" required:"true"` UpScaling *AutoScalingThresholds `type:"structure"` }

DownScaling

Describes a load-based auto scaling upscaling or downscaling threshold configuration, which specifies when AWS OpsWorks Stacks starts or stops load-based instances.

Enable

Type: *bool

Enables load-based auto scaling for the layer.

LayerId

Type: *string

The layer ID.

LayerId is a required field

UpScaling

Describes a load-based auto scaling upscaling or downscaling threshold configuration, which specifies when AWS OpsWorks Stacks starts or stops load-based instances.

Method

GoString

func (s SetLoadBasedAutoScalingInput) GoString() string

GoString returns the string representation

SetDownScaling

func (s *SetLoadBasedAutoScalingInput) SetDownScaling(v *AutoScalingThresholds) *SetLoadBasedAutoScalingInput

SetDownScaling sets the DownScaling field's value.

SetEnable

func (s *SetLoadBasedAutoScalingInput) SetEnable(v bool) *SetLoadBasedAutoScalingInput

SetEnable sets the Enable field's value.

SetLayerId

func (s *SetLoadBasedAutoScalingInput) SetLayerId(v string) *SetLoadBasedAutoScalingInput

SetLayerId sets the LayerId field's value.

SetUpScaling

func (s *SetLoadBasedAutoScalingInput) SetUpScaling(v *AutoScalingThresholds) *SetLoadBasedAutoScalingInput

SetUpScaling sets the UpScaling field's value.

String

func (s SetLoadBasedAutoScalingInput) String() string

String returns the string representation

Validate

func (s *SetLoadBasedAutoScalingInput) Validate() error

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

On this page: