From 124a7a1c20981c72bfdce0c857c87c46c6cb5f51 Mon Sep 17 00:00:00 2001 From: AWS CDK Automation <43080478+aws-cdk-automation@users.noreply.github.com> Date: Fri, 17 Sep 2021 10:54:21 +0100 Subject: [PATCH] feat(cfnspec): cloudformation spec v41.1.0 (#16524) Co-authored-by: AWS CDK Team --- packages/monocdk/rosetta/cluster.ts-fixture | 20 +++++++++++++++++++ .../rosetta/migrate-opensearch.ts-fixture | 16 +++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 packages/monocdk/rosetta/cluster.ts-fixture create mode 100644 packages/monocdk/rosetta/migrate-opensearch.ts-fixture diff --git a/packages/monocdk/rosetta/cluster.ts-fixture b/packages/monocdk/rosetta/cluster.ts-fixture new file mode 100644 index 0000000000000..82d98ca3e381e --- /dev/null +++ b/packages/monocdk/rosetta/cluster.ts-fixture @@ -0,0 +1,20 @@ +// Fixture with cluster already created +import { Construct, SecretValue, Stack } from '@aws-cdk/core'; +import { Vpc } from '@aws-cdk/aws-ec2'; +import { Cluster, Table, TableAction, User } from '@aws-cdk/aws-redshift'; + +class Fixture extends Stack { + constructor(scope: Construct, id: string) { + super(scope, id); + + const vpc = new Vpc(this, 'Vpc'); + const cluster = new Cluster(this, 'Cluster', { + vpc, + masterUser: { + masterUsername: 'admin', + }, + }); + + /// here + } +} diff --git a/packages/monocdk/rosetta/migrate-opensearch.ts-fixture b/packages/monocdk/rosetta/migrate-opensearch.ts-fixture new file mode 100644 index 0000000000000..bb93c1d40f369 --- /dev/null +++ b/packages/monocdk/rosetta/migrate-opensearch.ts-fixture @@ -0,0 +1,16 @@ +import * as cdk from '@aws-cdk/core'; +import * as es from '@aws-cdk/aws-elasticsearch'; +import * as iam from '@aws-cdk/aws-iam'; +import * as opensearch from '@aws-cdk/aws-opensearchservice'; + +declare const role: iam.IRole; +declare const elasticsearchVersion: es.ElasticsearchVersion; +declare const openSearchVersion: opensearch.EngineVersion; + +class Fixture extends cdk.Construct { + constructor(scope: cdk.Construct, id: string) { + super(scope, id); + + /// here + } +}