From 9c0de51c6ddacc2858ae949590229dd4919cbb61 Mon Sep 17 00:00:00 2001 From: Parker Scanlon <69879391+scanlonp@users.noreply.github.com> Date: Fri, 20 Oct 2023 16:27:42 -0700 Subject: [PATCH] docs(pipelines): update README (#27630) Uses new `dynamo.TableV2` construct in examples. Uses `aws-cdk-lib/` instead of `@aws-cdk/` paths where applicable. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- packages/aws-cdk-lib/pipelines/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/aws-cdk-lib/pipelines/README.md b/packages/aws-cdk-lib/pipelines/README.md index 5b20b9059ebb6..4eefcbf3a8991 100644 --- a/packages/aws-cdk-lib/pipelines/README.md +++ b/packages/aws-cdk-lib/pipelines/README.md @@ -54,18 +54,18 @@ example creates a CodePipeline that deploys an application from GitHub: * to this table in its properties. */ class DatabaseStack extends Stack { - public readonly table: dynamodb.Table; + public readonly table: dynamodb.TableV2; constructor(scope: Construct, id: string) { super(scope, id); - this.table = new dynamodb.Table(this, 'Table', { + this.table = new dynamodb.TableV2(this, 'Table', { partitionKey: { name: 'id', type: dynamodb.AttributeType.STRING } }); } } interface ComputeProps { - readonly table: dynamodb.Table; + readonly table: dynamodb.TableV2; } class ComputeStack extends Stack { @@ -214,7 +214,7 @@ engine, read the section ### Synth and sources To define a pipeline, instantiate a `CodePipeline` construct from the -`@aws-cdk/pipelines` module. It takes one argument, a `synth` step, which is +`aws-cdk-lib/pipelines` module. It takes one argument, a `synth` step, which is expected to produce the CDK Cloud Assembly as its single output (the contents of the `cdk.out` directory after running `cdk synth`). "Steps" are arbitrary actions in the pipeline, typically used to run scripts or commands. @@ -1546,7 +1546,7 @@ following: ```json { "context": { - "@aws-cdk/aws-iam:minimizePolicies": true + "aws-cdk-lib/aws-iam:minimizePolicies": true } } ```