Skip to content

chore(individual-pkg-gen): remove L1s from alpha modules, and support…#16482

Closed
madeline-k wants to merge 3 commits intoaws:masterfrom
madeline-k:v2/remove-l1s-and-rewrite-imports-3
Closed

chore(individual-pkg-gen): remove L1s from alpha modules, and support…#16482
madeline-k wants to merge 3 commits intoaws:masterfrom
madeline-k:v2/remove-l1s-and-rewrite-imports-3

Conversation

@madeline-k
Copy link
Copy Markdown
Contributor

… rewriting Cfn imports that are combined in one line with other imports.

This change does some extra hacky source text manipulation to be able to rewrite an import like this:

import { CfnCluster, Cluster, ClusterParameterGroup, ClusterSubnetGroup, ClusterType } from '../lib';

into this:

import { CfnCluster } from '../lib/redshift.generated';
import { Cluster, ClusterParameterGroup, ClusterSubnetGroup, ClusterType } from '../lib';

I am definitely open to suggestions on ways to make this cleaner. I am skeptical that this won't introduce some unexpected behavior with an import format not covered by the tests.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@madeline-k madeline-k added the pr/do-not-merge This PR should not be merged at this time. label Sep 14, 2021
@gitpod-io
Copy link
Copy Markdown

gitpod-io bot commented Sep 14, 2021

@madeline-k
Copy link
Copy Markdown
Contributor Author

Alternative option: #16481

@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: a15903e
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@rix0rrr rix0rrr closed this Sep 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contribution/core This is a PR that came from AWS. pr/do-not-merge This PR should not be merged at this time.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants