{
 "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"
 ],
 "definitions": {
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "type": "string"
    },
    "Value": {
     "type": "string"
    }
   },
   "required": [
    "Value",
    "Key"
   ],
   "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"
  },
  "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"
}
