| 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.CostExplorer.Types.CurrentInstance
Description
Synopsis
- data CurrentInstance = CurrentInstance' {
- currencyCode :: Maybe Text
- instanceName :: Maybe Text
- monthlyCost :: Maybe Text
- onDemandHoursInLookbackPeriod :: Maybe Text
- reservationCoveredHoursInLookbackPeriod :: Maybe Text
- resourceDetails :: Maybe ResourceDetails
- resourceId :: Maybe Text
- resourceUtilization :: Maybe ResourceUtilization
- savingsPlansCoveredHoursInLookbackPeriod :: Maybe Text
- tags :: Maybe [TagValues]
- totalRunningHoursInLookbackPeriod :: Maybe Text
- newCurrentInstance :: CurrentInstance
- currentInstance_currencyCode :: Lens' CurrentInstance (Maybe Text)
- currentInstance_instanceName :: Lens' CurrentInstance (Maybe Text)
- currentInstance_monthlyCost :: Lens' CurrentInstance (Maybe Text)
- currentInstance_onDemandHoursInLookbackPeriod :: Lens' CurrentInstance (Maybe Text)
- currentInstance_reservationCoveredHoursInLookbackPeriod :: Lens' CurrentInstance (Maybe Text)
- currentInstance_resourceDetails :: Lens' CurrentInstance (Maybe ResourceDetails)
- currentInstance_resourceId :: Lens' CurrentInstance (Maybe Text)
- currentInstance_resourceUtilization :: Lens' CurrentInstance (Maybe ResourceUtilization)
- currentInstance_savingsPlansCoveredHoursInLookbackPeriod :: Lens' CurrentInstance (Maybe Text)
- currentInstance_tags :: Lens' CurrentInstance (Maybe [TagValues])
- currentInstance_totalRunningHoursInLookbackPeriod :: Lens' CurrentInstance (Maybe Text)
Documentation
data CurrentInstance Source #
Context about the current instance.
See: newCurrentInstance smart constructor.
Constructors
| CurrentInstance' | |
Fields
| |
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:currencyCode:CurrentInstance', currentInstance_currencyCode - The currency code that Amazon Web Services used to calculate the costs
for this instance.
$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:monthlyCost:CurrentInstance', currentInstance_monthlyCost - The current On-Demand cost of operating this instance on a monthly
basis.
$sel:onDemandHoursInLookbackPeriod:CurrentInstance', currentInstance_onDemandHoursInLookbackPeriod - The number of hours during the lookback period that's billed at
On-Demand rates.
$sel:reservationCoveredHoursInLookbackPeriod:CurrentInstance', currentInstance_reservationCoveredHoursInLookbackPeriod - The number of hours during the lookback period that's covered by
reservations.
$sel:resourceDetails:CurrentInstance', currentInstance_resourceDetails - Details about the resource and utilization.
$sel:resourceId:CurrentInstance', currentInstance_resourceId - Resource ID of the current instance.
$sel:resourceUtilization:CurrentInstance', currentInstance_resourceUtilization - Utilization information of the current instance during the lookback
period.
$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.
$sel:totalRunningHoursInLookbackPeriod:CurrentInstance', currentInstance_totalRunningHoursInLookbackPeriod - The total number of hours that the instance ran during the lookback
period.
currentInstance_currencyCode :: Lens' CurrentInstance (Maybe Text) Source #
The currency code that Amazon Web Services used to calculate the costs for this instance.
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_monthlyCost :: Lens' CurrentInstance (Maybe Text) Source #
The current On-Demand cost of operating this instance on a monthly basis.
currentInstance_onDemandHoursInLookbackPeriod :: Lens' CurrentInstance (Maybe Text) Source #
The number of hours during the lookback period that's billed at On-Demand rates.
currentInstance_reservationCoveredHoursInLookbackPeriod :: Lens' CurrentInstance (Maybe Text) Source #
The number of hours during the lookback period that's covered by reservations.
currentInstance_resourceDetails :: Lens' CurrentInstance (Maybe ResourceDetails) Source #
Details about the resource and utilization.
currentInstance_resourceId :: Lens' CurrentInstance (Maybe Text) Source #
Resource ID of the current instance.
currentInstance_resourceUtilization :: Lens' CurrentInstance (Maybe ResourceUtilization) Source #
Utilization information of the current instance during the lookback period.
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.
currentInstance_totalRunningHoursInLookbackPeriod :: Lens' CurrentInstance (Maybe Text) Source #
The total number of hours that the instance ran during the lookback period.