Skip to content

One Observability Workshop v3.0.0


One Observability Workshop / constructs/network / WorkshopNetwork

Class: WorkshopNetwork

Defined in: constructs/network.ts:82

A CDK construct that creates a VPC with public and private subnets, NAT gateway, and VPC Flow Logs for the observability workshop

Extends

  • Construct

Constructors

Constructor

new WorkshopNetwork(scope, id, properties): WorkshopNetwork

Defined in: constructs/network.ts:100

Creates a new WorkshopNetwork construct

Parameters

scope

Construct

The parent construct

id

string

The construct identifier

properties

WorkshopNetworkProperties

Configuration properties for the network

Returns

WorkshopNetwork

Overrides

Construct.constructor

Properties

vpc

readonly vpc: Vpc

Defined in: constructs/network.ts:84

The VPC instance created by this construct


vpcEndpoints

readonly vpcEndpoints: VpcEndpoints

Defined in: constructs/network.ts:86

The VPC endpoints created by this construct


cloudMapNamespace

readonly cloudMapNamespace: PrivateDnsNamespace

Defined in: constructs/network.ts:88

Cloud Map domain


vpcFlowLogs

readonly vpcFlowLogs: FlowLog

Defined in: constructs/network.ts:90

VPC Flow logs group


dnsQueryResolverLogs

readonly dnsQueryResolverLogs: CfnResolverQueryLoggingConfig

Defined in: constructs/network.ts:92

DNS Query Resolver Logs

Methods

importVpcFromExports()

static importVpcFromExports(scope, id): IVpc

Defined in: constructs/network.ts:266

Imports a VPC from CloudFormation exports created by WorkshopNetwork

This static method reconstructs a VPC instance from CloudFormation exports, allowing other stacks to reference and use the VPC created by the core infrastructure.

Parameters

scope

Construct

The construct scope where the VPC will be imported

id

string

The construct identifier for the imported VPC

Returns

IVpc

The imported VPC instance with all subnet and availability zone information

Example

const vpc = WorkshopNetwork.importVpcFromExports(this, 'ImportedVpc');
// Use vpc.privateSubnets, vpc.publicSubnets, etc.

importCloudMapNamespaceFromExports()

static importCloudMapNamespaceFromExports(scope, id): IPrivateDnsNamespace

Defined in: constructs/network.ts:394

Imports a CloudMap namespace from CloudFormation exports

Parameters

scope

Construct

The construct scope

id

string

The construct identifier

Returns

IPrivateDnsNamespace

The imported CloudMap namespace