OpsWorks.Client.
describe_time_based_auto_scaling
(**kwargs)¶Describes time-based auto scaling configurations for specified instances.
Note
You must specify at least one of the parameters.
Required Permissions : To use this action, an IAM user must have a Show, Deploy, or Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information about user permissions, see Managing User Permissions.
See also: AWS API Documentation
Request Syntax
response = client.describe_time_based_auto_scaling(
InstanceIds=[
'string',
]
)
[REQUIRED]
An array of instance IDs.
{
'TimeBasedAutoScalingConfigurations': [
{
'InstanceId': 'string',
'AutoScalingSchedule': {
'Monday': {
'string': 'string'
},
'Tuesday': {
'string': 'string'
},
'Wednesday': {
'string': 'string'
},
'Thursday': {
'string': 'string'
},
'Friday': {
'string': 'string'
},
'Saturday': {
'string': 'string'
},
'Sunday': {
'string': 'string'
}
}
},
]
}
Response Structure
Contains the response to a DescribeTimeBasedAutoScaling
request.
An array of TimeBasedAutoScalingConfiguration
objects that describe the configuration for the specified instances.
Describes an instance's time-based auto scaling configuration.
The instance ID.
A WeeklyAutoScalingSchedule
object 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.
Exceptions
OpsWorks.Client.exceptions.ValidationException
OpsWorks.Client.exceptions.ResourceNotFoundException