Class CfnPricingRule
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.CfnElement
software.amazon.awscdk.core.CfnRefElement
software.amazon.awscdk.core.CfnResource
software.amazon.awscdk.services.billingconductor.CfnPricingRule
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:29:55.832Z")
@Stability(Stable)
public class CfnPricingRule
extends CfnResource
implements IInspectable
A CloudFormation
AWS::BillingConductor::PricingRule.
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();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnPricingRule.static interfaceThe possible AWS Free Tier configurations.static interfaceExample:Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnPricingRule(Construct scope, String id, CfnPricingRuleProps props) Create a newAWS::BillingConductor::PricingRule.protectedCfnPricingRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnPricingRule(software.amazon.jsii.JsiiObjectRef objRef) -
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.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()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.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.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.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 Construct scope, @NotNull String id, @NotNull CfnPricingRuleProps props) Create a newAWS::BillingConductor::PricingRule.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
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
-
getTags
A map that contains tag keys and tag values that are attached to a pricing rule. -
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.This describes the specific usage of the line item.
If the
Scopeattribute is set toSKU, this attribute indicates which operation thePricingRuleis modifying. For example, a value ofRunInstances:0202indicates the operation of running an Amazon EC2 instance. -
setOperation
Operation is the specific AWS action covered by this line item.This describes the specific usage of the line item.
If the
Scopeattribute is set toSKU, this attribute indicates which operation thePricingRuleis modifying. For example, a value ofRunInstances:0202indicates the operation of running an Amazon EC2 instance. -
getService
If theScopeattribute isSERVICE, this attribute indicates which service thePricingRuleis applicable for. -
setService
If theScopeattribute isSERVICE, this attribute indicates which service thePricingRuleis applicable for. -
getTiering
The set of tiering configurations for the pricing rule. -
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.
-