Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data SavingsPlan = SavingsPlan' {
- termDurationInSeconds :: Maybe Integer
- savingsPlanType :: Maybe SavingsPlanType
- state :: Maybe SavingsPlanState
- productTypes :: Maybe [SavingsPlanProductType]
- start :: Maybe Text
- ec2InstanceFamily :: Maybe Text
- savingsPlanId :: Maybe Text
- recurringPaymentAmount :: Maybe Text
- currency :: Maybe CurrencyCode
- end :: Maybe Text
- upfrontPaymentAmount :: Maybe Text
- offeringId :: Maybe Text
- region :: Maybe Text
- commitment :: Maybe Text
- description :: Maybe Text
- paymentOption :: Maybe SavingsPlanPaymentOption
- savingsPlanArn :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- newSavingsPlan :: SavingsPlan
- savingsPlan_termDurationInSeconds :: Lens' SavingsPlan (Maybe Integer)
- savingsPlan_savingsPlanType :: Lens' SavingsPlan (Maybe SavingsPlanType)
- savingsPlan_state :: Lens' SavingsPlan (Maybe SavingsPlanState)
- savingsPlan_productTypes :: Lens' SavingsPlan (Maybe [SavingsPlanProductType])
- savingsPlan_start :: Lens' SavingsPlan (Maybe Text)
- savingsPlan_ec2InstanceFamily :: Lens' SavingsPlan (Maybe Text)
- savingsPlan_savingsPlanId :: Lens' SavingsPlan (Maybe Text)
- savingsPlan_recurringPaymentAmount :: Lens' SavingsPlan (Maybe Text)
- savingsPlan_currency :: Lens' SavingsPlan (Maybe CurrencyCode)
- savingsPlan_end :: Lens' SavingsPlan (Maybe Text)
- savingsPlan_upfrontPaymentAmount :: Lens' SavingsPlan (Maybe Text)
- savingsPlan_offeringId :: Lens' SavingsPlan (Maybe Text)
- savingsPlan_region :: Lens' SavingsPlan (Maybe Text)
- savingsPlan_commitment :: Lens' SavingsPlan (Maybe Text)
- savingsPlan_description :: Lens' SavingsPlan (Maybe Text)
- savingsPlan_paymentOption :: Lens' SavingsPlan (Maybe SavingsPlanPaymentOption)
- savingsPlan_savingsPlanArn :: Lens' SavingsPlan (Maybe Text)
- savingsPlan_tags :: Lens' SavingsPlan (Maybe (HashMap Text Text))
Documentation
data SavingsPlan Source #
Information about a Savings Plan.
See: newSavingsPlan
smart constructor.
SavingsPlan' | |
|
Instances
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_savingsPlanType :: Lens' SavingsPlan (Maybe SavingsPlanType) Source #
The plan type.
savingsPlan_state :: Lens' SavingsPlan (Maybe SavingsPlanState) Source #
The state.
savingsPlan_productTypes :: Lens' SavingsPlan (Maybe [SavingsPlanProductType]) Source #
The product types.
savingsPlan_start :: Lens' SavingsPlan (Maybe Text) Source #
The start time.
savingsPlan_ec2InstanceFamily :: Lens' SavingsPlan (Maybe Text) Source #
The EC2 instance family.
savingsPlan_savingsPlanId :: Lens' SavingsPlan (Maybe Text) Source #
The ID of the Savings Plan.
savingsPlan_recurringPaymentAmount :: Lens' SavingsPlan (Maybe Text) Source #
The recurring payment amount.
savingsPlan_currency :: Lens' SavingsPlan (Maybe CurrencyCode) Source #
The currency.
savingsPlan_end :: Lens' SavingsPlan (Maybe Text) Source #
The end time.
savingsPlan_upfrontPaymentAmount :: Lens' SavingsPlan (Maybe Text) Source #
The up-front payment amount.
savingsPlan_offeringId :: Lens' SavingsPlan (Maybe Text) Source #
The ID of the offering.
savingsPlan_region :: Lens' SavingsPlan (Maybe Text) Source #
The AWS Region.
savingsPlan_commitment :: Lens' SavingsPlan (Maybe Text) Source #
The hourly commitment, in USD.
savingsPlan_description :: Lens' SavingsPlan (Maybe Text) Source #
The description.
savingsPlan_paymentOption :: Lens' SavingsPlan (Maybe SavingsPlanPaymentOption) Source #
The payment option.
savingsPlan_savingsPlanArn :: Lens' SavingsPlan (Maybe Text) Source #
The Amazon Resource Name (ARN) of the Savings Plan.
savingsPlan_tags :: Lens' SavingsPlan (Maybe (HashMap Text Text)) Source #
One or more tags.