{
  "typeName" : "AWS::EC2::TransitGateway",
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-transitgateway",
  "description" : "Resource Type definition for AWS::EC2::TransitGateway",
  "additionalProperties" : false,
  "properties" : {
    "DefaultRouteTablePropagation" : {
      "type" : "string"
    },
    "TransitGatewayArn" : {
      "type" : "string"
    },
    "Description" : {
      "type" : "string"
    },
    "AutoAcceptSharedAttachments" : {
      "type" : "string"
    },
    "DefaultRouteTableAssociation" : {
      "type" : "string"
    },
    "Id" : {
      "type" : "string"
    },
    "VpnEcmpSupport" : {
      "type" : "string"
    },
    "DnsSupport" : {
      "type" : "string"
    },
    "SecurityGroupReferencingSupport" : {
      "type" : "string"
    },
    "MulticastSupport" : {
      "type" : "string"
    },
    "AmazonSideAsn" : {
      "type" : "integer",
      "format" : "int64"
    },
    "TransitGatewayCidrBlocks" : {
      "type" : "array",
      "items" : {
        "type" : "string"
      }
    },
    "Tags" : {
      "type" : "array",
      "uniqueItems" : false,
      "items" : {
        "$ref" : "#/definitions/Tag"
      }
    },
    "AssociationDefaultRouteTableId" : {
      "type" : "string"
    },
    "PropagationDefaultRouteTableId" : {
      "type" : "string"
    },
    "EncryptionSupport" : {
      "type" : "string",
      "enum" : [ "disable", "enable" ]
    },
    "EncryptionSupportState" : {
      "type" : "string"
    }
  },
  "definitions" : {
    "Tag" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Value" : {
          "type" : "string"
        },
        "Key" : {
          "type" : "string"
        }
      },
      "required" : [ "Value", "Key" ]
    }
  },
  "primaryIdentifier" : [ "/properties/Id" ],
  "readOnlyProperties" : [ "/properties/Id", "/properties/TransitGatewayArn", "/properties/EncryptionSupportState" ],
  "createOnlyProperties" : [ "/properties/AmazonSideAsn", "/properties/MulticastSupport" ],
  "writeOnlyProperties" : [ "/properties/EncryptionSupport" ],
  "tagging" : {
    "taggable" : true,
    "tagOnCreate" : true,
    "tagUpdatable" : true,
    "cloudFormationSystemTags" : true,
    "tagProperty" : "/properties/Tags",
    "permissions" : [ "ec2:CreateTags", "ec2:DeleteTags" ]
  },
  "handlers" : {
    "create" : {
      "permissions" : [ "ec2:CreateTransitGateway", "ec2:CreateTags", "ec2:DescribeTransitGateways", "ec2:DescribeTags", "ec2:ModifyTransitGateway", "ec2:ModifyTransitGatewayOptions" ]
    },
    "read" : {
      "permissions" : [ "ec2:DescribeTransitGateways", "ec2:DescribeTags" ]
    },
    "delete" : {
      "permissions" : [ "ec2:DescribeTransitGateways", "ec2:DescribeTags", "ec2:DeleteTransitGateway", "ec2:DeleteTags" ]
    },
    "update" : {
      "permissions" : [ "ec2:CreateTransitGateway", "ec2:CreateTags", "ec2:DescribeTransitGateways", "ec2:DescribeTags", "ec2:DeleteTransitGateway", "ec2:DeleteTags", "ec2:ModifyTransitGateway", "ec2:ModifyTransitGatewayOptions" ]
    },
    "list" : {
      "permissions" : [ "ec2:DescribeTransitGateways", "ec2:DescribeTags" ]
    }
  }
}