diff --git a/framework/API.md b/framework/API.md index e88b6c687..fa62fe61f 100644 --- a/framework/API.md +++ b/framework/API.md @@ -4532,7 +4532,7 @@ A construct to create an MSK Provisioned cluster. *Example* ```typescript -const msk = new dsf.streaming.MskProvisioned(MyStack, 'cluster'); +const msk = new dsf.streaming.MskProvisioned(this, 'cluster'); ``` @@ -5346,7 +5346,7 @@ A construct to create an MSK Serverless cluster. *Example* ```typescript -const msk = new dsf.streaming.MskServerless(MyStack, 'cluster'); +const msk = new dsf.streaming.MskServerless(this, 'cluster'); ``` diff --git a/framework/src/streaming/lib/msk/msk-provisioned.ts b/framework/src/streaming/lib/msk/msk-provisioned.ts index 6be6d9d37..25d0ac462 100644 --- a/framework/src/streaming/lib/msk/msk-provisioned.ts +++ b/framework/src/streaming/lib/msk/msk-provisioned.ts @@ -33,7 +33,7 @@ import { DsfProvider } from '../../../utils/lib/dsf-provider'; * * @example * - * const msk = new dsf.streaming.MskProvisioned(MyStack, 'cluster'); + * const msk = new dsf.streaming.MskProvisioned(this, 'cluster'); * */ export class MskProvisioned extends TrackedConstruct { diff --git a/framework/src/streaming/lib/msk/msk-serverless.ts b/framework/src/streaming/lib/msk/msk-serverless.ts index d3ddd7486..518061bb3 100644 --- a/framework/src/streaming/lib/msk/msk-serverless.ts +++ b/framework/src/streaming/lib/msk/msk-serverless.ts @@ -18,7 +18,7 @@ import { Context, DataVpc, TrackedConstruct, TrackedConstructProps } from '../.. * * @example * - * const msk = new dsf.streaming.MskServerless(MyStack, 'cluster'); + * const msk = new dsf.streaming.MskServerless(this, 'cluster'); */ export class MskServerless extends TrackedConstruct {