Amazon EC2 · Schema
CreateFlowLogsRequest
Amazon Web ServicesCloud ComputingComputeInfrastructure-as-a-ServiceInfrastructureVirtual Machines
Properties
| Name | Type | Description |
|---|---|---|
| DryRun | boolean | Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRun |
| ClientToken | string | Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency. |
| DeliverLogsPermissionArn | string | The ARN of the IAM role that allows Amazon EC2 to publish flow logs to the log destination. This parameter is required if the destination type is cloud-watch-logs, or if the destination type is kinesi |
| DeliverCrossAccountRole | string | The ARN of the IAM role that allows Amazon EC2 to publish flow logs across accounts. |
| LogGroupName | string | The name of a new or existing CloudWatch Logs log group where Amazon EC2 publishes your flow logs. This parameter is valid only if the destination type is cloud-watch-logs. |
| ResourceIds | array | The IDs of the resources to monitor. For example, if the resource type is VPC, specify the IDs of the VPCs. Constraints: Maximum of 25 for transit gateway resource types. Maximum of 300 for the other |
| ResourceType | string | The type of resource to monitor. |
| TrafficType | string | The type of traffic to monitor (accepted traffic, rejected traffic, or all traffic). This parameter is not supported for transit gateway resource types. It is required for the other resource types. |
| LogDestinationType | string | The type of destination for the flow log data. Default: cloud-watch-logs |
| LogDestination | string | The destination for the flow log data. The meaning of this parameter depends on the destination type. If the destination type is cloud-watch-logs, specify the ARN of a CloudWatch Logs log group. For e |
| LogFormat | string | The fields to include in the flow log record. List the fields in the order in which they should appear. If you omit this parameter, the flow log is created using the default format. If you specify thi |
| TagSpecifications | array | The tags to apply to the flow logs. |
| MaxAggregationInterval | integer | The maximum interval of time during which a flow of packets is captured and aggregated into a flow log record. The possible values are 60 seconds (1 minute) or 600 seconds (10 minutes). This parameter |
| DestinationOptions | object | |
| TagFieldSpecifications | array | The tag configuration associated with the Flow Logs Amazon EC2 Tags feature fields in your custom log format. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/amazon-ec2/json-schema/amazon-ec2-create-flow-logs-request-schema.json",
"title": "CreateFlowLogsRequest",
"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/CreateFlowLogsRequest",
"type": "object",
"properties": {
"DryRun": {
"type": "boolean",
"description": "Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation."
},
"ClientToken": {
"type": "string",
"description": "Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency."
},
"DeliverLogsPermissionArn": {
"type": "string",
"description": "The ARN of the IAM role that allows Amazon EC2 to publish flow logs to the log destination. This parameter is required if the destination type is cloud-watch-logs, or if the destination type is kinesis-data-firehose and the delivery stream and the resources to monitor are in different accounts."
},
"DeliverCrossAccountRole": {
"type": "string",
"description": "The ARN of the IAM role that allows Amazon EC2 to publish flow logs across accounts."
},
"LogGroupName": {
"type": "string",
"description": "The name of a new or existing CloudWatch Logs log group where Amazon EC2 publishes your flow logs. This parameter is valid only if the destination type is cloud-watch-logs."
},
"ResourceIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "The IDs of the resources to monitor. For example, if the resource type is VPC, specify the IDs of the VPCs. Constraints: Maximum of 25 for transit gateway resource types. Maximum of 300 for the other resource types."
},
"ResourceType": {
"type": "string",
"enum": [
"VPC",
"Subnet",
"NetworkInterface",
"TransitGateway",
"TransitGatewayAttachment",
"RegionalNatGateway"
],
"description": "The type of resource to monitor."
},
"TrafficType": {
"type": "string",
"enum": [
"ACCEPT",
"REJECT",
"ALL"
],
"description": "The type of traffic to monitor (accepted traffic, rejected traffic, or all traffic). This parameter is not supported for transit gateway resource types. It is required for the other resource types."
},
"LogDestinationType": {
"type": "string",
"enum": [
"cloud-watch-logs",
"s3",
"kinesis-data-firehose"
],
"description": "The type of destination for the flow log data. Default: cloud-watch-logs"
},
"LogDestination": {
"type": "string",
"description": "The destination for the flow log data. The meaning of this parameter depends on the destination type. If the destination type is cloud-watch-logs, specify the ARN of a CloudWatch Logs log group. For example: arn:aws:logs:region:account_id:log-group:my_group Alternatively, use the LogGroupName parameter. If the destination type is s3, specify the ARN of an S3 bucket. For example: arn:aws:s3:::my_bucket/my_subfolder/ The subfolder is optional. Note that you can't use AWSLogs as a subfolder name. If the destination type is kinesis-data-firehose, specify the ARN of a Kinesis Data Firehose delivery"
},
"LogFormat": {
"type": "string",
"description": "The fields to include in the flow log record. List the fields in the order in which they should appear. If you omit this parameter, the flow log is created using the default format. If you specify this parameter, you must include at least one field. For more information about the available fields, see Flow log records in the Amazon VPC User Guide or Transit Gateway Flow Log records in the Amazon Web Services Transit Gateway Guide. Specify the fields using the ${field-id} format, separated by spaces."
},
"TagSpecifications": {
"type": "array",
"items": {
"$ref": "#/$defs/TagSpecification"
},
"description": "The tags to apply to the flow logs."
},
"MaxAggregationInterval": {
"type": "integer",
"description": "The maximum interval of time during which a flow of packets is captured and aggregated into a flow log record. The possible values are 60 seconds (1 minute) or 600 seconds (10 minutes). This parameter must be 60 seconds for transit gateway resource types. When a network interface is attached to a Nitro-based instance, the aggregation interval is always 60 seconds or less, regardless of the value that you specify. Default: 600"
},
"DestinationOptions": {
"$ref": "#/$defs/DestinationOptionsRequest"
},
"TagFieldSpecifications": {
"type": "array",
"items": {
"$ref": "#/$defs/TagFieldSpecificationRequest"
},
"description": "The tag configuration associated with the Flow Logs Amazon EC2 Tags feature fields in your custom log format."
}
},
"required": [
"ResourceIds",
"ResourceType"
],
"$defs": {
"DestinationOptionsRequest": {
"type": "object",
"properties": {
"FileFormat": {
"type": "string",
"enum": [
"plain-text",
"parquet"
],
"description": "The format for the flow log. The default is plain-text."
},
"HiveCompatiblePartitions": {
"type": "boolean",
"description": "Indicates whether to use Hive-compatible prefixes for flow logs stored in Amazon S3. The default is false."
},
"PerHourPartition": {
"type": "boolean",
"description": "Indicates whether to partition the flow log per hour. This reduces the cost and response time for queries. The default is false."
}
}
},
"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."
}
}
},
"TagFieldSpecificationRequest": {
"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."
}
}
},
"TagSpecification": {
"type": "object",
"properties": {
"ResourceType": {
"type": "string",
"enum": [
"capacity-reservation",
"client-vpn-endpoint",
"customer-gateway",
"carrier-gateway",
"coip-pool",
"declarative-policies-report",
"dedicated-host",
"dhcp-options",
"egress-only-internet-gateway",
"elastic-ip",
"elastic-gpu",
"export-image-task",
"export-instance-task",
"fleet",
"fpga-image",
"host-reservation",
"image",
"image-usage-report",
"import-image-task",
"import-snapshot-task",
"instance",
"instance-event-window",
"internet-gateway",
"ipam",
"ipam-pool",
"ipam-scope",
"ipv4pool-ec2",
"ipv6pool-ec2",
"key-pair",
"launch-template",
"local-gateway",
"local-gateway-route-table",
"local-gateway-virtual-interface",
"local-gateway-virtual-interface-group",
"local-gateway-route-table-vpc-association",
"local-gateway-route-table-virtual-interface-group-association",
"natgateway",
"network-acl",
"network-interface",
"network-insights-analysis",
"network-insights-path",
"network-insights-access-scope",
"network-insights-access-scope-analysis",
"outpost-lag",
"placement-group",
"prefix-list",
"replace-root-volume-task",
"reserved-instances",
"route-table",
"security-group",
"security-group-rule",
"service-link-virtual-interface",
"snapshot",
"spot-fleet-request",
"spot-instances-request",
"subnet",
"subnet-cidr-reservation",
"traffic-mirror-filter",
"traffic-mirror-session",
"traffic-mirror-target",
"transit-gateway",
"transit-gateway-attachment",
"transit-gateway-connect-peer",
"transit-gateway-multicast-domain",
"transit-gateway-policy-table",
"transit-gateway-metering-policy",
"transit-gateway-route-table",
"transit-gateway-route-table-announcement",
"volume",
"vpc",
"vpc-endpoint",
"vpc-endpoint-connection",
"vpc-endpoint-service",
"vpc-endpoint-service-permission",
"vpc-peering-connection",
"vpn-connection",
"vpn-gateway",
"vpc-flow-log",
"capacity-reservation-fleet",
"traffic-mirror-filter-rule",
"vpc-endpoint-connection-device-type",
"verified-access-instance",
"verified-access-group",
"verified-access-endpoint",
"verified-access-policy",
"verified-access-trust-provider",
"vpn-connection-device-type",
"vpc-block-public-access-exclusion",
"vpc-encryption-control",
"route-server",
"route-server-endpoint",
"route-server-peer",
"ipam-resource-discovery",
"ipam-resource-discovery-association",
"instance-connect-endpoint",
"verified-access-endpoint-target",
"ipam-external-resource-verification-token",
"capacity-block",
"mac-modification-task",
"ipam-prefix-list-resolver",
"ipam-policy",
"ipam-prefix-list-resolver-target",
"ipam-internet-registry-association",
"secondary-interface",
"secondary-network",
"secondary-subnet",
"capacity-manager-data-export",
"vpn-concentrator",
"ipam-pool-allocation",
"capacity-reservation-cancellation-quote",
"application-status-check",
"capacity-reservation-modification-quote"
],
"description": "The type of resource to tag on creation."
},
"Tags": {
"type": "array",
"items": {
"$ref": "#/$defs/Tag"
},
"description": "The tags to apply to the resource."
}
}
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/amazon-ec2-create-flow-logs-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.