AWS::BillingConductor::PricingRule - AWS CloudFormation

AWS::BillingConductor::PricingRule

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

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::BillingConductor::PricingRule", "Properties" : { "Description" : String, "ModifierPercentage" : Double, "Name" : String, "Scope" : String, "Service" : String, "Type" : String } }

YAML

Type: AWS::BillingConductor::PricingRule Properties: Description: String ModifierPercentage: Double Name: String Scope: String Service: String Type: String

Properties

Description

The pricing rule description.

Required: No

Type: String

Update requires: No interruption

ModifierPercentage

A percentage modifier applied on the public pricing rates.

Required: Yes

Type: Double

Update requires: No interruption

Name

The name of a pricing rule.

Required: Yes

Type: String

Update requires: No interruption

Scope

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

Required: Yes

Type: String

Update requires: Replacement

Service

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

Required: No

Type: String

Update requires: Replacement

Type

The type of pricing rule.

Required: Yes

Type: String

Update requires: No interruption

Return values

Ref

For more information about using the Ref function, see Ref.

Fn::GetAtt

Arn

The Amazon Resource Name (ARN) used to uniquely identify a pricing rule.

AssociatedPricingPlanCount

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

CreationTime

The time the pricing rule was created.

LastModifiedTime

The most recent time the pricing rule was modified.

Examples

Simple pricing rule

The following example shows a pricing rule that applies a %10 global markup.

JSON

{ "Resources": { "TestPricingRule": { "Type": "AWS::BillingConductor::PricingRule", "Properties": { "Name": "TestPricingRule", "Description": "Test pricing rule created through CloudFormation. Mark everything by 10%.", "Type": "MARKUP", "Scope": "GLOBAL", "ModifierPercentage": 10 } } } }

YAML

Resources: TestPricingRule: Type: 'AWS::BillingConductor::PricingRule' Properties: Name: 'TestPricingRule' Description: 'Test pricing rule created through CloudFormation. Mark everything by 10%.' Type: 'MARKUP' Scope: 'GLOBAL' ModifierPercentage: 10