Interface FlowLogProps
- All Superinterfaces:
FlowLogOptions
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
FlowLogProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:39.314Z")
@Stability(Stable)
public interface FlowLogProps
extends software.amazon.jsii.JsiiSerializable, FlowLogOptions
Properties of a VPC Flow Log.
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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forFlowLogProps
static final class
An implementation forFlowLogProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic FlowLogProps.Builder
builder()
default String
The name of the FlowLog.The type of resource for which to create the flow log.Methods inherited from interface software.amazon.awscdk.services.ec2.FlowLogOptions
getDestination, getTrafficType
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getResourceType
The type of resource for which to create the flow log. -
getFlowLogName
The name of the FlowLog.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.
-
builder
- Returns:
- a
FlowLogProps.Builder
ofFlowLogProps
-