{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/TrafficMirrorFilterId"
 ],
 "definitions": {
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "type": "string"
    },
    "Value": {
     "type": "string"
    }
   },
   "required": [
    "Value",
    "Key"
   ],
   "type": "object"
  },
  "TrafficDirection": {
   "enumCaseInsensitive": [
    "egress",
    "ingress"
   ],
   "type": "string"
  },
  "TrafficMirrorPortRange": {
   "additionalProperties": false,
   "properties": {
    "FromPort": {
     "type": "integer"
    },
    "ToPort": {
     "type": "integer"
    }
   },
   "required": [
    "FromPort",
    "ToPort"
   ],
   "type": "object"
  },
  "TrafficMirrorRuleAction": {
   "enumCaseInsensitive": [
    "accept",
    "reject"
   ],
   "type": "string"
  }
 },
 "primaryIdentifier": [
  "/properties/TrafficMirrorFilterRuleId"
 ],
 "properties": {
  "Description": {
   "type": "string"
  },
  "DestinationCidrBlock": {
   "format": "ipv4-network",
   "type": "string"
  },
  "DestinationPortRange": {
   "$ref": "#/definitions/TrafficMirrorPortRange"
  },
  "Protocol": {
   "type": "integer"
  },
  "RuleAction": {
   "$ref": "#/definitions/TrafficMirrorRuleAction"
  },
  "RuleNumber": {
   "type": "integer"
  },
  "SourceCidrBlock": {
   "format": "ipv4-network",
   "type": "string"
  },
  "SourcePortRange": {
   "$ref": "#/definitions/TrafficMirrorPortRange"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "type": "array",
   "uniqueItems": false
  },
  "TrafficDirection": {
   "$ref": "#/definitions/TrafficDirection"
  },
  "TrafficMirrorFilterId": {
   "type": "string"
  },
  "TrafficMirrorFilterRuleId": {
   "type": "string"
  }
 },
 "readOnlyProperties": [
  "/properties/TrafficMirrorFilterRuleId"
 ],
 "required": [
  "RuleAction",
  "SourceCidrBlock",
  "RuleNumber",
  "DestinationCidrBlock",
  "TrafficMirrorFilterId",
  "TrafficDirection"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::EC2::TrafficMirrorFilterRule"
}
