diff --git a/API.md b/API.md index 453714e..ea4cdfd 100644 --- a/API.md +++ b/API.md @@ -110,7 +110,7 @@ Any object. | **Name** | **Type** | **Description** | | --- | --- | --- | | node | constructs.Node | The tree node. | -| endpointOutputs | {[ key: string ]: aws-cdk-lib.aws_ec2.GatewayVpcEndpoint \| aws-cdk-lib.aws_ec2.InterfaceVpcEndpoint} | *No description.* | +| endpointOutputs | {[ key: string ]: aws-cdk-lib.aws_ec2.InterfaceVpcEndpoint \| aws-cdk-lib.aws_ec2.GatewayVpcEndpoint} | *No description.* | | natProvider | aws-cdk-lib.aws_ec2.NatProvider | *No description.* | | securityGroupOutputs | {[ key: string ]: aws-cdk-lib.aws_ec2.SecurityGroup} | *No description.* | | vpc | aws-cdk-lib.aws_ec2.Vpc | *No description.* | @@ -136,10 +136,10 @@ The tree node. ##### `endpointOutputs`Required ```typescript -public readonly endpointOutputs: {[ key: string ]: GatewayVpcEndpoint | InterfaceVpcEndpoint}; +public readonly endpointOutputs: {[ key: string ]: InterfaceVpcEndpoint | GatewayVpcEndpoint}; ``` -- *Type:* {[ key: string ]: aws-cdk-lib.aws_ec2.GatewayVpcEndpoint | aws-cdk-lib.aws_ec2.InterfaceVpcEndpoint} +- *Type:* {[ key: string ]: aws-cdk-lib.aws_ec2.InterfaceVpcEndpoint | aws-cdk-lib.aws_ec2.GatewayVpcEndpoint} --- @@ -449,7 +449,7 @@ const securityGroupRule: SecurityGroupRule = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | -| peer | aws-cdk-lib.aws_ec2.ISecurityGroup \| aws-cdk-lib.aws_ec2.IPeer | *No description.* | +| peer | aws-cdk-lib.aws_ec2.IPeer \| aws-cdk-lib.aws_ec2.ISecurityGroup | *No description.* | | port | aws-cdk-lib.aws_ec2.Port | *No description.* | | description | string | *No description.* | @@ -458,10 +458,10 @@ const securityGroupRule: SecurityGroupRule = { ... } ##### `peer`Required ```typescript -public readonly peer: ISecurityGroup | IPeer; +public readonly peer: IPeer | ISecurityGroup; ``` -- *Type:* aws-cdk-lib.aws_ec2.ISecurityGroup | aws-cdk-lib.aws_ec2.IPeer +- *Type:* aws-cdk-lib.aws_ec2.IPeer | aws-cdk-lib.aws_ec2.ISecurityGroup --- @@ -500,7 +500,7 @@ const vpcEndpointConfig: VpcEndpointConfig = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | | name | string | *No description.* | -| service | aws-cdk-lib.aws_ec2.GatewayVpcEndpointAwsService \| aws-cdk-lib.aws_ec2.InterfaceVpcEndpointService \| aws-cdk-lib.aws_ec2.InterfaceVpcEndpointAwsService | *No description.* | +| service | aws-cdk-lib.aws_ec2.InterfaceVpcEndpointAwsService \| aws-cdk-lib.aws_ec2.GatewayVpcEndpointAwsService \| aws-cdk-lib.aws_ec2.InterfaceVpcEndpointService | *No description.* | | subnetGroupNames | string[] | *No description.* | | additionalTags | {[ key: string ]: string} | *No description.* | | externalSubnets | IExternalVPEndpointSubnets[] | *No description.* | @@ -522,10 +522,10 @@ public readonly name: string; ##### `service`Required ```typescript -public readonly service: GatewayVpcEndpointAwsService | InterfaceVpcEndpointService | InterfaceVpcEndpointAwsService; +public readonly service: InterfaceVpcEndpointAwsService | GatewayVpcEndpointAwsService | InterfaceVpcEndpointService; ``` -- *Type:* aws-cdk-lib.aws_ec2.GatewayVpcEndpointAwsService | aws-cdk-lib.aws_ec2.InterfaceVpcEndpointService | aws-cdk-lib.aws_ec2.InterfaceVpcEndpointAwsService +- *Type:* aws-cdk-lib.aws_ec2.InterfaceVpcEndpointAwsService | aws-cdk-lib.aws_ec2.GatewayVpcEndpointAwsService | aws-cdk-lib.aws_ec2.InterfaceVpcEndpointService --- diff --git a/src/constructs/network.ts b/src/constructs/network.ts index ae78a86..aa41390 100644 --- a/src/constructs/network.ts +++ b/src/constructs/network.ts @@ -74,7 +74,12 @@ export interface PeeringConfig { readonly peerRegion?: string; readonly tags: Record; } + + export interface PeeringConnectionInternalType { +/** +* @jsii ignore +*/ [name: string]: ec2.CfnVPCPeeringConnection; } export interface SecurityGroupRule {