{
  "typeName" : "AWS::NetworkManager::ConnectAttachment",
  "description" : "AWS::NetworkManager::ConnectAttachment Resource Type Definition",
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-networkmanager/aws-networkmanager-connectattachment",
  "properties" : {
    "CoreNetworkId" : {
      "description" : "ID of the CoreNetwork that the attachment will be attached to.",
      "type" : "string"
    },
    "CoreNetworkArn" : {
      "description" : "The ARN of a core network for the VPC attachment.",
      "type" : "string"
    },
    "AttachmentId" : {
      "description" : "The ID of the attachment.",
      "type" : "string"
    },
    "OwnerAccountId" : {
      "description" : "The ID of the attachment account owner.",
      "type" : "string"
    },
    "AttachmentType" : {
      "description" : "The type of attachment.",
      "type" : "string"
    },
    "State" : {
      "description" : "State of the attachment.",
      "type" : "string"
    },
    "EdgeLocation" : {
      "description" : "Edge location of the attachment.",
      "type" : "string"
    },
    "ResourceArn" : {
      "description" : "The attachment resource ARN.",
      "type" : "string"
    },
    "AttachmentPolicyRuleNumber" : {
      "description" : "The policy rule number associated with the attachment.",
      "type" : "integer"
    },
    "SegmentName" : {
      "description" : "The name of the segment attachment.",
      "type" : "string"
    },
    "ProposedSegmentChange" : {
      "description" : "The attachment to move from one segment to another.",
      "$ref" : "#/definitions/ProposedSegmentChange"
    },
    "Tags" : {
      "description" : "Tags for the attachment.",
      "type" : "array",
      "insertionOrder" : false,
      "items" : {
        "$ref" : "#/definitions/Tag"
      }
    },
    "CreatedAt" : {
      "description" : "Creation time of the attachment.",
      "type" : "string"
    },
    "UpdatedAt" : {
      "description" : "Last update time of the attachment.",
      "type" : "string"
    },
    "TransportAttachmentId" : {
      "description" : "Id of transport attachment",
      "type" : "string"
    },
    "Options" : {
      "description" : "Protocol options for connect attachment",
      "$ref" : "#/definitions/ConnectAttachmentOptions"
    }
  },
  "definitions" : {
    "ProposedSegmentChange" : {
      "description" : "A key-value pair to associate with a resource.",
      "type" : "object",
      "properties" : {
        "Tags" : {
          "description" : "Proposed tags for the Segment.",
          "type" : "array",
          "insertionOrder" : false,
          "items" : {
            "$ref" : "#/definitions/Tag"
          }
        },
        "AttachmentPolicyRuleNumber" : {
          "description" : "New policy rule number of the attachment",
          "type" : "integer"
        },
        "SegmentName" : {
          "description" : "Proposed segment name",
          "type" : "string"
        }
      },
      "additionalProperties" : false
    },
    "Tag" : {
      "description" : "A key-value pair to associate with a resource.",
      "type" : "object",
      "properties" : {
        "Key" : {
          "type" : "string",
          "description" : "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -."
        },
        "Value" : {
          "type" : "string",
          "description" : "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -."
        }
      },
      "required" : [ "Key", "Value" ],
      "additionalProperties" : false
    },
    "ConnectAttachmentOptions" : {
      "description" : "Connect attachment options for protocol",
      "type" : "object",
      "properties" : {
        "Protocol" : {
          "type" : "string",
          "description" : "Tunnel protocol for connect attachment"
        }
      },
      "additionalProperties" : false
    }
  },
  "additionalProperties" : false,
  "tagging" : {
    "taggable" : true,
    "tagOnCreate" : true,
    "tagUpdatable" : true,
    "cloudFormationSystemTags" : false
  },
  "readOnlyProperties" : [ "/properties/CoreNetworkArn", "/properties/CreatedAt", "/properties/UpdatedAt", "/properties/AttachmentType", "/properties/State", "/properties/ResourceArn", "/properties/AttachmentId", "/properties/OwnerAccountId", "/properties/AttachmentPolicyRuleNumber", "/properties/ProposedSegmentChange", "/properties/SegmentName" ],
  "createOnlyProperties" : [ "/properties/CoreNetworkId", "/properties/EdgeLocation", "/properties/TransportAttachmentId", "/properties/Options" ],
  "primaryIdentifier" : [ "/properties/AttachmentId" ],
  "required" : [ "CoreNetworkId", "EdgeLocation", "TransportAttachmentId", "Options" ],
  "handlers" : {
    "create" : {
      "permissions" : [ "networkmanager:GetConnectAttachment", "networkmanager:CreateConnectAttachment", "ec2:DescribeRegions" ]
    },
    "read" : {
      "permissions" : [ "networkmanager:GetConnectAttachment" ]
    },
    "update" : {
      "permissions" : [ "networkmanager:GetConnectAttachment", "networkmanager:ListTagsForResource", "networkmanager:TagResource", "networkmanager:UntagResource", "ec2:DescribeRegions" ]
    },
    "delete" : {
      "permissions" : [ "networkmanager:GetConnectAttachment", "networkmanager:DeleteAttachment", "ec2:DescribeRegions" ]
    },
    "list" : {
      "permissions" : [ "networkmanager:ListAttachments" ]
    }
  }
}