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

Description

Creates a pricing rule can be associated to a pricing plan, or a set of pricing plans.

Synopsis

Creating a Request

data CreatePricingRule Source #

See: newCreatePricingRule smart constructor.

Constructors

CreatePricingRule' 

Fields

Instances

Instances details
ToJSON CreatePricingRule Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingRule

ToHeaders CreatePricingRule Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingRule

ToPath CreatePricingRule Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingRule

ToQuery CreatePricingRule Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingRule

AWSRequest CreatePricingRule Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingRule

Associated Types

type AWSResponse CreatePricingRule #

Generic CreatePricingRule Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingRule

Associated Types

type Rep CreatePricingRule :: Type -> Type #

Show CreatePricingRule Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingRule

NFData CreatePricingRule Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingRule

Methods

rnf :: CreatePricingRule -> () #

Eq CreatePricingRule Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingRule

Hashable CreatePricingRule Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingRule

type AWSResponse CreatePricingRule Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingRule

type Rep CreatePricingRule Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingRule

newCreatePricingRule Source #

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

CreatePricingRule, createPricingRule_billingEntity - The seller of services provided by Amazon Web Services, their affiliates, or third-party providers selling services via Amazon Web Services Marketplace.

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

CreatePricingRule, createPricingRule_description - The pricing rule description.

CreatePricingRule, createPricingRule_modifierPercentage - A percentage modifier that's applied on the public pricing rates.

CreatePricingRule, createPricingRule_service - If the Scope attribute is set to SERVICE, the attribute indicates which service the PricingRule is applicable for.

$sel:tags:CreatePricingRule', createPricingRule_tags - A map that contains tag keys and tag values that are attached to a pricing rule.

CreatePricingRule, createPricingRule_tiering - The set of tiering configurations for the pricing rule.

CreatePricingRule, createPricingRule_name - The pricing rule name. The names must be unique to each pricing rule.

CreatePricingRule, createPricingRule_scope - The scope of pricing rule that indicates if it's globally applicable, or it's service-specific.

CreatePricingRule, createPricingRule_type - The type of pricing rule.

Request Lenses

createPricingRule_billingEntity :: Lens' CreatePricingRule (Maybe Text) Source #

The seller of services provided by Amazon Web Services, their affiliates, or third-party providers selling services via Amazon Web Services Marketplace.

createPricingRule_clientToken :: Lens' CreatePricingRule (Maybe Text) Source #

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

createPricingRule_modifierPercentage :: Lens' CreatePricingRule (Maybe Double) Source #

A percentage modifier that's applied on the public pricing rates.

createPricingRule_service :: Lens' CreatePricingRule (Maybe Text) Source #

If the Scope attribute is set to SERVICE, the attribute indicates which service the PricingRule is applicable for.

createPricingRule_tags :: Lens' CreatePricingRule (Maybe (HashMap Text Text)) Source #

A map that contains tag keys and tag values that are attached to a pricing rule.

createPricingRule_tiering :: Lens' CreatePricingRule (Maybe CreateTieringInput) Source #

The set of tiering configurations for the pricing rule.

createPricingRule_name :: Lens' CreatePricingRule Text Source #

The pricing rule name. The names must be unique to each pricing rule.

createPricingRule_scope :: Lens' CreatePricingRule PricingRuleScope Source #

The scope of pricing rule that indicates if it's globally applicable, or it's service-specific.

Destructuring the Response

data CreatePricingRuleResponse Source #

See: newCreatePricingRuleResponse smart constructor.

Constructors

CreatePricingRuleResponse' 

Fields

  • arn :: Maybe Text

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

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic CreatePricingRuleResponse Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingRule

Associated Types

type Rep CreatePricingRuleResponse :: Type -> Type #

Read CreatePricingRuleResponse Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingRule

Show CreatePricingRuleResponse Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingRule

NFData CreatePricingRuleResponse Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingRule

Eq CreatePricingRuleResponse Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingRule

type Rep CreatePricingRuleResponse Source # 
Instance details

Defined in Amazonka.BillingConductor.CreatePricingRule

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

newCreatePricingRuleResponse Source #

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

CreatePricingRuleResponse, createPricingRuleResponse_arn - The Amazon Resource Name (ARN) of the created pricing rule.

$sel:httpStatus:CreatePricingRuleResponse', createPricingRuleResponse_httpStatus - The response's http status code.

Response Lenses

createPricingRuleResponse_arn :: Lens' CreatePricingRuleResponse (Maybe Text) Source #

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