amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.Types.CapacityAllocation

Description

 
Synopsis

Documentation

data CapacityAllocation Source #

Information about instance capacity usage for a Capacity Reservation.

See: newCapacityAllocation smart constructor.

Constructors

CapacityAllocation' 

Fields

  • allocationType :: Maybe AllocationType

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

  • count :: Maybe Int

    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.

Instances

Instances details
FromXML CapacityAllocation Source # 
Instance details

Defined in Amazonka.EC2.Types.CapacityAllocation

Generic CapacityAllocation Source # 
Instance details

Defined in Amazonka.EC2.Types.CapacityAllocation

Associated Types

type Rep CapacityAllocation :: Type -> Type #

Read CapacityAllocation Source # 
Instance details

Defined in Amazonka.EC2.Types.CapacityAllocation

Show CapacityAllocation Source # 
Instance details

Defined in Amazonka.EC2.Types.CapacityAllocation

NFData CapacityAllocation Source # 
Instance details

Defined in Amazonka.EC2.Types.CapacityAllocation

Methods

rnf :: CapacityAllocation -> () #

Eq CapacityAllocation Source # 
Instance details

Defined in Amazonka.EC2.Types.CapacityAllocation

Hashable CapacityAllocation Source # 
Instance details

Defined in Amazonka.EC2.Types.CapacityAllocation

type Rep CapacityAllocation Source # 
Instance details

Defined in Amazonka.EC2.Types.CapacityAllocation

type Rep CapacityAllocation = D1 ('MetaData "CapacityAllocation" "Amazonka.EC2.Types.CapacityAllocation" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "CapacityAllocation'" 'PrefixI 'True) (S1 ('MetaSel ('Just "allocationType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AllocationType)) :*: S1 ('MetaSel ('Just "count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))))

newCapacityAllocation :: CapacityAllocation Source #

Create a value of CapacityAllocation with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:allocationType:CapacityAllocation', capacityAllocation_allocationType - The usage type. used indicates that the instance capacity is in use by instances that are running in the Capacity Reservation.

$sel:count:CapacityAllocation', capacityAllocation_count - 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.

capacityAllocation_allocationType :: Lens' CapacityAllocation (Maybe AllocationType) Source #

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

capacityAllocation_count :: Lens' CapacityAllocation (Maybe Int) Source #

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.