---
AWSTemplateFormatVersion: "2010-09-09"
Description: >
  Bad Template for testing DeletionPolicies
Parameters:
  DBPolicy:
    Type: String
    Default: 'Retain'
Resources:
  PolicyList:
    Type: AWS::RDS::DBInstance
    Properties:
      AllocatedStorage: '5'
      DBInstanceClass: db.m1.small
      Engine: MySQL
    DeletionPolicy: [Snapshot, Retain]
  MadeUpPolicy:
    Type: AWS::RDS::DBInstance
    Properties:
      AllocatedStorage: '5'
      DBInstanceClass: db.m1.small
      Engine: MySQL
    DeletionPolicy: CopyRegion
  MyIAMUser:
    Type: AWS::IAM::User
    Properties:
      # Username field not supported for secure strings
      UserName: 'bob'
    DeletionPolicy: Snapshot
  UnsupportedIntrinsic:
    Type: AWS::CloudFormation::WaitConditionHandle
    DeletionPolicy:
      Fn::Cidr:
        - "192.168.0.0/24"
        - 6
        - 5
  InvalidMapping:
    Type: AWS::RDS::DBInstance
    Properties:
      AllocatedStorage: '5'
      DBInstanceClass: db.m1.small
      Engine: MySQL
    DeletionPolicy:
      A: a1
      B:
        - b1
        - b2
    UpdateReplacePolicy: "Retain"
