class FlowLogResourceType
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EC2.FlowLogResourceType |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#FlowLogResourceType |
Java | software.amazon.awscdk.services.ec2.FlowLogResourceType |
Python | aws_cdk.aws_ec2.FlowLogResourceType |
TypeScript (source) | 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. |
NetworkInterfaceId(id)
static frompublic static fromNetworkInterfaceId(id: string): FlowLogResourceType
Parameters
- id
string
Returns
The Network Interface to attach the Flow Log to.
Subnet(subnet)
static frompublic static fromSubnet(subnet: ISubnet): FlowLogResourceType
Parameters
- subnet
ISubnet
Returns
The subnet to attach the Flow Log to.
TransitGatewayAttachmentId(id)
static frompublic static fromTransitGatewayAttachmentId(id: string): FlowLogResourceType
Parameters
- id
string
Returns
The Transit Gateway Attachment to attach the Flow Log to.
TransitGatewayId(id)
static frompublic static fromTransitGatewayId(id: string): FlowLogResourceType
Parameters
- id
string
Returns
The Transit Gateway to attach the Flow Log to.
Vpc(vpc)
static frompublic static fromVpc(vpc: IVpc): FlowLogResourceType
Parameters
- vpc
IVpc
Returns
The VPC to attach the Flow Log to.