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