Skip to content

Commit

Permalink
feat(cfnspec): cloudformation spec v41.1.0 (#16524)
Browse files Browse the repository at this point in the history
Co-authored-by: AWS CDK Team <aws-cdk@amazon.com>
  • Loading branch information
aws-cdk-automation and AWS CDK Team authored Sep 17, 2021
1 parent cafe825 commit 124a7a1
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
20 changes: 20 additions & 0 deletions packages/monocdk/rosetta/cluster.ts-fixture
Original file line number Diff line number Diff line change
@@ -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
}
}
16 changes: 16 additions & 0 deletions packages/monocdk/rosetta/migrate-opensearch.ts-fixture
Original file line number Diff line number Diff line change
@@ -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
}
}

0 comments on commit 124a7a1

Please sign in to comment.