Class FlowLogResourceType
The type of resource to create the flow log for.
Inheritance
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() | |
FlowLogResourceType(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
FlowLogResourceType(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
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(ISubnet) | 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()
protected FlowLogResourceType()
FlowLogResourceType(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected FlowLogResourceType(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
FlowLogResourceType(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected FlowLogResourceType(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
ResourceId
The Id of the resource that the flow log should be attached to.
public abstract string ResourceId { get; set; }
Property Value
System.String
ResourceType
The type of resource to attach a flow log to.
public abstract string ResourceType { get; set; }
Property Value
System.String
Methods
FromNetworkInterfaceId(String)
The Network Interface to attach the Flow Log to.
public static FlowLogResourceType FromNetworkInterfaceId(string id)
Parameters
- id System.String
Returns
FromSubnet(ISubnet)
The subnet to attach the Flow Log to.
public static FlowLogResourceType FromSubnet(ISubnet subnet)
Parameters
- subnet ISubnet
Returns
FromTransitGatewayAttachmentId(String)
The Transit Gateway Attachment to attach the Flow Log to.
public static FlowLogResourceType FromTransitGatewayAttachmentId(string id)
Parameters
- id System.String
Returns
FromTransitGatewayId(String)
The Transit Gateway to attach the Flow Log to.
public static FlowLogResourceType FromTransitGatewayId(string id)
Parameters
- id System.String
Returns
FromVpc(IVpc)
The VPC to attach the Flow Log to.
public static FlowLogResourceType FromVpc(IVpc vpc)
Parameters
- vpc IVpc
Returns