Interface FlowLogDestinationConfig

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
FlowLogDestinationConfig.Jsii$Proxy

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-18T17:54:15.982Z") @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.logs.*;
 import software.amazon.awscdk.services.s3.*;
 Bucket bucket;
 LogGroup logGroup;
 Role role;
 FlowLogDestinationConfig flowLogDestinationConfig = FlowLogDestinationConfig.builder()
         .logDestinationType(FlowLogDestinationType.CLOUD_WATCH_LOGS)
         // the properties below are optional
         .deliveryStreamArn("deliveryStreamArn")
         .destinationOptions(DestinationOptions.builder()
                 .fileFormat(FlowLogFileFormat.PLAIN_TEXT)
                 .hiveCompatiblePartitions(false)
                 .perHourPartition(false)
                 .build())
         .iamRole(role)
         .keyPrefix("keyPrefix")
         .logGroup(logGroup)
         .s3Bucket(bucket)
         .build();
 
  • Method Details

    • getLogDestinationType

      @Stability(Stable) @NotNull FlowLogDestinationType getLogDestinationType()
      The type of destination to publish the flow logs to.

      Default: - CLOUD_WATCH_LOGS

    • getDeliveryStreamArn

      @Stability(Stable) @Nullable default String getDeliveryStreamArn()
      The ARN of Kinesis Data Firehose delivery stream to publish the flow logs to.

      Default: - undefined

    • getDestinationOptions

      @Stability(Stable) @Nullable default DestinationOptions getDestinationOptions()
      Options for writing flow logs to a supported destination.

      Default: - undefined

    • getIamRole

      @Stability(Stable) @Nullable default IRole getIamRole()
      The IAM Role that has access to publish to CloudWatch logs.

      Default: - default IAM role is created for you

    • getKeyPrefix

      @Stability(Stable) @Nullable default String getKeyPrefix()
      S3 bucket key prefix to publish the flow logs to.

      Default: - undefined

    • getLogGroup

      @Stability(Stable) @Nullable default ILogGroup getLogGroup()
      The CloudWatch Logs Log Group to publish the flow logs to.

      Default: - default log group is created for you

    • getS3Bucket

      @Stability(Stable) @Nullable default IBucket getS3Bucket()
      S3 bucket to publish the flow logs to.

      Default: - undefined

    • builder

      @Stability(Stable) static FlowLogDestinationConfig.Builder builder()
      Returns:
      a FlowLogDestinationConfig.Builder of FlowLogDestinationConfig