class FlowLogResourceType
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.EC2.FlowLogResourceType |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#FlowLogResourceType |
![]() | software.amazon.awscdk.services.ec2.FlowLogResourceType |
![]() | aws_cdk.aws_ec2.FlowLogResourceType |
![]() | aws-cdk-lib » aws_ec2 » FlowLogResourceType |
The type of resource to create the flow log for.
Example
declare const tgw: ec2.CfnTransitGateway;
new ec2.FlowLog(this, 'TransitGatewayFlowLog', {
resourceType: ec2.FlowLogResourceType.fromTransitGatewayId(tgw.ref)
})
Initializer
new FlowLogResourceType()
Properties
Name | Type | Description |
---|---|---|
resource | string | The Id of the resource that the flow log should be attached to. |
resource | string | The type of resource to attach a flow log to. |
resourceId
Type:
string
The Id of the resource that the flow log should be attached to.
resourceType
Type:
string
The type of resource to attach a flow log to.
Methods
Name | Description |
---|---|
static from | The Network Interface to attach the Flow Log to. |
static from | The subnet to attach the Flow Log to. |
static from | The Transit Gateway Attachment to attach the Flow Log to. |
static from | The Transit Gateway to attach the Flow Log to. |
static from | The VPC to attach the Flow Log to. |
static fromNetworkInterfaceId(id)
public static fromNetworkInterfaceId(id: string): FlowLogResourceType
Parameters
- id
string
Returns
The Network Interface to attach the Flow Log to.
static fromSubnet(subnet)
public static fromSubnet(subnet: ISubnet): FlowLogResourceType
Parameters
- subnet
ISubnet
Returns
The subnet to attach the Flow Log to.
static fromTransitGatewayAttachmentId(id)
public static fromTransitGatewayAttachmentId(id: string): FlowLogResourceType
Parameters
- id
string
Returns
The Transit Gateway Attachment to attach the Flow Log to.
static fromTransitGatewayId(id)
public static fromTransitGatewayId(id: string): FlowLogResourceType
Parameters
- id
string
Returns
The Transit Gateway to attach the Flow Log to.
static fromVpc(vpc)
public static fromVpc(vpc: IVpc): FlowLogResourceType
Parameters
- vpc
IVpc
Returns
The VPC to attach the Flow Log to.