Repository: cdklabs/cdk-enterprise-iac (language: python)

Issue:
bug: enterpriseDnsResolver not exported
### What is the problem?

enterpriseDnsResolver is not exporting

### Reproduction Steps

try and use enterpriseDnsResolver

### What did you expect to happen?

enterpriseDnsResolver should be importable

### What actually happened?

It was not importable

### cdk-enterprise-iac version

0.0.451

### Language

Python

### Other information

_No response_


Discussion / hints:

Fix patch:
diff --git a/API.md b/API.md
index cfa9c64..7480f96 100644
--- a/API.md
+++ b/API.md
@@ -4321,6 +4321,105 @@ public readonly ecsScalingManagerFunction: Function;
 ---
 
 
+### EnterpriseDnsResolver <a name="EnterpriseDnsResolver" id="@cdklabs/cdk-enterprise-iac.EnterpriseDnsResolver"></a>
+
+#### Initializers <a name="Initializers" id="@cdklabs/cdk-enterprise-iac.EnterpriseDnsResolver.Initializer"></a>
+
+```typescript
+import { EnterpriseDnsResolver } from '@cdklabs/cdk-enterprise-iac'
+
+new EnterpriseDnsResolver(scope: Construct, id: string, props: EnterpriseDnsResolverProps)
+```
+
+| **Name** | **Type** | **Description** |
+| --- | --- | --- |
+| <code><a href="#@cdklabs/cdk-enterprise-iac.EnterpriseDnsResolver.Initializer.parameter.scope">scope</a></code> | <code>constructs.Construct</code> | *No description.* |
+| <code><a href="#@cdklabs/cdk-enterprise-iac.EnterpriseDnsResolver.Initializer.parameter.id">id</a></code> | <code>string</code> | *No description.* |
+| <code><a href="#@cdklabs/cdk-enterprise-iac.EnterpriseDnsResolver.Initializer.parameter.props">props</a></code> | <code><a href="#@cdklabs/cdk-enterprise-iac.EnterpriseDnsResolverProps">EnterpriseDnsResolverProps</a></code> | *No description.* |
+
+---
+
+##### `scope`<sup>Required</sup> <a name="scope" id="@cdklabs/cdk-enterprise-iac.EnterpriseDnsResolver.Initializer.parameter.scope"></a>
+
+- *Type:* constructs.Construct
+
+---
+
+##### `id`<sup>Required</sup> <a name="id" id="@cdklabs/cdk-enterprise-iac.EnterpriseDnsResolver.Initializer.parameter.id"></a>
+
+- *Type:* string
+
+---
+
+##### `props`<sup>Required</sup> <a name="props" id="@cdklabs/cdk-enterprise-iac.EnterpriseDnsResolver.Initializer.parameter.props"></a>
+
+- *Type:* <a href="#@cdklabs/cdk-enterprise-iac.EnterpriseDnsResolverProps">EnterpriseDnsResolverProps</a>
+
+---
+
+#### Methods <a name="Methods" id="Methods"></a>
+
+| **Name** | **Description** |
+| --- | --- |
+| <code><a href="#@cdklabs/cdk-enterprise-iac.EnterpriseDnsResolver.toString">toString</a></code> | Returns a string representation of this construct. |
+
+---
+
+##### `toString` <a name="toString" id="@cdklabs/cdk-enterprise-iac.EnterpriseDnsResolver.toString"></a>
+
+```typescript
+public toString(): string
+```
+
+Returns a string representation of this construct.
+
+#### Static Functions <a name="Static Functions" id="Static Functions"></a>
+
+| **Name** | **Description** |
+| --- | --- |
+| <code><a href="#@cdklabs/cdk-enterprise-iac.EnterpriseDnsResolver.isConstruct">isConstruct</a></code> | Checks if `x` is a construct. |
+
+---
+
+##### ~~`isConstruct`~~ <a name="isConstruct" id="@cdklabs/cdk-enterprise-iac.EnterpriseDnsResolver.isConstruct"></a>
+
+```typescript
+import { EnterpriseDnsResolver } from '@cdklabs/cdk-enterprise-iac'
+
+EnterpriseDnsResolver.isConstruct(x: any)
+```
+
+Checks if `x` is a construct.
+
+###### `x`<sup>Required</sup> <a name="x" id="@cdklabs/cdk-enterprise-iac.EnterpriseDnsResolver.isConstruct.parameter.x"></a>
+
+- *Type:* any
+
+Any object.
+
+---
+
+#### Properties <a name="Properties" id="Properties"></a>
+
+| **Name** | **Type** | **Description** |
+| --- | --- | --- |
+| <code><a href="#@cdklabs/cdk-enterprise-iac.EnterpriseDnsResolver.property.node">node</a></code> | <code>constructs.Node</code> | The tree node. |
+
+---
+
+##### `node`<sup>Required</sup> <a name="node" id="@cdklabs/cdk-enterprise-iac.EnterpriseDnsResolver.property.node"></a>
+
+```typescript
+public readonly node: Node;
+```
+
+- *Type:* constructs.Node
+
+The tree node.
+
+---
+
+
 ### PopulateWithConfig <a name="PopulateWithConfig" id="@cdklabs/cdk-enterprise-iac.PopulateWithConfig"></a>
 
 Populate a provided VPC with subnets based on a provided configuration.
@@ -4969,6 +5068,49 @@ The number of tasks that will scale out on scale out alarm status.
 
 ---
 
+### EnterpriseDnsResolverProps <a name="EnterpriseDnsResolverProps" id="@cdklabs/cdk-enterprise-iac.EnterpriseDnsResolverProps"></a>
+
+#### Initializer <a name="Initializer" id="@cdklabs/cdk-enterprise-iac.EnterpriseDnsResolverProps.Initializer"></a>
+
+```typescript
+import { EnterpriseDnsResolverProps } from '@cdklabs/cdk-enterprise-iac'
+
+const enterpriseDnsResolverProps: EnterpriseDnsResolverProps = { ... }
+```
+
+#### Properties <a name="Properties" id="Properties"></a>
+
+| **Name** | **Type** | **Description** |
+| --- | --- | --- |
+| <code><a href="#@cdklabs/cdk-enterprise-iac.EnterpriseDnsResolverProps.property.enterpriseDnsIpAddresses">enterpriseDnsIpAddresses</a></code> | <code>string[]</code> | List of IPs for enterprise DNS servers. |
+| <code><a href="#@cdklabs/cdk-enterprise-iac.EnterpriseDnsResolverProps.property.vpc">vpc</a></code> | <code>aws-cdk-lib.aws_ec2.Vpc \| aws-cdk-lib.aws_ec2.IVpc</code> | Vpc or IVpc to associate resolver rules with. |
+
+---
+
+##### `enterpriseDnsIpAddresses`<sup>Required</sup> <a name="enterpriseDnsIpAddresses" id="@cdklabs/cdk-enterprise-iac.EnterpriseDnsResolverProps.property.enterpriseDnsIpAddresses"></a>
+
+```typescript
+public readonly enterpriseDnsIpAddresses: string[];
+```
+
+- *Type:* string[]
+
+List of IPs for enterprise DNS servers.
+
+---
+
+##### `vpc`<sup>Required</sup> <a name="vpc" id="@cdklabs/cdk-enterprise-iac.EnterpriseDnsResolverProps.property.vpc"></a>
+
+```typescript
+public readonly vpc: Vpc | IVpc;
+```
+
+- *Type:* aws-cdk-lib.aws_ec2.Vpc | aws-cdk-lib.aws_ec2.IVpc
+
+Vpc or IVpc to associate resolver rules with.
+
+---
+
 ### PopulateWithConfigProps <a name="PopulateWithConfigProps" id="@cdklabs/cdk-enterprise-iac.PopulateWithConfigProps"></a>
 
 #### Initializer <a name="Initializer" id="@cdklabs/cdk-enterprise-iac.PopulateWithConfigProps.Initializer"></a>
diff --git a/src/constructs/enterpriseDnsResolver/enterpriseDnsResolver.ts b/src/constructs/enterpriseDnsResolver/enterpriseDnsResolver.ts
index 4cd1f46..956be8b 100644
--- a/src/constructs/enterpriseDnsResolver/enterpriseDnsResolver.ts
+++ b/src/constructs/enterpriseDnsResolver/enterpriseDnsResolver.ts
@@ -10,7 +10,7 @@ import {
 } from 'aws-cdk-lib/aws-route53resolver';
 import { Construct } from 'constructs';
 
-export interface enterpriseDnsResolverProps {
+export interface EnterpriseDnsResolverProps {
   /**
    * Vpc or IVpc to associate resolver rules with
    */
@@ -21,11 +21,11 @@ export interface enterpriseDnsResolverProps {
   readonly enterpriseDnsIpAddresses: string[];
 }
 
-export class enterpriseDnsResolver extends Construct {
+export class EnterpriseDnsResolver extends Construct {
   private readonly _vpc: Vpc | IVpc;
   private readonly _enterpriseDnsIpAddresses: string[];
 
-  constructor(scope: Construct, id: string, props: enterpriseDnsResolverProps) {
+  constructor(scope: Construct, id: string, props: EnterpriseDnsResolverProps) {
     super(scope, id);
 
     this._vpc = props.vpc;
diff --git a/src/index.ts b/src/index.ts
index 1210940..2597a6c 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -11,5 +11,6 @@ export * from './patches/addCfnInitProxy';
 export * from './patches/convertInlinePoliciesToManaged';
 export * from './constructs/populateProvidedVpc/populateProvidedVpc';
 export * from './constructs/ecsIsoServiceAutoscaler/ecsIsoServiceAutoscaler';
+export * from './constructs/enterpriseDnsResolver/enterpriseDnsResolver';
 export * from './patches/resource-extractor/resourceExtractor';
 export { ResourceTransform } from './patches/resource-extractor/resourceTransformer';


Test patch:
diff --git a/test/constructs/enterpriseDnsResolver/enterpriseDnsResolver.test.ts b/test/constructs/enterpriseDnsResolver/enterpriseDnsResolver.test.ts
index f74105b..4626d52 100644
--- a/test/constructs/enterpriseDnsResolver/enterpriseDnsResolver.test.ts
+++ b/test/constructs/enterpriseDnsResolver/enterpriseDnsResolver.test.ts
@@ -6,7 +6,7 @@ import { Stack } from 'aws-cdk-lib';
 import { Match, Template } from 'aws-cdk-lib/assertions';
 import { Vpc } from 'aws-cdk-lib/aws-ec2';
 
-import { enterpriseDnsResolver } from '../../../src/constructs/enterpriseDnsResolver/enterpriseDnsResolver';
+import { EnterpriseDnsResolver } from '../../../src/constructs/enterpriseDnsResolver/enterpriseDnsResolver';
 
 let stack: Stack;
 
@@ -15,7 +15,7 @@ describe('Enterprise DNS resolver', () => {
   const enterpriseDnsIpAddresses = ['1.1.1.1', '2.2.2.2', '3.3.3.3', '4.4.4.4'];
   const vpc = new Vpc(stack, 'TestVpc', { maxAzs: 2 });
 
-  new enterpriseDnsResolver(stack, 'EnterpriseDnsResolver', {
+  new EnterpriseDnsResolver(stack, 'EnterpriseDnsResolver', {
     vpc,
     enterpriseDnsIpAddresses,
   });