@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:28.778Z") @Stability(value=Experimental) public class FlowLog extends Resource implements IFlowLog
Example:
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
(experimental) 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)
(experimental) Import a Flow Log by it's Id.
|
IBucket |
getBucket()
(experimental) The S3 bucket to publish flow logs to.
|
String |
getFlowLogId()
(experimental) The Id of the VPC Flow Log.
|
IRole |
getIamRole()
(experimental) The iam role used to publish logs to CloudWatch.
|
String |
getKeyPrefix()
(experimental) S3 bucket key prefix to publish the flow logs under.
|
ILogGroup |
getLogGroup()
(experimental) The CloudWatch Logs LogGroup to publish flow logs to.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackgetNodeprotected FlowLog(software.amazon.jsii.JsiiObjectRef objRef)
protected FlowLog(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
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=Experimental) @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=Experimental) @NotNull public String getFlowLogId()
getFlowLogId in interface IFlowLog@Stability(value=Experimental) @Nullable public IBucket getBucket()
@Stability(value=Experimental) @Nullable public IRole getIamRole()
@Stability(value=Experimental) @Nullable public String getKeyPrefix()
@Stability(value=Experimental) @Nullable public ILogGroup getLogGroup()
Copyright © 2022. All rights reserved.