Documentation
¶
Overview ¶
Package stdcdk provides some re-usable code for building AWS CDK constructs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStack ¶
func NewStack(scope constructs.Construct, region string) awscdk.Stack
NewStack creates and returns a new AWS CDK Stack within the specified scope, configured for a specific AWS region. It retrieves the "qualifier" and "environment" values from the scope's context to customize the stack's ID, description, and synthesizer settings. The stack ID is composed of the qualifier and the region acronym.
func RegionAcronym ¶
RegionAcronym takes an AWS region identifier as input and returns its corresponding three-letter acronym. It supports common AWS regions and panics if an unsupported region is provided.
func StringContext ¶
StringContext retrieves a string value from the context of the provided Construct scope using the specified key. It expects the context value associated with the key to be a string. If the value is not a string or if the key is missing, the function panics with a descriptive error. This function is useful for retrieving typed context values in CDK constructs.
Types ¶
This section is empty.