| 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 |
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
- data CreateCustomLineItem = CreateCustomLineItem' {}
- newCreateCustomLineItem :: Text -> Text -> Text -> CustomLineItemChargeDetails -> CreateCustomLineItem
- createCustomLineItem_billingPeriodRange :: Lens' CreateCustomLineItem (Maybe CustomLineItemBillingPeriodRange)
- createCustomLineItem_clientToken :: Lens' CreateCustomLineItem (Maybe Text)
- createCustomLineItem_tags :: Lens' CreateCustomLineItem (Maybe (HashMap Text Text))
- createCustomLineItem_name :: Lens' CreateCustomLineItem Text
- createCustomLineItem_description :: Lens' CreateCustomLineItem Text
- createCustomLineItem_billingGroupArn :: Lens' CreateCustomLineItem Text
- createCustomLineItem_chargeDetails :: Lens' CreateCustomLineItem CustomLineItemChargeDetails
- data CreateCustomLineItemResponse = CreateCustomLineItemResponse' {
- arn :: Maybe Text
- httpStatus :: Int
- newCreateCustomLineItemResponse :: Int -> CreateCustomLineItemResponse
- createCustomLineItemResponse_arn :: Lens' CreateCustomLineItemResponse (Maybe Text)
- createCustomLineItemResponse_httpStatus :: Lens' CreateCustomLineItemResponse Int
Creating a Request
data CreateCustomLineItem Source #
See: newCreateCustomLineItem smart constructor.
Constructors
| CreateCustomLineItem' | |
Fields
| |
Instances
newCreateCustomLineItem Source #
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> CustomLineItemChargeDetails | |
| -> CreateCustomLineItem |
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_billingPeriodRange :: Lens' CreateCustomLineItem (Maybe CustomLineItemBillingPeriodRange) Source #
A time range for which the custom line item is effective.
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
| |
Instances
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.
createCustomLineItemResponse_httpStatus :: Lens' CreateCustomLineItemResponse Int Source #
The response's http status code.