CfnPricingRuleProps Struct
Properties for defining a CfnPricingRule.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_billingconductor as billingconductor } from 'aws-cdk-lib';
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: {
customTiers: [{
beginRangeInclusive: 123,
rateValue: 123,
// the properties below are optional
endRangeExclusive: 123,
}],
freeTier: {
activated: false,
},
},
usageType: 'usageType',
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_billingconductor as billingconductor
cfn_pricing_rule_props = billingconductor.CfnPricingRuleProps(
name="name",
scope="scope",
type="type",
# the properties below are optional
billing_entity="billingEntity",
description="description",
modifier_percentage=123,
operation="operation",
service="service",
tags=[CfnTag(
key="key",
value="value"
)],
tiering=billingconductor.CfnPricingRule.TieringProperty(
custom_tiers=[billingconductor.CfnPricingRule.CustomTierProperty(
begin_range_inclusive=123,
rate_value=123,
# the properties below are optional
end_range_exclusive=123
)],
free_tier=billingconductor.CfnPricingRule.FreeTierProperty(
activated=False
)
),
usage_type="usageType"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.billingconductor.*;
CfnPricingRuleProps cfnPricingRuleProps = CfnPricingRuleProps.builder()
.name("name")
.scope("scope")
.type("type")
// the properties below are optional
.billingEntity("billingEntity")
.description("description")
.modifierPercentage(123)
.operation("operation")
.service("service")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.tiering(TieringProperty.builder()
.customTiers(List.of(CustomTierProperty.builder()
.beginRangeInclusive(123)
.rateValue(123)
// the properties below are optional
.endRangeExclusive(123)
.build()))
.freeTier(FreeTierProperty.builder()
.activated(false)
.build())
.build())
.usageType("usageType")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.BillingConductor;
var cfnPricingRuleProps = new CfnPricingRuleProps {
Name = "name",
Scope = "scope",
Type = "type",
// the properties below are optional
BillingEntity = "billingEntity",
Description = "description",
ModifierPercentage = 123,
Operation = "operation",
Service = "service",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
Tiering = new TieringProperty {
CustomTiers = new [] { new CustomTierProperty {
BeginRangeInclusive = 123,
RateValue = 123,
// the properties below are optional
EndRangeExclusive = 123
} },
FreeTier = new FreeTierProperty {
Activated = false
}
},
UsageType = "usageType"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnPricingRuleProps := &CfnPricingRuleProps{
Name: jsii.String("name"),
Scope: jsii.String("scope"),
Type: jsii.String("type"),
// the properties below are optional
BillingEntity: jsii.String("billingEntity"),
Description: jsii.String("description"),
ModifierPercentage: jsii.Number(123),
Operation: jsii.String("operation"),
Service: jsii.String("service"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
Tiering: &TieringProperty{
CustomTiers: []interface{}{
&CustomTierProperty{
BeginRangeInclusive: jsii.Number(123),
RateValue: jsii.Number(123),
// the properties below are optional
EndRangeExclusive: jsii.Number(123),
},
},
FreeTier: &FreeTierProperty{
Activated: jsii.Boolean(false),
},
},
UsageType: jsii.String("usageType"),
}
Properties
billingEntityoptionalstringbilling_entityoptionalstrbillingEntityoptionalStringBillingEntityoptionalstringBillingEntityoptional*string #The seller of services provided by AWS , their affiliates, or third-party providers selling services via AWS Marketplace .
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #The pricing rule description.
modifierPercentageoptionalnumbermodifier_percentageoptionalint | floatmodifierPercentageoptionalNumberModifierPercentageoptionaldoubleModifierPercentageoptional*float64 #A percentage modifier applied on the public pricing rates.
The name of a pricing rule.
operationoptionalstringoperationoptionalstroperationoptionalStringOperationoptionalstringOperationoptional*string #Operation is the specific AWS action covered by this line item.
notes
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.
The scope of pricing rule that indicates if it's globally applicable or service-specific.
serviceoptionalstringserviceoptionalstrserviceoptionalStringServiceoptionalstringServiceoptional*string #If the `Scope` attribute is `SERVICE` , this attribute indicates which service the `PricingRule` is applicable for.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #A map that contains tag keys and tag values that are attached to a pricing rule.
tieringoptionalIResolvable | CfnPricingRule.TieringPropertytieringoptionaltyping.Union[IResolvable, TieringProperty]tieringoptionalIResolvableTieringoptionalIResolvableTieringoptionalinterface{} #The set of tiering configurations for the pricing rule.
The type of pricing rule.
usageTypeoptionalstringusage_typeoptionalstrusageTypeoptionalStringUsageTypeoptionalstringUsageTypeoptional*string #Usage Type is the unit that each service uses to measure the usage of a specific type of resource.