Skip to content

Commit 635c545

Browse files
committed
Fix README code example error
1 parent a9b394a commit 635c545

File tree

1 file changed

+4
-3
lines changed
  • packages/aws-cdk-lib/aws-codepipeline

1 file changed

+4
-3
lines changed

packages/aws-cdk-lib/aws-codepipeline/README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,9 @@ On Success - The conditions for making checks for the stage when it succeeds. Ru
771771
Conditions are supported by a set of `rules` for each type of condition.
772772

773773
```ts
774+
declare const sourceAction: codepipeline_actions.CodeStarConnectionsSourceAction;
775+
declare const buildAction: codepipeline_actions.CodeBuildAction;
776+
774777
new codepipeline.Pipeline(this, 'Pipeline', {
775778
pipelineType: codepipeline.PipelineType.V2,
776779
stages: [
@@ -789,7 +792,7 @@ new codepipeline.Pipeline(this, 'Pipeline', {
789792
provider: 'LambdaInvoke',
790793
version: '1',
791794
configuration: {
792-
AlarmName: alarm.alarmName,
795+
AlarmName: 'AlarmName',
793796
WaitTime: '300',
794797
FunctionName: 'funcName2'
795798
},
@@ -813,8 +816,6 @@ new codepipeline.Pipeline(this, 'Pipeline', {
813816
},
814817
],
815818
});
816-
```ts
817-
818819
```
819820

820821
## Migrating a pipeline type from V1 to V2

0 commit comments

Comments
 (0)