{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ec2/json-schema/amazon-ec2-describe-flow-logs-result-schema.json",
  "title": "DescribeFlowLogsResult",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ec2-flow-log-api-openapi.yml#/components/schemas/DescribeFlowLogsResult",
  "type": "object",
  "properties": {
    "FlowLogs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FlowLog"
      },
      "description": "Information about the flow logs."
    },
    "NextToken": {
      "type": "string",
      "description": "The token to request the next page of items. This value is null when there are no more items to return."
    }
  },
  "$defs": {
    "DestinationOptionsResponse": {
      "type": "object",
      "properties": {
        "FileFormat": {
          "type": "string",
          "enum": [
            "plain-text",
            "parquet"
          ],
          "description": "The format for the flow log."
        },
        "HiveCompatiblePartitions": {
          "type": "boolean",
          "description": "Indicates whether to use Hive-compatible prefixes for flow logs stored in Amazon S3."
        },
        "PerHourPartition": {
          "type": "boolean",
          "description": "Indicates whether to partition the flow log per hour."
        }
      }
    },
    "FlowLog": {
      "type": "object",
      "properties": {
        "CreationTime": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time the flow log was created."
        },
        "DeliverLogsErrorMessage": {
          "type": "string",
          "description": "Information about the error that occurred. Rate limited indicates that CloudWatch Logs throttling has been applied for one or more network interfaces, or that you've reached the limit on the number of log groups that you can create. Access error indicates that the IAM role associated with the flow log does not have sufficient permissions to publish to CloudWatch Logs. Unknown error indicates an internal error."
        },
        "DeliverLogsPermissionArn": {
          "type": "string",
          "description": "The ARN of the IAM role allows the service to publish logs to CloudWatch Logs."
        },
        "DeliverCrossAccountRole": {
          "type": "string",
          "description": "The ARN of the IAM role that allows the service to publish flow logs across accounts."
        },
        "DeliverLogsStatus": {
          "type": "string",
          "description": "The status of the logs delivery (SUCCESS | FAILED)."
        },
        "FlowLogId": {
          "type": "string",
          "description": "The ID of the flow log."
        },
        "FlowLogStatus": {
          "type": "string",
          "description": "The status of the flow log (ACTIVE)."
        },
        "LogGroupName": {
          "type": "string",
          "description": "The name of the flow log group."
        },
        "ResourceId": {
          "type": "string",
          "description": "The ID of the resource being monitored."
        },
        "TrafficType": {
          "type": "string",
          "enum": [
            "ACCEPT",
            "REJECT",
            "ALL"
          ],
          "description": "The type of traffic captured for the flow log."
        },
        "LogDestinationType": {
          "type": "string",
          "enum": [
            "cloud-watch-logs",
            "s3",
            "kinesis-data-firehose"
          ],
          "description": "The type of destination for the flow log data."
        },
        "LogDestination": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the destination for the flow log data."
        },
        "LogFormat": {
          "type": "string",
          "description": "The format of the flow log record."
        },
        "Tags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Tag"
          },
          "description": "The tags for the flow log."
        },
        "MaxAggregationInterval": {
          "type": "integer",
          "description": "The maximum interval of time, in seconds, during which a flow of packets is captured and aggregated into a flow log record. When a network interface is attached to a Nitro-based instance, the aggregation interval is always 60 seconds (1 minute) or less, regardless of the specified value. Valid Values: 60 | 600"
        },
        "DestinationOptions": {
          "$ref": "#/$defs/DestinationOptionsResponse"
        },
        "TagFieldSpecifications": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TagFieldSpecificationResponse"
          },
          "description": "The tag configuration associated with the Flow Logs Amazon EC2 Tags feature fields in your custom log format."
        }
      }
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The key of the tag. Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:."
        },
        "Value": {
          "type": "string",
          "description": "The value of the tag. Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters."
        }
      }
    },
    "TagFieldSpecificationResponse": {
      "type": "object",
      "properties": {
        "ResourceType": {
          "type": "string",
          "enum": [
            "network-interface",
            "instance",
            "auto-scaling-group"
          ],
          "description": "The resource type for the tag keys associated with the Flow Logs Amazon EC2 Tags feature fields in your custom log format."
        },
        "TagKeys": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The tag keys on your tagged resources to be displayed by the Flow Logs Amazon EC2 Tags feature fields in your custom log format."
        }
      }
    }
  }
}