我目前正在使用 aws-cdk 生成 cloudformation 模板,我想访问使用 定义的参数
CfnParameter(self, id="Platform", type="String", default="My Platform")
Run Code Online (Sandbox Code Playgroud)
带有参考(就像!Ref Platform 在 cloudformation 模板中一样)
你们中的任何人都知道 aws cdk 中的 Ref 相当于什么。
这是我上面定义的参数的 yaml 等效项
Parameters:
Platform:
Type: String
Default: "My Platform"
Run Code Online (Sandbox Code Playgroud)