Class: Ansible::Ruby::Modules::Aws_application_scaling_policy

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/cloud/amazon/aws_application_scaling_policy.rb

Overview

Creates, updates or removes a Scaling Policy

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#maximum_tasksInteger?

Returns The maximum value to scale to in response to a scale out event. This parameter is required if you are creating a first new policy for the specified service.

Returns:

  • (Integer, nil)

    The maximum value to scale to in response to a scale out event. This parameter is required if you are creating a first new policy for the specified service.



44
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/aws_application_scaling_policy.rb', line 44

attribute :maximum_tasks

#minimum_tasksInteger?

Returns The minimum value to scale to in response to a scale in event. This parameter is required if you are creating a first new policy for the specified service.

Returns:

  • (Integer, nil)

    The minimum value to scale to in response to a scale in event. This parameter is required if you are creating a first new policy for the specified service.



40
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/aws_application_scaling_policy.rb', line 40

attribute :minimum_tasks

#override_task_capacitySymbol?

Returns Whether or not to override values of minimum and/or maximum tasks if it’s already set.

Returns:

  • (Symbol, nil)

    Whether or not to override values of minimum and/or maximum tasks if it’s already set.



48
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/aws_application_scaling_policy.rb', line 48

attribute :override_task_capacity

#policy_nameString

Returns The name of the scaling policy.

Returns:

  • (String)

    The name of the scaling policy.



12
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/aws_application_scaling_policy.rb', line 12

attribute :policy_name

#policy_type:StepScaling, :TargetTrackingScaling

Returns The policy type.

Returns:

  • (:StepScaling, :TargetTrackingScaling)

    The policy type.



28
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/aws_application_scaling_policy.rb', line 28

attribute :policy_type

#resource_idString

Returns The identifier of the resource associated with the scalable target.

Returns:

  • (String)

    The identifier of the resource associated with the scalable target.



20
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/aws_application_scaling_policy.rb', line 20

attribute :resource_id

#scalable_dimension:"ecs:service:DesiredCount", ...

Returns The scalable dimension associated with the scalable target.

Returns:

  • (:"ecs:service:DesiredCount", :"ec2:spot-fleet-request:TargetCapacity", :"elasticmapreduce:instancegroup:InstanceCount", :"appstream:fleet:DesiredCapacity", :"dynamodb:table:ReadCapacityUnits", :"dynamodb:table:WriteCapacityUnits", :"dynamodb:index:ReadCapacityUnits", :"dynamodb:index:WriteCapacityUnits")

    The scalable dimension associated with the scalable target.



24
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/aws_application_scaling_policy.rb', line 24

attribute :scalable_dimension

#service_namespace:ecs, ...

Returns The namespace of the AWS service.

Returns:

  • (:ecs, :elasticmapreduce, :ec2, :appstream, :dynamodb)

    The namespace of the AWS service.



16
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/aws_application_scaling_policy.rb', line 16

attribute :service_namespace

#step_scaling_policy_configurationHash?

Returns A step scaling policy. This parameter is required if you are creating a policy and the policy type is StepScaling.

Returns:

  • (Hash, nil)

    A step scaling policy. This parameter is required if you are creating a policy and the policy type is StepScaling.



32
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/aws_application_scaling_policy.rb', line 32

attribute :step_scaling_policy_configuration

#target_tracking_scaling_policy_configurationHash?

Returns A target tracking policy. This parameter is required if you are creating a new policy and the policy type is TargetTrackingScaling.

Returns:

  • (Hash, nil)

    A target tracking policy. This parameter is required if you are creating a new policy and the policy type is TargetTrackingScaling.



36
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/aws_application_scaling_policy.rb', line 36

attribute :target_tracking_scaling_policy_configuration