我正在通过Cloudformation创建一个SSM参数(AWS :: SSM :: Parameter)。在文档中有一个“政策”属性:
Policies
Information about the policies assigned to a parameter.
Working with Parameter Policies in the AWS Systems Manager User Guide.
Required: No
Type: String
Update requires: No interruption
在文档的任何地方都没有关于如何格式化字符串的示例或指南。我当前的CFN模板如下:
Conditions:
IsAdvancedParameter: !Equals [!Ref ParamTier, "Advanced"]
Resources:
ParamOne:
Type: AWS::SSM::Parameter
Properties:
Name: !Ref ParamName
Policies:
Fn::If:
- IsAdvancedParameter
- # What should go here???
- !Ref AWS::NoValue
Tier: !Ref ParamTier
Type: SecureString
Value: !Ref ParamVal
有人知道吗?