OpsWorks / Client / set_time_based_auto_scaling

set_time_based_auto_scaling#

OpsWorks.Client.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'
        }
    }
)
Parameters:
  • InstanceId (string) –

    [REQUIRED]

    The instance ID.

  • AutoScalingSchedule (dict) –

    An AutoScalingSchedule with the instance schedule.

    • Monday (dict) –

      The schedule for Monday.

      • (string) –

        • (string) –

    • Tuesday (dict) –

      The schedule for Tuesday.

      • (string) –

        • (string) –

    • Wednesday (dict) –

      The schedule for Wednesday.

      • (string) –

        • (string) –

    • Thursday (dict) –

      The schedule for Thursday.

      • (string) –

        • (string) –

    • Friday (dict) –

      The schedule for Friday.

      • (string) –

        • (string) –

    • Saturday (dict) –

      The schedule for Saturday.

      • (string) –

        • (string) –

    • Sunday (dict) –

      The schedule for Sunday.

      • (string) –

        • (string) –

Returns:

None

Exceptions

  • OpsWorks.Client.exceptions.ValidationException

  • OpsWorks.Client.exceptions.ResourceNotFoundException