libZSservicesZSamazonka-savingsplansZSamazonka-savingsplans
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq SavingsPlan Source # 
Instance details

Defined in Amazonka.SavingsPlans.Types.SavingsPlan

Read SavingsPlan Source # 
Instance details

Defined in Amazonka.SavingsPlans.Types.SavingsPlan

Show 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 #

NFData SavingsPlan Source # 
Instance details

Defined in Amazonka.SavingsPlans.Types.SavingsPlan

Methods

rnf :: SavingsPlan -> () #

Hashable SavingsPlan Source # 
Instance details

Defined in Amazonka.SavingsPlans.Types.SavingsPlan

FromJSON 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" "libZSservicesZSamazonka-savingsplansZSamazonka-savingsplans" 'False) (C1 ('MetaCons "SavingsPlan'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "termDurationInSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "savingsPlanType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SavingsPlanType))) :*: (S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SavingsPlanState)) :*: S1 ('MetaSel ('Just "productTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [SavingsPlanProductType])))) :*: ((S1 ('MetaSel ('Just "start") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "ec2InstanceFamily") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "savingsPlanId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "recurringPaymentAmount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "currency") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CurrencyCode)))))) :*: (((S1 ('MetaSel ('Just "end") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "upfrontPaymentAmount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "offeringId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "region") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "commitment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "paymentOption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SavingsPlanPaymentOption)) :*: (S1 ('MetaSel ('Just "savingsPlanArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text 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:termDurationInSeconds:SavingsPlan', savingsPlan_termDurationInSeconds - The duration of the term, in seconds.

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

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

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

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

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

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

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

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

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

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

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

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

$sel:commitment:SavingsPlan', savingsPlan_commitment - The hourly commitment, in USD.

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

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

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

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

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

The duration of the term, in seconds.

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

The ID of the Savings Plan.

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.