Skip to content

Commit

Permalink
docs(pipelines): update README (#27630)
Browse files Browse the repository at this point in the history
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*
  • Loading branch information
scanlonp authored Oct 20, 2023
1 parent 8f4600c commit 9c0de51
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/aws-cdk-lib/pipelines/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -1546,7 +1546,7 @@ following:
```json
{
"context": {
"@aws-cdk/aws-iam:minimizePolicies": true
"aws-cdk-lib/aws-iam:minimizePolicies": true
}
}
```
Expand Down

0 comments on commit 9c0de51

Please sign in to comment.