| 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.UpdatePricingRule
Description
Updates an existing pricing rule.
Synopsis
- data UpdatePricingRule = UpdatePricingRule' {}
- newUpdatePricingRule :: Text -> UpdatePricingRule
- updatePricingRule_description :: Lens' UpdatePricingRule (Maybe Text)
- updatePricingRule_modifierPercentage :: Lens' UpdatePricingRule (Maybe Double)
- updatePricingRule_name :: Lens' UpdatePricingRule (Maybe Text)
- updatePricingRule_tiering :: Lens' UpdatePricingRule (Maybe UpdateTieringInput)
- updatePricingRule_type :: Lens' UpdatePricingRule (Maybe PricingRuleType)
- updatePricingRule_arn :: Lens' UpdatePricingRule Text
- data UpdatePricingRuleResponse = UpdatePricingRuleResponse' {
- arn :: Maybe Text
- associatedPricingPlanCount :: Maybe Natural
- billingEntity :: Maybe Text
- description :: Maybe (Sensitive Text)
- lastModifiedTime :: Maybe Integer
- modifierPercentage :: Maybe Double
- name :: Maybe (Sensitive Text)
- scope :: Maybe PricingRuleScope
- service :: Maybe Text
- tiering :: Maybe UpdateTieringInput
- type' :: Maybe PricingRuleType
- httpStatus :: Int
- newUpdatePricingRuleResponse :: Int -> UpdatePricingRuleResponse
- updatePricingRuleResponse_arn :: Lens' UpdatePricingRuleResponse (Maybe Text)
- updatePricingRuleResponse_associatedPricingPlanCount :: Lens' UpdatePricingRuleResponse (Maybe Natural)
- updatePricingRuleResponse_billingEntity :: Lens' UpdatePricingRuleResponse (Maybe Text)
- updatePricingRuleResponse_description :: Lens' UpdatePricingRuleResponse (Maybe Text)
- updatePricingRuleResponse_lastModifiedTime :: Lens' UpdatePricingRuleResponse (Maybe Integer)
- updatePricingRuleResponse_modifierPercentage :: Lens' UpdatePricingRuleResponse (Maybe Double)
- updatePricingRuleResponse_name :: Lens' UpdatePricingRuleResponse (Maybe Text)
- updatePricingRuleResponse_scope :: Lens' UpdatePricingRuleResponse (Maybe PricingRuleScope)
- updatePricingRuleResponse_service :: Lens' UpdatePricingRuleResponse (Maybe Text)
- updatePricingRuleResponse_tiering :: Lens' UpdatePricingRuleResponse (Maybe UpdateTieringInput)
- updatePricingRuleResponse_type :: Lens' UpdatePricingRuleResponse (Maybe PricingRuleType)
- updatePricingRuleResponse_httpStatus :: Lens' UpdatePricingRuleResponse Int
Creating a Request
data UpdatePricingRule Source #
See: newUpdatePricingRule smart constructor.
Constructors
| UpdatePricingRule' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> UpdatePricingRule |
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_type :: Lens' UpdatePricingRule (Maybe PricingRuleType) Source #
The new pricing rule type.
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
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_description :: Lens' UpdatePricingRuleResponse (Maybe Text) Source #
The new description for the pricing rule.
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.
updatePricingRuleResponse_type :: Lens' UpdatePricingRuleResponse (Maybe PricingRuleType) Source #
The new pricing rule type.
updatePricingRuleResponse_httpStatus :: Lens' UpdatePricingRuleResponse Int Source #
The response's http status code.