Class CfnPricingRule
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.billingconductor.CfnPricingRule
- All Implemented Interfaces:
IInspectable,IPricingRuleRef,IEnvironmentAware,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:00.103Z")
@Stability(Stable)
public class CfnPricingRule
extends CfnResource
implements IInspectable, IPricingRuleRef, ITaggable
Creates a pricing rule which can be associated with a pricing plan, or a set of pricing plans.
Example:
// 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.*;
CfnPricingRule cfnPricingRule = CfnPricingRule.Builder.create(this, "MyCfnPricingRule")
.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()
.freeTier(FreeTierProperty.builder()
.activated(false)
.build())
.build())
.usageType("usageType")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnPricingRule.static interfaceThe possible AWS Free Tier configurations.static interfaceThe set of tiering configurations for the pricing rule.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.billingconductor.IPricingRuleRef
IPricingRuleRef.Jsii$Default, IPricingRuleRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnPricingRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnPricingRule(software.amazon.jsii.JsiiObjectRef objRef) CfnPricingRule(software.constructs.Construct scope, String id, CfnPricingRuleProps props) Create a newAWS::BillingConductor::PricingRule. -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) used to uniquely identify a pricing rule.The pricing plans count that this pricing rule is associated with.The time the pricing rule was created.The most recent time the pricing rule was modified.The seller of services provided by AWS , their affiliates, or third-party providers selling services via AWS Marketplace .The pricing rule description.A percentage modifier applied on the public pricing rates.getName()The name of a pricing rule.Operation is the specific AWS action covered by this line item.A reference to a PricingRule resource.getScope()The scope of pricing rule that indicates if it's globally applicable or service-specific.If theScopeattribute isSERVICE, this attribute indicates which service thePricingRuleis applicable for.getTags()Tag Manager which manages the tags for this resource.A map that contains tag keys and tag values that are attached to a pricing rule.The set of tiering configurations for the pricing rule.getType()The type of pricing rule.Usage Type is the unit that each service uses to measure the usage of a specific type of resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetBillingEntity(String value) The seller of services provided by AWS , their affiliates, or third-party providers selling services via AWS Marketplace .voidsetDescription(String value) The pricing rule description.voidsetModifierPercentage(Number value) A percentage modifier applied on the public pricing rates.voidThe name of a pricing rule.voidsetOperation(String value) Operation is the specific AWS action covered by this line item.voidThe scope of pricing rule that indicates if it's globally applicable or service-specific.voidsetService(String value) If theScopeattribute isSERVICE, this attribute indicates which service thePricingRuleis applicable for.voidsetTagsRaw(List<CfnTag> value) A map that contains tag keys and tag values that are attached to a pricing rule.voidsetTiering(IResolvable value) The set of tiering configurations for the pricing rule.voidThe set of tiering configurations for the pricing rule.voidThe type of pricing rule.voidsetUsageType(String value) Usage Type is the unit that each service uses to measure the usage of a specific type of resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnPricingRule
protected CfnPricingRule(software.amazon.jsii.JsiiObjectRef objRef) -
CfnPricingRule
protected CfnPricingRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnPricingRule
@Stability(Stable) public CfnPricingRule(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnPricingRuleProps props) Create a newAWS::BillingConductor::PricingRule.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) used to uniquely identify a pricing rule. -
getAttrAssociatedPricingPlanCount
The pricing plans count that this pricing rule is associated with. -
getAttrCreationTime
The time the pricing rule was created. -
getAttrLastModifiedTime
The most recent time the pricing rule was modified. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getPricingRuleRef
A reference to a PricingRule resource.- Specified by:
getPricingRuleRefin interfaceIPricingRuleRef
-
getTags
Tag Manager which manages the tags for this resource. -
getName
The name of a pricing rule. -
setName
The name of a pricing rule. -
getScope
The scope of pricing rule that indicates if it's globally applicable or service-specific. -
setScope
The scope of pricing rule that indicates if it's globally applicable or service-specific. -
getType
The type of pricing rule. -
setType
The type of pricing rule. -
getBillingEntity
The seller of services provided by AWS , their affiliates, or third-party providers selling services via AWS Marketplace . -
setBillingEntity
The seller of services provided by AWS , their affiliates, or third-party providers selling services via AWS Marketplace . -
getDescription
The pricing rule description. -
setDescription
The pricing rule description. -
getModifierPercentage
A percentage modifier applied on the public pricing rates. -
setModifierPercentage
A percentage modifier applied on the public pricing rates. -
getOperation
Operation is the specific AWS action covered by this line item. -
setOperation
Operation is the specific AWS action covered by this line item. -
getService
If theScopeattribute isSERVICE, this attribute indicates which service thePricingRuleis applicable for. -
setService
If theScopeattribute isSERVICE, this attribute indicates which service thePricingRuleis applicable for. -
getTagsRaw
A map that contains tag keys and tag values that are attached to a pricing rule. -
setTagsRaw
A map that contains tag keys and tag values that are attached to a pricing rule. -
getTiering
The set of tiering configurations for the pricing rule.Returns union: either
IResolvableorCfnPricingRule.TieringProperty -
setTiering
The set of tiering configurations for the pricing rule. -
setTiering
The set of tiering configurations for the pricing rule. -
getUsageType
Usage Type is the unit that each service uses to measure the usage of a specific type of resource. -
setUsageType
Usage Type is the unit that each service uses to measure the usage of a specific type of resource.
-