{
  "typeName" : "AWS::Connect::ContactFlowModuleAlias",
  "description" : "Resource Type definition for ContactFlowModuleAlias",
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "definitions" : { },
  "properties" : {
    "ContactFlowModuleAliasARN" : {
      "description" : "The identifier of the contact flow module alias (ARN). This is constructed from the ContactFlowModuleArn and AliasId.",
      "type" : "string",
      "pattern" : "^arn:aws[-a-z0-9]*:connect:[-a-z0-9]+:[0-9]{12}:instance/[-a-zA-Z0-9]+/flow-module/[-a-zA-Z0-9]+:[-a-zA-Z0-9]+$",
      "minLength" : 1,
      "maxLength" : 500
    },
    "AliasId" : {
      "description" : "The unique identifier of the alias.",
      "type" : "string",
      "minLength" : 1,
      "maxLength" : 500
    },
    "ContactFlowModuleId" : {
      "description" : "The identifier of the contact flow module (ARN) this alias is tied to.",
      "type" : "string",
      "pattern" : "^arn:aws[-a-z0-9]*:connect:[-a-z0-9]+:[0-9]{12}:instance/[-a-zA-Z0-9]+/flow-module/[-a-zA-Z0-9]+$",
      "minLength" : 1,
      "maxLength" : 500
    },
    "ContactFlowModuleVersion" : {
      "description" : "The version number of the contact flow module this alias points to.",
      "type" : "integer",
      "minimum" : 1
    },
    "Name" : {
      "description" : "The name of the alias.",
      "type" : "string",
      "pattern" : "^([$0-9a-zA-Z][_-]?)+$",
      "minLength" : 1,
      "maxLength" : 127
    },
    "Description" : {
      "description" : "The description of the alias.",
      "type" : "string",
      "minLength" : 0,
      "maxLength" : 500
    }
  },
  "additionalProperties" : false,
  "tagging" : {
    "taggable" : false,
    "tagOnCreate" : false,
    "tagUpdatable" : false,
    "cloudFormationSystemTags" : false
  },
  "required" : [ "ContactFlowModuleId", "ContactFlowModuleVersion", "Name" ],
  "primaryIdentifier" : [ "/properties/ContactFlowModuleAliasARN" ],
  "readOnlyProperties" : [ "/properties/ContactFlowModuleAliasARN", "/properties/AliasId" ],
  "createOnlyProperties" : [ "/properties/ContactFlowModuleId" ],
  "handlers" : {
    "create" : {
      "permissions" : [ "connect:CreateContactFlowModuleAlias", "connect:DescribeContactFlowModuleAlias" ]
    },
    "read" : {
      "permissions" : [ "connect:DescribeContactFlowModuleAlias" ]
    },
    "list" : {
      "handlerSchema" : {
        "properties" : {
          "ContactFlowModuleId" : {
            "$ref" : "resource-schema.json#/properties/ContactFlowModuleId"
          }
        },
        "required" : [ "ContactFlowModuleId" ]
      },
      "permissions" : [ "connect:ListContactFlowModuleAliases" ]
    },
    "update" : {
      "permissions" : [ "connect:UpdateContactFlowModuleAlias", "connect:DescribeContactFlowModuleAlias" ]
    },
    "delete" : {
      "permissions" : [ "connect:DeleteContactFlowModuleAlias" ]
    }
  }
}