Skip to content

Commit

Permalink
feat(ec2): Add Transit Gateway settings
Browse files Browse the repository at this point in the history
to FlowLogResourceType
  • Loading branch information
dyoshikawa committed Sep 23, 2023
1 parent ab52bb5 commit 5a0ccfa
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions packages/aws-cdk-lib/aws-ec2/lib/vpc-flow-logs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,26 @@ export abstract class FlowLogResourceType {
};
}

/**
* The Transit Gateway to attach the Flow Log to
*/
public static fromTransitGatewayId(id: string): FlowLogResourceType {
return {
resourceType: "TransitGateway",
resourceId: id
}
}

/**
* The Transit Gateway Attachment to attach the Flow Log to
*/
public static fromTransitGatewayAttachmentId(id: string): FlowLogResourceType {
return {
resourceType: "TransitGatewayAttachment",
resourceId: id
}
}

/**
* The type of resource to attach a flow log to.
*/
Expand Down

0 comments on commit 5a0ccfa

Please sign in to comment.