| 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.DescribeCostCategoryDefinition
Description
Returns the name, Amazon Resource Name (ARN), rules, definition, and effective dates of a Cost Category that's defined in the account.
You have the option to use EffectiveOn to return a Cost Category
that's active on a specific date. If there's no EffectiveOn
specified, you see a Cost Category that's effective on the current
date. If Cost Category is still effective, EffectiveEnd is omitted in
the response.
Synopsis
- data DescribeCostCategoryDefinition = DescribeCostCategoryDefinition' {}
- newDescribeCostCategoryDefinition :: Text -> DescribeCostCategoryDefinition
- describeCostCategoryDefinition_effectiveOn :: Lens' DescribeCostCategoryDefinition (Maybe Text)
- describeCostCategoryDefinition_costCategoryArn :: Lens' DescribeCostCategoryDefinition Text
- data DescribeCostCategoryDefinitionResponse = DescribeCostCategoryDefinitionResponse' {}
- newDescribeCostCategoryDefinitionResponse :: Int -> DescribeCostCategoryDefinitionResponse
- describeCostCategoryDefinitionResponse_costCategory :: Lens' DescribeCostCategoryDefinitionResponse (Maybe CostCategory)
- describeCostCategoryDefinitionResponse_httpStatus :: Lens' DescribeCostCategoryDefinitionResponse Int
Creating a Request
data DescribeCostCategoryDefinition Source #
See: newDescribeCostCategoryDefinition smart constructor.
Constructors
| DescribeCostCategoryDefinition' | |
Fields
| |
Instances
newDescribeCostCategoryDefinition Source #
Create a value of DescribeCostCategoryDefinition 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:effectiveOn:DescribeCostCategoryDefinition', describeCostCategoryDefinition_effectiveOn - The date when the Cost Category was effective.
DescribeCostCategoryDefinition, describeCostCategoryDefinition_costCategoryArn - The unique identifier for your Cost Category.
Request Lenses
describeCostCategoryDefinition_effectiveOn :: Lens' DescribeCostCategoryDefinition (Maybe Text) Source #
The date when the Cost Category was effective.
describeCostCategoryDefinition_costCategoryArn :: Lens' DescribeCostCategoryDefinition Text Source #
The unique identifier for your Cost Category.
Destructuring the Response
data DescribeCostCategoryDefinitionResponse Source #
See: newDescribeCostCategoryDefinitionResponse smart constructor.
Constructors
| DescribeCostCategoryDefinitionResponse' | |
Fields
| |
Instances
newDescribeCostCategoryDefinitionResponse Source #
Arguments
| :: Int | |
| -> DescribeCostCategoryDefinitionResponse |
Create a value of DescribeCostCategoryDefinitionResponse 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:costCategory:DescribeCostCategoryDefinitionResponse', describeCostCategoryDefinitionResponse_costCategory - Undocumented member.
$sel:httpStatus:DescribeCostCategoryDefinitionResponse', describeCostCategoryDefinitionResponse_httpStatus - The response's http status code.
Response Lenses
describeCostCategoryDefinitionResponse_costCategory :: Lens' DescribeCostCategoryDefinitionResponse (Maybe CostCategory) Source #
Undocumented member.
describeCostCategoryDefinitionResponse_httpStatus :: Lens' DescribeCostCategoryDefinitionResponse Int Source #
The response's http status code.