Class: Aws::EC2::Types::CapacityAllocation

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

Overview

Information about instance capacity usage for a Capacity Reservation.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#allocation_metadataArray<Types::CapacityAllocationMetadataEntry>

Additional metadata associated with the capacity allocation. Each entry contains a key-value pair providing context about the allocation.



5007
5008
5009
5010
5011
5012
5013
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 5007

class CapacityAllocation < Struct.new(
  :allocation_type,
  :count,
  :allocation_metadata)
  SENSITIVE = []
  include Aws::Structure
end

#allocation_typeString

The usage type. used indicates that the instance capacity is in use by instances that are running in the Capacity Reservation.

Returns:

  • (String)


5007
5008
5009
5010
5011
5012
5013
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 5007

class CapacityAllocation < Struct.new(
  :allocation_type,
  :count,
  :allocation_metadata)
  SENSITIVE = []
  include Aws::Structure
end

#countInteger

The amount of instance capacity associated with the usage. For example a value of 4 indicates that instance capacity for 4 instances is currently in use.

Returns:

  • (Integer)


5007
5008
5009
5010
5011
5012
5013
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 5007

class CapacityAllocation < Struct.new(
  :allocation_type,
  :count,
  :allocation_metadata)
  SENSITIVE = []
  include Aws::Structure
end