amazonka-billingconductor-2.0: Amazon BillingConductor 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.BillingConductor.CreateCustomLineItem

Description

Creates a custom line item that can be used to create a one-time fixed charge that can be applied to a single billing group for the current or previous billing period. The one-time fixed charge is either a fee or discount.

Synopsis

Creating a Request

data CreateCustomLineItem Source #

See: newCreateCustomLineItem smart constructor.

Constructors

CreateCustomLineItem' 

Fields

Instances

Instances details
ToJSON CreateCustomLineItem Source # 
Instance details

Defined in Amazonka.BillingConductor.CreateCustomLineItem

ToHeaders CreateCustomLineItem Source # 
Instance details

Defined in Amazonka.BillingConductor.CreateCustomLineItem

ToPath CreateCustomLineItem Source # 
Instance details

Defined in Amazonka.BillingConductor.CreateCustomLineItem

ToQuery CreateCustomLineItem Source # 
Instance details

Defined in Amazonka.BillingConductor.CreateCustomLineItem

AWSRequest CreateCustomLineItem Source # 
Instance details

Defined in Amazonka.BillingConductor.CreateCustomLineItem

Associated Types

type AWSResponse CreateCustomLineItem #

Generic CreateCustomLineItem Source # 
Instance details

Defined in Amazonka.BillingConductor.CreateCustomLineItem

Associated Types

type Rep CreateCustomLineItem :: Type -> Type #

Show CreateCustomLineItem Source # 
Instance details

Defined in Amazonka.BillingConductor.CreateCustomLineItem

NFData CreateCustomLineItem Source # 
Instance details

Defined in Amazonka.BillingConductor.CreateCustomLineItem

Methods

rnf :: CreateCustomLineItem -> () #

Eq CreateCustomLineItem Source # 
Instance details

Defined in Amazonka.BillingConductor.CreateCustomLineItem

Hashable CreateCustomLineItem Source # 
Instance details

Defined in Amazonka.BillingConductor.CreateCustomLineItem

type AWSResponse CreateCustomLineItem Source # 
Instance details

Defined in Amazonka.BillingConductor.CreateCustomLineItem

type Rep CreateCustomLineItem Source # 
Instance details

Defined in Amazonka.BillingConductor.CreateCustomLineItem

newCreateCustomLineItem Source #

Create a value of CreateCustomLineItem 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:

CreateCustomLineItem, createCustomLineItem_billingPeriodRange - A time range for which the custom line item is effective.

$sel:clientToken:CreateCustomLineItem', createCustomLineItem_clientToken - The token that is needed to support idempotency. Idempotency isn't currently supported, but will be implemented in a future update.

$sel:tags:CreateCustomLineItem', createCustomLineItem_tags - A map that contains tag keys and tag values that are attached to a custom line item.

CreateCustomLineItem, createCustomLineItem_name - The name of the custom line item.

CreateCustomLineItem, createCustomLineItem_description - The description of the custom line item. This is shown on the Bills page in association with the charge value.

CreateCustomLineItem, createCustomLineItem_billingGroupArn - The Amazon Resource Name (ARN) that references the billing group where the custom line item applies to.

CreateCustomLineItem, createCustomLineItem_chargeDetails - A CustomLineItemChargeDetails that describes the charge details for a custom line item.

Request Lenses

createCustomLineItem_clientToken :: Lens' CreateCustomLineItem (Maybe Text) Source #

The token that is needed to support idempotency. Idempotency isn't currently supported, but will be implemented in a future update.

createCustomLineItem_tags :: Lens' CreateCustomLineItem (Maybe (HashMap Text Text)) Source #

A map that contains tag keys and tag values that are attached to a custom line item.

createCustomLineItem_name :: Lens' CreateCustomLineItem Text Source #

The name of the custom line item.

createCustomLineItem_description :: Lens' CreateCustomLineItem Text Source #

The description of the custom line item. This is shown on the Bills page in association with the charge value.

createCustomLineItem_billingGroupArn :: Lens' CreateCustomLineItem Text Source #

The Amazon Resource Name (ARN) that references the billing group where the custom line item applies to.

createCustomLineItem_chargeDetails :: Lens' CreateCustomLineItem CustomLineItemChargeDetails Source #

A CustomLineItemChargeDetails that describes the charge details for a custom line item.

Destructuring the Response

data CreateCustomLineItemResponse Source #

See: newCreateCustomLineItemResponse smart constructor.

Constructors

CreateCustomLineItemResponse' 

Fields

  • arn :: Maybe Text

    The Amazon Resource Name (ARN) of the created custom line item.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic CreateCustomLineItemResponse Source # 
Instance details

Defined in Amazonka.BillingConductor.CreateCustomLineItem

Associated Types

type Rep CreateCustomLineItemResponse :: Type -> Type #

Read CreateCustomLineItemResponse Source # 
Instance details

Defined in Amazonka.BillingConductor.CreateCustomLineItem

Show CreateCustomLineItemResponse Source # 
Instance details

Defined in Amazonka.BillingConductor.CreateCustomLineItem

NFData CreateCustomLineItemResponse Source # 
Instance details

Defined in Amazonka.BillingConductor.CreateCustomLineItem

Eq CreateCustomLineItemResponse Source # 
Instance details

Defined in Amazonka.BillingConductor.CreateCustomLineItem

type Rep CreateCustomLineItemResponse Source # 
Instance details

Defined in Amazonka.BillingConductor.CreateCustomLineItem

type Rep CreateCustomLineItemResponse = D1 ('MetaData "CreateCustomLineItemResponse" "Amazonka.BillingConductor.CreateCustomLineItem" "amazonka-billingconductor-2.0-1YoxVi69FkN1Nj28JbXXJ5" 'False) (C1 ('MetaCons "CreateCustomLineItemResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateCustomLineItemResponse Source #

Create a value of CreateCustomLineItemResponse 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:

CreateCustomLineItemResponse, createCustomLineItemResponse_arn - The Amazon Resource Name (ARN) of the created custom line item.

$sel:httpStatus:CreateCustomLineItemResponse', createCustomLineItemResponse_httpStatus - The response's http status code.

Response Lenses

createCustomLineItemResponse_arn :: Lens' CreateCustomLineItemResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the created custom line item.