Interface FlowLogDestinationConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
FlowLogDestinationConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.126.0 (build 206d44b)",
date="2026-02-09T14:39:09.800Z")
@Stability(Stable)
public interface FlowLogDestinationConfig
extends software.amazon.jsii.JsiiSerializable
Flow Log Destination configuration.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
import software.amazon.awscdk.services.iam.*;
import software.amazon.awscdk.services.s3.*;
import software.amazon.awscdk.interfaces.kinesisfirehose.*;
import software.amazon.awscdk.interfaces.logs.*;
Bucket bucket;
IDeliveryStreamRef deliveryStreamRef;
ILogGroupRef logGroupRef;
Role role;
FlowLogDestinationConfig flowLogDestinationConfig = FlowLogDestinationConfig.builder()
.logDestinationType(FlowLogDestinationType.CLOUD_WATCH_LOGS)
// the properties below are optional
.deliveryStream(deliveryStreamRef)
.deliveryStreamArn("deliveryStreamArn")
.destinationOptions(DestinationOptions.builder()
.fileFormat(FlowLogFileFormat.PLAIN_TEXT)
.hiveCompatiblePartitions(false)
.perHourPartition(false)
.build())
.iamRole(role)
.keyPrefix("keyPrefix")
.logGroup(logGroupRef)
.s3Bucket(bucket)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forFlowLogDestinationConfigstatic final classAn implementation forFlowLogDestinationConfig -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default IDeliveryStreamRefThe Amazon Data Firehose delivery stream to publish the flow logs to.default StringDeprecated.use deliveryStreamdefault DestinationOptionsOptions for writing flow logs to a supported destination.default IRoleThe IAM role that allows Amazon EC2 to publish flow logs to the log destination.default StringS3 bucket key prefix to publish the flow logs to.The type of destination to publish the flow logs to.default ILogGroupRefThe CloudWatch Logs Log Group to publish the flow logs to.default IBucketS3 bucket to publish the flow logs to.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getLogDestinationType
The type of destination to publish the flow logs to.Default: - CLOUD_WATCH_LOGS
-
getDeliveryStream
The Amazon Data Firehose delivery stream to publish the flow logs to.Default: - undefined
-
getDeliveryStreamArn
Deprecated.use deliveryStream(deprecated) The ARN of Amazon Data Firehose delivery stream to publish the flow logs to.Default: - undefined
-
getDestinationOptions
Options for writing flow logs to a supported destination.Default: - undefined
-
getIamRole
The IAM role that allows Amazon EC2 to publish flow logs to the log destination.Required if the destination type is CloudWatch logs, or if the destination type is Amazon Data Firehose delivery stream and the delivery stream and the VPC are in different accounts.
Default: - default IAM role is created for you if the destination type is CloudWatch logs
-
getKeyPrefix
S3 bucket key prefix to publish the flow logs to.Default: - undefined
-
getLogGroup
The CloudWatch Logs Log Group to publish the flow logs to.Default: - default log group is created for you
-
getS3Bucket
S3 bucket to publish the flow logs to.Default: - undefined
-
builder
- Returns:
- a
FlowLogDestinationConfig.BuilderofFlowLogDestinationConfig
-