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.97.0 (build 729de35)", date="2024-04-18T17:54:16.000Z") @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();
 
  • 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

      @Stability(Stable) @NotNull public static FlowLogResourceType fromSubnet(@NotNull ISubnet subnet)
      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

      @Stability(Stable) @NotNull public static FlowLogResourceType fromVpc(@NotNull IVpc vpc)
      The VPC to attach the Flow Log to.

      Parameters:
      vpc - This parameter is required.
    • getResourceId

      @Stability(Stable) @NotNull public abstract String getResourceId()
      The Id of the resource that the flow log should be attached to.
    • setResourceId

      @Stability(Stable) public abstract void setResourceId(@NotNull String value)
      The Id of the resource that the flow log should be attached to.
    • getResourceType

      @Stability(Stable) @NotNull public abstract String getResourceType()
      The type of resource to attach a flow log to.
    • setResourceType

      @Stability(Stable) public abstract void setResourceType(@NotNull String value)
      The type of resource to attach a flow log to.