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.CreatePricingPlan

Description

Creates a pricing plan that is used for computing Amazon Web Services charges for billing groups.

Synopsis

Creating a Request

data CreatePricingPlan Source #

See: newCreatePricingPlan smart constructor.

Constructors

CreatePricingPlan' 

Fields

Instances

Instances details
ToJSON CreatePricingPlan Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingPlan

ToHeaders CreatePricingPlan Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingPlan

ToPath CreatePricingPlan Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingPlan

ToQuery CreatePricingPlan Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingPlan

AWSRequest CreatePricingPlan Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingPlan

Associated Types

type AWSResponse CreatePricingPlan #

Generic CreatePricingPlan Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingPlan

Associated Types

type Rep CreatePricingPlan :: Type -> Type #

Show CreatePricingPlan Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingPlan

NFData CreatePricingPlan Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingPlan

Methods

rnf :: CreatePricingPlan -> () #

Eq CreatePricingPlan Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingPlan

Hashable CreatePricingPlan Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingPlan

type AWSResponse CreatePricingPlan Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingPlan

type Rep CreatePricingPlan Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingPlan

type Rep CreatePricingPlan = D1 ('MetaData "CreatePricingPlan" "Amazonka.BillingConductor.CreatePricingPlan" "amazonka-billingconductor-2.0-1YoxVi69FkN1Nj28JbXXJ5" 'False) (C1 ('MetaCons "CreatePricingPlan'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text)))) :*: (S1 ('MetaSel ('Just "pricingRuleArns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text))))))

newCreatePricingPlan Source #

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

  • arn :: Maybe Text

    The Amazon Resource Name (ARN) of the created pricing plan.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic CreatePricingPlanResponse Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingPlan

Associated Types

type Rep CreatePricingPlanResponse :: Type -> Type #

Read CreatePricingPlanResponse Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingPlan

Show CreatePricingPlanResponse Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingPlan

NFData CreatePricingPlanResponse Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingPlan

Eq CreatePricingPlanResponse Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingPlan

type Rep CreatePricingPlanResponse Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingPlan

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

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.