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.InstanceUsage

Description

 
Synopsis

Documentation

data InstanceUsage Source #

Information about the Capacity Reservation usage.

See: newInstanceUsage smart constructor.

Constructors

InstanceUsage' 

Fields

  • accountId :: Maybe Text

    The ID of the Amazon Web Services account that is making use of the Capacity Reservation.

  • usedInstanceCount :: Maybe Int

    The number of instances the Amazon Web Services account currently has in the Capacity Reservation.

Instances

Instances details
FromXML InstanceUsage Source # 
Instance details

Defined in Amazonka.EC2.Types.InstanceUsage

Generic InstanceUsage Source # 
Instance details

Defined in Amazonka.EC2.Types.InstanceUsage

Associated Types

type Rep InstanceUsage :: Type -> Type #

Read InstanceUsage Source # 
Instance details

Defined in Amazonka.EC2.Types.InstanceUsage

Show InstanceUsage Source # 
Instance details

Defined in Amazonka.EC2.Types.InstanceUsage

NFData InstanceUsage Source # 
Instance details

Defined in Amazonka.EC2.Types.InstanceUsage

Methods

rnf :: InstanceUsage -> () #

Eq InstanceUsage Source # 
Instance details

Defined in Amazonka.EC2.Types.InstanceUsage

Hashable InstanceUsage Source # 
Instance details

Defined in Amazonka.EC2.Types.InstanceUsage

type Rep InstanceUsage Source # 
Instance details

Defined in Amazonka.EC2.Types.InstanceUsage

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

newInstanceUsage :: InstanceUsage Source #

Create a value of InstanceUsage 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:accountId:InstanceUsage', instanceUsage_accountId - The ID of the Amazon Web Services account that is making use of the Capacity Reservation.

$sel:usedInstanceCount:InstanceUsage', instanceUsage_usedInstanceCount - The number of instances the Amazon Web Services account currently has in the Capacity Reservation.

instanceUsage_accountId :: Lens' InstanceUsage (Maybe Text) Source #

The ID of the Amazon Web Services account that is making use of the Capacity Reservation.

instanceUsage_usedInstanceCount :: Lens' InstanceUsage (Maybe Int) Source #

The number of instances the Amazon Web Services account currently has in the Capacity Reservation.