Use an AWS CloudFormation parameter - AWS Cloud Development Kit (AWS CDK)

Use an AWS CloudFormation parameter

See Parameters for information about using the optional Parameters section to customize your AWS CloudFormation templates.

You can also get a reference to a resource in an existing AWS CloudFormation template, as described in Import or migrate an existing AWS CloudFormation template.