interface CfnPricingRuleProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.BillingConductor.CfnPricingRuleProps |
Java | software.amazon.awscdk.services.billingconductor.CfnPricingRuleProps |
Python | aws_cdk.aws_billingconductor.CfnPricingRuleProps |
TypeScript | @aws-cdk/aws-billingconductor » CfnPricingRuleProps |
Properties for defining a CfnPricingRule
.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as billingconductor from '@aws-cdk/aws-billingconductor';
const cfnPricingRuleProps: billingconductor.CfnPricingRuleProps = {
name: 'name',
scope: 'scope',
type: 'type',
// the properties below are optional
billingEntity: 'billingEntity',
description: 'description',
modifierPercentage: 123,
operation: 'operation',
service: 'service',
tags: [{
key: 'key',
value: 'value',
}],
tiering: {
freeTier: {
activated: false,
},
},
usageType: 'usageType',
};
Properties
Name | Type | Description |
---|---|---|
name | string | The name of a pricing rule. |
scope | string | The scope of pricing rule that indicates if it's globally applicable or service-specific. |
type | string | The type of pricing rule. |
billing | string | The seller of services provided by AWS , their affiliates, or third-party providers selling services via AWS Marketplace . |
description? | string | The pricing rule description. |
modifier | number | A percentage modifier applied on the public pricing rates. |
operation? | string | Operation is the specific AWS action covered by this line item. |
service? | string | If the Scope attribute is SERVICE , this attribute indicates which service the PricingRule is applicable for. |
tags? | Cfn [] | A map that contains tag keys and tag values that are attached to a pricing rule. |
tiering? | IResolvable | Tiering | The set of tiering configurations for the pricing rule. |
usage | string | Usage Type is the unit that each service uses to measure the usage of a specific type of resource. |
name
Type:
string
The name of a pricing rule.
scope
Type:
string
The scope of pricing rule that indicates if it's globally applicable or service-specific.
type
Type:
string
The type of pricing rule.
billingEntity?
Type:
string
(optional)
The seller of services provided by AWS , their affiliates, or third-party providers selling services via AWS Marketplace .
description?
Type:
string
(optional)
The pricing rule description.
modifierPercentage?
Type:
number
(optional)
A percentage modifier applied on the public pricing rates.
operation?
Type:
string
(optional)
Operation is the specific AWS 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.
service?
Type:
string
(optional)
If the Scope
attribute is SERVICE
, this attribute indicates which service the PricingRule
is applicable for.
tags?
Type:
Cfn
[]
(optional)
A map that contains tag keys and tag values that are attached to a pricing rule.
tiering?
Type:
IResolvable
|
Tiering
(optional)
The set of tiering configurations for the pricing rule.
usageType?
Type:
string
(optional)
Usage Type is the unit that each service uses to measure the usage of a specific type of resource.