Create Pricing Rule
| billingconductor_create_pricing_rule | R Documentation |
Creates a pricing rule can be associated to a pricing plan, or a set of pricing plans¶
Description¶
Creates a pricing rule can be associated to a pricing plan, or a set of pricing plans.
Usage¶
billingconductor_create_pricing_rule(ClientToken, Name, Description,
Scope, Type, ModifierPercentage, Service, Tags, BillingEntity, Tiering,
UsageType, Operation)
Arguments¶
ClientTokenThe token that's needed to support idempotency. Idempotency isn't currently supported, but will be implemented in a future update.
Name[required] The pricing rule name. The names must be unique to each pricing rule.
DescriptionThe pricing rule description.
Scope[required] The scope of pricing rule that indicates if it's globally applicable, or it's service-specific.
Type[required] The type of pricing rule.
ModifierPercentageA percentage modifier that's applied on the public pricing rates.
ServiceIf the
Scopeattribute is set toSERVICEorSKU, the attribute indicates which service thePricingRuleis applicable for.TagsA map that contains tag keys and tag values that are attached to a pricing rule.
BillingEntityThe seller of services provided by Amazon Web Services, their affiliates, or third-party providers selling services via Amazon Web Services Marketplace.
TieringThe set of tiering configurations for the pricing rule.
UsageTypeUsage type is the unit that each service uses to measure the usage of a specific type of resource.
If the
Scopeattribute is set toSKU, this attribute indicates which usage type thePricingRuleis modifying. For example,USW2-BoxUsage:m2.2xlargedescribes an M2 High Memory Double Extra Largeinstance in the US West (Oregon) Region.</p>OperationOperation is the specific Amazon Web Services action covered by this line item. This describes the specific usage of the line item.
If the
Scopeattribute is set toSKU, this attribute indicates which operation thePricingRuleis modifying. For example, a value ofRunInstances:0202indicates the operation of running an Amazon EC2 instance.
Value¶
A list with the following syntax:
Request syntax¶
svc$create_pricing_rule(
ClientToken = "string",
Name = "string",
Description = "string",
Scope = "GLOBAL"|"SERVICE"|"BILLING_ENTITY"|"SKU",
Type = "MARKUP"|"DISCOUNT"|"TIERING",
ModifierPercentage = 123.0,
Service = "string",
Tags = list(
"string"
),
BillingEntity = "string",
Tiering = list(
FreeTier = list(
Activated = TRUE|FALSE
)
),
UsageType = "string",
Operation = "string"
)