@flit/cdk-pipeline 1.1.2 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.jsii CHANGED
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "author": {
3
- "email": "luis@jumper.de",
4
3
  "name": "Luis Vierroth",
5
4
  "roles": [
6
5
  "author"
@@ -8,8 +7,8 @@
8
7
  "url": "https://github.com/p-mercury"
9
8
  },
10
9
  "dependencies": {
11
- "aws-cdk-lib": "^2.163.0",
12
- "constructs": "^10.4.2"
10
+ "aws-cdk-lib": "^2.174.0",
11
+ "constructs": "^10.4.0"
13
12
  },
14
13
  "dependencyClosure": {
15
14
  "@aws-cdk/asset-awscli-v1": {
@@ -1878,19 +1877,6 @@
1878
1877
  }
1879
1878
  }
1880
1879
  },
1881
- "aws-cdk-lib.aws_iot1click": {
1882
- "targets": {
1883
- "dotnet": {
1884
- "namespace": "Amazon.CDK.AWS.IoT1Click"
1885
- },
1886
- "java": {
1887
- "package": "software.amazon.awscdk.services.iot1click"
1888
- },
1889
- "python": {
1890
- "module": "aws_cdk.aws_iot1click"
1891
- }
1892
- }
1893
- },
1894
1880
  "aws-cdk-lib.aws_iotanalytics": {
1895
1881
  "targets": {
1896
1882
  "dotnet": {
@@ -2736,6 +2722,19 @@
2736
2722
  }
2737
2723
  }
2738
2724
  },
2725
+ "aws-cdk-lib.aws_pcs": {
2726
+ "targets": {
2727
+ "dotnet": {
2728
+ "package": "Amazon.CDK.AWS.PCS"
2729
+ },
2730
+ "java": {
2731
+ "package": "software.amazon.awscdk.services.pcs"
2732
+ },
2733
+ "python": {
2734
+ "module": "aws_cdk.aws_pcs"
2735
+ }
2736
+ }
2737
+ },
2739
2738
  "aws-cdk-lib.aws_personalize": {
2740
2739
  "targets": {
2741
2740
  "dotnet": {
@@ -3191,6 +3190,19 @@
3191
3190
  }
3192
3191
  }
3193
3192
  },
3193
+ "aws-cdk-lib.aws_s3tables": {
3194
+ "targets": {
3195
+ "dotnet": {
3196
+ "package": "Amazon.CDK.AWS.S3Tables"
3197
+ },
3198
+ "java": {
3199
+ "package": "software.amazon.awscdk.services.s3tables"
3200
+ },
3201
+ "python": {
3202
+ "module": "aws_cdk.aws_s3tables"
3203
+ }
3204
+ }
3205
+ },
3194
3206
  "aws-cdk-lib.aws_sagemaker": {
3195
3207
  "targets": {
3196
3208
  "dotnet": {
@@ -3899,8 +3911,8 @@
3899
3911
  "docs": {
3900
3912
  "stability": "stable"
3901
3913
  },
3902
- "homepage": "https://github.com/jumper-de/cdk-pipeline",
3903
- "jsiiVersion": "5.7.2 (build 224a3f3)",
3914
+ "homepage": "https://github.com/vierroth/cdk-pipeline",
3915
+ "jsiiVersion": "5.7.4 (build fc2a28e)",
3904
3916
  "keywords": [
3905
3917
  "aws",
3906
3918
  "cdk",
@@ -3921,11 +3933,11 @@
3921
3933
  },
3922
3934
  "name": "@flit/cdk-pipeline",
3923
3935
  "readme": {
3924
- "markdown": "This library exposes a highly customizable and extensible L3 pipeline construct intended as an alternative to the CDK native L3 [CodePipeline](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.pipelines.CodePipeline.html) construct which has some inherent limitations in capability and extensibility.\n\nThe documentation provides the tools and documentation to get your own pipeline up and running and build your own custom segments.\n\n## Usage\n\n### Installation\n\nThe package is available on [NPM](https://www.npmjs.com/package/@flit/cdk-pipeline) and can be installed using your package manager of choice:\n\n```bash\nnpm i @flit/cdk-pipeline\n```\n\n```bash\npnpm add @flit/cdk-pipeline\n```\n\n```bash\nyarn add @flit/cdk-pipeline\n```\n\n### Basics\n\nThe snippet bellow is a basic example of a pipeline which will run whenever a change is detected in a GitHub repository. The pipeline will update itself and, deploy and update a user defined stack. This example demonstrates the three basic elements that make up a pipeline:\n\n#### - Pipeline\n\nThe `Pipeline` construct will create a CloudFormation Stack which contains the pipeline and all of the required peripheral resources to make it work.\n\n#### - Segment\n\nA `Segment` is simply a pre-configured set of pipeline actions which together represent a commonly used CI/CD pattern, like for example building and deploying a stack.\n\nTo build properly, a Pipeline requires at least one SourceSegment, exactly one PipelineSegment and at least one other segment.\n\n#### - Artifact\n\nAn `Artifact` represents a pipeline artifact which can be used to pass information between stages. Every artifact needs to be the output of exactly one Segment and can be consumed by any segments that need that output.\n\n```typescript\nimport { App, SecretValue, Stack } from \"aws-cdk-lib\";\nimport {\n Pipeline,\n GitHubSourceSegment,\n PipelineSegment,\n StackSegment,\n Artifact,\n} from \"@flit/cdk-pipeline\";\n\nconst APP = new App();\n\nconst SOURCE_ARTIFACT = new Artifact();\nconst BUILD_ARTIFACT = new Artifact();\n\nnew Pipeline(APP, \"Pipeline\", {\n rootDir: \"./\",\n segments: [\n new CodeStarSourceSegment({\n output: SOURCE_ARTIFACT,\n connectionArn: \"code-star-connection-arn\",\n owner: \"owner-name\",\n repository: \"repo-name\",\n branch: \"branch-name\",\n }),\n new PipelineSegment({\n input: SOURCE_ARTIFACT,\n output: BUILD_ARTIFACT,\n project: {\n environment: {\n computeType: ComputeType.MEDIUM,\n buildImage: LinuxBuildImage.AMAZON_LINUX_2_ARM_3,\n privileged: true,\n },\n buildSpec: BuildSpec.fromObject({\n version: \"0.2\",\n phases: {\n install: {\n \"runtime-versions\": {\n nodejs: \"latest\",\n },\n commands: [\"npm i -g npm@latest\", \"npm ci\"],\n },\n build: {\n commands: \"cdk synth --strict --quiet\",\n },\n },\n }),\n },\n }),\n new StackSegment({\n stack: new Stack(APP, \"BackEnd\"),\n input: BUILD_ARTIFACT,\n }),\n ],\n});\n```\n\nThe above code would produce a pipeline similar to this:\n\n<img src=\"./media/pipeline-ouput-example.png?raw=true\" alt=\"alt text\" width=\"300px\">\n\n### Multiple stacks\n\nTo add another stack to the pipeline you simply add another `StackSegment` with a new stack instance and the pipeline will handle the rest.\n\n```typescript\nimport { App, SecretValue, Stack } from \"aws-cdk-lib\";\nimport {\n Pipeline,\n GitHubSourceSegment,\n PipelineSegment,\n StackSegment,\n Artifact,\n} from \"@flit/cdk-pipeline\";\n\nconst APP = new App();\n\nconst SOURCE_ARTIFACT = new Artifact();\nconst BUILD_ARTIFACT = new Artifact();\n\nnew Pipeline(APP, \"Pipeline\", {\n rootDir: \"./\",\n segments: [\n new CodeStarSourceSegment({\n output: SOURCE_ARTIFACT,\n connectionArn: \"code-star-connection-arn\",\n owner: \"owner-name\",\n repository: \"repo-name\",\n branch: \"branch-name\",\n }),\n new PipelineSegment({\n input: SOURCE_ARTIFACT,\n output: BUILD_ARTIFACT,\n project: {\n environment: {\n computeType: ComputeType.MEDIUM,\n buildImage: LinuxBuildImage.AMAZON_LINUX_2_ARM_3,\n privileged: true,\n },\n buildSpec: BuildSpec.fromObject({\n version: \"0.2\",\n phases: {\n install: {\n \"runtime-versions\": {\n nodejs: \"latest\",\n },\n commands: [\"npm i -g npm@latest\", \"npm ci\"],\n },\n build: {\n commands: \"cdk synth --strict --quiet\",\n },\n },\n }),\n },\n }),\n new StackSegment({\n stack: new Stack(APP, \"BackEnd\"),\n input: BUILD_ARTIFACT,\n }),\n new StackSegment({\n stack: new Stack(APP, \"FrontEnd\"),\n input: BUILD_ARTIFACT,\n }),\n ],\n});\n```\n\n### More complex example\n\nIn some cases you might have a build that bakes API endpoints generated by a previous stage into the stack assets during the build stage. Using the CDK native L3 [CodePipeline](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.pipelines.CodePipeline.html) construct makes this hard, but with this more flexible setup you can run another build for any stack that needs it, and use the previous stacks outputs in that build.\n\n```typescript\nimport { App, SecretValue, Stack } from \"aws-cdk-lib\";\nimport {\n Pipeline,\n GitHubSourceSegment,\n PipelineSegment,\n StackSegment,\n Artifact,\n} from \"@flit/cdk-pipeline\";\n\nconst APP = new App();\n\nconst SOURCE_ARTIFACT = new Artifact();\nconst BUILD_ARTIFACT = new Artifact();\nconst FRONT_END_OUTPUT_ARTIFACT = new Artifact();\n\nnew Pipeline(APP, \"Pipeline\", {\n rootDir: \"./\",\n segments: [\n new CodeStarSourceSegment({\n output: SOURCE_ARTIFACT,\n connectionArn: \"code-star-connection-arn\",\n owner: \"owner-name\",\n repository: \"repo-name\",\n branch: \"branch-name\",\n }),\n new PipelineSegment({\n input: SOURCE_ARTIFACT,\n output: BUILD_ARTIFACT,\n project: {\n environment: {\n computeType: ComputeType.MEDIUM,\n buildImage: LinuxBuildImage.AMAZON_LINUX_2_ARM_3,\n privileged: true,\n },\n buildSpec: BuildSpec.fromObject({\n version: \"0.2\",\n phases: {\n install: {\n \"runtime-versions\": {\n nodejs: \"latest\",\n },\n commands: [\"npm i -g npm@latest\", \"npm ci\"],\n },\n build: {\n commands: \"cdk synth --strict --quiet\",\n },\n },\n }),\n },\n }),\n new StackSegment({\n stack: new Stack(APP, \"BackEnd\"),\n input: BUILD_ARTIFACT,\n output: FRONT_END_OUTPUT_ARTIFACT,\n }),\n new StackSegment({\n stack: new Stack(APP, \"FrontEnd\"),\n input: [SOURCE_ARTIFACT, FRONT_END_OUTPUT_ARTIFACT],\n project: {\n environment: {\n computeType: ComputeType.MEDIUM,\n buildImage: LinuxBuildImage.AMAZON_LINUX_2_ARM_3,\n privileged: true,\n },\n buildSpec: BuildSpec.fromObject({\n version: \"0.2\",\n phases: {\n install: {\n \"runtime-versions\": {\n nodejs: \"latest\",\n },\n commands: [\"npm i -g npm@latest\", \"npm ci\"],\n },\n build: {\n commands: [\n \"do something with the STACK_1_OUTPUT_ARTIFACT\",\n \"cdk synth --strict --quiet\",\n ],\n },\n },\n }),\n },\n }),\n ],\n});\n```\n\nThis example first build the project, deploys the `Pipeline` and `BackEnd` stacks and then rebuilds the project now with access to the outputs of the `BackEnd` stack. This allows you to now bake in any API endpoints dynamically generated in the `BackEnd` stack.\n\n### Building your own segment\n\nThe snippet bellow is a basic example showing a custom segment which simply adds a stage with two manual approval steps into the pipeline and allows you to optional give this step a name.\n\nEach segment has two components consisting of two distinct classes:\n\n### - Segment\n\nThe main segment class is the class that will be used in your pipeline definition, and can be created by extending the `Segment` abstract class.\n\nThis class **should not** itself create any actual CDK constructs and is simply there to collect configuration trough the `constructor`. The `constructor` should take a single parameter called `props` which is a descendant of the `SegmentProps` interface.\n\nThe segment class also has to define the `construct` abstract function which returns an instance of a descendant of the `SegmentConstructed` abstract class.\n\n### - SegmentConstructed\n\nThis class will be returned by the `construct` function of your segment class and is itself a CDK construct. So in this class you can now allocate the CDK resources this segment requires as you are used to in any other CDK application.\n\nYou can pass any configuration information previously collected in the segment class trough the constructor.\n\n```typescript\nimport { IAction } from \"aws-cdk-lib/aws-codepipeline\";\nimport { ManualApprovalAction } from \"aws-cdk-lib/aws-codepipeline-actions\";\n\nimport { Segment, SegmentConstructed } from \"./segment\";\nimport { Pipeline } from \"./pipeline\";\n\nexport interface RequireApprovalSegmentProps {\n readonly name?: string;\n}\n\n/**\n * @category Segments\n */\nexport class DoubleApprovalSegment extends Segment {\n readonly props: RequireApprovalSegmentProps;\n\n constructor(props: RequireApprovalSegmentProps) {\n super({ ...props, input: undefined, output: undefined });\n this.props = props;\n }\n\n construct(scope: Pipeline): SegmentConstructed {\n return new RequireApprovalSegmentConstructed(\n scope,\n `RequireApproval`,\n this.props,\n );\n }\n}\n\nexport interface RequireApprovalSegmentConstructedProps {\n readonly name?: string;\n}\n\nexport class RequireApprovalSegmentConstructed extends SegmentConstructed {\n readonly name: string;\n readonly actions: IAction[];\n\n constructor(\n scope: Pipeline,\n id: string,\n props: RequireApprovalSegmentConstructedProps,\n ) {\n super(scope, id);\n\n this.name = props.name ?? id;\n\n this.actions = [\n new ManualApprovalAction({\n actionName: \"ApproveChanges1\",\n runOrder: 1,\n }),\n new ManualApprovalAction({\n actionName: \"ApproveChanges2\",\n runOrder: 2,\n }),\n ];\n }\n}\n```\n"
3936
+ "markdown": "This library exposes a highly customizable and extensible L3 pipeline construct intended as an alternative to the CDK native L3 [CodePipeline](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.pipelines.CodePipeline.html) construct which has some inherent limitations in capability and extensibility.\n\nThe documentation provides the tools and documentation to get your own pipeline up and running and build your own custom segments.\n\n## Usage\n\n### Installation\n\nThe package is available on [NPM](https://www.npmjs.com/package/@flit/cdk-pipeline) and can be installed using your package manager of choice:\n\n```bash\nnpm i @flit/cdk-pipeline\n```\n\n```bash\npnpm add @flit/cdk-pipeline\n```\n\n```bash\nyarn add @flit/cdk-pipeline\n```\n\n### Core concepts\n\n#### - [Example Project](https://github.com/vierroth/cdk-pipeline/blob/main/example/README.md)\n\nTo better understand the core concepts take a look at the included [example project](https://github.com/vierroth/cdk-pipeline/blob/main/example/README.md).\n\n#### - Pipeline\n\nThe `Pipeline` construct will create a CloudFormation Stack which contains the pipeline and all of the required peripheral resources to make it work.\n\n#### - Segment\n\nA `Segment` is simply a pre-configured set of pipeline actions which together represent a commonly used CI/CD pattern, like for example building and deploying a stack.\n\nTo build properly, a Pipeline requires at least one SourceSegment, exactly one PipelineSegment and at least one other segment.\n\n#### - Artifact\n\nAn `Artifact` represents a pipeline artifact which can be used to pass information between stages. Every artifact needs to be the output of exactly one Segment and can be consumed by any segments that need that output.\n"
3925
3937
  },
3926
3938
  "repository": {
3927
3939
  "type": "git",
3928
- "url": "https://github.com/jumper-de/cdk-pipeline.git"
3940
+ "url": "https://github.com/vierroth/cdk-pipeline.git"
3929
3941
  },
3930
3942
  "schema": "jsii/0.10.0",
3931
3943
  "targets": {
@@ -4008,33 +4020,37 @@
4008
4020
  },
4009
4021
  "locationInModule": {
4010
4022
  "filename": "src/artifact.ts",
4011
- "line": 21
4023
+ "line": 11
4012
4024
  },
4013
- "name": "obtainConsumers",
4014
- "returns": {
4015
- "type": {
4016
- "collection": {
4017
- "elementtype": {
4018
- "fqn": "@flit/cdk-pipeline.Segment"
4019
- },
4020
- "kind": "array"
4025
+ "name": "produce",
4026
+ "parameters": [
4027
+ {
4028
+ "name": "producer",
4029
+ "type": {
4030
+ "fqn": "@flit/cdk-pipeline.Segment"
4021
4031
  }
4022
4032
  }
4023
- }
4024
- },
4033
+ ]
4034
+ }
4035
+ ],
4036
+ "name": "Artifact",
4037
+ "properties": [
4025
4038
  {
4026
4039
  "docs": {
4027
4040
  "stability": "stable"
4028
4041
  },
4042
+ "immutable": true,
4029
4043
  "locationInModule": {
4030
4044
  "filename": "src/artifact.ts",
4031
- "line": 18
4045
+ "line": 21
4032
4046
  },
4033
- "name": "obtainProducer",
4034
- "returns": {
4035
- "optional": true,
4036
- "type": {
4037
- "fqn": "@flit/cdk-pipeline.Segment"
4047
+ "name": "consumers",
4048
+ "type": {
4049
+ "collection": {
4050
+ "elementtype": {
4051
+ "fqn": "@flit/cdk-pipeline.Segment"
4052
+ },
4053
+ "kind": "array"
4038
4054
  }
4039
4055
  }
4040
4056
  },
@@ -4042,22 +4058,18 @@
4042
4058
  "docs": {
4043
4059
  "stability": "stable"
4044
4060
  },
4061
+ "immutable": true,
4045
4062
  "locationInModule": {
4046
4063
  "filename": "src/artifact.ts",
4047
- "line": 11
4064
+ "line": 18
4048
4065
  },
4049
- "name": "produce",
4050
- "parameters": [
4051
- {
4052
- "name": "producer",
4053
- "type": {
4054
- "fqn": "@flit/cdk-pipeline.Segment"
4055
- }
4056
- }
4057
- ]
4066
+ "name": "producer",
4067
+ "optional": true,
4068
+ "type": {
4069
+ "fqn": "@flit/cdk-pipeline.Segment"
4070
+ }
4058
4071
  }
4059
4072
  ],
4060
- "name": "Artifact",
4061
4073
  "symbolId": "src/artifact:Artifact"
4062
4074
  },
4063
4075
  "@flit/cdk-pipeline.CodeCommitSourceSegment": {
@@ -5335,26 +5347,10 @@
5335
5347
  "kind": "interface",
5336
5348
  "locationInModule": {
5337
5349
  "filename": "src/pipeline.ts",
5338
- "line": 15
5350
+ "line": 14
5339
5351
  },
5340
5352
  "name": "PipelineProps",
5341
5353
  "properties": [
5342
- {
5343
- "abstract": true,
5344
- "docs": {
5345
- "stability": "stable",
5346
- "summary": "The path to the cdk projects root directory containing the cdk.json file relative to the asset root."
5347
- },
5348
- "immutable": true,
5349
- "locationInModule": {
5350
- "filename": "src/pipeline.ts",
5351
- "line": 25
5352
- },
5353
- "name": "rootDir",
5354
- "type": {
5355
- "primitive": "string"
5356
- }
5357
- },
5358
5354
  {
5359
5355
  "abstract": true,
5360
5356
  "docs": {
@@ -5386,13 +5382,31 @@
5386
5382
  "immutable": true,
5387
5383
  "locationInModule": {
5388
5384
  "filename": "src/pipeline.ts",
5389
- "line": 20
5385
+ "line": 19
5390
5386
  },
5391
5387
  "name": "pipelineName",
5392
5388
  "optional": true,
5393
5389
  "type": {
5394
5390
  "primitive": "string"
5395
5391
  }
5392
+ },
5393
+ {
5394
+ "abstract": true,
5395
+ "docs": {
5396
+ "default": "`\".\"`",
5397
+ "stability": "stable",
5398
+ "summary": "The path to the cdk projects root directory containing the cdk.json file relative to the asset root."
5399
+ },
5400
+ "immutable": true,
5401
+ "locationInModule": {
5402
+ "filename": "src/pipeline.ts",
5403
+ "line": 25
5404
+ },
5405
+ "name": "rootDir",
5406
+ "optional": true,
5407
+ "type": {
5408
+ "primitive": "string"
5409
+ }
5396
5410
  }
5397
5411
  ],
5398
5412
  "symbolId": "src/pipeline:PipelineProps"
@@ -5413,7 +5427,7 @@
5413
5427
  },
5414
5428
  "locationInModule": {
5415
5429
  "filename": "src/pipeline-segment.ts",
5416
- "line": 74
5430
+ "line": 66
5417
5431
  },
5418
5432
  "parameters": [
5419
5433
  {
@@ -5427,7 +5441,7 @@
5427
5441
  "kind": "class",
5428
5442
  "locationInModule": {
5429
5443
  "filename": "src/pipeline-segment.ts",
5430
- "line": 70
5444
+ "line": 62
5431
5445
  },
5432
5446
  "methods": [
5433
5447
  {
@@ -5436,7 +5450,7 @@
5436
5450
  },
5437
5451
  "locationInModule": {
5438
5452
  "filename": "src/pipeline-segment.ts",
5439
- "line": 79
5453
+ "line": 71
5440
5454
  },
5441
5455
  "name": "construct",
5442
5456
  "overrides": "@flit/cdk-pipeline.Segment",
@@ -5464,7 +5478,7 @@
5464
5478
  "immutable": true,
5465
5479
  "locationInModule": {
5466
5480
  "filename": "src/pipeline-segment.ts",
5467
- "line": 71
5481
+ "line": 63
5468
5482
  },
5469
5483
  "name": "isPipeline",
5470
5484
  "overrides": "@flit/cdk-pipeline.Segment",
@@ -5479,7 +5493,7 @@
5479
5493
  "immutable": true,
5480
5494
  "locationInModule": {
5481
5495
  "filename": "src/pipeline-segment.ts",
5482
- "line": 72
5496
+ "line": 64
5483
5497
  },
5484
5498
  "name": "props",
5485
5499
  "type": {
@@ -5502,7 +5516,7 @@
5502
5516
  },
5503
5517
  "locationInModule": {
5504
5518
  "filename": "src/pipeline-segment.ts",
5505
- "line": 107
5519
+ "line": 97
5506
5520
  },
5507
5521
  "parameters": [
5508
5522
  {
@@ -5528,7 +5542,7 @@
5528
5542
  "kind": "class",
5529
5543
  "locationInModule": {
5530
5544
  "filename": "src/pipeline-segment.ts",
5531
- "line": 103
5545
+ "line": 93
5532
5546
  },
5533
5547
  "name": "PipelineSegmentConstructed",
5534
5548
  "properties": [
@@ -5539,7 +5553,7 @@
5539
5553
  "immutable": true,
5540
5554
  "locationInModule": {
5541
5555
  "filename": "src/pipeline-segment.ts",
5542
- "line": 105
5556
+ "line": 95
5543
5557
  },
5544
5558
  "name": "actions",
5545
5559
  "overrides": "@flit/cdk-pipeline.SegmentConstructed",
@@ -5559,7 +5573,7 @@
5559
5573
  "immutable": true,
5560
5574
  "locationInModule": {
5561
5575
  "filename": "src/pipeline-segment.ts",
5562
- "line": 104
5576
+ "line": 94
5563
5577
  },
5564
5578
  "name": "name",
5565
5579
  "overrides": "@flit/cdk-pipeline.SegmentConstructed",
@@ -5580,7 +5594,7 @@
5580
5594
  "kind": "interface",
5581
5595
  "locationInModule": {
5582
5596
  "filename": "src/pipeline-segment.ts",
5583
- "line": 89
5597
+ "line": 81
5584
5598
  },
5585
5599
  "name": "PipelineSegmentConstructedProps",
5586
5600
  "properties": [
@@ -5592,7 +5606,7 @@
5592
5606
  "immutable": true,
5593
5607
  "locationInModule": {
5594
5608
  "filename": "src/pipeline-segment.ts",
5595
- "line": 96
5609
+ "line": 86
5596
5610
  },
5597
5611
  "name": "input",
5598
5612
  "type": {
@@ -5607,7 +5621,7 @@
5607
5621
  "immutable": true,
5608
5622
  "locationInModule": {
5609
5623
  "filename": "src/pipeline-segment.ts",
5610
- "line": 91
5624
+ "line": 83
5611
5625
  },
5612
5626
  "name": "project",
5613
5627
  "type": {
@@ -5622,7 +5636,7 @@
5622
5636
  "immutable": true,
5623
5637
  "locationInModule": {
5624
5638
  "filename": "src/pipeline-segment.ts",
5625
- "line": 90
5639
+ "line": 82
5626
5640
  },
5627
5641
  "name": "stack",
5628
5642
  "type": {
@@ -5637,23 +5651,7 @@
5637
5651
  "immutable": true,
5638
5652
  "locationInModule": {
5639
5653
  "filename": "src/pipeline-segment.ts",
5640
- "line": 94
5641
- },
5642
- "name": "account",
5643
- "optional": true,
5644
- "type": {
5645
- "primitive": "string"
5646
- }
5647
- },
5648
- {
5649
- "abstract": true,
5650
- "docs": {
5651
- "stability": "stable"
5652
- },
5653
- "immutable": true,
5654
- "locationInModule": {
5655
- "filename": "src/pipeline-segment.ts",
5656
- "line": 92
5654
+ "line": 84
5657
5655
  },
5658
5656
  "name": "environmentVariables",
5659
5657
  "optional": true,
@@ -5674,7 +5672,7 @@
5674
5672
  "immutable": true,
5675
5673
  "locationInModule": {
5676
5674
  "filename": "src/pipeline-segment.ts",
5677
- "line": 97
5675
+ "line": 87
5678
5676
  },
5679
5677
  "name": "extraInputs",
5680
5678
  "optional": true,
@@ -5695,7 +5693,7 @@
5695
5693
  "immutable": true,
5696
5694
  "locationInModule": {
5697
5695
  "filename": "src/pipeline-segment.ts",
5698
- "line": 100
5696
+ "line": 90
5699
5697
  },
5700
5698
  "name": "manualApproval",
5701
5699
  "optional": true,
@@ -5711,7 +5709,7 @@
5711
5709
  "immutable": true,
5712
5710
  "locationInModule": {
5713
5711
  "filename": "src/pipeline-segment.ts",
5714
- "line": 98
5712
+ "line": 88
5715
5713
  },
5716
5714
  "name": "output",
5717
5715
  "optional": true,
@@ -5727,7 +5725,7 @@
5727
5725
  "immutable": true,
5728
5726
  "locationInModule": {
5729
5727
  "filename": "src/pipeline-segment.ts",
5730
- "line": 99
5728
+ "line": 89
5731
5729
  },
5732
5730
  "name": "outputFileName",
5733
5731
  "optional": true,
@@ -5743,23 +5741,7 @@
5743
5741
  "immutable": true,
5744
5742
  "locationInModule": {
5745
5743
  "filename": "src/pipeline-segment.ts",
5746
- "line": 95
5747
- },
5748
- "name": "region",
5749
- "optional": true,
5750
- "type": {
5751
- "primitive": "string"
5752
- }
5753
- },
5754
- {
5755
- "abstract": true,
5756
- "docs": {
5757
- "stability": "stable"
5758
- },
5759
- "immutable": true,
5760
- "locationInModule": {
5761
- "filename": "src/pipeline-segment.ts",
5762
- "line": 93
5744
+ "line": 85
5763
5745
  },
5764
5746
  "name": "stackName",
5765
5747
  "optional": true,
@@ -5831,23 +5813,6 @@
5831
5813
  "fqn": "aws-cdk-lib.aws_codebuild.ProjectProps"
5832
5814
  }
5833
5815
  },
5834
- {
5835
- "abstract": true,
5836
- "docs": {
5837
- "stability": "stable",
5838
- "summary": "The AWS account this Action is supposed to operate in."
5839
- },
5840
- "immutable": true,
5841
- "locationInModule": {
5842
- "filename": "src/pipeline-segment.ts",
5843
- "line": 45
5844
- },
5845
- "name": "account",
5846
- "optional": true,
5847
- "type": {
5848
- "primitive": "string"
5849
- }
5850
- },
5851
5816
  {
5852
5817
  "abstract": true,
5853
5818
  "docs": {
@@ -5880,7 +5845,7 @@
5880
5845
  "immutable": true,
5881
5846
  "locationInModule": {
5882
5847
  "filename": "src/pipeline-segment.ts",
5883
- "line": 64
5848
+ "line": 56
5884
5849
  },
5885
5850
  "name": "manualApproval",
5886
5851
  "optional": true,
@@ -5898,7 +5863,7 @@
5898
5863
  "immutable": true,
5899
5864
  "locationInModule": {
5900
5865
  "filename": "src/pipeline-segment.ts",
5901
- "line": 54
5866
+ "line": 46
5902
5867
  },
5903
5868
  "name": "output",
5904
5869
  "optional": true,
@@ -5916,7 +5881,7 @@
5916
5881
  "immutable": true,
5917
5882
  "locationInModule": {
5918
5883
  "filename": "src/pipeline-segment.ts",
5919
- "line": 59
5884
+ "line": 51
5920
5885
  },
5921
5886
  "name": "outputFileName",
5922
5887
  "optional": true,
@@ -5924,23 +5889,6 @@
5924
5889
  "primitive": "string"
5925
5890
  }
5926
5891
  },
5927
- {
5928
- "abstract": true,
5929
- "docs": {
5930
- "stability": "stable",
5931
- "summary": "The AWS region the given Action resides in."
5932
- },
5933
- "immutable": true,
5934
- "locationInModule": {
5935
- "filename": "src/pipeline-segment.ts",
5936
- "line": 49
5937
- },
5938
- "name": "region",
5939
- "optional": true,
5940
- "type": {
5941
- "primitive": "string"
5942
- }
5943
- },
5944
5892
  {
5945
5893
  "abstract": true,
5946
5894
  "docs": {
@@ -6606,7 +6554,7 @@
6606
6554
  },
6607
6555
  "locationInModule": {
6608
6556
  "filename": "src/segment.ts",
6609
- "line": 39
6557
+ "line": 31
6610
6558
  },
6611
6559
  "name": "construct",
6612
6560
  "parameters": [
@@ -6757,7 +6705,7 @@
6757
6705
  "kind": "class",
6758
6706
  "locationInModule": {
6759
6707
  "filename": "src/segment.ts",
6760
- "line": 42
6708
+ "line": 34
6761
6709
  },
6762
6710
  "name": "SegmentConstructed",
6763
6711
  "properties": [
@@ -6768,7 +6716,7 @@
6768
6716
  "immutable": true,
6769
6717
  "locationInModule": {
6770
6718
  "filename": "src/segment.ts",
6771
- "line": 44
6719
+ "line": 36
6772
6720
  },
6773
6721
  "name": "actions",
6774
6722
  "type": {
@@ -6787,7 +6735,7 @@
6787
6735
  "immutable": true,
6788
6736
  "locationInModule": {
6789
6737
  "filename": "src/segment.ts",
6790
- "line": 43
6738
+ "line": 35
6791
6739
  },
6792
6740
  "name": "name",
6793
6741
  "type": {
@@ -6972,7 +6920,7 @@
6972
6920
  },
6973
6921
  "locationInModule": {
6974
6922
  "filename": "src/stack-segment.ts",
6975
- "line": 82
6923
+ "line": 73
6976
6924
  },
6977
6925
  "parameters": [
6978
6926
  {
@@ -6986,7 +6934,7 @@
6986
6934
  "kind": "class",
6987
6935
  "locationInModule": {
6988
6936
  "filename": "src/stack-segment.ts",
6989
- "line": 79
6937
+ "line": 70
6990
6938
  },
6991
6939
  "methods": [
6992
6940
  {
@@ -6995,7 +6943,7 @@
6995
6943
  },
6996
6944
  "locationInModule": {
6997
6945
  "filename": "src/stack-segment.ts",
6998
- "line": 87
6946
+ "line": 78
6999
6947
  },
7000
6948
  "name": "construct",
7001
6949
  "overrides": "@flit/cdk-pipeline.Segment",
@@ -7023,7 +6971,7 @@
7023
6971
  "immutable": true,
7024
6972
  "locationInModule": {
7025
6973
  "filename": "src/stack-segment.ts",
7026
- "line": 80
6974
+ "line": 71
7027
6975
  },
7028
6976
  "name": "props",
7029
6977
  "type": {
@@ -7046,7 +6994,7 @@
7046
6994
  },
7047
6995
  "locationInModule": {
7048
6996
  "filename": "src/stack-segment.ts",
7049
- "line": 118
6997
+ "line": 107
7050
6998
  },
7051
6999
  "parameters": [
7052
7000
  {
@@ -7072,7 +7020,7 @@
7072
7020
  "kind": "class",
7073
7021
  "locationInModule": {
7074
7022
  "filename": "src/stack-segment.ts",
7075
- "line": 114
7023
+ "line": 103
7076
7024
  },
7077
7025
  "name": "StackSegmentConstructed",
7078
7026
  "properties": [
@@ -7083,7 +7031,7 @@
7083
7031
  "immutable": true,
7084
7032
  "locationInModule": {
7085
7033
  "filename": "src/stack-segment.ts",
7086
- "line": 116
7034
+ "line": 105
7087
7035
  },
7088
7036
  "name": "actions",
7089
7037
  "overrides": "@flit/cdk-pipeline.SegmentConstructed",
@@ -7103,7 +7051,7 @@
7103
7051
  "immutable": true,
7104
7052
  "locationInModule": {
7105
7053
  "filename": "src/stack-segment.ts",
7106
- "line": 115
7054
+ "line": 104
7107
7055
  },
7108
7056
  "name": "name",
7109
7057
  "overrides": "@flit/cdk-pipeline.SegmentConstructed",
@@ -7124,7 +7072,7 @@
7124
7072
  "kind": "interface",
7125
7073
  "locationInModule": {
7126
7074
  "filename": "src/stack-segment.ts",
7127
- "line": 100
7075
+ "line": 91
7128
7076
  },
7129
7077
  "name": "StackSegmentConstructedProps",
7130
7078
  "properties": [
@@ -7136,7 +7084,7 @@
7136
7084
  "immutable": true,
7137
7085
  "locationInModule": {
7138
7086
  "filename": "src/stack-segment.ts",
7139
- "line": 107
7087
+ "line": 96
7140
7088
  },
7141
7089
  "name": "input",
7142
7090
  "type": {
@@ -7151,7 +7099,7 @@
7151
7099
  "immutable": true,
7152
7100
  "locationInModule": {
7153
7101
  "filename": "src/stack-segment.ts",
7154
- "line": 101
7102
+ "line": 92
7155
7103
  },
7156
7104
  "name": "stack",
7157
7105
  "type": {
@@ -7166,23 +7114,7 @@
7166
7114
  "immutable": true,
7167
7115
  "locationInModule": {
7168
7116
  "filename": "src/stack-segment.ts",
7169
- "line": 105
7170
- },
7171
- "name": "account",
7172
- "optional": true,
7173
- "type": {
7174
- "primitive": "string"
7175
- }
7176
- },
7177
- {
7178
- "abstract": true,
7179
- "docs": {
7180
- "stability": "stable"
7181
- },
7182
- "immutable": true,
7183
- "locationInModule": {
7184
- "filename": "src/stack-segment.ts",
7185
- "line": 103
7117
+ "line": 94
7186
7118
  },
7187
7119
  "name": "environmentVariables",
7188
7120
  "optional": true,
@@ -7203,7 +7135,7 @@
7203
7135
  "immutable": true,
7204
7136
  "locationInModule": {
7205
7137
  "filename": "src/stack-segment.ts",
7206
- "line": 108
7138
+ "line": 97
7207
7139
  },
7208
7140
  "name": "extraInputs",
7209
7141
  "optional": true,
@@ -7224,7 +7156,7 @@
7224
7156
  "immutable": true,
7225
7157
  "locationInModule": {
7226
7158
  "filename": "src/stack-segment.ts",
7227
- "line": 111
7159
+ "line": 100
7228
7160
  },
7229
7161
  "name": "manualApproval",
7230
7162
  "optional": true,
@@ -7240,7 +7172,7 @@
7240
7172
  "immutable": true,
7241
7173
  "locationInModule": {
7242
7174
  "filename": "src/stack-segment.ts",
7243
- "line": 109
7175
+ "line": 98
7244
7176
  },
7245
7177
  "name": "output",
7246
7178
  "optional": true,
@@ -7256,7 +7188,7 @@
7256
7188
  "immutable": true,
7257
7189
  "locationInModule": {
7258
7190
  "filename": "src/stack-segment.ts",
7259
- "line": 110
7191
+ "line": 99
7260
7192
  },
7261
7193
  "name": "outputFileName",
7262
7194
  "optional": true,
@@ -7272,7 +7204,7 @@
7272
7204
  "immutable": true,
7273
7205
  "locationInModule": {
7274
7206
  "filename": "src/stack-segment.ts",
7275
- "line": 102
7207
+ "line": 93
7276
7208
  },
7277
7209
  "name": "project",
7278
7210
  "optional": true,
@@ -7288,23 +7220,7 @@
7288
7220
  "immutable": true,
7289
7221
  "locationInModule": {
7290
7222
  "filename": "src/stack-segment.ts",
7291
- "line": 106
7292
- },
7293
- "name": "region",
7294
- "optional": true,
7295
- "type": {
7296
- "primitive": "string"
7297
- }
7298
- },
7299
- {
7300
- "abstract": true,
7301
- "docs": {
7302
- "stability": "stable"
7303
- },
7304
- "immutable": true,
7305
- "locationInModule": {
7306
- "filename": "src/stack-segment.ts",
7307
- "line": 104
7223
+ "line": 95
7308
7224
  },
7309
7225
  "name": "stackName",
7310
7226
  "optional": true,
@@ -7375,23 +7291,6 @@
7375
7291
  "fqn": "aws-cdk-lib.Stack"
7376
7292
  }
7377
7293
  },
7378
- {
7379
- "abstract": true,
7380
- "docs": {
7381
- "stability": "stable",
7382
- "summary": "The AWS account this Action is supposed to operate in."
7383
- },
7384
- "immutable": true,
7385
- "locationInModule": {
7386
- "filename": "src/stack-segment.ts",
7387
- "line": 54
7388
- },
7389
- "name": "account",
7390
- "optional": true,
7391
- "type": {
7392
- "primitive": "string"
7393
- }
7394
- },
7395
7294
  {
7396
7295
  "abstract": true,
7397
7296
  "docs": {
@@ -7417,14 +7316,14 @@
7417
7316
  {
7418
7317
  "abstract": true,
7419
7318
  "docs": {
7420
- "default": "false",
7319
+ "default": "`false``",
7421
7320
  "stability": "stable",
7422
7321
  "summary": "Does this stage require manual approval of the change set?"
7423
7322
  },
7424
7323
  "immutable": true,
7425
7324
  "locationInModule": {
7426
7325
  "filename": "src/stack-segment.ts",
7427
- "line": 73
7326
+ "line": 64
7428
7327
  },
7429
7328
  "name": "manualApproval",
7430
7329
  "optional": true,
@@ -7435,14 +7334,13 @@
7435
7334
  {
7436
7335
  "abstract": true,
7437
7336
  "docs": {
7438
- "default": "no output artifact",
7439
7337
  "stability": "stable",
7440
7338
  "summary": "The artifact to hold the stack deployment output file."
7441
7339
  },
7442
7340
  "immutable": true,
7443
7341
  "locationInModule": {
7444
7342
  "filename": "src/stack-segment.ts",
7445
- "line": 63
7343
+ "line": 54
7446
7344
  },
7447
7345
  "name": "output",
7448
7346
  "optional": true,
@@ -7453,14 +7351,14 @@
7453
7351
  {
7454
7352
  "abstract": true,
7455
7353
  "docs": {
7456
- "default": "artifact.json",
7354
+ "default": "`\"artifact.json\"``",
7457
7355
  "stability": "stable",
7458
7356
  "summary": "The filename for the file in the output artifact."
7459
7357
  },
7460
7358
  "immutable": true,
7461
7359
  "locationInModule": {
7462
7360
  "filename": "src/stack-segment.ts",
7463
- "line": 68
7361
+ "line": 59
7464
7362
  },
7465
7363
  "name": "outputFileName",
7466
7364
  "optional": true,
@@ -7486,23 +7384,6 @@
7486
7384
  "fqn": "aws-cdk-lib.aws_codebuild.ProjectProps"
7487
7385
  }
7488
7386
  },
7489
- {
7490
- "abstract": true,
7491
- "docs": {
7492
- "stability": "stable",
7493
- "summary": "The AWS region the given Action resides in."
7494
- },
7495
- "immutable": true,
7496
- "locationInModule": {
7497
- "filename": "src/stack-segment.ts",
7498
- "line": 58
7499
- },
7500
- "name": "region",
7501
- "optional": true,
7502
- "type": {
7503
- "primitive": "string"
7504
- }
7505
- },
7506
7387
  {
7507
7388
  "abstract": true,
7508
7389
  "docs": {
@@ -7523,9 +7404,7 @@
7523
7404
  {
7524
7405
  "abstract": true,
7525
7406
  "docs": {
7526
- "custom": {
7527
- "deafult": "The name of the given stack."
7528
- },
7407
+ "default": "The name of the given stack.",
7529
7408
  "stability": "stable",
7530
7409
  "summary": "The name of the stack to deploy the changes to."
7531
7410
  },
@@ -7544,6 +7423,6 @@
7544
7423
  "symbolId": "src/stack-segment:StackSegmentProps"
7545
7424
  }
7546
7425
  },
7547
- "version": "1.1.2",
7548
- "fingerprint": "TWfmiock8PgSfF2XQV2a4QZd8s/TbBiazDhCLx986/M="
7426
+ "version": "1.2.0",
7427
+ "fingerprint": "KmyD7W9hUmmzASNl6i7nrQZn4c8PBCSF/yWqYOsz3G0="
7549
7428
  }