You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::EC2::PlacementGroup
- Inherits:
-
Resources::Resource
- Object
- Resources::Resource
- Aws::EC2::PlacementGroup
- Defined in:
- (unknown)
Instance Attribute Summary collapse
-
#group_id ⇒ String
readonly
The ID of the placement group.
-
#group_name ⇒ String
readonly
The name of the placement group.
-
#name ⇒ String
readonly
-
#partition_count ⇒ Integer
readonly
The number of partitions.
-
#state ⇒ String
readonly
The state of the placement group.
-
#strategy ⇒ String
readonly
The placement strategy.
-
#tags ⇒ Array<Types::Tag>
readonly
Any tags applied to the placement group.
Attributes inherited from Resources::Resource
Instance Method Summary collapse
-
#delete(options = {}) ⇒ Struct
Deletes the specified placement group.
-
#initialize ⇒ Object
constructor
-
#instances(options = {}) ⇒ Collection<Instance>
Returns a Collection of Instance resources.
Methods inherited from Resources::Resource
add_data_attribute, add_identifier, #data, data_attributes, #data_loaded?, identifiers, #load, #wait_until
Methods included from Resources::OperationMethods
#add_batch_operation, #add_operation, #batch_operation, #batch_operation_names, #batch_operations, #operation, #operation_names, #operations
Constructor Details
#initialize(name, options = {}) ⇒ Object #initialize(options = {}) ⇒ Object
Instance Attribute Details
#group_id ⇒ String (readonly)
The ID of the placement group.
#group_name ⇒ String (readonly)
The name of the placement group.
#name ⇒ String (readonly)
#partition_count ⇒ Integer (readonly)
The number of partitions. Valid only if strategy is set to
partition
.
#state ⇒ String (readonly)
The state of the placement group.
Possible values:
- pending
- available
- deleting
- deleted
#strategy ⇒ String (readonly)
The placement strategy.
Possible values:
- cluster
- spread
- partition
#tags ⇒ Array<Types::Tag> (readonly)
Any tags applied to the placement group.
Instance Method Details
#delete(options = {}) ⇒ Struct
Deletes the specified placement group. You must terminate all instances in the placement group before you can delete the placement group. For more information, see Placement groups in the Amazon Elastic Compute Cloud User Guide.
#instances(options = {}) ⇒ Collection<Instance>
Returns a Collection of Instance resources. No API requests are made until you call an enumerable method on the collection. Client#describe_instances will be called multiple times until every Instance has been yielded.