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.101.0 (build b95fe5d)",
date="2024-07-12T19:34:00.881Z")
@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
ModifierConstructorDescriptionprotected
protected
FlowLogResourceType
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
FlowLogResourceType
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic FlowLogResourceType
The Network Interface to attach the Flow Log to.static FlowLogResourceType
fromSubnet
(ISubnet subnet) The subnet to attach the Flow Log to.static FlowLogResourceType
The Transit Gateway Attachment to attach the Flow Log to.static FlowLogResourceType
The Transit Gateway to attach the Flow Log to.static FlowLogResourceType
The VPC to attach the Flow Log to.abstract String
The Id of the resource that the flow log should be attached to.abstract String
The type of resource to attach a flow log to.abstract void
setResourceId
(String value) The Id of the resource that the flow log should be attached to.abstract void
setResourceType
(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, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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.
-