如何在AWS CloudFormation中格式化“ AWS :: SSM ::参数-策略”属性?

时间:2019-06-12 17:49:28

标签: amazon-web-services amazon-cloudformation ssm

我正在通过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

有人知道吗?

0 个答案:

没有答案