Skip to content

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

ClientToken

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

Description

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

ModifierPercentage

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

Service

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

Tags

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

BillingEntity

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

Tiering

The set of tiering configurations for the pricing rule.

UsageType

Usage type is the unit that each service uses to measure the usage of a specific type of resource.

If the Scope attribute is set to SKU, this attribute indicates which usage type the PricingRule is modifying. For example, USW2-BoxUsage:m2.2xlarge describes an⁠ M2 High Memory Double Extra Large⁠ instance in the US West (Oregon) Region.

</p>
Operation

Operation is the specific Amazon Web Services action covered by this line item. This describes the specific usage of the line item.

If the Scope attribute is set to SKU, this attribute indicates which operation the PricingRule is modifying. For example, a value of RunInstances:0202 indicates the operation of running an Amazon EC2 instance.

Value

A list with the following syntax:

list(
  Arn = "string"
)

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"
)