Skip to content

Commit

Permalink
chore: all rosetta fixtures import Construct from 'constructs' (#…
Browse files Browse the repository at this point in the history
…17634)

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
kaizencc authored Nov 23, 2021
1 parent 67da5f3 commit 279c4be
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 12 deletions.
4 changes: 3 additions & 1 deletion packages/@aws-cdk/assertions/rosetta/default.ts-fixture
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Construct, Stack } from '@aws-cdk/core';
// Fixture with packages imported, but nothing else
import { Construct } from 'constructs';
import { Stack } from '@aws-cdk/core';
import { Capture, Match, Template } from '@aws-cdk/assertions';

class Fixture extends Stack {
Expand Down
3 changes: 2 additions & 1 deletion packages/@aws-cdk/aws-apigateway/rosetta/default.ts-fixture
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Fixture with packages imported, but nothing else
import { Construct, Stack } from '@aws-cdk/core';
import { Construct } from 'constructs';
import { Stack } from '@aws-cdk/core';
import apigateway = require('@aws-cdk/aws-apigateway');
import cognito = require('@aws-cdk/aws-cognito');
import lambda = require('@aws-cdk/aws-lambda');
Expand Down
3 changes: 2 additions & 1 deletion packages/@aws-cdk/aws-appsync/rosetta/default.ts-fixture
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Fixture with packages imported, but nothing else
import { Construct, RemovalPolicy, Stack } from '@aws-cdk/core';
import { Construct } from 'constructs';
import { RemovalPolicy, Stack } from '@aws-cdk/core';
import appsync = require('@aws-cdk/aws-appsync');
import ec2 = require('@aws-cdk/aws-ec2');
import dynamodb = require('@aws-cdk/aws-dynamodb');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Fixture with packages imported, but nothing else
import { Construct, Stack } from '@aws-cdk/core';
import { Construct } from 'constructs';
import { Stack } from '@aws-cdk/core';
import appsync = require('@aws-cdk/aws-appsync');
const pluralize = require('pluralize');

Expand Down
3 changes: 2 additions & 1 deletion packages/@aws-cdk/aws-ec2/rosetta/client-vpn.ts-fixture
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Fixture with packages imported and a VPC created
import { Construct, Stack } from '@aws-cdk/core';
import { Construct } from 'constructs';
import { Stack } from '@aws-cdk/core';
import iam = require('@aws-cdk/aws-iam');
import ec2 = require('@aws-cdk/aws-ec2');

Expand Down
3 changes: 2 additions & 1 deletion packages/@aws-cdk/aws-ec2/rosetta/with-vpc.ts-fixture
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Fixture with packages imported and a VPC created
import { Construct, Stack } from '@aws-cdk/core';
import { Construct } from 'constructs';
import { Stack } from '@aws-cdk/core';
import ec2 = require('@aws-cdk/aws-ec2');

class Fixture extends Stack {
Expand Down
3 changes: 2 additions & 1 deletion packages/@aws-cdk/aws-ecs/rosetta/default.ts-fixture
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Fixture with packages imported, but nothing else
import { Construct, SecretValue, Stack } from '@aws-cdk/core';
import { Construct } from 'constructs';
import { SecretValue, Stack } from '@aws-cdk/core';
import autoscaling = require('@aws-cdk/aws-autoscaling');
import cloudmap = require('@aws-cdk/aws-servicediscovery');
import ecs = require('@aws-cdk/aws-ecs');
Expand Down
3 changes: 2 additions & 1 deletion packages/@aws-cdk/aws-redshift/rosetta/cluster.ts-fixture
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Fixture with cluster already created
import { Construct, SecretValue, Stack } from '@aws-cdk/core';
import { Construct } from 'constructs';
import { SecretValue, Stack } from '@aws-cdk/core';
import { Vpc } from '@aws-cdk/aws-ec2';
import { Cluster, Table, TableAction, TableDistStyle, TableSortStyle, User } from '@aws-cdk/aws-redshift';

Expand Down
3 changes: 2 additions & 1 deletion packages/@aws-cdk/aws-redshift/rosetta/default.ts-fixture
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Fixture with packages imported, but nothing else
import { Construct, Stack } from '@aws-cdk/core';
import { Construct } from 'constructs';
import { Stack } from '@aws-cdk/core';
import { Cluster } from '@aws-cdk/aws-redshift';

class Fixture extends Stack {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Fixture with packages imported, but nothing else
import { Construct, Stack } from '@aws-cdk/core';
import { Construct } from 'constructs';
import { Stack } from '@aws-cdk/core';
import * as servicecatalog from '@aws-cdk/aws-servicecatalog';

class Fixture extends Stack {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Fixture with packages imported, but nothing else
import { Construct, Stack } from '@aws-cdk/core';
import { Construct } from 'constructs';
import { Stack } from '@aws-cdk/core';
import * as servicecatalog from '@aws-cdk/aws-servicecatalog';

class Fixture extends Stack {
Expand Down
3 changes: 2 additions & 1 deletion packages/@aws-cdk/pipelines/rosetta/default.ts-fixture
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Fixture with packages imported, but nothing else
import { Construct, CfnOutput, Stage, Stack, StackProps, StageProps } from '@aws-cdk/core';
import { Construct } from 'constructs';
import { CfnOutput, Stage, Stack, StackProps, StageProps } from '@aws-cdk/core';
import cdk = require('@aws-cdk/core');
import codepipeline = require('@aws-cdk/aws-codepipeline');
import cpactions = require('@aws-cdk/aws-codepipeline-actions');
Expand Down

0 comments on commit 279c4be

Please sign in to comment.