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

Description

Updates an existing pricing rule.

Synopsis

Creating a Request

data UpdatePricingRule Source #

See: newUpdatePricingRule smart constructor.

Constructors

UpdatePricingRule' 

Fields

Instances

Instances details
ToJSON UpdatePricingRule Source # 
Instance details

Defined in Amazonka.BillingConductor.UpdatePricingRule

ToHeaders UpdatePricingRule Source # 
Instance details

Defined in Amazonka.BillingConductor.UpdatePricingRule

ToPath UpdatePricingRule Source # 
Instance details

Defined in Amazonka.BillingConductor.UpdatePricingRule

ToQuery UpdatePricingRule Source # 
Instance details

Defined in Amazonka.BillingConductor.UpdatePricingRule

AWSRequest UpdatePricingRule Source # 
Instance details

Defined in Amazonka.BillingConductor.UpdatePricingRule

Associated Types

type AWSResponse UpdatePricingRule #

Generic UpdatePricingRule Source # 
Instance details

Defined in Amazonka.BillingConductor.UpdatePricingRule

Associated Types

type Rep UpdatePricingRule :: Type -> Type #

Show UpdatePricingRule Source # 
Instance details

Defined in Amazonka.BillingConductor.UpdatePricingRule

NFData UpdatePricingRule Source # 
Instance details

Defined in Amazonka.BillingConductor.UpdatePricingRule

Methods

rnf :: UpdatePricingRule -> () #

Eq UpdatePricingRule Source # 
Instance details

Defined in Amazonka.BillingConductor.UpdatePricingRule

Hashable UpdatePricingRule Source # 
Instance details

Defined in Amazonka.BillingConductor.UpdatePricingRule

type AWSResponse UpdatePricingRule Source # 
Instance details

Defined in Amazonka.BillingConductor.UpdatePricingRule

type Rep UpdatePricingRule Source # 
Instance details

Defined in Amazonka.BillingConductor.UpdatePricingRule

type Rep UpdatePricingRule = D1 ('MetaData "UpdatePricingRule" "Amazonka.BillingConductor.UpdatePricingRule" "amazonka-billingconductor-2.0-1YoxVi69FkN1Nj28JbXXJ5" 'False) (C1 ('MetaCons "UpdatePricingRule'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: (S1 ('MetaSel ('Just "modifierPercentage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))))) :*: (S1 ('MetaSel ('Just "tiering") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UpdateTieringInput)) :*: (S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PricingRuleType)) :*: S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newUpdatePricingRule Source #

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

UpdatePricingRule, updatePricingRule_description - The new description for the pricing rule.

UpdatePricingRule, updatePricingRule_modifierPercentage - The new modifier to show pricing plan rates as a percentage.

UpdatePricingRule, updatePricingRule_name - The new name of the pricing rule. The name must be unique to each pricing rule.

UpdatePricingRule, updatePricingRule_tiering - The set of tiering configurations for the pricing rule.

UpdatePricingRule, updatePricingRule_type - The new pricing rule type.

UpdatePricingRule, updatePricingRule_arn - The Amazon Resource Name (ARN) of the pricing rule to update.

Request Lenses

updatePricingRule_description :: Lens' UpdatePricingRule (Maybe Text) Source #

The new description for the pricing rule.

updatePricingRule_modifierPercentage :: Lens' UpdatePricingRule (Maybe Double) Source #

The new modifier to show pricing plan rates as a percentage.

updatePricingRule_name :: Lens' UpdatePricingRule (Maybe Text) Source #

The new name of the pricing rule. The name must be unique to each pricing rule.

updatePricingRule_tiering :: Lens' UpdatePricingRule (Maybe UpdateTieringInput) Source #

The set of tiering configurations for the pricing rule.

updatePricingRule_arn :: Lens' UpdatePricingRule Text Source #

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

Destructuring the Response

data UpdatePricingRuleResponse Source #

See: newUpdatePricingRuleResponse smart constructor.

Constructors

UpdatePricingRuleResponse' 

Fields

Instances

Instances details
Generic UpdatePricingRuleResponse Source # 
Instance details

Defined in Amazonka.BillingConductor.UpdatePricingRule

Associated Types

type Rep UpdatePricingRuleResponse :: Type -> Type #

Show UpdatePricingRuleResponse Source # 
Instance details

Defined in Amazonka.BillingConductor.UpdatePricingRule

NFData UpdatePricingRuleResponse Source # 
Instance details

Defined in Amazonka.BillingConductor.UpdatePricingRule

Eq UpdatePricingRuleResponse Source # 
Instance details

Defined in Amazonka.BillingConductor.UpdatePricingRule

type Rep UpdatePricingRuleResponse Source # 
Instance details

Defined in Amazonka.BillingConductor.UpdatePricingRule

type Rep UpdatePricingRuleResponse = D1 ('MetaData "UpdatePricingRuleResponse" "Amazonka.BillingConductor.UpdatePricingRule" "amazonka-billingconductor-2.0-1YoxVi69FkN1Nj28JbXXJ5" 'False) (C1 ('MetaCons "UpdatePricingRuleResponse'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "associatedPricingPlanCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "billingEntity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: (S1 ('MetaSel ('Just "lastModifiedTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "modifierPercentage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double))))) :*: ((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: (S1 ('MetaSel ('Just "scope") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PricingRuleScope)) :*: S1 ('MetaSel ('Just "service") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "tiering") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UpdateTieringInput)) :*: (S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PricingRuleType)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))))

newUpdatePricingRuleResponse Source #

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

UpdatePricingRule, updatePricingRuleResponse_arn - The Amazon Resource Name (ARN) of the successfully updated pricing rule.

UpdatePricingRuleResponse, updatePricingRuleResponse_associatedPricingPlanCount - The pricing plans count that this pricing rule is associated with.

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

UpdatePricingRule, updatePricingRuleResponse_description - The new description for the pricing rule.

UpdatePricingRuleResponse, updatePricingRuleResponse_lastModifiedTime - The most recent time the pricing rule was modified.

UpdatePricingRule, updatePricingRuleResponse_modifierPercentage - The new modifier to show pricing plan rates as a percentage.

UpdatePricingRule, updatePricingRuleResponse_name - The new name of the pricing rule. The name must be unique to each pricing rule.

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

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

UpdatePricingRule, updatePricingRuleResponse_tiering - The set of tiering configurations for the pricing rule.

UpdatePricingRule, updatePricingRuleResponse_type - The new pricing rule type.

$sel:httpStatus:UpdatePricingRuleResponse', updatePricingRuleResponse_httpStatus - The response's http status code.

Response Lenses

updatePricingRuleResponse_arn :: Lens' UpdatePricingRuleResponse (Maybe Text) Source #

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

updatePricingRuleResponse_associatedPricingPlanCount :: Lens' UpdatePricingRuleResponse (Maybe Natural) Source #

The pricing plans count that this pricing rule is associated with.

updatePricingRuleResponse_billingEntity :: Lens' UpdatePricingRuleResponse (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.

updatePricingRuleResponse_lastModifiedTime :: Lens' UpdatePricingRuleResponse (Maybe Integer) Source #

The most recent time the pricing rule was modified.

updatePricingRuleResponse_modifierPercentage :: Lens' UpdatePricingRuleResponse (Maybe Double) Source #

The new modifier to show pricing plan rates as a percentage.

updatePricingRuleResponse_name :: Lens' UpdatePricingRuleResponse (Maybe Text) Source #

The new name of the pricing rule. The name must be unique to each pricing rule.

updatePricingRuleResponse_scope :: Lens' UpdatePricingRuleResponse (Maybe PricingRuleScope) Source #

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

updatePricingRuleResponse_service :: Lens' UpdatePricingRuleResponse (Maybe Text) Source #

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

updatePricingRuleResponse_tiering :: Lens' UpdatePricingRuleResponse (Maybe UpdateTieringInput) Source #

The set of tiering configurations for the pricing rule.