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

Description

 
Synopsis

Documentation

data ReservedInstances Source #

Describes a Reserved Instance.

See: newReservedInstances smart constructor.

Constructors

ReservedInstances' 

Fields

Instances

Instances details
FromXML ReservedInstances Source # 
Instance details

Defined in Amazonka.EC2.Types.ReservedInstances

Generic ReservedInstances Source # 
Instance details

Defined in Amazonka.EC2.Types.ReservedInstances

Associated Types

type Rep ReservedInstances :: Type -> Type #

Read ReservedInstances Source # 
Instance details

Defined in Amazonka.EC2.Types.ReservedInstances

Show ReservedInstances Source # 
Instance details

Defined in Amazonka.EC2.Types.ReservedInstances

NFData ReservedInstances Source # 
Instance details

Defined in Amazonka.EC2.Types.ReservedInstances

Methods

rnf :: ReservedInstances -> () #

Eq ReservedInstances Source # 
Instance details

Defined in Amazonka.EC2.Types.ReservedInstances

Hashable ReservedInstances Source # 
Instance details

Defined in Amazonka.EC2.Types.ReservedInstances

type Rep ReservedInstances Source # 
Instance details

Defined in Amazonka.EC2.Types.ReservedInstances

type Rep ReservedInstances = D1 ('MetaData "ReservedInstances" "Amazonka.EC2.Types.ReservedInstances" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ReservedInstances'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "availabilityZone") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "currencyCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CurrencyCodeValues))) :*: (S1 ('MetaSel ('Just "duration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "end") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)))) :*: ((S1 ('MetaSel ('Just "fixedPrice") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "instanceCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just "instanceTenancy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Tenancy)) :*: (S1 ('MetaSel ('Just "instanceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InstanceType)) :*: S1 ('MetaSel ('Just "offeringClass") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe OfferingClassType)))))) :*: (((S1 ('MetaSel ('Just "offeringType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe OfferingTypeValues)) :*: S1 ('MetaSel ('Just "productDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RIProductDescription))) :*: (S1 ('MetaSel ('Just "recurringCharges") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [RecurringCharge])) :*: S1 ('MetaSel ('Just "reservedInstancesId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "scope") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Scope)) :*: S1 ('MetaSel ('Just "start") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601))) :*: (S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ReservedInstanceState)) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "usagePrice") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double))))))))

newReservedInstances :: ReservedInstances Source #

Create a value of ReservedInstances 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:availabilityZone:ReservedInstances', reservedInstances_availabilityZone - The Availability Zone in which the Reserved Instance can be used.

$sel:currencyCode:ReservedInstances', reservedInstances_currencyCode - The currency of the Reserved Instance. It's specified using ISO 4217 standard currency codes. At this time, the only supported currency is USD.

$sel:duration:ReservedInstances', reservedInstances_duration - The duration of the Reserved Instance, in seconds.

$sel:end:ReservedInstances', reservedInstances_end - The time when the Reserved Instance expires.

$sel:fixedPrice:ReservedInstances', reservedInstances_fixedPrice - The purchase price of the Reserved Instance.

$sel:instanceCount:ReservedInstances', reservedInstances_instanceCount - The number of reservations purchased.

$sel:instanceTenancy:ReservedInstances', reservedInstances_instanceTenancy - The tenancy of the instance.

$sel:instanceType:ReservedInstances', reservedInstances_instanceType - The instance type on which the Reserved Instance can be used.

$sel:offeringClass:ReservedInstances', reservedInstances_offeringClass - The offering class of the Reserved Instance.

$sel:offeringType:ReservedInstances', reservedInstances_offeringType - The Reserved Instance offering type.

$sel:productDescription:ReservedInstances', reservedInstances_productDescription - The Reserved Instance product platform description.

$sel:recurringCharges:ReservedInstances', reservedInstances_recurringCharges - The recurring charge tag assigned to the resource.

$sel:reservedInstancesId:ReservedInstances', reservedInstances_reservedInstancesId - The ID of the Reserved Instance.

$sel:scope:ReservedInstances', reservedInstances_scope - The scope of the Reserved Instance.

$sel:start:ReservedInstances', reservedInstances_start - The date and time the Reserved Instance started.

$sel:state:ReservedInstances', reservedInstances_state - The state of the Reserved Instance purchase.

$sel:tags:ReservedInstances', reservedInstances_tags - Any tags assigned to the resource.

$sel:usagePrice:ReservedInstances', reservedInstances_usagePrice - The usage price of the Reserved Instance, per hour.

reservedInstances_availabilityZone :: Lens' ReservedInstances (Maybe Text) Source #

The Availability Zone in which the Reserved Instance can be used.

reservedInstances_currencyCode :: Lens' ReservedInstances (Maybe CurrencyCodeValues) Source #

The currency of the Reserved Instance. It's specified using ISO 4217 standard currency codes. At this time, the only supported currency is USD.

reservedInstances_duration :: Lens' ReservedInstances (Maybe Integer) Source #

The duration of the Reserved Instance, in seconds.

reservedInstances_end :: Lens' ReservedInstances (Maybe UTCTime) Source #

The time when the Reserved Instance expires.

reservedInstances_fixedPrice :: Lens' ReservedInstances (Maybe Double) Source #

The purchase price of the Reserved Instance.

reservedInstances_instanceCount :: Lens' ReservedInstances (Maybe Int) Source #

The number of reservations purchased.

reservedInstances_instanceType :: Lens' ReservedInstances (Maybe InstanceType) Source #

The instance type on which the Reserved Instance can be used.

reservedInstances_offeringClass :: Lens' ReservedInstances (Maybe OfferingClassType) Source #

The offering class of the Reserved Instance.

reservedInstances_productDescription :: Lens' ReservedInstances (Maybe RIProductDescription) Source #

The Reserved Instance product platform description.

reservedInstances_recurringCharges :: Lens' ReservedInstances (Maybe [RecurringCharge]) Source #

The recurring charge tag assigned to the resource.

reservedInstances_scope :: Lens' ReservedInstances (Maybe Scope) Source #

The scope of the Reserved Instance.

reservedInstances_start :: Lens' ReservedInstances (Maybe UTCTime) Source #

The date and time the Reserved Instance started.

reservedInstances_state :: Lens' ReservedInstances (Maybe ReservedInstanceState) Source #

The state of the Reserved Instance purchase.

reservedInstances_tags :: Lens' ReservedInstances (Maybe [Tag]) Source #

Any tags assigned to the resource.

reservedInstances_usagePrice :: Lens' ReservedInstances (Maybe Double) Source #

The usage price of the Reserved Instance, per hour.