set_time_based_auto_scaling
(**kwargs)¶Specify the time-based auto scaling configuration for a specified instance. For more information, see Managing Load with Time-based and Load-based Instances.
Required Permissions : To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.
See also: AWS API Documentation
Request Syntax
response = client.set_time_based_auto_scaling(
InstanceId='string',
AutoScalingSchedule={
'Monday': {
'string': 'string'
},
'Tuesday': {
'string': 'string'
},
'Wednesday': {
'string': 'string'
},
'Thursday': {
'string': 'string'
},
'Friday': {
'string': 'string'
},
'Saturday': {
'string': 'string'
},
'Sunday': {
'string': 'string'
}
}
)
[REQUIRED]
The instance ID.
An AutoScalingSchedule
with the instance schedule.
The schedule for Monday.
The schedule for Tuesday.
The schedule for Wednesday.
The schedule for Thursday.
The schedule for Friday.
The schedule for Saturday.
The schedule for Sunday.
None
Exceptions
OpsWorks.Client.exceptions.ValidationException
OpsWorks.Client.exceptions.ResourceNotFoundException