Class CfnSubscription
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,ISubscriptionRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
Deleting an activated subscription does not terminate it immediately; it schedules a cancellation that takes effect at the end of the current billing period. Until that date the subscription remains active and billing continues. Deleting a subscription that has not yet been activated (PENDING_APPROVAL status) removes it immediately with no further charges.
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.pricingplanmanager.*;
CfnSubscription cfnSubscription = CfnSubscription.Builder.create(this, "MyCfnSubscription")
.planFamily("planFamily")
.planTier("planTier")
.resourceArns(List.of("resourceArns"))
// the properties below are optional
.usageLevel("usageLevel")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested 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.pricingplanmanager.ISubscriptionRef
ISubscriptionRef.Jsii$Default, ISubscriptionRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnSubscription(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnSubscription(software.amazon.jsii.JsiiObjectRef objRef) CfnSubscription(software.constructs.Construct scope, String id, CfnSubscriptionProps props) Create a newAWS::PricingPlanManager::Subscription. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForSubscription(ISubscriptionRef resource) The ARN of the subscription.The time the subscription was created, in ISO 8601 format.The plan tier currently active on the subscription as reported by the API.The status of the subscription.A human-readable explanation of why the subscription is in its current status.The time the subscription was last modified, in ISO 8601 format.The name of the pricing plan family.The tier of the pricing plan.The ARNs of resources associated with the subscription.A reference to a Subscription resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnSubscription.renderProperties(Map<String, Object> props) voidsetPlanFamily(String value) The name of the pricing plan family.voidsetPlanTier(String value) The tier of the pricing plan.voidsetResourceArns(List<String> value) The ARNs of resources associated with the subscription.voidsetUsageLevel(String value) Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods 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
getNode, withMethods 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
-
CfnSubscription
protected CfnSubscription(software.amazon.jsii.JsiiObjectRef objRef) -
CfnSubscription
protected CfnSubscription(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnSubscription
@Stability(Stable) public CfnSubscription(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnSubscriptionProps props) Create a newAWS::PricingPlanManager::Subscription.- 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
-
arnForSubscription
@Stability(Stable) @NotNull public static String arnForSubscription(@NotNull ISubscriptionRef resource) - Parameters:
resource- This parameter is required.
-
isCfnSubscription
Checks whether the given object is a CfnSubscription.- Parameters:
x- This parameter is required.
-
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 ARN of the subscription. -
getAttrCreatedAt
The time the subscription was created, in ISO 8601 format. -
getAttrCurrentPlanTier
The plan tier currently active on the subscription as reported by the API.Populated by the Read handler. Diverges from PlanTier after a non-reversible CloudFormation rollback; surface via drift detection.
-
getAttrStatus
The status of the subscription.PENDING_APPROVAL means a paid-tier subscription has been created but is not yet active and incurs no charges until it is approved out of band via a separate ApprovePaidSubscription call; CloudFormation never approves it. Free-tier subscriptions are activated immediately and do not use this status. ACTIVE means the subscription is in effect and, for paid tiers, billing has started. SYNC_IN_PROGRESS means a change is being applied. FAILED means provisioning did not complete; see StatusReason.
-
getAttrStatusReason
A human-readable explanation of why the subscription is in its current status.Populated only when Status is FAILED, where it carries the reason the subscription could not be provisioned. Empty for all other statuses.
-
getAttrUpdatedAt
The time the subscription was last modified, in ISO 8601 format. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getSubscriptionRef
A reference to a Subscription resource.- Specified by:
getSubscriptionRefin interfaceISubscriptionRef
-
getPlanFamily
The name of the pricing plan family. -
setPlanFamily
The name of the pricing plan family. -
getPlanTier
The tier of the pricing plan. -
setPlanTier
The tier of the pricing plan. -
getResourceArns
The ARNs of resources associated with the subscription. -
setResourceArns
The ARNs of resources associated with the subscription. -
getUsageLevel
-
setUsageLevel
-