-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
77 changed files
with
12,905 additions
and
4,229 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
framework/src/governance/examples/datazone-gsr-msk-datasource-cron.lit.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import * as cdk from 'aws-cdk-lib'; | ||
import { Construct } from 'constructs'; | ||
import * as dsf from '../../index'; | ||
import * as events from 'aws-cdk-lib/aws-events' ; | ||
|
||
|
||
class ExampleDefaultDataZoneGsrMskDataSourceStack extends cdk.Stack { | ||
constructor(scope: Construct, id: string) { | ||
super(scope, id); | ||
|
||
/// !show | ||
new dsf.governance.DataZoneGsrMskDataSource(this, 'DataZoneGsrMskDataSource', { | ||
domainId: 'aba_dc999t9ime9sss', | ||
registryName: 'schema-registry', | ||
projectId: '999a99aa9aaaaa', | ||
clusterName: 'msk-cluster', | ||
runSchedule: events.Schedule.expression('cron(0 * * * * *)'), | ||
}); | ||
/// !hide | ||
|
||
} | ||
} | ||
|
||
const app = new cdk.App(); | ||
new ExampleDefaultDataZoneGsrMskDataSourceStack(app, 'ExampleDefaultDataZoneGsrMskDataSourceStack'); |
26 changes: 26 additions & 0 deletions
26
framework/src/governance/examples/datazone-gsr-msk-datasource-default.lit.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import * as cdk from 'aws-cdk-lib'; | ||
import { Construct } from 'constructs'; | ||
import * as dsf from '../../index'; | ||
|
||
|
||
class ExampleDefaultDataZoneGsrMskDataSourceStack extends cdk.Stack { | ||
constructor(scope: Construct, id: string) { | ||
super(scope, id); | ||
|
||
/// !show | ||
new dsf.governance.DataZoneGsrMskDataSource(this, 'DataZoneGsrMskDataSource', { | ||
domainId: 'aba_dc999t9ime9sss', | ||
registryName: 'schema-registry', | ||
projectId: '999a99aa9aaaaa', | ||
clusterName: 'msk-cluster' | ||
}); | ||
/// !hide | ||
|
||
} | ||
} | ||
|
||
const app = new cdk.App(); | ||
new ExampleDefaultDataZoneGsrMskDataSourceStack(app, 'ExampleDefaultDataZoneGsrMskDataSourceStack'); |
27 changes: 27 additions & 0 deletions
27
framework/src/governance/examples/datazone-gsr-msk-datasource-event.lit.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import * as cdk from 'aws-cdk-lib'; | ||
import { Construct } from 'constructs'; | ||
import * as dsf from '../../index'; | ||
|
||
|
||
class ExampleDefaultDataZoneGsrMskDataSourceStack extends cdk.Stack { | ||
constructor(scope: Construct, id: string) { | ||
super(scope, id); | ||
|
||
/// !show | ||
new dsf.governance.DataZoneGsrMskDataSource(this, 'DataZoneGsrMskDataSource', { | ||
domainId: 'aba_dc999t9ime9sss', | ||
registryName: 'schema-registry', | ||
projectId: '999a99aa9aaaaa', | ||
clusterName: 'msk-cluster', | ||
enableSchemaRegistryEvent: true, | ||
}); | ||
/// !hide | ||
|
||
} | ||
} | ||
|
||
const app = new cdk.App(); | ||
new ExampleDefaultDataZoneGsrMskDataSourceStack(app, 'ExampleDefaultDataZoneGsrMskDataSourceStack'); |
23 changes: 23 additions & 0 deletions
23
framework/src/governance/examples/datazone-msk-asset-type-default.lit.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import * as cdk from 'aws-cdk-lib'; | ||
import { Construct } from 'constructs'; | ||
import * as dsf from '../../index'; | ||
|
||
|
||
class ExampleDefaultDataZoneMskAssetTypeStack extends cdk.Stack { | ||
constructor(scope: Construct, id: string) { | ||
super(scope, id); | ||
|
||
/// !show | ||
new dsf.governance.DataZoneMskAssetType(this, 'DataZoneMskAssetType', { | ||
domainId: 'aba_dc999t9ime9sss', | ||
}); | ||
/// !hide | ||
|
||
} | ||
} | ||
|
||
const app = new cdk.App(); | ||
new ExampleDefaultDataZoneMskAssetTypeStack(app, 'ExampleDefaultDataZoneMskAssetTypeStack'); |
29 changes: 29 additions & 0 deletions
29
framework/src/governance/examples/datazone-msk-asset-type-factory.lit.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import * as cdk from 'aws-cdk-lib'; | ||
import { Construct } from 'constructs'; | ||
import * as dsf from '../../index'; | ||
|
||
|
||
class ExampleFactoryDataZoneMskAssetTypeStack extends cdk.Stack { | ||
constructor(scope: Construct, id: string) { | ||
super(scope, id); | ||
|
||
/// !show | ||
const dataZoneAssetFactory = new dsf.governance.DataZoneCustomAssetTypeFactory(this, 'DataZoneCustomAssetTypeFactory', { | ||
domainId: 'aba_dc999t9ime9sss', | ||
}); | ||
|
||
new dsf.governance.DataZoneMskAssetType(this, 'DataZoneMskAssetType', { | ||
domainId: 'aba_dc999t9ime9sss', | ||
projectId: 'xxxxxxxxxxx', | ||
dzCustomAssetTypeFactory: dataZoneAssetFactory | ||
}); | ||
/// !hide | ||
|
||
} | ||
} | ||
|
||
const app = new cdk.App(); | ||
new ExampleFactoryDataZoneMskAssetTypeStack(app, 'ExampleFactoryDataZoneMskAssetTypeStack'); |
24 changes: 24 additions & 0 deletions
24
framework/src/governance/examples/datazone-msk-asset-type-project.lit.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import * as cdk from 'aws-cdk-lib'; | ||
import { Construct } from 'constructs'; | ||
import * as dsf from '../../index'; | ||
|
||
|
||
class ExampleProjectDataZoneMskAssetTypeStack extends cdk.Stack { | ||
constructor(scope: Construct, id: string) { | ||
super(scope, id); | ||
|
||
/// !show | ||
new dsf.governance.DataZoneMskAssetType(this, 'DataZoneMskAssetType', { | ||
domainId: 'aba_dc999t9ime9sss', | ||
projectId: 'xxxxxxxxxxx' | ||
}); | ||
/// !hide | ||
|
||
} | ||
} | ||
|
||
const app = new cdk.App(); | ||
new ExampleProjectDataZoneMskAssetTypeStack(app, 'ExampleProjectDataZoneMskAssetTypeStack'); |
23 changes: 23 additions & 0 deletions
23
framework/src/governance/examples/datazone-msk-central-authorizer-default.lit.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import * as cdk from 'aws-cdk-lib'; | ||
import { Construct } from 'constructs'; | ||
import * as dsf from '../../index'; | ||
|
||
|
||
class ExampleDefaultDataZoneMskCentralAuthorizerStack extends cdk.Stack { | ||
constructor(scope: Construct, id: string) { | ||
super(scope, id); | ||
|
||
/// !show | ||
new dsf.governance.DataZoneMskCentralAuthorizer(this, 'MskAuthorizer', { | ||
domainId: 'aba_dc999t9ime9sss', | ||
}); | ||
/// !hide | ||
|
||
} | ||
} | ||
|
||
const app = new cdk.App(); | ||
new ExampleDefaultDataZoneMskCentralAuthorizerStack(app, 'ExampleDefaultDataZoneMskCentralAuthorizerStack'); |
26 changes: 26 additions & 0 deletions
26
framework/src/governance/examples/datazone-msk-central-authorizer-register.lit.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import * as cdk from 'aws-cdk-lib'; | ||
import { Construct } from 'constructs'; | ||
import * as dsf from '../../index'; | ||
|
||
|
||
class ExampleRegisterDataZoneMskCentralAuthorizerStack extends cdk.Stack { | ||
constructor(scope: Construct, id: string) { | ||
super(scope, id); | ||
|
||
/// !show | ||
const centralAuthorizer = new dsf.governance.DataZoneMskCentralAuthorizer(this, 'MskAuthorizer', { | ||
domainId: 'aba_dc999t9ime9sss', | ||
}); | ||
|
||
// Add an account that is associated with the DataZone Domain | ||
centralAuthorizer.registerAccount('123456789012'); | ||
/// !hide | ||
|
||
} | ||
} | ||
|
||
const app = new cdk.App(); | ||
new ExampleRegisterDataZoneMskCentralAuthorizerStack(app, 'ExampleRegisterDataZoneMskCentralAuthorizerStack'); |
Oops, something went wrong.