Skip to content
GitHubXDiscord

PricingPlan

The PricingPlan resource lets you create and manage AWS BillingConductor PricingPlans for customizing your billing management and pricing structures.

Create a basic PricingPlan with required properties and one optional description.

import AWS from "alchemy/aws/control";
const basicPricingPlan = await AWS.BillingConductor.PricingPlan("basicPricingPlan", {
Name: "BasicPricing",
Description: "This is a basic pricing plan for our services."
});

Configure a PricingPlan with additional pricing rules and tags for better organization and management.

const advancedPricingPlan = await AWS.BillingConductor.PricingPlan("advancedPricingPlan", {
Name: "AdvancedPricing",
Description: "This pricing plan includes advanced pricing rules.",
PricingRuleArns: [
"arn:aws:billingconductor:us-east-1:123456789012:pricing-rule/abc123",
"arn:aws:billingconductor:us-east-1:123456789012:pricing-rule/def456"
],
Tags: [
{ Key: "Environment", Value: "Production" },
{ Key: "Department", Value: "Finance" }
]
});

Create a PricingPlan that adopts an existing resource instead of failing if it already exists.

const adoptExistingPricingPlan = await AWS.BillingConductor.PricingPlan("adoptExistingPricingPlan", {
Name: "AdoptedPricing",
Description: "This pricing plan adopts an existing resource.",
adopt: true
});