{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/DeliverCrossAccountRole",
  "/properties/DeliverLogsPermissionArn",
  "/properties/LogGroupName",
  "/properties/LogDestination",
  "/properties/ResourceId",
  "/properties/TrafficType",
  "/properties/LogDestinationType",
  "/properties/ResourceType",
  "/properties/LogFormat",
  "/properties/MaxAggregationInterval",
  "/properties/DestinationOptions",
  "/properties/TagFieldSpecifications"
 ],
 "definitions": {
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "type": "string"
    },
    "Value": {
     "type": "string"
    }
   },
   "required": [
    "Value",
    "Key"
   ],
   "type": "object"
  },
  "TagFieldSpecification": {
   "additionalProperties": false,
   "properties": {
    "ResourceType": {
     "enum": [
      "auto-scaling-group",
      "instance",
      "network-interface"
     ],
     "type": "string"
    },
    "TagKeys": {
     "items": {
      "maxLength": 128,
      "minLength": 1,
      "type": "string"
     },
     "maxItems": 2,
     "minItems": 1,
     "type": "array",
     "uniqueItems": false
    }
   },
   "required": [
    "ResourceType",
    "TagKeys"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/Id"
 ],
 "properties": {
  "DeliverCrossAccountRole": {
   "type": "string"
  },
  "DeliverLogsPermissionArn": {
   "type": "string"
  },
  "DestinationOptions": {
   "additionalProperties": false,
   "properties": {
    "FileFormat": {
     "enum": [
      "plain-text",
      "parquet"
     ],
     "type": "string"
    },
    "HiveCompatiblePartitions": {
     "type": "boolean"
    },
    "PerHourPartition": {
     "type": "boolean"
    }
   },
   "required": [
    "FileFormat",
    "HiveCompatiblePartitions",
    "PerHourPartition"
   ],
   "type": "object"
  },
  "Id": {
   "type": "string"
  },
  "LogDestination": {
   "type": "string"
  },
  "LogDestinationType": {
   "enum": [
    "cloud-watch-logs",
    "s3",
    "kinesis-data-firehose"
   ],
   "type": "string"
  },
  "LogFormat": {
   "type": "string"
  },
  "LogGroupName": {
   "format": "AWS::Logs::LogGroup.Name",
   "type": "string"
  },
  "MaxAggregationInterval": {
   "type": "integer"
  },
  "ResourceId": {
   "type": "string"
  },
  "ResourceType": {
   "enum": [
    "NetworkInterface",
    "Subnet",
    "VPC",
    "TransitGateway",
    "TransitGatewayAttachment",
    "RegionalNatGateway"
   ],
   "type": "string"
  },
  "TagFieldSpecifications": {
   "items": {
    "$ref": "#/definitions/TagFieldSpecification"
   },
   "maxItems": 3,
   "minItems": 1,
   "type": "array",
   "uniqueItems": true
  },
  "Tags": {
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "type": "array",
   "uniqueItems": false
  },
  "TrafficType": {
   "enum": [
    "ACCEPT",
    "ALL",
    "REJECT"
   ],
   "type": "string"
  }
 },
 "readOnlyProperties": [
  "/properties/Id"
 ],
 "required": [
  "ResourceType",
  "ResourceId"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-ec2-flowlog.git",
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::EC2::FlowLog"
}
