{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/FlowArn",
  "/properties/DataTransferSubscriberFeePercent",
  "/properties/Name"
 ],
 "definitions": {
  "Encryption": {
   "additionalProperties": false,
   "properties": {
    "Algorithm": {
     "enum": [
      "aes128",
      "aes192",
      "aes256"
     ],
     "type": "string"
    },
    "ConstantInitializationVector": {
     "type": "string"
    },
    "DeviceId": {
     "type": "string"
    },
    "KeyType": {
     "default": "static-key",
     "enum": [
      "speke",
      "static-key"
     ],
     "type": "string"
    },
    "Region": {
     "type": "string"
    },
    "ResourceId": {
     "type": "string"
    },
    "RoleArn": {
     "format": "AWS::IAM::Role.Arn",
     "pattern": "^arn:(aws[a-zA-Z-]*):iam::[0-9]{12}:role/[a-zA-Z0-9_+=,.@-]+$",
     "type": "string"
    },
    "SecretArn": {
     "pattern": "^arn:(aws[a-zA-Z-]*):secretsmanager:[a-z0-9-]+:[0-9]{12}:secret:[a-zA-Z0-9/_+=.@-]+$",
     "type": "string"
    },
    "Url": {
     "type": "string"
    }
   },
   "required": [
    "Algorithm",
    "RoleArn"
   ],
   "type": "object"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "type": "string"
    },
    "Value": {
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  }
 },
 "deprecatedProperties": [
  "/properties/Encryption/ResourceId",
  "/properties/Encryption/ConstantInitializationVector",
  "/properties/Encryption/DeviceId",
  "/properties/Encryption/Region",
  "/properties/Encryption/Url"
 ],
 "primaryIdentifier": [
  "/properties/EntitlementArn"
 ],
 "properties": {
  "DataTransferSubscriberFeePercent": {
   "default": 0,
   "type": "integer"
  },
  "Description": {
   "type": "string"
  },
  "Encryption": {
   "$ref": "#/definitions/Encryption"
  },
  "EntitlementArn": {
   "pattern": "^arn:(aws[a-zA-Z-]*):mediaconnect:[a-z0-9-]+:[0-9]{12}:entitlement:[a-zA-Z0-9-]+:[a-zA-Z0-9_-]+$",
   "type": "string"
  },
  "EntitlementStatus": {
   "enum": [
    "ENABLED",
    "DISABLED"
   ],
   "type": "string"
  },
  "FlowArn": {
   "type": "string"
  },
  "Name": {
   "type": "string"
  },
  "Subscribers": {
   "items": {
    "type": "string"
   },
   "type": "array"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "type": "array",
   "uniqueItems": true
  }
 },
 "readOnlyProperties": [
  "/properties/EntitlementArn"
 ],
 "required": [
  "FlowArn",
  "Name",
  "Subscribers",
  "Description"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-mediaconnect.git",
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::MediaConnect::FlowEntitlement"
}
