Class FlowLogResourceType
The type of resource to create the flow log for.
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public abstract class FlowLogResourceType : DeputyBase
Syntax (vb)
Public MustInherit Class FlowLogResourceType Inherits DeputyBase
Remarks
ExampleMetadata: infused
Examples
CfnTransitGateway tgw;
new FlowLog(this, "TransitGatewayFlowLog", new FlowLogProps {
ResourceType = FlowLogResourceType.FromTransitGatewayId(tgw.Ref)
});
Synopsis
Constructors
| FlowLogResourceType() | The type of resource to create the flow log for. |
Properties
| ResourceId | The Id of the resource that the flow log should be attached to. |
| ResourceType | The type of resource to attach a flow log to. |
Methods
| FromNetworkInterfaceId(string) | The Network Interface to attach the Flow Log to. |
| FromSubnet(ISubnetRef) | The subnet to attach the Flow Log to. |
| FromTransitGatewayAttachmentId(string) | The Transit Gateway Attachment to attach the Flow Log to. |
| FromTransitGatewayId(string) | The Transit Gateway to attach the Flow Log to. |
| FromVpc(IVpc) | The VPC to attach the Flow Log to. |
Constructors
FlowLogResourceType()
The type of resource to create the flow log for.
protected FlowLogResourceType()
Remarks
ExampleMetadata: infused
Examples
CfnTransitGateway tgw;
new FlowLog(this, "TransitGatewayFlowLog", new FlowLogProps {
ResourceType = FlowLogResourceType.FromTransitGatewayId(tgw.Ref)
});
Properties
ResourceId
The Id of the resource that the flow log should be attached to.
public abstract string ResourceId { get; set; }
Property Value
Remarks
ExampleMetadata: infused
ResourceType
The type of resource to attach a flow log to.
public abstract string ResourceType { get; set; }
Property Value
Remarks
ExampleMetadata: infused
Methods
FromNetworkInterfaceId(string)
The Network Interface to attach the Flow Log to.
public static FlowLogResourceType FromNetworkInterfaceId(string id)
Parameters
- id string
Returns
Remarks
ExampleMetadata: infused
FromSubnet(ISubnetRef)
The subnet to attach the Flow Log to.
public static FlowLogResourceType FromSubnet(ISubnetRef subnet)
Parameters
- subnet ISubnetRef
Returns
Remarks
ExampleMetadata: infused
FromTransitGatewayAttachmentId(string)
The Transit Gateway Attachment to attach the Flow Log to.
public static FlowLogResourceType FromTransitGatewayAttachmentId(string id)
Parameters
- id string
Returns
Remarks
ExampleMetadata: infused
FromTransitGatewayId(string)
The Transit Gateway to attach the Flow Log to.
public static FlowLogResourceType FromTransitGatewayId(string id)
Parameters
- id string
Returns
Remarks
ExampleMetadata: infused
FromVpc(IVpc)
The VPC to attach the Flow Log to.
public static FlowLogResourceType FromVpc(IVpc vpc)
Parameters
- vpc IVpc
Returns
Remarks
ExampleMetadata: infused