Skip to content

Commit

Permalink
adding assertion for integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shikha372 committed Jan 29, 2025
1 parent 93df62a commit f4241e8
Show file tree
Hide file tree
Showing 21 changed files with 64,428 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/@aws-cdk/aws-ec2-alpha/lib/vpc-v2-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,12 @@ export abstract class VpcV2Base extends Resource implements IVpcV2 {
*/
protected _internetGatewayId = '';

/**
* Mutable private field for the EgressOnlyInternetGatewayId
* @internal
*/
protected _egressOnlyInternetGatewayId = '';

/**
* Return information on the subnets appropriate for the given selection strategy
*
Expand Down Expand Up @@ -432,6 +438,7 @@ export abstract class VpcV2Base extends Resource implements IVpcV2 {
vpc: this,
egressOnlyInternetGatewayName: options?.egressOnlyInternetGatewayName,
});
this._egressOnlyInternetGatewayId = egw.routerTargetId;

let useIpv6;
if (this.secondaryCidrBlock) {
Expand Down Expand Up @@ -610,6 +617,13 @@ export abstract class VpcV2Base extends Resource implements IVpcV2 {
return this._internetGatewayId;
}

/**
* Returns the id of the Egress Only Internet Gateway (if enabled)
*/
public get egressOnlyInternetGatewayId(): string | undefined {
return this._egressOnlyInternetGatewayId;
}

/**
* Return the subnets appropriate for the placement strategy
*/
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f4241e8

Please sign in to comment.