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.

SetDesiredCapacityInput

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

type SetDesiredCapacityInput struct { AutoScalingGroupName *string `min:"1" type:"string" required:"true"` DesiredCapacity *int64 `type:"integer" required:"true"` HonorCooldown *bool `type:"boolean"` }

AutoScalingGroupName

Type: *string

The name of the Auto Scaling group.

AutoScalingGroupName is a required field

DesiredCapacity

Type: *int64

The number of EC2 instances that should be running in the Auto Scaling group.

DesiredCapacity is a required field

HonorCooldown

Type: *bool

Indicates whether Amazon EC2 Auto Scaling waits for the cooldown period to complete before initiating a scaling activity to set your Auto Scaling group to its new capacity. By default, Amazon EC2 Auto Scaling does not honor the cooldown period during manual scaling activities.

Method

GoString

func (s SetDesiredCapacityInput) GoString() string

GoString returns the string representation

SetAutoScalingGroupName

func (s *SetDesiredCapacityInput) SetAutoScalingGroupName(v string) *SetDesiredCapacityInput

SetAutoScalingGroupName sets the AutoScalingGroupName field's value.

SetDesiredCapacity

func (s *SetDesiredCapacityInput) SetDesiredCapacity(v int64) *SetDesiredCapacityInput

SetDesiredCapacity sets the DesiredCapacity field's value.

SetHonorCooldown

func (s *SetDesiredCapacityInput) SetHonorCooldown(v bool) *SetDesiredCapacityInput

SetHonorCooldown sets the HonorCooldown field's value.

String

func (s SetDesiredCapacityInput) String() string

String returns the string representation

Validate

func (s *SetDesiredCapacityInput) Validate() error

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

On this page: