{
  "typeName" : "AWS::GroundStation::DataflowEndpointGroup",
  "description" : "AWS Ground Station DataflowEndpointGroup schema for CloudFormation",
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-ground-station.git",
  "definitions" : {
    "SocketAddress" : {
      "type" : "object",
      "properties" : {
        "Name" : {
          "type" : "string"
        },
        "Port" : {
          "type" : "integer"
        }
      },
      "additionalProperties" : false
    },
    "DataflowEndpoint" : {
      "type" : "object",
      "properties" : {
        "Name" : {
          "type" : "string",
          "pattern" : "^[ a-zA-Z0-9_:-]{1,256}$"
        },
        "Address" : {
          "$ref" : "#/definitions/SocketAddress"
        },
        "Mtu" : {
          "type" : "integer"
        }
      },
      "additionalProperties" : false
    },
    "SecurityDetails" : {
      "type" : "object",
      "properties" : {
        "SubnetIds" : {
          "type" : "array",
          "items" : {
            "type" : "string"
          }
        },
        "SecurityGroupIds" : {
          "type" : "array",
          "items" : {
            "type" : "string"
          }
        },
        "RoleArn" : {
          "type" : "string"
        }
      },
      "additionalProperties" : false
    },
    "EndpointDetails" : {
      "type" : "object",
      "properties" : {
        "SecurityDetails" : {
          "$ref" : "#/definitions/SecurityDetails"
        },
        "Endpoint" : {
          "$ref" : "#/definitions/DataflowEndpoint"
        }
      },
      "additionalProperties" : false
    },
    "Tag" : {
      "type" : "object",
      "properties" : {
        "Key" : {
          "type" : "string",
          "pattern" : "^[ a-zA-Z0-9\\+\\-=._:/@]{1,128}$"
        },
        "Value" : {
          "type" : "string",
          "pattern" : "^[ a-zA-Z0-9\\+\\-=._:/@]{1,256}$"
        }
      },
      "additionalProperties" : false,
      "required" : [ "Key", "Value" ]
    }
  },
  "properties" : {
    "Id" : {
      "type" : "string"
    },
    "Arn" : {
      "type" : "string"
    },
    "EndpointDetails" : {
      "type" : "array",
      "minItems" : 1,
      "items" : {
        "$ref" : "#/definitions/EndpointDetails"
      }
    },
    "ContactPrePassDurationSeconds" : {
      "type" : "integer"
    },
    "ContactPostPassDurationSeconds" : {
      "type" : "integer"
    },
    "Tags" : {
      "type" : "array",
      "items" : {
        "$ref" : "#/definitions/Tag"
      }
    }
  },
  "required" : [ "EndpointDetails" ],
  "readOnlyProperties" : [ "/properties/Id", "/properties/Arn" ],
  "primaryIdentifier" : [ "/properties/Id" ],
  "handlers" : {
    "create" : {
      "permissions" : [ "groundstation:CreateDataflowEndpointGroup", "groundstation:GetDataflowEndpointGroup", "groundstation:TagResource", "iam:PassRole" ]
    },
    "read" : {
      "permissions" : [ "groundstation:GetDataflowEndpointGroup", "groundstation:ListTagsForResource" ]
    },
    "delete" : {
      "permissions" : [ "groundstation:DeleteDataflowEndpointGroup", "groundstation:GetDataflowEndpointGroup" ]
    },
    "list" : {
      "permissions" : [ "groundstation:ListDataflowEndpointGroups" ]
    }
  },
  "additionalProperties" : false
}