Builder
Properties
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.
The ARN of the IAM role that allows Amazon EC2 to publish flow logs across accounts.
The ARN of the IAM role that allows Amazon EC2 to publish flow logs to the log destination.
The destination options.
The destination for the flow log data. The meaning of this parameter depends on the destination type.
The type of destination for the flow log data.
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.
The name of a new or existing CloudWatch Logs log group where Amazon EC2 publishes your flow logs.
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.
The IDs of the resources to monitor. For example, if the resource type is VPC
, specify the IDs of the VPCs.
The type of resource to monitor.
The tags to apply to the flow logs.
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.
Functions
construct an aws.sdk.kotlin.services.ec2.model.DestinationOptionsRequest inside the given block