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