---
AWSTemplateFormatVersion: "2010-09-09"
Parameters:
  myAllowedPattern:
    Type: String
    Default: vpc!@#$
    AllowedPattern : "^[a-zA-Z0-9]*$"
  myMinValue:
    Type: Number
    Default: 0
    MinValue: 1
  myMaxValue:
    Type: Number
    Default: 1
    MaxValue: 0
  myAllowedValue:
    Type: String
    Default: us-east-1a
    AllowedValues:
    - us-east-1b
    - us-east-1c
    - us-east-1d
  myMinLength:
    Type: String
    Default: abc
    MinLength: 5
  myMaxLength:
    Type: String
    Default: abc
    MaxLength: 1
  MyEmptyDefault:
    Type: "Number"
    Default: !Ref "AWS::NoValue"
  MyRefDefault:
    Type: !Ref "myMaxLength"
    Default: !Ref "myMinLength"
  CDLAllowedPattern:
    AllowedPattern: "[a-z]*$"
    ConstraintDescription: Alphanumeric string of any length.
    Description: test value using comma delimited list.
    Type: CommaDelimitedList
    Default: 1,2
  CDLAllowedValues:
    ConstraintDescription: Alphanumeric string of any length.
    Description: test value using comma delimited list.
    Type: CommaDelimitedList
    Default: three
    AllowedValues:
      - one
      - two
      - three,four
  CDLAllowedValuesWithSpaces:
    ConstraintDescription: Alphanumeric string of any length.
    Description: test value using comma delimited list.
    Type: CommaDelimitedList
    Default: three,four
    AllowedValues:
      - one
      - two
      - three, four
Resources: {}
