aws-cloudformation / cloudformation-template-schema

Inline syntax validation, documentation links and autocompletion for your CloudFormation templates.
Apache License 2.0
141 stars 24 forks source link

DeletionPolicy and UpdateReplacePolicy #46

Closed PatMyron closed 3 years ago

PatMyron commented 3 years ago

https://github.com/aws-cloudformation/aws-cloudformation-template-schema/issues/31 @kaihendry DeletionPolicy UpdateReplacePolicy

Snapshot policies are only supported for a few resource types but not limiting here in hopes that Snapshot policy coverage expands: https://github.com/aws-cloudformation/aws-cloudformation-coverage-roadmap/issues/224

Screen Shot 2020-09-20 at 12 25 42 AM

JSON schema snippet generated for each resource type:

      "DeletionPolicy" : {
        "description" : "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html",
        "type" : "string",
        "enum" : [ "Delete", "Retain", "Snapshot" ]
      },
      "UpdateReplacePolicy" : {
        "description" : "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatereplacepolicy.html",
        "type" : "string",
        "enum" : [ "Delete", "Retain", "Snapshot" ]
      },