CfnSubscriptionProps Struct
Properties for defining a CfnSubscription.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_pricingplanmanager as pricingplanmanager } from 'aws-cdk-lib';
const cfnSubscriptionProps: pricingplanmanager.CfnSubscriptionProps = {
planFamily: 'planFamily',
planTier: 'planTier',
resourceArns: ['resourceArns'],
// the properties below are optional
usageLevel: 'usageLevel',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_pricingplanmanager as pricingplanmanager
cfn_subscription_props = pricingplanmanager.CfnSubscriptionProps(
plan_family="planFamily",
plan_tier="planTier",
resource_arns=["resourceArns"],
# the properties below are optional
usage_level="usageLevel"
)
java
// 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.*;
CfnSubscriptionProps cfnSubscriptionProps = CfnSubscriptionProps.builder()
.planFamily("planFamily")
.planTier("planTier")
.resourceArns(List.of("resourceArns"))
// the properties below are optional
.usageLevel("usageLevel")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.PricingPlanManager;
var cfnSubscriptionProps = new CfnSubscriptionProps {
PlanFamily = "planFamily",
PlanTier = "planTier",
ResourceArns = new [] { "resourceArns" },
// the properties below are optional
UsageLevel = "usageLevel"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnSubscriptionProps := &CfnSubscriptionProps{
PlanFamily: jsii.String("planFamily"),
PlanTier: jsii.String("planTier"),
ResourceArns: []*string{
jsii.String("resourceArns"),
},
// the properties below are optional
UsageLevel: jsii.String("usageLevel"),
}
Properties
The name of the pricing plan family.
The tier of the pricing plan.
CloudFormation does not change the tier of an existing subscription; a stack update that changes the tier, upgrading or downgrading it, is rejected.
resourceArnsstring[]resource_arnstyping.List[str]resourceArnsList<String>ResourceArnsstring[]ResourceArns*[]*string required #The ARNs of resources associated with the subscription.
usageLeveloptionalstringusage_leveloptionalstrusageLeveloptionalStringUsageLeveloptionalstringUsageLeveloptional*string #