{
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-myservice",
  "handlers" : {
    "read" : {
      "permissions" : [ "ec2:DescribeTransitGatewayPeeringAttachments" ]
    },
    "create" : {
      "permissions" : [ "ec2:CreateTransitGatewayPeeringAttachment", "ec2:DescribeTransitGatewayPeeringAttachments" ]
    },
    "update" : {
      "permissions" : [ "ec2:DescribeTransitGatewayPeeringAttachments" ]
    },
    "list" : {
      "permissions" : [ "ec2:DescribeTransitGatewayPeeringAttachments" ]
    },
    "delete" : {
      "permissions" : [ "ec2:DeleteTransitGatewayPeeringAttachment", "ec2:DescribeTransitGatewayPeeringAttachments" ]
    }
  },
  "typeName" : "AWS::EC2::TransitGatewayPeeringAttachment",
  "readOnlyProperties" : [ "/properties/TransitGatewayAttachmentId", "/properties/Status", "/properties/State", "/properties/CreationTime" ],
  "description" : "The AWS::EC2::TransitGatewayPeeringAttachment type",
  "createOnlyProperties" : [ "/properties/TransitGatewayId", "/properties/PeerTransitGatewayId", "/properties/PeerRegion", "/properties/PeerAccountId" ],
  "additionalProperties" : false,
  "primaryIdentifier" : [ "/properties/TransitGatewayAttachmentId" ],
  "definitions" : {
    "Tag" : {
      "additionalProperties" : false,
      "type" : "object",
      "properties" : {
        "Value" : {
          "description" : "The value of the tag. Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.",
          "type" : "string"
        },
        "Key" : {
          "description" : "The key of the tag. Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.",
          "type" : "string"
        }
      }
    },
    "PeeringAttachmentStatus" : {
      "additionalProperties" : false,
      "type" : "object",
      "properties" : {
        "Message" : {
          "description" : "The status message, if applicable.",
          "type" : "string"
        },
        "Code" : {
          "description" : "The status code.",
          "type" : "string"
        }
      }
    }
  },
  "required" : [ "TransitGatewayId", "PeerTransitGatewayId", "PeerAccountId", "PeerRegion" ],
  "properties" : {
    "Status" : {
      "description" : "The status of the transit gateway peering attachment.",
      "$ref" : "#/definitions/PeeringAttachmentStatus"
    },
    "TransitGatewayId" : {
      "description" : "The ID of the transit gateway.",
      "type" : "string"
    },
    "PeerTransitGatewayId" : {
      "description" : "The ID of the peer transit gateway.",
      "type" : "string"
    },
    "PeerAccountId" : {
      "description" : "The ID of the peer account",
      "type" : "string"
    },
    "State" : {
      "description" : "The state of the transit gateway peering attachment. Note that the initiating state has been deprecated.",
      "type" : "string"
    },
    "CreationTime" : {
      "format" : "date-time",
      "description" : "The time the transit gateway peering attachment was created.",
      "type" : "string"
    },
    "PeerRegion" : {
      "description" : "Peer Region",
      "type" : "string"
    },
    "Tags" : {
      "description" : "The tags for the transit gateway peering attachment.",
      "type" : "array",
      "items" : {
        "$ref" : "#/definitions/Tag"
      }
    },
    "TransitGatewayAttachmentId" : {
      "description" : "The ID of the transit gateway peering attachment.",
      "type" : "string"
    }
  }
}