{
  "typeName" : "AWS::ApiGatewayV2::VpcLink",
  "description" : "The ``AWS::ApiGatewayV2::VpcLink`` resource creates a VPC link. This VPC link can be used with both REST and HTTP APIs. The VPC link status must transition from ``PENDING`` to ``AVAILABLE`` to successfully create a VPC link, which can take up to 10 minutes. To learn more, see [Working with VPC Links for HTTP APIs](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-vpc-links.html) in the *API Gateway Developer Guide*.",
  "additionalProperties" : false,
  "properties" : {
    "VpcLinkId" : {
      "type" : "string",
      "description" : ""
    },
    "SubnetIds" : {
      "type" : "array",
      "uniqueItems" : false,
      "insertionOrder" : false,
      "items" : {
        "type" : "string"
      },
      "description" : "A list of subnet IDs to include in the VPC link."
    },
    "SecurityGroupIds" : {
      "type" : "array",
      "uniqueItems" : false,
      "insertionOrder" : false,
      "items" : {
        "type" : "string"
      },
      "description" : "A list of security group IDs for the VPC link."
    },
    "Tags" : {
      "type" : "object",
      "description" : "The collection of tags. Each tag element is associated with a given resource.",
      "additionalProperties" : false,
      "patternProperties" : {
        ".*" : {
          "type" : "string"
        }
      }
    },
    "Name" : {
      "type" : "string",
      "description" : "The name of the VPC link."
    }
  },
  "required" : [ "SubnetIds", "Name" ],
  "createOnlyProperties" : [ "/properties/SecurityGroupIds", "/properties/SubnetIds" ],
  "primaryIdentifier" : [ "/properties/VpcLinkId" ],
  "readOnlyProperties" : [ "/properties/VpcLinkId" ],
  "tagging" : {
    "taggable" : true,
    "tagOnCreate" : true,
    "tagUpdatable" : true,
    "cloudFormationSystemTags" : true,
    "tagProperty" : "/properties/Tags",
    "permissions" : [ "apigateway:GET", "apigateway:PUT", "apigateway:PATCH", "apigateway:DELETE" ]
  },
  "handlers" : {
    "create" : {
      "permissions" : [ "apigateway:POST", "apigateway:GET", "apigateway:TagResource", "iam:CreateServiceLinkedRole", "iam:DeleteServiceLinkedRole", "iam:GetServiceLinkedRoleDeletionStatus" ]
    },
    "update" : {
      "permissions" : [ "apigateway:PATCH", "apigateway:POST", "apigateway:GET", "apigateway:DELETE", "apigateway:TagResource", "apigateway:unTagResource", "iam:CreateServiceLinkedRole", "iam:DeleteServiceLinkedRole", "iam:GetServiceLinkedRoleDeletionStatus" ]
    },
    "read" : {
      "permissions" : [ "apigateway:GET", "iam:CreateServiceLinkedRole", "iam:DeleteServiceLinkedRole", "iam:GetServiceLinkedRoleDeletionStatus" ]
    },
    "delete" : {
      "permissions" : [ "apigateway:GET", "apigateway:DELETE", "iam:CreateServiceLinkedRole", "iam:DeleteServiceLinkedRole", "iam:GetServiceLinkedRoleDeletionStatus" ]
    },
    "list" : {
      "permissions" : [ "apigateway:GET", "iam:CreateServiceLinkedRole", "iam:DeleteServiceLinkedRole", "iam:GetServiceLinkedRoleDeletionStatus" ]
    }
  }
}