Class FlowLogResourceType
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ec2.FlowLogResourceType
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.110.0 (build 336b265)",
date="2025-04-22T23:08:11.189Z")
@Stability(Stable)
public abstract class FlowLogResourceType
extends software.amazon.jsii.JsiiObject
The type of resource to create the flow log for.
Example:
CfnTransitGateway tgw;
FlowLog.Builder.create(this, "TransitGatewayFlowLog")
.resourceType(FlowLogResourceType.fromTransitGatewayId(tgw.getRef()))
.build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedFlowLogResourceType(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedFlowLogResourceType(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic FlowLogResourceTypeThe Network Interface to attach the Flow Log to.static FlowLogResourceTypefromSubnet(ISubnet subnet) The subnet to attach the Flow Log to.static FlowLogResourceTypeThe Transit Gateway Attachment to attach the Flow Log to.static FlowLogResourceTypeThe Transit Gateway to attach the Flow Log to.static FlowLogResourceTypeThe VPC to attach the Flow Log to.abstract StringThe Id of the resource that the flow log should be attached to.abstract StringThe type of resource to attach a flow log to.abstract voidsetResourceId(String value) The Id of the resource that the flow log should be attached to.abstract voidsetResourceType(String value) The type of resource to attach a flow log to.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
FlowLogResourceType
protected FlowLogResourceType(software.amazon.jsii.JsiiObjectRef objRef) -
FlowLogResourceType
protected FlowLogResourceType(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
FlowLogResourceType
@Stability(Stable) protected FlowLogResourceType()
-
-
Method Details
-
fromNetworkInterfaceId
@Stability(Stable) @NotNull public static FlowLogResourceType fromNetworkInterfaceId(@NotNull String id) The Network Interface to attach the Flow Log to.- Parameters:
id- This parameter is required.
-
fromSubnet
The subnet to attach the Flow Log to.- Parameters:
subnet- This parameter is required.
-
fromTransitGatewayAttachmentId
@Stability(Stable) @NotNull public static FlowLogResourceType fromTransitGatewayAttachmentId(@NotNull String id) The Transit Gateway Attachment to attach the Flow Log to.- Parameters:
id- This parameter is required.
-
fromTransitGatewayId
@Stability(Stable) @NotNull public static FlowLogResourceType fromTransitGatewayId(@NotNull String id) The Transit Gateway to attach the Flow Log to.- Parameters:
id- This parameter is required.
-
fromVpc
The VPC to attach the Flow Log to.- Parameters:
vpc- This parameter is required.
-
getResourceId
The Id of the resource that the flow log should be attached to. -
setResourceId
The Id of the resource that the flow log should be attached to. -
getResourceType
The type of resource to attach a flow log to. -
setResourceType
The type of resource to attach a flow log to.
-