@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.414Z") @Stability(value=Stable) public interface FlowLogDestinationConfig extends software.amazon.jsii.JsiiSerializable
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
.destinationOptions(DestinationOptions.builder()
.fileFormat(FlowLogFileFormat.PLAIN_TEXT)
.hiveCompatiblePartitions(false)
.perHourPartition(false)
.build())
.iamRole(role)
.keyPrefix("keyPrefix")
.logGroup(logGroup)
.s3Bucket(bucket)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
FlowLogDestinationConfig.Builder
A builder for
FlowLogDestinationConfig |
static class |
FlowLogDestinationConfig.Jsii$Proxy
An implementation for
FlowLogDestinationConfig |
| Modifier and Type | Method and Description |
|---|---|
static FlowLogDestinationConfig.Builder |
builder() |
default DestinationOptions |
getDestinationOptions()
Options for writing flow logs to a supported destination.
|
default IRole |
getIamRole()
The IAM Role that has access to publish to CloudWatch logs.
|
default String |
getKeyPrefix()
S3 bucket key prefix to publish the flow logs to.
|
FlowLogDestinationType |
getLogDestinationType()
The type of destination to publish the flow logs to.
|
default ILogGroup |
getLogGroup()
The CloudWatch Logs Log Group to publish the flow logs to.
|
default IBucket |
getS3Bucket()
S3 bucket to publish the flow logs to.
|
@Stability(value=Stable) @NotNull FlowLogDestinationType getLogDestinationType()
Default: - CLOUD_WATCH_LOGS
@Stability(value=Stable) @Nullable default DestinationOptions getDestinationOptions()
Default: - undefined
@Stability(value=Stable) @Nullable default IRole getIamRole()
Default: - default IAM role is created for you
@Stability(value=Stable) @Nullable default String getKeyPrefix()
Default: - undefined
@Stability(value=Stable) @Nullable default ILogGroup getLogGroup()
Default: - default log group is created for you
@Stability(value=Stable) @Nullable default IBucket getS3Bucket()
Default: - undefined
@Stability(value=Stable) static FlowLogDestinationConfig.Builder builder()
FlowLogDestinationConfig.Builder of FlowLogDestinationConfigCopyright © 2022. All rights reserved.