@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.928Z") @Stability(value=Stable) public class CfnPricingRule extends CfnResource implements IInspectable
Creates a pricing rule can be associated to 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")
.modifierPercentage(123)
.name("name")
.scope("scope")
.type("type")
// the properties below are optional
.description("description")
.service("service")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnPricingRule.Builder
A fluent builder for
CfnPricingRule. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnPricingRule(software.constructs.Construct scope,
String id,
CfnPricingRuleProps props)
Create a new `AWS::BillingConductor::PricingRule`.
|
protected |
CfnPricingRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnPricingRule(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrArn()
The Amazon Resource Name (ARN) used to uniquely identify a pricing rule.
|
Number |
getAttrAssociatedPricingPlanCount()
The pricing plans count that this pricing rule is associated with.
|
Number |
getAttrCreationTime()
The time the pricing rule was created.
|
Number |
getAttrLastModifiedTime()
The most recent time the pricing rule was modified.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
The pricing rule description.
|
Number |
getModifierPercentage()
A percentage modifier applied on the public pricing rates.
|
String |
getName()
The name of a pricing rule.
|
String |
getScope()
The scope of pricing rule that indicates if it is globally applicable, or if it is service-specific.
|
String |
getService()
If the `Scope` attribute is `SERVICE` , this attribute indicates which service the `PricingRule` is applicable for.
|
TagManager |
getTags()
`AWS::BillingConductor::PricingRule.Tags`.
|
String |
getType()
The type of pricing rule.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDescription(String value)
The pricing rule description.
|
void |
setModifierPercentage(Number value)
A percentage modifier applied on the public pricing rates.
|
void |
setName(String value)
The name of a pricing rule.
|
void |
setScope(String value)
The scope of pricing rule that indicates if it is globally applicable, or if it is service-specific.
|
void |
setService(String value)
If the `Scope` attribute is `SERVICE` , this attribute indicates which service the `PricingRule` is applicable for.
|
void |
setType(String value)
The type of pricing rule.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnPricingRule(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnPricingRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnPricingRule(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnPricingRuleProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull public Number getAttrAssociatedPricingPlanCount()
@Stability(value=Stable) @NotNull public Number getAttrCreationTime()
@Stability(value=Stable) @NotNull public Number getAttrLastModifiedTime()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public Number getModifierPercentage()
@Stability(value=Stable)
public void setModifierPercentage(@NotNull
Number value)
@Stability(value=Stable) @NotNull public String getName()
@Stability(value=Stable)
public void setName(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getScope()
@Stability(value=Stable)
public void setScope(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getType()
@Stability(value=Stable)
public void setType(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getService()
@Stability(value=Stable)
public void setService(@Nullable
String value)
Copyright © 2022. All rights reserved.