@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)",
date="2022-05-13T01:13:32.817Z")
public abstract class FlowLogResourceType
extends software.amazon.jsii.JsiiObject
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 | Constructor and Description |
---|---|
protected |
FlowLogResourceType() |
protected |
FlowLogResourceType(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
FlowLogResourceType(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
static FlowLogResourceType |
fromNetworkInterfaceId(java.lang.String id)
The Network Interface to attach the Flow Log to.
|
static FlowLogResourceType |
fromSubnet(ISubnet subnet)
The subnet to attach the Flow Log to.
|
static FlowLogResourceType |
fromVpc(IVpc vpc)
The VPC to attach the Flow Log to.
|
abstract java.lang.String |
getResourceId()
The Id of the resource that the flow log should be attached to.
|
abstract java.lang.String |
getResourceType()
The type of resource to attach a flow log to.
|
abstract void |
setResourceId(java.lang.String value)
The Id of the resource that the flow log should be attached to.
|
abstract void |
setResourceType(java.lang.String value)
The type of resource to attach a flow log to.
|
protected FlowLogResourceType(software.amazon.jsii.JsiiObjectRef objRef)
protected FlowLogResourceType(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
protected FlowLogResourceType()
public static FlowLogResourceType fromNetworkInterfaceId(java.lang.String id)
id
- This parameter is required.public static FlowLogResourceType fromSubnet(ISubnet subnet)
subnet
- This parameter is required.public static FlowLogResourceType fromVpc(IVpc vpc)
vpc
- This parameter is required.public abstract java.lang.String getResourceId()
public abstract void setResourceId(java.lang.String value)
public abstract java.lang.String getResourceType()
public abstract void setResourceType(java.lang.String value)