| 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.CreateCostCategoryDefinition
Description
Creates a new Cost Category with the requested name and rules.
Synopsis
- data CreateCostCategoryDefinition = CreateCostCategoryDefinition' {}
- newCreateCostCategoryDefinition :: Text -> CostCategoryRuleVersion -> NonEmpty CostCategoryRule -> CreateCostCategoryDefinition
- createCostCategoryDefinition_splitChargeRules :: Lens' CreateCostCategoryDefinition (Maybe (NonEmpty CostCategorySplitChargeRule))
- createCostCategoryDefinition_defaultValue :: Lens' CreateCostCategoryDefinition (Maybe Text)
- createCostCategoryDefinition_name :: Lens' CreateCostCategoryDefinition Text
- createCostCategoryDefinition_ruleVersion :: Lens' CreateCostCategoryDefinition CostCategoryRuleVersion
- createCostCategoryDefinition_rules :: Lens' CreateCostCategoryDefinition (NonEmpty CostCategoryRule)
- data CreateCostCategoryDefinitionResponse = CreateCostCategoryDefinitionResponse' {}
- newCreateCostCategoryDefinitionResponse :: Int -> CreateCostCategoryDefinitionResponse
- createCostCategoryDefinitionResponse_effectiveStart :: Lens' CreateCostCategoryDefinitionResponse (Maybe Text)
- createCostCategoryDefinitionResponse_costCategoryArn :: Lens' CreateCostCategoryDefinitionResponse (Maybe Text)
- createCostCategoryDefinitionResponse_httpStatus :: Lens' CreateCostCategoryDefinitionResponse Int
Creating a Request
data CreateCostCategoryDefinition Source #
See: newCreateCostCategoryDefinition smart constructor.
Constructors
| CreateCostCategoryDefinition' | |
Fields
| |
Instances
newCreateCostCategoryDefinition Source #
Arguments
| :: Text | |
| -> CostCategoryRuleVersion | |
| -> NonEmpty CostCategoryRule | |
| -> CreateCostCategoryDefinition |
Create a value of CreateCostCategoryDefinition 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:CreateCostCategoryDefinition', createCostCategoryDefinition_splitChargeRules - The split charge rules used to allocate your charges between your Cost
Category values.
$sel:defaultValue:CreateCostCategoryDefinition', createCostCategoryDefinition_defaultValue - Undocumented member.
$sel:name:CreateCostCategoryDefinition', createCostCategoryDefinition_name - Undocumented member.
$sel:ruleVersion:CreateCostCategoryDefinition', createCostCategoryDefinition_ruleVersion - Undocumented member.
$sel:rules:CreateCostCategoryDefinition', createCostCategoryDefinition_rules - The Cost Category rules used to categorize costs. For more information,
see
CostCategoryRule.
Request Lenses
createCostCategoryDefinition_splitChargeRules :: Lens' CreateCostCategoryDefinition (Maybe (NonEmpty CostCategorySplitChargeRule)) Source #
The split charge rules used to allocate your charges between your Cost Category values.
createCostCategoryDefinition_defaultValue :: Lens' CreateCostCategoryDefinition (Maybe Text) Source #
Undocumented member.
createCostCategoryDefinition_name :: Lens' CreateCostCategoryDefinition Text Source #
Undocumented member.
createCostCategoryDefinition_ruleVersion :: Lens' CreateCostCategoryDefinition CostCategoryRuleVersion Source #
Undocumented member.
createCostCategoryDefinition_rules :: Lens' CreateCostCategoryDefinition (NonEmpty CostCategoryRule) Source #
The Cost Category rules used to categorize costs. For more information, see CostCategoryRule.
Destructuring the Response
data CreateCostCategoryDefinitionResponse Source #
See: newCreateCostCategoryDefinitionResponse smart constructor.
Constructors
| CreateCostCategoryDefinitionResponse' | |
Fields
| |
Instances
newCreateCostCategoryDefinitionResponse Source #
Arguments
| :: Int | |
| -> CreateCostCategoryDefinitionResponse |
Create a value of CreateCostCategoryDefinitionResponse 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:CreateCostCategoryDefinitionResponse', createCostCategoryDefinitionResponse_effectiveStart - The Cost Category's effective start date.
$sel:costCategoryArn:CreateCostCategoryDefinitionResponse', createCostCategoryDefinitionResponse_costCategoryArn - The unique identifier for your newly created Cost Category.
$sel:httpStatus:CreateCostCategoryDefinitionResponse', createCostCategoryDefinitionResponse_httpStatus - The response's http status code.
Response Lenses
createCostCategoryDefinitionResponse_effectiveStart :: Lens' CreateCostCategoryDefinitionResponse (Maybe Text) Source #
The Cost Category's effective start date.
createCostCategoryDefinitionResponse_costCategoryArn :: Lens' CreateCostCategoryDefinitionResponse (Maybe Text) Source #
The unique identifier for your newly created Cost Category.
createCostCategoryDefinitionResponse_httpStatus :: Lens' CreateCostCategoryDefinitionResponse Int Source #
The response's http status code.