{
  "typeName" : "AWS::NetworkFirewall::VpcEndpointAssociation",
  "description" : "Resource type definition for AWS::NetworkFirewall::VpcEndpointAssociation",
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-networkfirewall.git",
  "additionalProperties" : false,
  "definitions" : {
    "ResourceArn" : {
      "description" : "A resource ARN.",
      "type" : "string",
      "pattern" : "^(arn:aws.*)$",
      "minLength" : 1,
      "maxLength" : 256
    },
    "ResourceId" : {
      "type" : "string",
      "minLength" : 36,
      "maxLength" : 36,
      "pattern" : "^([0-9a-f]{8})-([0-9a-f]{4}-){3}([0-9a-f]{12})$"
    },
    "Description" : {
      "type" : "string",
      "maxLength" : 512,
      "pattern" : "^.*$"
    },
    "VpcId" : {
      "type" : "string",
      "minLength" : 1,
      "maxLength" : 128,
      "pattern" : "^vpc-[0-9a-f]+$"
    },
    "SubnetMapping" : {
      "type" : "object",
      "properties" : {
        "SubnetId" : {
          "description" : "A SubnetId.",
          "type" : "string"
        },
        "IPAddressType" : {
          "description" : "A IPAddressType",
          "type" : "string"
        }
      },
      "required" : [ "SubnetId" ],
      "additionalProperties" : false
    },
    "EndpointId" : {
      "description" : "An endpoint Id.",
      "type" : "string"
    },
    "Tag" : {
      "type" : "object",
      "properties" : {
        "Key" : {
          "type" : "string",
          "minLength" : 1,
          "maxLength" : 128,
          "pattern" : "^.*$"
        },
        "Value" : {
          "type" : "string",
          "minLength" : 0,
          "maxLength" : 255,
          "pattern" : "^.*$"
        }
      },
      "required" : [ "Key", "Value" ],
      "additionalProperties" : false
    }
  },
  "properties" : {
    "VpcEndpointAssociationArn" : {
      "$ref" : "#/definitions/ResourceArn"
    },
    "VpcEndpointAssociationId" : {
      "$ref" : "#/definitions/ResourceId"
    },
    "Description" : {
      "$ref" : "#/definitions/Description"
    },
    "FirewallArn" : {
      "$ref" : "#/definitions/ResourceArn"
    },
    "VpcId" : {
      "$ref" : "#/definitions/VpcId"
    },
    "EndpointId" : {
      "$ref" : "#/definitions/EndpointId"
    },
    "SubnetMapping" : {
      "$ref" : "#/definitions/SubnetMapping"
    },
    "Tags" : {
      "type" : "array",
      "insertionOrder" : false,
      "uniqueItems" : true,
      "items" : {
        "$ref" : "#/definitions/Tag"
      }
    }
  },
  "tagging" : {
    "taggable" : true,
    "tagOnCreate" : true,
    "tagUpdatable" : true,
    "cloudFormationSystemTags" : true,
    "tagProperty" : "/properties/Tags",
    "permissions" : [ "network-firewall:TagResource", "network-firewall:UntagResource", "network-firewall:ListTagsForResource" ]
  },
  "required" : [ "FirewallArn", "VpcId", "SubnetMapping" ],
  "readOnlyProperties" : [ "/properties/VpcEndpointAssociationArn", "/properties/VpcEndpointAssociationId", "/properties/EndpointId" ],
  "createOnlyProperties" : [ "/properties/FirewallArn", "/properties/Description", "/properties/VpcId", "/properties/SubnetMapping" ],
  "primaryIdentifier" : [ "/properties/VpcEndpointAssociationArn" ],
  "handlers" : {
    "create" : {
      "permissions" : [ "network-firewall:CreateVpcEndpointAssociation", "network-firewall:DescribeVpcEndpointAssociation", "network-firewall:ListFirewalls", "network-firewall:TagResource", "ec2:CreateVpcEndpoint", "ec2:DescribeVpcEndpoints", "ec2:DescribeSubnets", "ec2:DescribeVpcs", "iam:CreateServiceLinkedRole" ]
    },
    "read" : {
      "permissions" : [ "network-firewall:DescribeVpcEndpointAssociation", "network-firewall:ListTagsForResource" ]
    },
    "update" : {
      "permissions" : [ "network-firewall:DescribeVpcEndpointAssociation", "network-firewall:TagResource", "network-firewall:UntagResource" ]
    },
    "delete" : {
      "permissions" : [ "network-firewall:DeleteVpcEndpointAssociation", "network-firewall:DescribeVpcEndpointAssociation", "network-firewall:UntagResource", "ec2:DeleteVpcEndpoints", "ec2:DescribeRouteTables" ]
    },
    "list" : {
      "permissions" : [ "network-firewall:ListVpcEndpointAssociations" ]
    }
  }
}