amazonka-cost-explorer-2.0: Amazon Cost Explorer Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CostExplorer.CreateCostCategoryDefinition

Description

Creates a new Cost Category with the requested name and rules.

Synopsis

Creating a Request

data CreateCostCategoryDefinition Source #

See: newCreateCostCategoryDefinition smart constructor.

Constructors

CreateCostCategoryDefinition' 

Fields

  • defaultValue :: Maybe Text
     
  • effectiveStart :: Maybe Text

    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.

  • resourceTags :: Maybe [ResourceTag]

    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
  • splitChargeRules :: Maybe (NonEmpty CostCategorySplitChargeRule)

    The split charge rules used to allocate your charges between your Cost Category values.

  • name :: Text
     
  • ruleVersion :: CostCategoryRuleVersion
     
  • rules :: NonEmpty CostCategoryRule

    The Cost Category rules used to categorize costs. For more information, see CostCategoryRule.

Instances

Instances details
ToJSON CreateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

ToHeaders CreateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

ToPath CreateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

ToQuery CreateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

AWSRequest CreateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

Generic CreateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

Associated Types

type Rep CreateCostCategoryDefinition :: Type -> Type #

Read CreateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

Show CreateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

NFData CreateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

Eq CreateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

Hashable CreateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

type AWSResponse CreateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

type Rep CreateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

type Rep CreateCostCategoryDefinition = D1 ('MetaData "CreateCostCategoryDefinition" "Amazonka.CostExplorer.CreateCostCategoryDefinition" "amazonka-cost-explorer-2.0-QqVzyVvst98QYs5s2Ea4h" 'False) (C1 ('MetaCons "CreateCostCategoryDefinition'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "defaultValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "effectiveStart") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "resourceTags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ResourceTag])))) :*: ((S1 ('MetaSel ('Just "splitChargeRules") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty CostCategorySplitChargeRule))) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "ruleVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CostCategoryRuleVersion) :*: S1 ('MetaSel ('Just "rules") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty CostCategoryRule))))))

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_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_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 #

Constructors

CreateCostCategoryDefinitionResponse' 

Fields

Instances

Instances details
Generic CreateCostCategoryDefinitionResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

Read CreateCostCategoryDefinitionResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

Show CreateCostCategoryDefinitionResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

NFData CreateCostCategoryDefinitionResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

Eq CreateCostCategoryDefinitionResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

type Rep CreateCostCategoryDefinitionResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

type Rep CreateCostCategoryDefinitionResponse = D1 ('MetaData "CreateCostCategoryDefinitionResponse" "Amazonka.CostExplorer.CreateCostCategoryDefinition" "amazonka-cost-explorer-2.0-QqVzyVvst98QYs5s2Ea4h" 'False) (C1 ('MetaCons "CreateCostCategoryDefinitionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "costCategoryArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "effectiveStart") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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_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).