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.CreatePricingPlan
Description
Creates a pricing plan that is used for computing Amazon Web Services charges for billing groups.
Synopsis
- data CreatePricingPlan = CreatePricingPlan' {}
- newCreatePricingPlan :: Text -> CreatePricingPlan
- createPricingPlan_clientToken :: Lens' CreatePricingPlan (Maybe Text)
- createPricingPlan_description :: Lens' CreatePricingPlan (Maybe Text)
- createPricingPlan_pricingRuleArns :: Lens' CreatePricingPlan (Maybe [Text])
- createPricingPlan_tags :: Lens' CreatePricingPlan (Maybe (HashMap Text Text))
- createPricingPlan_name :: Lens' CreatePricingPlan Text
- data CreatePricingPlanResponse = CreatePricingPlanResponse' {
- arn :: Maybe Text
- httpStatus :: Int
- newCreatePricingPlanResponse :: Int -> CreatePricingPlanResponse
- createPricingPlanResponse_arn :: Lens' CreatePricingPlanResponse (Maybe Text)
- createPricingPlanResponse_httpStatus :: Lens' CreatePricingPlanResponse Int
Creating a Request
data CreatePricingPlan Source #
See: newCreatePricingPlan
smart constructor.
Constructors
CreatePricingPlan' | |
Fields
|
Instances
Arguments
:: Text | |
-> CreatePricingPlan |
Create a value of CreatePricingPlan
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:clientToken:CreatePricingPlan'
, createPricingPlan_clientToken
- The token that is needed to support idempotency. Idempotency isn't
currently supported, but will be implemented in a future update.
CreatePricingPlan
, createPricingPlan_description
- The description of the pricing plan.
$sel:pricingRuleArns:CreatePricingPlan'
, createPricingPlan_pricingRuleArns
- A list of Amazon Resource Names (ARNs) that define the pricing plan
parameters.
$sel:tags:CreatePricingPlan'
, createPricingPlan_tags
- A map that contains tag keys and tag values that are attached to a
pricing plan.
CreatePricingPlan
, createPricingPlan_name
- The name of the pricing plan. The names must be unique to each pricing
plan.
Request Lenses
createPricingPlan_clientToken :: Lens' CreatePricingPlan (Maybe Text) Source #
The token that is needed to support idempotency. Idempotency isn't currently supported, but will be implemented in a future update.
createPricingPlan_description :: Lens' CreatePricingPlan (Maybe Text) Source #
The description of the pricing plan.
createPricingPlan_pricingRuleArns :: Lens' CreatePricingPlan (Maybe [Text]) Source #
A list of Amazon Resource Names (ARNs) that define the pricing plan parameters.
createPricingPlan_tags :: Lens' CreatePricingPlan (Maybe (HashMap Text Text)) Source #
A map that contains tag keys and tag values that are attached to a pricing plan.
createPricingPlan_name :: Lens' CreatePricingPlan Text Source #
The name of the pricing plan. The names must be unique to each pricing plan.
Destructuring the Response
data CreatePricingPlanResponse Source #
See: newCreatePricingPlanResponse
smart constructor.
Constructors
CreatePricingPlanResponse' | |
Fields
|
Instances
newCreatePricingPlanResponse Source #
Create a value of CreatePricingPlanResponse
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:
CreatePricingPlanResponse
, createPricingPlanResponse_arn
- The Amazon Resource Name (ARN) of the created pricing plan.
$sel:httpStatus:CreatePricingPlanResponse'
, createPricingPlanResponse_httpStatus
- The response's http status code.
Response Lenses
createPricingPlanResponse_arn :: Lens' CreatePricingPlanResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the created pricing plan.
createPricingPlanResponse_httpStatus :: Lens' CreatePricingPlanResponse Int Source #
The response's http status code.