{
  "typeName" : "AWS::DLM::LifecyclePolicy",
  "description" : "Resource Type definition for AWS::DLM::LifecyclePolicy",
  "additionalProperties" : false,
  "properties" : {
    "CreateInterval" : {
      "type" : "integer"
    },
    "Description" : {
      "type" : "string"
    },
    "ExtendDeletion" : {
      "type" : "boolean"
    },
    "Exclusions" : {
      "$ref" : "#/definitions/Exclusions"
    },
    "RetainInterval" : {
      "type" : "integer"
    },
    "ExecutionRoleArn" : {
      "type" : "string"
    },
    "DefaultPolicy" : {
      "type" : "string"
    },
    "State" : {
      "type" : "string"
    },
    "CrossRegionCopyTargets" : {
      "type" : "array",
      "uniqueItems" : false,
      "items" : {
        "$ref" : "#/definitions/CrossRegionCopyTarget"
      }
    },
    "PolicyDetails" : {
      "$ref" : "#/definitions/PolicyDetails"
    },
    "Id" : {
      "type" : "string"
    },
    "Arn" : {
      "type" : "string"
    },
    "Tags" : {
      "type" : "array",
      "uniqueItems" : false,
      "items" : {
        "$ref" : "#/definitions/Tag"
      }
    },
    "CopyTags" : {
      "type" : "boolean"
    }
  },
  "definitions" : {
    "Script" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "ExecutionHandlerService" : {
          "type" : "string"
        },
        "ExecutionTimeout" : {
          "type" : "integer"
        },
        "Stages" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "type" : "string"
          }
        },
        "ExecutionHandler" : {
          "type" : "string"
        },
        "MaximumRetryCount" : {
          "type" : "integer"
        },
        "ExecuteOperationOnScriptFailure" : {
          "type" : "boolean"
        }
      }
    },
    "Action" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "CrossRegionCopy" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "$ref" : "#/definitions/CrossRegionCopyAction"
          }
        },
        "Name" : {
          "type" : "string"
        }
      },
      "required" : [ "CrossRegionCopy", "Name" ]
    },
    "Parameters" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "ExcludeBootVolume" : {
          "type" : "boolean"
        },
        "NoReboot" : {
          "type" : "boolean"
        },
        "ExcludeDataVolumeTags" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "$ref" : "#/definitions/Tag"
          }
        }
      }
    },
    "CrossRegionCopyTarget" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "TargetRegion" : {
          "type" : "string"
        }
      }
    },
    "Exclusions" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "ExcludeTags" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "$ref" : "#/definitions/Tag"
          }
        },
        "ExcludeVolumeTypes" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "$ref" : "#/definitions/VolumeTypeValues"
          }
        },
        "ExcludeBootVolumes" : {
          "type" : "boolean"
        }
      }
    },
    "CrossRegionCopyRule" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "TargetRegion" : {
          "type" : "string"
        },
        "Target" : {
          "type" : "string"
        },
        "DeprecateRule" : {
          "$ref" : "#/definitions/CrossRegionCopyDeprecateRule"
        },
        "Encrypted" : {
          "type" : "boolean"
        },
        "CmkArn" : {
          "type" : "string"
        },
        "RetainRule" : {
          "$ref" : "#/definitions/CrossRegionCopyRetainRule"
        },
        "CopyTags" : {
          "type" : "boolean"
        }
      },
      "required" : [ "Encrypted" ]
    },
    "EncryptionConfiguration" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Encrypted" : {
          "type" : "boolean"
        },
        "CmkArn" : {
          "type" : "string"
        }
      },
      "required" : [ "Encrypted" ]
    },
    "CrossRegionCopyRetainRule" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "IntervalUnit" : {
          "type" : "string"
        },
        "Interval" : {
          "type" : "integer"
        }
      },
      "required" : [ "IntervalUnit", "Interval" ]
    },
    "ArchiveRule" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "RetainRule" : {
          "$ref" : "#/definitions/ArchiveRetainRule"
        }
      },
      "required" : [ "RetainRule" ]
    },
    "EventParameters" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "DescriptionRegex" : {
          "type" : "string"
        },
        "EventType" : {
          "type" : "string"
        },
        "SnapshotOwner" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "type" : "string"
          }
        }
      },
      "required" : [ "EventType", "SnapshotOwner" ]
    },
    "RetainRule" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "IntervalUnit" : {
          "type" : "string"
        },
        "Count" : {
          "type" : "integer"
        },
        "Interval" : {
          "type" : "integer"
        }
      }
    },
    "CrossRegionCopyAction" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Target" : {
          "type" : "string"
        },
        "EncryptionConfiguration" : {
          "$ref" : "#/definitions/EncryptionConfiguration"
        },
        "RetainRule" : {
          "$ref" : "#/definitions/CrossRegionCopyRetainRule"
        }
      },
      "required" : [ "Target", "EncryptionConfiguration" ]
    },
    "EventSource" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Type" : {
          "type" : "string"
        },
        "Parameters" : {
          "$ref" : "#/definitions/EventParameters"
        }
      },
      "required" : [ "Type" ]
    },
    "DeprecateRule" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "IntervalUnit" : {
          "type" : "string"
        },
        "Count" : {
          "type" : "integer"
        },
        "Interval" : {
          "type" : "integer"
        }
      }
    },
    "CrossRegionCopyDeprecateRule" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "IntervalUnit" : {
          "type" : "string"
        },
        "Interval" : {
          "type" : "integer"
        }
      },
      "required" : [ "IntervalUnit", "Interval" ]
    },
    "ArchiveRetainRule" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "RetentionArchiveTier" : {
          "$ref" : "#/definitions/RetentionArchiveTier"
        }
      },
      "required" : [ "RetentionArchiveTier" ]
    },
    "CreateRule" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "IntervalUnit" : {
          "type" : "string"
        },
        "Scripts" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "$ref" : "#/definitions/Script"
          }
        },
        "Times" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "type" : "string"
          }
        },
        "CronExpression" : {
          "type" : "string"
        },
        "Interval" : {
          "type" : "integer"
        },
        "Location" : {
          "type" : "string"
        }
      }
    },
    "Schedule" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "ShareRules" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "$ref" : "#/definitions/ShareRule"
          }
        },
        "DeprecateRule" : {
          "$ref" : "#/definitions/DeprecateRule"
        },
        "TagsToAdd" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "$ref" : "#/definitions/Tag"
          }
        },
        "CreateRule" : {
          "$ref" : "#/definitions/CreateRule"
        },
        "VariableTags" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "$ref" : "#/definitions/Tag"
          }
        },
        "FastRestoreRule" : {
          "$ref" : "#/definitions/FastRestoreRule"
        },
        "ArchiveRule" : {
          "$ref" : "#/definitions/ArchiveRule"
        },
        "RetainRule" : {
          "$ref" : "#/definitions/RetainRule"
        },
        "CrossRegionCopyRules" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "$ref" : "#/definitions/CrossRegionCopyRule"
          }
        },
        "Name" : {
          "type" : "string"
        },
        "CopyTags" : {
          "type" : "boolean"
        }
      }
    },
    "FastRestoreRule" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "IntervalUnit" : {
          "type" : "string"
        },
        "Count" : {
          "type" : "integer"
        },
        "AvailabilityZoneIds" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "type" : "string"
          }
        },
        "AvailabilityZones" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "type" : "string"
          }
        },
        "Interval" : {
          "type" : "integer"
        }
      }
    },
    "PolicyDetails" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "PolicyLanguage" : {
          "type" : "string"
        },
        "ResourceTypes" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "type" : "string"
          }
        },
        "Schedules" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "$ref" : "#/definitions/Schedule"
          }
        },
        "PolicyType" : {
          "type" : "string"
        },
        "CreateInterval" : {
          "type" : "integer"
        },
        "Parameters" : {
          "$ref" : "#/definitions/Parameters"
        },
        "ExtendDeletion" : {
          "type" : "boolean"
        },
        "Exclusions" : {
          "$ref" : "#/definitions/Exclusions"
        },
        "Actions" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "$ref" : "#/definitions/Action"
          }
        },
        "ResourceType" : {
          "type" : "string"
        },
        "RetainInterval" : {
          "type" : "integer"
        },
        "EventSource" : {
          "$ref" : "#/definitions/EventSource"
        },
        "CrossRegionCopyTargets" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "$ref" : "#/definitions/CrossRegionCopyTarget"
          }
        },
        "TargetTags" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "$ref" : "#/definitions/Tag"
          }
        },
        "ResourceLocations" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "type" : "string"
          }
        },
        "CopyTags" : {
          "type" : "boolean"
        }
      }
    },
    "RetentionArchiveTier" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "IntervalUnit" : {
          "type" : "string"
        },
        "Count" : {
          "type" : "integer"
        },
        "Interval" : {
          "type" : "integer"
        }
      }
    },
    "Tag" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Value" : {
          "type" : "string"
        },
        "Key" : {
          "type" : "string"
        }
      },
      "required" : [ "Value", "Key" ]
    },
    "ShareRule" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "TargetAccounts" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "type" : "string"
          }
        },
        "UnshareIntervalUnit" : {
          "type" : "string"
        },
        "UnshareInterval" : {
          "type" : "integer"
        }
      }
    },
    "VolumeTypeValues" : {
      "type" : "object",
      "additionalProperties" : false
    }
  },
  "primaryIdentifier" : [ "/properties/Id" ],
  "readOnlyProperties" : [ "/properties/Id", "/properties/Arn" ]
}