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.

PutScheduledUpdateGroupActionInput

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

type PutScheduledUpdateGroupActionInput struct { AutoScalingGroupName *string `min:"1" type:"string" required:"true"` DesiredCapacity *int64 `type:"integer"` EndTime *time.Time `type:"timestamp"` MaxSize *int64 `type:"integer"` MinSize *int64 `type:"integer"` Recurrence *string `min:"1" type:"string"` ScheduledActionName *string `min:"1" type:"string" required:"true"` StartTime *time.Time `type:"timestamp"` Time *time.Time `type:"timestamp"` }

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 group.

EndTime

Type: *time.Time

The time for the recurring schedule to end. Amazon EC2 Auto Scaling does not perform the action after this time.

MaxSize

Type: *int64

The maximum size for the Auto Scaling group.

MinSize

Type: *int64

The minimum size for the Auto Scaling group.

Recurrence

Type: *string

The recurring schedule for this action, in Unix cron syntax format. This format consists of five fields separated by white spaces: [Minute] [Hour] [Day_of_Month] [Month_of_Year] [Day_of_Week]. For more information about this format, see Crontab (http://crontab.org).

ScheduledActionName

Type: *string

The name of this scaling action.

ScheduledActionName is a required field

StartTime

Type: *time.Time

The time for this action to start, in "YYYY-MM-DDThh:mm:ssZ" format in UTC/GMT only (for example, 2014-06-01T00:00:00Z).

If you specify Recurrence and StartTime, Amazon EC2 Auto Scaling performs the action at this time, and then performs the action based on the specified recurrence.

If you try to schedule your action in the past, Amazon EC2 Auto Scaling returns an error message.

Time

Type: *time.Time

This parameter is deprecated.

Method

GoString

func (s PutScheduledUpdateGroupActionInput) GoString() string

GoString returns the string representation

SetAutoScalingGroupName

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

SetAutoScalingGroupName sets the AutoScalingGroupName field's value.

SetDesiredCapacity

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

SetDesiredCapacity sets the DesiredCapacity field's value.

SetEndTime

func (s *PutScheduledUpdateGroupActionInput) SetEndTime(v time.Time) *PutScheduledUpdateGroupActionInput

SetEndTime sets the EndTime field's value.

SetMaxSize

func (s *PutScheduledUpdateGroupActionInput) SetMaxSize(v int64) *PutScheduledUpdateGroupActionInput

SetMaxSize sets the MaxSize field's value.

SetMinSize

func (s *PutScheduledUpdateGroupActionInput) SetMinSize(v int64) *PutScheduledUpdateGroupActionInput

SetMinSize sets the MinSize field's value.

SetRecurrence

func (s *PutScheduledUpdateGroupActionInput) SetRecurrence(v string) *PutScheduledUpdateGroupActionInput

SetRecurrence sets the Recurrence field's value.

SetScheduledActionName

func (s *PutScheduledUpdateGroupActionInput) SetScheduledActionName(v string) *PutScheduledUpdateGroupActionInput

SetScheduledActionName sets the ScheduledActionName field's value.

SetStartTime

func (s *PutScheduledUpdateGroupActionInput) SetStartTime(v time.Time) *PutScheduledUpdateGroupActionInput

SetStartTime sets the StartTime field's value.

SetTime

func (s *PutScheduledUpdateGroupActionInput) SetTime(v time.Time) *PutScheduledUpdateGroupActionInput

SetTime sets the Time field's value.

String

func (s PutScheduledUpdateGroupActionInput) String() string

String returns the string representation

Validate

func (s *PutScheduledUpdateGroupActionInput) Validate() error

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

On this page: