You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::EC2::Types::ModifyInstancePlacementRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb

Overview

Note:

When making an API call, you may pass ModifyInstancePlacementRequest data as a hash:

{
  affinity: "default", # accepts default, host
  host_id: "String",
  instance_id: "String", # required
  tenancy: "dedicated", # accepts dedicated, host
}

Contains the parameters for ModifyInstancePlacement.

Instance Attribute Summary collapse

Instance Attribute Details

#affinityString

The new affinity setting for the instance.

Returns:

  • (String)


16930
16931
16932
16933
16934
16935
16936
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 16930

class ModifyInstancePlacementRequest < Struct.new(
  :affinity,
  :host_id,
  :instance_id,
  :tenancy)
  include Aws::Structure
end

#host_idString

The ID of the Dedicated Host that the instance will have affinity with.

Returns:

  • (String)


16930
16931
16932
16933
16934
16935
16936
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 16930

class ModifyInstancePlacementRequest < Struct.new(
  :affinity,
  :host_id,
  :instance_id,
  :tenancy)
  include Aws::Structure
end

#instance_idString

The ID of the instance that you are modifying.

Returns:

  • (String)


16930
16931
16932
16933
16934
16935
16936
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 16930

class ModifyInstancePlacementRequest < Struct.new(
  :affinity,
  :host_id,
  :instance_id,
  :tenancy)
  include Aws::Structure
end

#tenancyString

The tenancy of the instance that you are modifying.

Returns:

  • (String)


16930
16931
16932
16933
16934
16935
16936
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 16930

class ModifyInstancePlacementRequest < Struct.new(
  :affinity,
  :host_id,
  :instance_id,
  :tenancy)
  include Aws::Structure
end