Method: Fog::Compute::AWS::Real#create_placement_group

Defined in:
lib/fog/compute/requests/aws/create_placement_group.rb

#create_placement_group(name, strategy) ⇒ Object

Create a new placement group

Parameters

  • group_name<~String> - Name of the placement group.

  • strategy<~String> - Placement group strategy. Valid options in [‘cluster’]

Returns

  • response<~Excon::Response>:

    • body<~Hash>:

      • ‘requestId’<~String> - Id of request

      • ‘return’<~Boolean> - success?

Amazon API Reference



21
22
23
24
25
26
27
28
# File 'lib/fog/compute/requests/aws/create_placement_group.rb', line 21

def create_placement_group(name, strategy)
  request(
    'Action'            => 'CreatePlacementGroup',
    'GroupName'         => name,
    'Strategy'          => strategy,
    :parser             => Fog::Parsers::Compute::AWS::Basic.new
  )
end