amazonka-savingsplans-2.0: Amazon Savings Plans 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.SavingsPlans.Types.SavingsPlan

Description

 
Synopsis

Documentation

data SavingsPlan Source #

Information about a Savings Plan.

See: newSavingsPlan smart constructor.

Constructors

SavingsPlan' 

Fields

Instances

Instances details
FromJSON SavingsPlan Source # 
Instance details

Defined in Amazonka.SavingsPlans.Types.SavingsPlan

Generic SavingsPlan Source # 
Instance details

Defined in Amazonka.SavingsPlans.Types.SavingsPlan

Associated Types

type Rep SavingsPlan :: Type -> Type #

Read SavingsPlan Source # 
Instance details

Defined in Amazonka.SavingsPlans.Types.SavingsPlan

Show SavingsPlan Source # 
Instance details

Defined in Amazonka.SavingsPlans.Types.SavingsPlan

NFData SavingsPlan Source # 
Instance details

Defined in Amazonka.SavingsPlans.Types.SavingsPlan

Methods

rnf :: SavingsPlan -> () #

Eq SavingsPlan Source # 
Instance details

Defined in Amazonka.SavingsPlans.Types.SavingsPlan

Hashable SavingsPlan Source # 
Instance details

Defined in Amazonka.SavingsPlans.Types.SavingsPlan

type Rep SavingsPlan Source # 
Instance details

Defined in Amazonka.SavingsPlans.Types.SavingsPlan

type Rep SavingsPlan = D1 ('MetaData "SavingsPlan" "Amazonka.SavingsPlans.Types.SavingsPlan" "amazonka-savingsplans-2.0-FtFG1qHEz1XIlZzuDbedV6" 'False) (C1 ('MetaCons "SavingsPlan'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "commitment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "currency") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CurrencyCode))) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "ec2InstanceFamily") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "end") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "offeringId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "paymentOption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SavingsPlanPaymentOption)) :*: (S1 ('MetaSel ('Just "productTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [SavingsPlanProductType])) :*: S1 ('MetaSel ('Just "recurringPaymentAmount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))) :*: (((S1 ('MetaSel ('Just "region") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "savingsPlanArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "savingsPlanId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "savingsPlanType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SavingsPlanType)))) :*: ((S1 ('MetaSel ('Just "start") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SavingsPlanState))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: (S1 ('MetaSel ('Just "termDurationInSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "upfrontPaymentAmount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))))

newSavingsPlan :: SavingsPlan Source #

Create a value of SavingsPlan 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:commitment:SavingsPlan', savingsPlan_commitment - The hourly commitment, in USD.

$sel:currency:SavingsPlan', savingsPlan_currency - The currency.

$sel:description:SavingsPlan', savingsPlan_description - The description.

$sel:ec2InstanceFamily:SavingsPlan', savingsPlan_ec2InstanceFamily - The EC2 instance family.

$sel:end:SavingsPlan', savingsPlan_end - The end time.

$sel:offeringId:SavingsPlan', savingsPlan_offeringId - The ID of the offering.

$sel:paymentOption:SavingsPlan', savingsPlan_paymentOption - The payment option.

$sel:productTypes:SavingsPlan', savingsPlan_productTypes - The product types.

$sel:recurringPaymentAmount:SavingsPlan', savingsPlan_recurringPaymentAmount - The recurring payment amount.

$sel:region:SavingsPlan', savingsPlan_region - The AWS Region.

$sel:savingsPlanArn:SavingsPlan', savingsPlan_savingsPlanArn - The Amazon Resource Name (ARN) of the Savings Plan.

$sel:savingsPlanId:SavingsPlan', savingsPlan_savingsPlanId - The ID of the Savings Plan.

$sel:savingsPlanType:SavingsPlan', savingsPlan_savingsPlanType - The plan type.

$sel:start:SavingsPlan', savingsPlan_start - The start time.

$sel:state:SavingsPlan', savingsPlan_state - The state.

$sel:tags:SavingsPlan', savingsPlan_tags - One or more tags.

$sel:termDurationInSeconds:SavingsPlan', savingsPlan_termDurationInSeconds - The duration of the term, in seconds.

$sel:upfrontPaymentAmount:SavingsPlan', savingsPlan_upfrontPaymentAmount - The up-front payment amount.

savingsPlan_commitment :: Lens' SavingsPlan (Maybe Text) Source #

The hourly commitment, in USD.

savingsPlan_savingsPlanArn :: Lens' SavingsPlan (Maybe Text) Source #

The Amazon Resource Name (ARN) of the Savings Plan.

savingsPlan_savingsPlanId :: Lens' SavingsPlan (Maybe Text) Source #

The ID of the Savings Plan.

savingsPlan_termDurationInSeconds :: Lens' SavingsPlan (Maybe Integer) Source #

The duration of the term, in seconds.