@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.414Z") @Stability(value=Stable) public abstract class FlowLogDestination extends software.amazon.jsii.JsiiObject
Example:
// Example automatically generated from non-compiling source. May contain errors.
Vpc vpc;
LogGroup logGroup = new LogGroup(this, "MyCustomLogGroup");
Role role = Role.Builder.create(this, "MyCustomRole")
.assumedBy(new ServicePrincipal("vpc-flow-logs.amazonaws.com"))
.build();
FlowLog.Builder.create(this, "FlowLog")
.resourceType(FlowLogResourceType.fromVpc(vpc))
.destination(FlowLogDestination.toCloudWatchLogs(logGroup, role))
.build();
| Modifier | Constructor and Description |
|---|---|
protected |
FlowLogDestination() |
protected |
FlowLogDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
FlowLogDestination(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
abstract FlowLogDestinationConfig |
bind(software.constructs.Construct scope,
FlowLog flowLog)
Generates a flow log destination configuration.
|
static FlowLogDestination |
toCloudWatchLogs()
Use CloudWatch logs as the destination.
|
static FlowLogDestination |
toCloudWatchLogs(ILogGroup logGroup)
Use CloudWatch logs as the destination.
|
static FlowLogDestination |
toCloudWatchLogs(ILogGroup logGroup,
IRole iamRole)
Use CloudWatch logs as the destination.
|
static FlowLogDestination |
toS3()
Use S3 as the destination.
|
static FlowLogDestination |
toS3(IBucket bucket)
Use S3 as the destination.
|
static FlowLogDestination |
toS3(IBucket bucket,
String keyPrefix)
Use S3 as the destination.
|
static FlowLogDestination |
toS3(IBucket bucket,
String keyPrefix,
S3DestinationOptions options)
Use S3 as the destination.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected FlowLogDestination(software.amazon.jsii.JsiiObjectRef objRef)
protected FlowLogDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) protected FlowLogDestination()
@Stability(value=Stable) @NotNull public static FlowLogDestination toCloudWatchLogs(@Nullable ILogGroup logGroup, @Nullable IRole iamRole)
logGroup - iamRole - @Stability(value=Stable) @NotNull public static FlowLogDestination toCloudWatchLogs(@Nullable ILogGroup logGroup)
logGroup - @Stability(value=Stable) @NotNull public static FlowLogDestination toCloudWatchLogs()
@Stability(value=Stable) @NotNull public static FlowLogDestination toS3(@Nullable IBucket bucket, @Nullable String keyPrefix, @Nullable S3DestinationOptions options)
bucket - optional s3 bucket to publish logs to.keyPrefix - optional prefix within the bucket to write logs to.options - additional s3 destination options.@Stability(value=Stable) @NotNull public static FlowLogDestination toS3(@Nullable IBucket bucket, @Nullable String keyPrefix)
bucket - optional s3 bucket to publish logs to.keyPrefix - optional prefix within the bucket to write logs to.@Stability(value=Stable) @NotNull public static FlowLogDestination toS3(@Nullable IBucket bucket)
bucket - optional s3 bucket to publish logs to.@Stability(value=Stable) @NotNull public static FlowLogDestination toS3()
@Stability(value=Stable) @NotNull public abstract FlowLogDestinationConfig bind(@NotNull software.constructs.Construct scope, @NotNull FlowLog flowLog)
scope - This parameter is required.flowLog - This parameter is required.Copyright © 2022. All rights reserved.