@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.415Z") @Stability(value=Stable) public interface FlowLogProps extends software.amazon.jsii.JsiiSerializable, FlowLogOptions
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 | Interface and Description |
|---|---|
static class |
FlowLogProps.Builder
A builder for
FlowLogProps |
static class |
FlowLogProps.Jsii$Proxy
An implementation for
FlowLogProps |
| Modifier and Type | Method and Description |
|---|---|
static FlowLogProps.Builder |
builder() |
default String |
getFlowLogName()
The name of the FlowLog.
|
FlowLogResourceType |
getResourceType()
The type of resource for which to create the flow log.
|
getDestination, getTrafficType@Stability(value=Stable) @NotNull FlowLogResourceType getResourceType()
@Stability(value=Stable) @Nullable default String getFlowLogName()
It is not recommended to use an explicit name.
Default: If you don't specify a flowLogName, AWS CloudFormation generates a unique physical ID and uses that ID for the group name.
@Stability(value=Stable) static FlowLogProps.Builder builder()
builder in interface FlowLogOptionsFlowLogProps.Builder of FlowLogPropsCopyright © 2022. All rights reserved.