@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:36:53.328Z") public interface FlowLogProps extends FlowLogOptions
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 | 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 java.lang.String |
getFlowLogName()
The name of the FlowLog.
|
FlowLogResourceType |
getResourceType()
The type of resource for which to create the flow log.
|
getDestination, getTrafficType
FlowLogResourceType getResourceType()
default java.lang.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.
static FlowLogProps.Builder builder()
builder
in interface FlowLogOptions
FlowLogProps.Builder
of FlowLogProps