@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:05.016Z") @Stability(value=Experimental) 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
.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 IRole |
getIamRole()
(experimental) The IAM Role that has access to publish to CloudWatch logs.
|
default String |
getKeyPrefix()
(experimental) S3 bucket key prefix to publish the flow logs to.
|
FlowLogDestinationType |
getLogDestinationType()
(experimental) The type of destination to publish the flow logs to.
|
default ILogGroup |
getLogGroup()
(experimental) The CloudWatch Logs Log Group to publish the flow logs to.
|
default IBucket |
getS3Bucket()
(experimental) S3 bucket to publish the flow logs to.
|
@Stability(value=Experimental) @NotNull FlowLogDestinationType getLogDestinationType()
Default: - CLOUD_WATCH_LOGS
@Stability(value=Experimental) @Nullable default IRole getIamRole()
Default: - default IAM role is created for you
@Stability(value=Experimental) @Nullable default String getKeyPrefix()
Default: - undefined
@Stability(value=Experimental) @Nullable default ILogGroup getLogGroup()
Default: - default log group is created for you
@Stability(value=Experimental) @Nullable default IBucket getS3Bucket()
Default: - undefined
@Stability(value=Experimental) static FlowLogDestinationConfig.Builder builder()
FlowLogDestinationConfig.Builder of FlowLogDestinationConfigCopyright © 2022. All rights reserved.