Class: Ansible::Ruby::Modules::Ec2_placement_group

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

Overview

Create an EC2 Placement Group; if the placement group already exists, nothing is done. Or, delete an existing placement group. If the placement group is absent, do nothing. See also docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html

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

#nameString

Returns The name for the placement group.

Returns:

  • (String)

    The name for the placement group.



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

attribute :name

#state:present, ...

Returns Create or delete placement group.

Returns:

  • (:present, :absent, nil)

    Create or delete placement group.



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

attribute :state

#strategy:cluster, ...

Returns Placement group strategy. Cluster will cluster instances into a low-latency group in a single Availability Zone, while Spread spreads instances across underlying hardware.

Returns:

  • (:cluster, :spread, nil)

    Placement group strategy. Cluster will cluster instances into a low-latency group in a single Availability Zone, while Spread spreads instances across underlying hardware.



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

attribute :strategy