{
 "additionalProperties": false,
 "definitions": {
  "DataflowEdge": {
   "additionalProperties": false,
   "maxItems": 2,
   "minItems": 2,
   "properties": {
    "Destination": {
     "type": "string"
    },
    "Source": {
     "type": "string"
    }
   },
   "type": "object"
  },
  "StreamsKmsKey": {
   "additionalProperties": false,
   "oneOf": [
    {
     "required": [
      "KmsKeyArn"
     ]
    },
    {
     "required": [
      "KmsAliasArn"
     ]
    },
    {
     "required": [
      "KmsAliasName"
     ]
    }
   ],
   "properties": {
    "KmsAliasArn": {
     "maxLength": 512,
     "minLength": 1,
     "pattern": "^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
     "type": "string"
    },
    "KmsAliasName": {
     "maxLength": 256,
     "minLength": 1,
     "pattern": "^alias/[a-zA-Z0-9:/_-]+$",
     "type": "string"
    },
    "KmsKeyArn": {
     "pattern": "^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
     "type": "string"
    }
   },
   "type": "object"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "pattern": "^[ a-zA-Z0-9\\+\\-=._:/@]{1,128}$",
     "type": "string"
    },
    "Value": {
     "pattern": "^[ a-zA-Z0-9\\+\\-=._:/@]{1,256}$",
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/Id",
  "/properties/Arn"
 ],
 "properties": {
  "Arn": {
   "pattern": "^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
   "type": "string"
  },
  "ContactPostPassDurationSeconds": {
   "maximum": 21600,
   "minimum": 0,
   "type": "integer"
  },
  "ContactPrePassDurationSeconds": {
   "maximum": 21600,
   "minimum": 0,
   "type": "integer"
  },
  "DataflowEdges": {
   "items": {
    "$ref": "#/definitions/DataflowEdge"
   },
   "maxItems": 500,
   "minItems": 1,
   "type": "array"
  },
  "Id": {
   "type": "string"
  },
  "MinimumViableContactDurationSeconds": {
   "maximum": 21600,
   "minimum": 1,
   "type": "integer"
  },
  "Name": {
   "pattern": "^[ a-zA-Z0-9_:-]{1,256}$",
   "type": "string"
  },
  "Region": {
   "type": "string"
  },
  "StreamsKmsKey": {
   "$ref": "#/definitions/StreamsKmsKey"
  },
  "StreamsKmsRole": {
   "maxLength": 165,
   "minLength": 30,
   "pattern": "^arn:[a-z0-9-.]{1,63}:iam::[0-9]{12}:role/[\\w+=,.@-]{1,64}$",
   "type": "string"
  },
  "Tags": {
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "type": "array"
  },
  "TrackingConfigArn": {
   "maxLength": 424,
   "minLength": 82,
   "pattern": "^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
   "type": "string"
  }
 },
 "readOnlyProperties": [
  "/properties/Id",
  "/properties/Arn",
  "/properties/Region"
 ],
 "required": [
  "Name",
  "MinimumViableContactDurationSeconds",
  "DataflowEdges",
  "TrackingConfigArn"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-ground-station.git",
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::GroundStation::MissionProfile"
}
