@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.413Z") @Stability(value=Stable) public class FlowLog extends Resource implements IFlowLog
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 and Type | Class and Description |
|---|---|
static class |
FlowLog.Builder
A fluent builder for
FlowLog. |
software.amazon.jsii.JsiiObject.InitializationModeIFlowLog.Jsii$Default, IFlowLog.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
FlowLog(software.constructs.Construct scope,
String id,
FlowLogProps props) |
protected |
FlowLog(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
FlowLog(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static IFlowLog |
fromFlowLogId(software.constructs.Construct scope,
String id,
String flowLogId)
Import a Flow Log by it's Id.
|
IBucket |
getBucket()
The S3 bucket to publish flow logs to.
|
String |
getFlowLogId()
The Id of the VPC Flow Log.
|
IRole |
getIamRole()
The iam role used to publish logs to CloudWatch.
|
String |
getKeyPrefix()
S3 bucket key prefix to publish the flow logs under.
|
ILogGroup |
getLogGroup()
The CloudWatch Logs LogGroup to publish flow logs to.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackprotected FlowLog(software.amazon.jsii.JsiiObjectRef objRef)
protected FlowLog(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public FlowLog(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
FlowLogProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public static IFlowLog fromFlowLogId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String flowLogId)
scope - This parameter is required.id - This parameter is required.flowLogId - This parameter is required.@Stability(value=Stable) @NotNull public String getFlowLogId()
getFlowLogId in interface IFlowLog@Stability(value=Stable) @Nullable public IBucket getBucket()
@Stability(value=Stable) @Nullable public IRole getIamRole()
@Stability(value=Stable) @Nullable public String getKeyPrefix()
@Stability(value=Stable) @Nullable public ILogGroup getLogGroup()
Copyright © 2022. All rights reserved.