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 CurrentInstance = CurrentInstance' {
- resourceId :: Maybe Text
- currencyCode :: Maybe Text
- resourceUtilization :: Maybe ResourceUtilization
- resourceDetails :: Maybe ResourceDetails
- totalRunningHoursInLookbackPeriod :: Maybe Text
- reservationCoveredHoursInLookbackPeriod :: Maybe Text
- onDemandHoursInLookbackPeriod :: Maybe Text
- monthlyCost :: Maybe Text
- instanceName :: Maybe Text
- savingsPlansCoveredHoursInLookbackPeriod :: Maybe Text
- tags :: Maybe [TagValues]
- newCurrentInstance :: CurrentInstance
- currentInstance_resourceId :: Lens' CurrentInstance (Maybe Text)
- currentInstance_currencyCode :: Lens' CurrentInstance (Maybe Text)
- currentInstance_resourceUtilization :: Lens' CurrentInstance (Maybe ResourceUtilization)
- currentInstance_resourceDetails :: Lens' CurrentInstance (Maybe ResourceDetails)
- currentInstance_totalRunningHoursInLookbackPeriod :: Lens' CurrentInstance (Maybe Text)
- currentInstance_reservationCoveredHoursInLookbackPeriod :: Lens' CurrentInstance (Maybe Text)
- currentInstance_onDemandHoursInLookbackPeriod :: Lens' CurrentInstance (Maybe Text)
- currentInstance_monthlyCost :: Lens' CurrentInstance (Maybe Text)
- currentInstance_instanceName :: Lens' CurrentInstance (Maybe Text)
- currentInstance_savingsPlansCoveredHoursInLookbackPeriod :: Lens' CurrentInstance (Maybe Text)
- currentInstance_tags :: Lens' CurrentInstance (Maybe [TagValues])
Documentation
data CurrentInstance Source #
Context about the current instance.
See: newCurrentInstance
smart constructor.
CurrentInstance' | |
|
Instances
newCurrentInstance :: CurrentInstance Source #
Create a value of CurrentInstance
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:resourceId:CurrentInstance'
, currentInstance_resourceId
- Resource ID of the current instance.
$sel:currencyCode:CurrentInstance'
, currentInstance_currencyCode
- The currency code that Amazon Web Services used to calculate the costs
for this instance.
$sel:resourceUtilization:CurrentInstance'
, currentInstance_resourceUtilization
- Utilization information of the current instance during the lookback
period.
$sel:resourceDetails:CurrentInstance'
, currentInstance_resourceDetails
- Details about the resource and utilization.
$sel:totalRunningHoursInLookbackPeriod:CurrentInstance'
, currentInstance_totalRunningHoursInLookbackPeriod
- The total number of hours that the instance ran during the lookback
period.
$sel:reservationCoveredHoursInLookbackPeriod:CurrentInstance'
, currentInstance_reservationCoveredHoursInLookbackPeriod
- The number of hours during the lookback period that's covered by
reservations.
$sel:onDemandHoursInLookbackPeriod:CurrentInstance'
, currentInstance_onDemandHoursInLookbackPeriod
- The number of hours during the lookback period that's billed at
On-Demand rates.
$sel:monthlyCost:CurrentInstance'
, currentInstance_monthlyCost
- The current On-Demand cost of operating this instance on a monthly
basis.
$sel:instanceName:CurrentInstance'
, currentInstance_instanceName
- The name that you given an instance. This field shows as blank if you
haven't given the instance a name.
$sel:savingsPlansCoveredHoursInLookbackPeriod:CurrentInstance'
, currentInstance_savingsPlansCoveredHoursInLookbackPeriod
- The number of hours during the lookback period that's covered by
Savings Plans.
$sel:tags:CurrentInstance'
, currentInstance_tags
- Cost allocation resource tags that are applied to the instance.
currentInstance_resourceId :: Lens' CurrentInstance (Maybe Text) Source #
Resource ID of the current instance.
currentInstance_currencyCode :: Lens' CurrentInstance (Maybe Text) Source #
The currency code that Amazon Web Services used to calculate the costs for this instance.
currentInstance_resourceUtilization :: Lens' CurrentInstance (Maybe ResourceUtilization) Source #
Utilization information of the current instance during the lookback period.
currentInstance_resourceDetails :: Lens' CurrentInstance (Maybe ResourceDetails) Source #
Details about the resource and utilization.
currentInstance_totalRunningHoursInLookbackPeriod :: Lens' CurrentInstance (Maybe Text) Source #
The total number of hours that the instance ran during the lookback period.
currentInstance_reservationCoveredHoursInLookbackPeriod :: Lens' CurrentInstance (Maybe Text) Source #
The number of hours during the lookback period that's covered by reservations.
currentInstance_onDemandHoursInLookbackPeriod :: Lens' CurrentInstance (Maybe Text) Source #
The number of hours during the lookback period that's billed at On-Demand rates.
currentInstance_monthlyCost :: Lens' CurrentInstance (Maybe Text) Source #
The current On-Demand cost of operating this instance on a monthly basis.
currentInstance_instanceName :: Lens' CurrentInstance (Maybe Text) Source #
The name that you given an instance. This field shows as blank if you haven't given the instance a name.
currentInstance_savingsPlansCoveredHoursInLookbackPeriod :: Lens' CurrentInstance (Maybe Text) Source #
The number of hours during the lookback period that's covered by Savings Plans.
currentInstance_tags :: Lens' CurrentInstance (Maybe [TagValues]) Source #
Cost allocation resource tags that are applied to the instance.