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 |
Creates a new Cost Category with the requested name and rules.
Synopsis
- data CreateCostCategoryDefinition = CreateCostCategoryDefinition' {}
- newCreateCostCategoryDefinition :: Text -> CostCategoryRuleVersion -> NonEmpty CostCategoryRule -> CreateCostCategoryDefinition
- createCostCategoryDefinition_defaultValue :: Lens' CreateCostCategoryDefinition (Maybe Text)
- createCostCategoryDefinition_effectiveStart :: Lens' CreateCostCategoryDefinition (Maybe Text)
- createCostCategoryDefinition_resourceTags :: Lens' CreateCostCategoryDefinition (Maybe [ResourceTag])
- createCostCategoryDefinition_splitChargeRules :: Lens' CreateCostCategoryDefinition (Maybe (NonEmpty CostCategorySplitChargeRule))
- createCostCategoryDefinition_name :: Lens' CreateCostCategoryDefinition Text
- createCostCategoryDefinition_ruleVersion :: Lens' CreateCostCategoryDefinition CostCategoryRuleVersion
- createCostCategoryDefinition_rules :: Lens' CreateCostCategoryDefinition (NonEmpty CostCategoryRule)
- data CreateCostCategoryDefinitionResponse = CreateCostCategoryDefinitionResponse' {}
- newCreateCostCategoryDefinitionResponse :: Int -> CreateCostCategoryDefinitionResponse
- createCostCategoryDefinitionResponse_costCategoryArn :: Lens' CreateCostCategoryDefinitionResponse (Maybe Text)
- createCostCategoryDefinitionResponse_effectiveStart :: Lens' CreateCostCategoryDefinitionResponse (Maybe Text)
- createCostCategoryDefinitionResponse_httpStatus :: Lens' CreateCostCategoryDefinitionResponse Int
Creating a Request
data CreateCostCategoryDefinition Source #
See: newCreateCostCategoryDefinition
smart constructor.
CreateCostCategoryDefinition' | |
|
Instances
newCreateCostCategoryDefinition Source #
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:
CreateCostCategoryDefinition
, createCostCategoryDefinition_defaultValue
- Undocumented member.
CreateCostCategoryDefinition
, createCostCategoryDefinition_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.
$sel:resourceTags:CreateCostCategoryDefinition'
, createCostCategoryDefinition_resourceTags
- An optional list of tags to associate with the specified
CostCategory
. You can use resource tags to control access to your cost category
using IAM policies.
Each tag consists of a key and a value, and each key must be unique for the resource. The following restrictions apply to resource tags:
- Although the maximum number of array members is 200, you can assign a maximum of 50 user-tags to one resource. The remaining are reserved for Amazon Web Services use
- The maximum length of a key is 128 characters
- The maximum length of a value is 256 characters
- Keys and values can only contain alphanumeric characters, spaces,
and any of the following:
_.:/=+@-
- Keys and values are case sensitive
- Keys and values are trimmed for any leading or trailing whitespaces
- Don’t use
aws:
as a prefix for your keys. This prefix is reserved for Amazon Web Services use
CreateCostCategoryDefinition
, createCostCategoryDefinition_splitChargeRules
- The split charge rules used to allocate your charges between your Cost
Category values.
CreateCostCategoryDefinition
, createCostCategoryDefinition_name
- Undocumented member.
CreateCostCategoryDefinition
, createCostCategoryDefinition_ruleVersion
- Undocumented member.
CreateCostCategoryDefinition
, createCostCategoryDefinition_rules
- The Cost Category rules used to categorize costs. For more information,
see
CostCategoryRule.
Request Lenses
createCostCategoryDefinition_defaultValue :: Lens' CreateCostCategoryDefinition (Maybe Text) Source #
Undocumented member.
createCostCategoryDefinition_effectiveStart :: Lens' CreateCostCategoryDefinition (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.
createCostCategoryDefinition_resourceTags :: Lens' CreateCostCategoryDefinition (Maybe [ResourceTag]) Source #
An optional list of tags to associate with the specified
CostCategory
. You can use resource tags to control access to your cost category
using IAM policies.
Each tag consists of a key and a value, and each key must be unique for the resource. The following restrictions apply to resource tags:
- Although the maximum number of array members is 200, you can assign a maximum of 50 user-tags to one resource. The remaining are reserved for Amazon Web Services use
- The maximum length of a key is 128 characters
- The maximum length of a value is 256 characters
- Keys and values can only contain alphanumeric characters, spaces,
and any of the following:
_.:/=+@-
- Keys and values are case sensitive
- Keys and values are trimmed for any leading or trailing whitespaces
- Don’t use
aws:
as a prefix for your keys. This prefix is reserved for Amazon Web Services use
createCostCategoryDefinition_splitChargeRules :: Lens' CreateCostCategoryDefinition (Maybe (NonEmpty CostCategorySplitChargeRule)) Source #
The split charge rules used to allocate your charges between your Cost Category values.
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.
CreateCostCategoryDefinitionResponse' | |
|
Instances
newCreateCostCategoryDefinitionResponse Source #
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:
CreateCostCategoryDefinitionResponse
, createCostCategoryDefinitionResponse_costCategoryArn
- The unique identifier for your newly created Cost Category.
CreateCostCategoryDefinition
, createCostCategoryDefinitionResponse_effectiveStart
- The Cost Category's effective start date. It can only be a billing
start date (first day of the month).
$sel:httpStatus:CreateCostCategoryDefinitionResponse'
, createCostCategoryDefinitionResponse_httpStatus
- The response's http status code.
Response Lenses
createCostCategoryDefinitionResponse_costCategoryArn :: Lens' CreateCostCategoryDefinitionResponse (Maybe Text) Source #
The unique identifier for your newly created Cost Category.
createCostCategoryDefinitionResponse_effectiveStart :: Lens' CreateCostCategoryDefinitionResponse (Maybe Text) Source #
The Cost Category's effective start date. It can only be a billing start date (first day of the month).
createCostCategoryDefinitionResponse_httpStatus :: Lens' CreateCostCategoryDefinitionResponse Int Source #
The response's http status code.