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
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnPricingRule
.static interface
The possible AWS Free Tier configurations.static interface
Example:Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnPricingRule
(Construct scope, String id, CfnPricingRuleProps props) Create a newAWS::BillingConductor::PricingRule
.protected
CfnPricingRule
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnPricingRule
(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 theScope
attribute isSERVICE
, this attribute indicates which service thePricingRule
is 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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setBillingEntity
(String value) The seller of services provided by AWS , their affiliates, or third-party providers selling services via AWS Marketplace .void
setDescription
(String value) The pricing rule description.void
setModifierPercentage
(Number value) A percentage modifier applied on the public pricing rates.void
The name of a pricing rule.void
setOperation
(String value) Operation is the specific AWS action covered by this line item.void
The scope of pricing rule that indicates if it's globally applicable or service-specific.void
setService
(String value) If theScope
attribute isSERVICE
, this attribute indicates which service thePricingRule
is applicable for.void
setTiering
(IResolvable value) The set of tiering configurations for the pricing rule.void
The set of tiering configurations for the pricing rule.void
The type of pricing rule.void
setUsageType
(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, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in 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:
getCfnProperties
in 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
Scope
attribute is set toSKU
, this attribute indicates which operation thePricingRule
is modifying. For example, a value ofRunInstances:0202
indicates 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
Scope
attribute is set toSKU
, this attribute indicates which operation thePricingRule
is modifying. For example, a value ofRunInstances:0202
indicates the operation of running an Amazon EC2 instance. -
getService
If theScope
attribute isSERVICE
, this attribute indicates which service thePricingRule
is applicable for. -
setService
If theScope
attribute isSERVICE
, this attribute indicates which service thePricingRule
is 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.
-