| 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 |
Amazonka.CostExplorer.UpdateCostCategoryDefinition
Description
Updates an existing Cost Category. Changes made to the Cost Category rules will be used to categorize the current month’s expenses and future expenses. This won’t change categorization for the previous months.
Synopsis
- data UpdateCostCategoryDefinition = UpdateCostCategoryDefinition' {}
- newUpdateCostCategoryDefinition :: Text -> CostCategoryRuleVersion -> NonEmpty CostCategoryRule -> UpdateCostCategoryDefinition
- updateCostCategoryDefinition_splitChargeRules :: Lens' UpdateCostCategoryDefinition (Maybe (NonEmpty CostCategorySplitChargeRule))
- updateCostCategoryDefinition_defaultValue :: Lens' UpdateCostCategoryDefinition (Maybe Text)
- updateCostCategoryDefinition_costCategoryArn :: Lens' UpdateCostCategoryDefinition Text
- updateCostCategoryDefinition_ruleVersion :: Lens' UpdateCostCategoryDefinition CostCategoryRuleVersion
- updateCostCategoryDefinition_rules :: Lens' UpdateCostCategoryDefinition (NonEmpty CostCategoryRule)
- data UpdateCostCategoryDefinitionResponse = UpdateCostCategoryDefinitionResponse' {}
- newUpdateCostCategoryDefinitionResponse :: Int -> UpdateCostCategoryDefinitionResponse
- updateCostCategoryDefinitionResponse_effectiveStart :: Lens' UpdateCostCategoryDefinitionResponse (Maybe Text)
- updateCostCategoryDefinitionResponse_costCategoryArn :: Lens' UpdateCostCategoryDefinitionResponse (Maybe Text)
- updateCostCategoryDefinitionResponse_httpStatus :: Lens' UpdateCostCategoryDefinitionResponse Int
Creating a Request
data UpdateCostCategoryDefinition Source #
See: newUpdateCostCategoryDefinition smart constructor.
Constructors
| UpdateCostCategoryDefinition' | |
Fields
| |
Instances
newUpdateCostCategoryDefinition Source #
Arguments
| :: Text | |
| -> CostCategoryRuleVersion | |
| -> NonEmpty CostCategoryRule | |
| -> UpdateCostCategoryDefinition |
Create a value of UpdateCostCategoryDefinition 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:splitChargeRules:UpdateCostCategoryDefinition', updateCostCategoryDefinition_splitChargeRules - The split charge rules used to allocate your charges between your Cost
Category values.
$sel:defaultValue:UpdateCostCategoryDefinition', updateCostCategoryDefinition_defaultValue - Undocumented member.
$sel:costCategoryArn:UpdateCostCategoryDefinition', updateCostCategoryDefinition_costCategoryArn - The unique identifier for your Cost Category.
$sel:ruleVersion:UpdateCostCategoryDefinition', updateCostCategoryDefinition_ruleVersion - Undocumented member.
$sel:rules:UpdateCostCategoryDefinition', updateCostCategoryDefinition_rules - The Expression object used to categorize costs. For more information,
see
CostCategoryRule
.
Request Lenses
updateCostCategoryDefinition_splitChargeRules :: Lens' UpdateCostCategoryDefinition (Maybe (NonEmpty CostCategorySplitChargeRule)) Source #
The split charge rules used to allocate your charges between your Cost Category values.
updateCostCategoryDefinition_defaultValue :: Lens' UpdateCostCategoryDefinition (Maybe Text) Source #
Undocumented member.
updateCostCategoryDefinition_costCategoryArn :: Lens' UpdateCostCategoryDefinition Text Source #
The unique identifier for your Cost Category.
updateCostCategoryDefinition_ruleVersion :: Lens' UpdateCostCategoryDefinition CostCategoryRuleVersion Source #
Undocumented member.
updateCostCategoryDefinition_rules :: Lens' UpdateCostCategoryDefinition (NonEmpty CostCategoryRule) Source #
The Expression object used to categorize costs. For more information,
see
CostCategoryRule
.
Destructuring the Response
data UpdateCostCategoryDefinitionResponse Source #
See: newUpdateCostCategoryDefinitionResponse smart constructor.
Constructors
| UpdateCostCategoryDefinitionResponse' | |
Fields
| |
Instances
newUpdateCostCategoryDefinitionResponse Source #
Arguments
| :: Int | |
| -> UpdateCostCategoryDefinitionResponse |
Create a value of UpdateCostCategoryDefinitionResponse 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:effectiveStart:UpdateCostCategoryDefinitionResponse', updateCostCategoryDefinitionResponse_effectiveStart - The Cost Category's effective start date.
$sel:costCategoryArn:UpdateCostCategoryDefinition', updateCostCategoryDefinitionResponse_costCategoryArn - The unique identifier for your Cost Category.
$sel:httpStatus:UpdateCostCategoryDefinitionResponse', updateCostCategoryDefinitionResponse_httpStatus - The response's http status code.
Response Lenses
updateCostCategoryDefinitionResponse_effectiveStart :: Lens' UpdateCostCategoryDefinitionResponse (Maybe Text) Source #
The Cost Category's effective start date.
updateCostCategoryDefinitionResponse_costCategoryArn :: Lens' UpdateCostCategoryDefinitionResponse (Maybe Text) Source #
The unique identifier for your Cost Category.
updateCostCategoryDefinitionResponse_httpStatus :: Lens' UpdateCostCategoryDefinitionResponse Int Source #
The response's http status code.