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 |
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_defaultValue :: Lens' UpdateCostCategoryDefinition (Maybe Text)
- updateCostCategoryDefinition_effectiveStart :: Lens' UpdateCostCategoryDefinition (Maybe Text)
- updateCostCategoryDefinition_splitChargeRules :: Lens' UpdateCostCategoryDefinition (Maybe (NonEmpty CostCategorySplitChargeRule))
- updateCostCategoryDefinition_costCategoryArn :: Lens' UpdateCostCategoryDefinition Text
- updateCostCategoryDefinition_ruleVersion :: Lens' UpdateCostCategoryDefinition CostCategoryRuleVersion
- updateCostCategoryDefinition_rules :: Lens' UpdateCostCategoryDefinition (NonEmpty CostCategoryRule)
- data UpdateCostCategoryDefinitionResponse = UpdateCostCategoryDefinitionResponse' {}
- newUpdateCostCategoryDefinitionResponse :: Int -> UpdateCostCategoryDefinitionResponse
- updateCostCategoryDefinitionResponse_costCategoryArn :: Lens' UpdateCostCategoryDefinitionResponse (Maybe Text)
- updateCostCategoryDefinitionResponse_effectiveStart :: Lens' UpdateCostCategoryDefinitionResponse (Maybe Text)
- updateCostCategoryDefinitionResponse_httpStatus :: Lens' UpdateCostCategoryDefinitionResponse Int
Creating a Request
data UpdateCostCategoryDefinition Source #
See: newUpdateCostCategoryDefinition
smart constructor.
UpdateCostCategoryDefinition' | |
|
Instances
newUpdateCostCategoryDefinition Source #
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:
UpdateCostCategoryDefinition
, updateCostCategoryDefinition_defaultValue
- Undocumented member.
UpdateCostCategoryDefinition
, updateCostCategoryDefinition_effectiveStart
- The Cost Category's effective start date. It can only be a billing
start date (first day of the month). If the date isn't provided, it's
the first day of the current month. Dates can't be before the previous
twelve months, or in the future.
UpdateCostCategoryDefinition
, updateCostCategoryDefinition_splitChargeRules
- The split charge rules used to allocate your charges between your Cost
Category values.
UpdateCostCategoryDefinition
, updateCostCategoryDefinition_costCategoryArn
- The unique identifier for your Cost Category.
UpdateCostCategoryDefinition
, updateCostCategoryDefinition_ruleVersion
- Undocumented member.
UpdateCostCategoryDefinition
, updateCostCategoryDefinition_rules
- The Expression
object used to categorize costs. For more information,
see
CostCategoryRule
.
Request Lenses
updateCostCategoryDefinition_defaultValue :: Lens' UpdateCostCategoryDefinition (Maybe Text) Source #
Undocumented member.
updateCostCategoryDefinition_effectiveStart :: Lens' UpdateCostCategoryDefinition (Maybe Text) Source #
The Cost Category's effective start date. It can only be a billing start date (first day of the month). If the date isn't provided, it's the first day of the current month. Dates can't be before the previous twelve months, or in the future.
updateCostCategoryDefinition_splitChargeRules :: Lens' UpdateCostCategoryDefinition (Maybe (NonEmpty CostCategorySplitChargeRule)) Source #
The split charge rules used to allocate your charges between your Cost Category values.
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.
UpdateCostCategoryDefinitionResponse' | |
|
Instances
newUpdateCostCategoryDefinitionResponse Source #
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:
UpdateCostCategoryDefinition
, updateCostCategoryDefinitionResponse_costCategoryArn
- The unique identifier for your Cost Category.
UpdateCostCategoryDefinition
, updateCostCategoryDefinitionResponse_effectiveStart
- The Cost Category's effective start date. It can only be a billing
start date (first day of the month).
$sel:httpStatus:UpdateCostCategoryDefinitionResponse'
, updateCostCategoryDefinitionResponse_httpStatus
- The response's http status code.
Response Lenses
updateCostCategoryDefinitionResponse_costCategoryArn :: Lens' UpdateCostCategoryDefinitionResponse (Maybe Text) Source #
The unique identifier for your Cost Category.
updateCostCategoryDefinitionResponse_effectiveStart :: Lens' UpdateCostCategoryDefinitionResponse (Maybe Text) Source #
The Cost Category's effective start date. It can only be a billing start date (first day of the month).
updateCostCategoryDefinitionResponse_httpStatus :: Lens' UpdateCostCategoryDefinitionResponse Int Source #
The response's http status code.