jjrawlins-cdk-deploy-pr-github-action 0.0.0__tar.gz

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.
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1 @@
1
+ include pyproject.toml
@@ -0,0 +1,28 @@
1
+ Metadata-Version: 2.1
2
+ Name: jjrawlins-cdk-deploy-pr-github-action
3
+ Version: 0.0.0
4
+ Summary: A projen construct that generates GitHub Actions workflows for CDK deployments with GitHub Environments, parallel stages, versioned assemblies, and manual rollback.
5
+ Home-page: https://github.com/JaysonRawlins/cdk-deploy-pr-github-action.git
6
+ Author: Jayson Rawlins<JaysonJ.Rawlins@gmail.com>
7
+ License: Apache-2.0
8
+ Project-URL: Source, https://github.com/JaysonRawlins/cdk-deploy-pr-github-action.git
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Operating System :: OS Independent
11
+ Classifier: Programming Language :: JavaScript
12
+ Classifier: Programming Language :: Python :: 3 :: Only
13
+ Classifier: Programming Language :: Python :: 3.9
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Typing :: Typed
17
+ Classifier: Development Status :: 5 - Production/Stable
18
+ Classifier: License :: OSI Approved
19
+ Requires-Python: ~=3.9
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ Requires-Dist: aws-cdk-lib<3.0.0,>=2.85.0
23
+ Requires-Dist: constructs<11.0.0,>=10.0.5
24
+ Requires-Dist: jsii<2.0.0,>=1.127.0
25
+ Requires-Dist: publication>=0.0.3
26
+ Requires-Dist: typeguard==2.13.3
27
+
28
+ # replace this
@@ -0,0 +1 @@
1
+ # replace this
@@ -0,0 +1,9 @@
1
+ [build-system]
2
+ requires = ["setuptools~=75.3.2", "build~=1.3.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [tool.pyright]
6
+ defineConstant = { DEBUG = true }
7
+ pythonVersion = "3.9"
8
+ pythonPlatform = "All"
9
+ reportSelfClsParameterName = false
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,64 @@
1
+ import json
2
+ import setuptools
3
+
4
+ kwargs = json.loads(
5
+ """
6
+ {
7
+ "name": "jjrawlins-cdk-deploy-pr-github-action",
8
+ "version": "0.0.0",
9
+ "description": "A projen construct that generates GitHub Actions workflows for CDK deployments with GitHub Environments, parallel stages, versioned assemblies, and manual rollback.",
10
+ "license": "Apache-2.0",
11
+ "url": "https://github.com/JaysonRawlins/cdk-deploy-pr-github-action.git",
12
+ "long_description_content_type": "text/markdown",
13
+ "author": "Jayson Rawlins<JaysonJ.Rawlins@gmail.com>",
14
+ "bdist_wheel": {
15
+ "universal": true
16
+ },
17
+ "project_urls": {
18
+ "Source": "https://github.com/JaysonRawlins/cdk-deploy-pr-github-action.git"
19
+ },
20
+ "package_dir": {
21
+ "": "src"
22
+ },
23
+ "packages": [
24
+ "jjrawlins_cdk_deploy_pr_github_action",
25
+ "jjrawlins_cdk_deploy_pr_github_action._jsii"
26
+ ],
27
+ "package_data": {
28
+ "jjrawlins_cdk_deploy_pr_github_action._jsii": [
29
+ "cdk-deploy-pr-github-action@0.0.0.jsii.tgz"
30
+ ],
31
+ "jjrawlins_cdk_deploy_pr_github_action": [
32
+ "py.typed"
33
+ ]
34
+ },
35
+ "python_requires": "~=3.9",
36
+ "install_requires": [
37
+ "aws-cdk-lib>=2.85.0, <3.0.0",
38
+ "constructs>=10.0.5, <11.0.0",
39
+ "jsii>=1.127.0, <2.0.0",
40
+ "publication>=0.0.3",
41
+ "typeguard==2.13.3"
42
+ ],
43
+ "classifiers": [
44
+ "Intended Audience :: Developers",
45
+ "Operating System :: OS Independent",
46
+ "Programming Language :: JavaScript",
47
+ "Programming Language :: Python :: 3 :: Only",
48
+ "Programming Language :: Python :: 3.9",
49
+ "Programming Language :: Python :: 3.10",
50
+ "Programming Language :: Python :: 3.11",
51
+ "Typing :: Typed",
52
+ "Development Status :: 5 - Production/Stable",
53
+ "License :: OSI Approved"
54
+ ],
55
+ "scripts": []
56
+ }
57
+ """
58
+ )
59
+
60
+ with open("README.md", encoding="utf8") as fp:
61
+ kwargs["long_description"] = fp.read()
62
+
63
+
64
+ setuptools.setup(**kwargs)
@@ -0,0 +1,760 @@
1
+ r'''
2
+ # replace this
3
+ '''
4
+ from pkgutil import extend_path
5
+ __path__ = extend_path(__path__, __name__)
6
+
7
+ import abc
8
+ import builtins
9
+ import datetime
10
+ import enum
11
+ import typing
12
+
13
+ import jsii
14
+ import publication
15
+ import typing_extensions
16
+
17
+ import typeguard
18
+ from importlib.metadata import version as _metadata_package_version
19
+ TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
20
+
21
+ def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
22
+ if TYPEGUARD_MAJOR_VERSION <= 2:
23
+ return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
24
+ else:
25
+ if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
26
+ pass
27
+ else:
28
+ if TYPEGUARD_MAJOR_VERSION == 3:
29
+ typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
30
+ typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
31
+ else:
32
+ typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
33
+
34
+ from ._jsii import *
35
+
36
+
37
+ @jsii.data_type(
38
+ jsii_type="@jjrawlins/cdk-deploy-pr-github-action.AwsEnvironment",
39
+ jsii_struct_bases=[],
40
+ name_mapping={"account": "account", "region": "region"},
41
+ )
42
+ class AwsEnvironment:
43
+ def __init__(self, *, account: builtins.str, region: builtins.str) -> None:
44
+ '''AWS environment target for a deployment stage.
45
+
46
+ :param account: AWS account ID.
47
+ :param region: AWS region.
48
+ '''
49
+ if __debug__:
50
+ type_hints = typing.get_type_hints(_typecheckingstub__55b37d39845ad5a35e8c503333edb493bc147e36a4431940770a9215267c4186)
51
+ check_type(argname="argument account", value=account, expected_type=type_hints["account"])
52
+ check_type(argname="argument region", value=region, expected_type=type_hints["region"])
53
+ self._values: typing.Dict[builtins.str, typing.Any] = {
54
+ "account": account,
55
+ "region": region,
56
+ }
57
+
58
+ @builtins.property
59
+ def account(self) -> builtins.str:
60
+ '''AWS account ID.'''
61
+ result = self._values.get("account")
62
+ assert result is not None, "Required property 'account' is missing"
63
+ return typing.cast(builtins.str, result)
64
+
65
+ @builtins.property
66
+ def region(self) -> builtins.str:
67
+ '''AWS region.'''
68
+ result = self._values.get("region")
69
+ assert result is not None, "Required property 'region' is missing"
70
+ return typing.cast(builtins.str, result)
71
+
72
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
73
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
74
+
75
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
76
+ return not (rhs == self)
77
+
78
+ def __repr__(self) -> str:
79
+ return "AwsEnvironment(%s)" % ", ".join(
80
+ k + "=" + repr(v) for k, v in self._values.items()
81
+ )
82
+
83
+
84
+ class CdkDeployDispatchWorkflow(
85
+ metaclass=jsii.JSIIMeta,
86
+ jsii_type="@jjrawlins/cdk-deploy-pr-github-action.CdkDeployDispatchWorkflow",
87
+ ):
88
+ '''Generates a workflow_dispatch workflow for manual CDK deployments and rollbacks.
89
+
90
+ Allows deploying any previously published version of the cloud assembly
91
+ to any configured environment. This enables:
92
+
93
+ - Manual promotion between environments
94
+ - Rollback to any previous version
95
+ - Ad-hoc deployments outside the normal CI/CD flow
96
+ '''
97
+
98
+ def __init__(
99
+ self,
100
+ project: typing.Any,
101
+ *,
102
+ app_name: builtins.str,
103
+ cdk_command: builtins.str,
104
+ iam_role_arn: builtins.str,
105
+ iam_role_region: builtins.str,
106
+ install_command: builtins.str,
107
+ node_version: builtins.str,
108
+ pkg_namespace: builtins.str,
109
+ stack_prefix: builtins.str,
110
+ stages: typing.Sequence[typing.Union["DeployStageOptions", typing.Dict[builtins.str, typing.Any]]],
111
+ ) -> None:
112
+ '''
113
+ :param project: -
114
+ :param app_name:
115
+ :param cdk_command:
116
+ :param iam_role_arn:
117
+ :param iam_role_region:
118
+ :param install_command:
119
+ :param node_version:
120
+ :param pkg_namespace:
121
+ :param stack_prefix:
122
+ :param stages:
123
+ '''
124
+ if __debug__:
125
+ type_hints = typing.get_type_hints(_typecheckingstub__95e1d806c4c893dadb14d2ffca8dcd1081a6e13665ce071117e4a01c5b32ba72)
126
+ check_type(argname="argument project", value=project, expected_type=type_hints["project"])
127
+ options = DeployDispatchInternalOptions(
128
+ app_name=app_name,
129
+ cdk_command=cdk_command,
130
+ iam_role_arn=iam_role_arn,
131
+ iam_role_region=iam_role_region,
132
+ install_command=install_command,
133
+ node_version=node_version,
134
+ pkg_namespace=pkg_namespace,
135
+ stack_prefix=stack_prefix,
136
+ stages=stages,
137
+ )
138
+
139
+ jsii.create(self.__class__, self, [project, options])
140
+
141
+
142
+ class CdkDeployPipeline(
143
+ metaclass=jsii.JSIIMeta,
144
+ jsii_type="@jjrawlins/cdk-deploy-pr-github-action.CdkDeployPipeline",
145
+ ):
146
+ '''Generates GitHub Actions workflows for CDK deployments.
147
+
148
+ Creates a ``deploy.yml`` workflow with:
149
+
150
+ - Synth job to compile and synthesize the CDK app
151
+ - Asset publish job to upload Lambda/container assets to AWS
152
+ - Per-stage deploy jobs with GitHub Environments, parallel execution, and concurrency groups
153
+
154
+ Optionally creates a ``deploy-dispatch.yml`` workflow for manual deployments and rollbacks.
155
+ '''
156
+
157
+ def __init__(
158
+ self,
159
+ project: typing.Any,
160
+ *,
161
+ iam_role_arn: builtins.str,
162
+ pkg_namespace: builtins.str,
163
+ stack_prefix: builtins.str,
164
+ stages: typing.Sequence[typing.Union["DeployStageOptions", typing.Dict[builtins.str, typing.Any]]],
165
+ branch_name: typing.Optional[builtins.str] = None,
166
+ cdk_command: typing.Optional[builtins.str] = None,
167
+ iam_role_region: typing.Optional[builtins.str] = None,
168
+ install_command: typing.Optional[builtins.str] = None,
169
+ manual_deployment: typing.Optional[builtins.bool] = None,
170
+ node_version: typing.Optional[builtins.str] = None,
171
+ use_github_packages_for_assembly: typing.Optional[builtins.bool] = None,
172
+ ) -> None:
173
+ '''
174
+ :param project: -
175
+ :param iam_role_arn: Default OIDC role ARN for AWS credential assumption.
176
+ :param pkg_namespace: npm scope for versioned cloud assembly packages (e.g., '@defiance-digital').
177
+ :param stack_prefix: Stack name prefix. Stage names are appended with a dash (e.g., 'MyApp' -> 'MyApp-Production')
178
+ :param stages: Deployment stages in declaration order.
179
+ :param branch_name: Branch that triggers deployments on push. Default: 'main'
180
+ :param cdk_command: CDK CLI command prefix. Default: 'npx cdk'
181
+ :param iam_role_region: Default AWS region for OIDC credential assumption. Default: 'us-east-1'
182
+ :param install_command: Package install command. Default: 'yarn install --check-files --frozen-lockfile'
183
+ :param manual_deployment: Generate a workflow_dispatch workflow for manual deployments and rollbacks. Default: true
184
+ :param node_version: Node.js version for workflow runners. Default: '24.x'
185
+ :param use_github_packages_for_assembly: Version and publish cloud assembly to GitHub Packages for rollback support. Default: true
186
+ '''
187
+ if __debug__:
188
+ type_hints = typing.get_type_hints(_typecheckingstub__fd5610c02687537e020f1eb5581bb5592e9f94564325ecf494074c110c0f6c7f)
189
+ check_type(argname="argument project", value=project, expected_type=type_hints["project"])
190
+ options = CdkDeployPipelineOptions(
191
+ iam_role_arn=iam_role_arn,
192
+ pkg_namespace=pkg_namespace,
193
+ stack_prefix=stack_prefix,
194
+ stages=stages,
195
+ branch_name=branch_name,
196
+ cdk_command=cdk_command,
197
+ iam_role_region=iam_role_region,
198
+ install_command=install_command,
199
+ manual_deployment=manual_deployment,
200
+ node_version=node_version,
201
+ use_github_packages_for_assembly=use_github_packages_for_assembly,
202
+ )
203
+
204
+ jsii.create(self.__class__, self, [project, options])
205
+
206
+
207
+ @jsii.data_type(
208
+ jsii_type="@jjrawlins/cdk-deploy-pr-github-action.CdkDeployPipelineOptions",
209
+ jsii_struct_bases=[],
210
+ name_mapping={
211
+ "iam_role_arn": "iamRoleArn",
212
+ "pkg_namespace": "pkgNamespace",
213
+ "stack_prefix": "stackPrefix",
214
+ "stages": "stages",
215
+ "branch_name": "branchName",
216
+ "cdk_command": "cdkCommand",
217
+ "iam_role_region": "iamRoleRegion",
218
+ "install_command": "installCommand",
219
+ "manual_deployment": "manualDeployment",
220
+ "node_version": "nodeVersion",
221
+ "use_github_packages_for_assembly": "useGithubPackagesForAssembly",
222
+ },
223
+ )
224
+ class CdkDeployPipelineOptions:
225
+ def __init__(
226
+ self,
227
+ *,
228
+ iam_role_arn: builtins.str,
229
+ pkg_namespace: builtins.str,
230
+ stack_prefix: builtins.str,
231
+ stages: typing.Sequence[typing.Union["DeployStageOptions", typing.Dict[builtins.str, typing.Any]]],
232
+ branch_name: typing.Optional[builtins.str] = None,
233
+ cdk_command: typing.Optional[builtins.str] = None,
234
+ iam_role_region: typing.Optional[builtins.str] = None,
235
+ install_command: typing.Optional[builtins.str] = None,
236
+ manual_deployment: typing.Optional[builtins.bool] = None,
237
+ node_version: typing.Optional[builtins.str] = None,
238
+ use_github_packages_for_assembly: typing.Optional[builtins.bool] = None,
239
+ ) -> None:
240
+ '''Configuration for the CDK deploy pipeline.
241
+
242
+ :param iam_role_arn: Default OIDC role ARN for AWS credential assumption.
243
+ :param pkg_namespace: npm scope for versioned cloud assembly packages (e.g., '@defiance-digital').
244
+ :param stack_prefix: Stack name prefix. Stage names are appended with a dash (e.g., 'MyApp' -> 'MyApp-Production')
245
+ :param stages: Deployment stages in declaration order.
246
+ :param branch_name: Branch that triggers deployments on push. Default: 'main'
247
+ :param cdk_command: CDK CLI command prefix. Default: 'npx cdk'
248
+ :param iam_role_region: Default AWS region for OIDC credential assumption. Default: 'us-east-1'
249
+ :param install_command: Package install command. Default: 'yarn install --check-files --frozen-lockfile'
250
+ :param manual_deployment: Generate a workflow_dispatch workflow for manual deployments and rollbacks. Default: true
251
+ :param node_version: Node.js version for workflow runners. Default: '24.x'
252
+ :param use_github_packages_for_assembly: Version and publish cloud assembly to GitHub Packages for rollback support. Default: true
253
+ '''
254
+ if __debug__:
255
+ type_hints = typing.get_type_hints(_typecheckingstub__61a7fa163838ee4fd916db4be0d084f5f1f643299d15b44adbb9e992f796e1b2)
256
+ check_type(argname="argument iam_role_arn", value=iam_role_arn, expected_type=type_hints["iam_role_arn"])
257
+ check_type(argname="argument pkg_namespace", value=pkg_namespace, expected_type=type_hints["pkg_namespace"])
258
+ check_type(argname="argument stack_prefix", value=stack_prefix, expected_type=type_hints["stack_prefix"])
259
+ check_type(argname="argument stages", value=stages, expected_type=type_hints["stages"])
260
+ check_type(argname="argument branch_name", value=branch_name, expected_type=type_hints["branch_name"])
261
+ check_type(argname="argument cdk_command", value=cdk_command, expected_type=type_hints["cdk_command"])
262
+ check_type(argname="argument iam_role_region", value=iam_role_region, expected_type=type_hints["iam_role_region"])
263
+ check_type(argname="argument install_command", value=install_command, expected_type=type_hints["install_command"])
264
+ check_type(argname="argument manual_deployment", value=manual_deployment, expected_type=type_hints["manual_deployment"])
265
+ check_type(argname="argument node_version", value=node_version, expected_type=type_hints["node_version"])
266
+ check_type(argname="argument use_github_packages_for_assembly", value=use_github_packages_for_assembly, expected_type=type_hints["use_github_packages_for_assembly"])
267
+ self._values: typing.Dict[builtins.str, typing.Any] = {
268
+ "iam_role_arn": iam_role_arn,
269
+ "pkg_namespace": pkg_namespace,
270
+ "stack_prefix": stack_prefix,
271
+ "stages": stages,
272
+ }
273
+ if branch_name is not None:
274
+ self._values["branch_name"] = branch_name
275
+ if cdk_command is not None:
276
+ self._values["cdk_command"] = cdk_command
277
+ if iam_role_region is not None:
278
+ self._values["iam_role_region"] = iam_role_region
279
+ if install_command is not None:
280
+ self._values["install_command"] = install_command
281
+ if manual_deployment is not None:
282
+ self._values["manual_deployment"] = manual_deployment
283
+ if node_version is not None:
284
+ self._values["node_version"] = node_version
285
+ if use_github_packages_for_assembly is not None:
286
+ self._values["use_github_packages_for_assembly"] = use_github_packages_for_assembly
287
+
288
+ @builtins.property
289
+ def iam_role_arn(self) -> builtins.str:
290
+ '''Default OIDC role ARN for AWS credential assumption.'''
291
+ result = self._values.get("iam_role_arn")
292
+ assert result is not None, "Required property 'iam_role_arn' is missing"
293
+ return typing.cast(builtins.str, result)
294
+
295
+ @builtins.property
296
+ def pkg_namespace(self) -> builtins.str:
297
+ '''npm scope for versioned cloud assembly packages (e.g., '@defiance-digital').'''
298
+ result = self._values.get("pkg_namespace")
299
+ assert result is not None, "Required property 'pkg_namespace' is missing"
300
+ return typing.cast(builtins.str, result)
301
+
302
+ @builtins.property
303
+ def stack_prefix(self) -> builtins.str:
304
+ '''Stack name prefix.
305
+
306
+ Stage names are appended with a dash (e.g., 'MyApp' -> 'MyApp-Production')
307
+ '''
308
+ result = self._values.get("stack_prefix")
309
+ assert result is not None, "Required property 'stack_prefix' is missing"
310
+ return typing.cast(builtins.str, result)
311
+
312
+ @builtins.property
313
+ def stages(self) -> typing.List["DeployStageOptions"]:
314
+ '''Deployment stages in declaration order.'''
315
+ result = self._values.get("stages")
316
+ assert result is not None, "Required property 'stages' is missing"
317
+ return typing.cast(typing.List["DeployStageOptions"], result)
318
+
319
+ @builtins.property
320
+ def branch_name(self) -> typing.Optional[builtins.str]:
321
+ '''Branch that triggers deployments on push.
322
+
323
+ :default: 'main'
324
+ '''
325
+ result = self._values.get("branch_name")
326
+ return typing.cast(typing.Optional[builtins.str], result)
327
+
328
+ @builtins.property
329
+ def cdk_command(self) -> typing.Optional[builtins.str]:
330
+ '''CDK CLI command prefix.
331
+
332
+ :default: 'npx cdk'
333
+ '''
334
+ result = self._values.get("cdk_command")
335
+ return typing.cast(typing.Optional[builtins.str], result)
336
+
337
+ @builtins.property
338
+ def iam_role_region(self) -> typing.Optional[builtins.str]:
339
+ '''Default AWS region for OIDC credential assumption.
340
+
341
+ :default: 'us-east-1'
342
+ '''
343
+ result = self._values.get("iam_role_region")
344
+ return typing.cast(typing.Optional[builtins.str], result)
345
+
346
+ @builtins.property
347
+ def install_command(self) -> typing.Optional[builtins.str]:
348
+ '''Package install command.
349
+
350
+ :default: 'yarn install --check-files --frozen-lockfile'
351
+ '''
352
+ result = self._values.get("install_command")
353
+ return typing.cast(typing.Optional[builtins.str], result)
354
+
355
+ @builtins.property
356
+ def manual_deployment(self) -> typing.Optional[builtins.bool]:
357
+ '''Generate a workflow_dispatch workflow for manual deployments and rollbacks.
358
+
359
+ :default: true
360
+ '''
361
+ result = self._values.get("manual_deployment")
362
+ return typing.cast(typing.Optional[builtins.bool], result)
363
+
364
+ @builtins.property
365
+ def node_version(self) -> typing.Optional[builtins.str]:
366
+ '''Node.js version for workflow runners.
367
+
368
+ :default: '24.x'
369
+ '''
370
+ result = self._values.get("node_version")
371
+ return typing.cast(typing.Optional[builtins.str], result)
372
+
373
+ @builtins.property
374
+ def use_github_packages_for_assembly(self) -> typing.Optional[builtins.bool]:
375
+ '''Version and publish cloud assembly to GitHub Packages for rollback support.
376
+
377
+ :default: true
378
+ '''
379
+ result = self._values.get("use_github_packages_for_assembly")
380
+ return typing.cast(typing.Optional[builtins.bool], result)
381
+
382
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
383
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
384
+
385
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
386
+ return not (rhs == self)
387
+
388
+ def __repr__(self) -> str:
389
+ return "CdkDeployPipelineOptions(%s)" % ", ".join(
390
+ k + "=" + repr(v) for k, v in self._values.items()
391
+ )
392
+
393
+
394
+ @jsii.data_type(
395
+ jsii_type="@jjrawlins/cdk-deploy-pr-github-action.DeployDispatchInternalOptions",
396
+ jsii_struct_bases=[],
397
+ name_mapping={
398
+ "app_name": "appName",
399
+ "cdk_command": "cdkCommand",
400
+ "iam_role_arn": "iamRoleArn",
401
+ "iam_role_region": "iamRoleRegion",
402
+ "install_command": "installCommand",
403
+ "node_version": "nodeVersion",
404
+ "pkg_namespace": "pkgNamespace",
405
+ "stack_prefix": "stackPrefix",
406
+ "stages": "stages",
407
+ },
408
+ )
409
+ class DeployDispatchInternalOptions:
410
+ def __init__(
411
+ self,
412
+ *,
413
+ app_name: builtins.str,
414
+ cdk_command: builtins.str,
415
+ iam_role_arn: builtins.str,
416
+ iam_role_region: builtins.str,
417
+ install_command: builtins.str,
418
+ node_version: builtins.str,
419
+ pkg_namespace: builtins.str,
420
+ stack_prefix: builtins.str,
421
+ stages: typing.Sequence[typing.Union["DeployStageOptions", typing.Dict[builtins.str, typing.Any]]],
422
+ ) -> None:
423
+ '''Internal helper to build deploy dispatch workflow options from pipeline options.
424
+
425
+ Exported for use by CdkDeployDispatchWorkflow.
426
+
427
+ :param app_name:
428
+ :param cdk_command:
429
+ :param iam_role_arn:
430
+ :param iam_role_region:
431
+ :param install_command:
432
+ :param node_version:
433
+ :param pkg_namespace:
434
+ :param stack_prefix:
435
+ :param stages:
436
+ '''
437
+ if __debug__:
438
+ type_hints = typing.get_type_hints(_typecheckingstub__bb0cc8f66445ad544cfb6237542cb40e029f4d28a5debf1f25e3e1ef67c17c33)
439
+ check_type(argname="argument app_name", value=app_name, expected_type=type_hints["app_name"])
440
+ check_type(argname="argument cdk_command", value=cdk_command, expected_type=type_hints["cdk_command"])
441
+ check_type(argname="argument iam_role_arn", value=iam_role_arn, expected_type=type_hints["iam_role_arn"])
442
+ check_type(argname="argument iam_role_region", value=iam_role_region, expected_type=type_hints["iam_role_region"])
443
+ check_type(argname="argument install_command", value=install_command, expected_type=type_hints["install_command"])
444
+ check_type(argname="argument node_version", value=node_version, expected_type=type_hints["node_version"])
445
+ check_type(argname="argument pkg_namespace", value=pkg_namespace, expected_type=type_hints["pkg_namespace"])
446
+ check_type(argname="argument stack_prefix", value=stack_prefix, expected_type=type_hints["stack_prefix"])
447
+ check_type(argname="argument stages", value=stages, expected_type=type_hints["stages"])
448
+ self._values: typing.Dict[builtins.str, typing.Any] = {
449
+ "app_name": app_name,
450
+ "cdk_command": cdk_command,
451
+ "iam_role_arn": iam_role_arn,
452
+ "iam_role_region": iam_role_region,
453
+ "install_command": install_command,
454
+ "node_version": node_version,
455
+ "pkg_namespace": pkg_namespace,
456
+ "stack_prefix": stack_prefix,
457
+ "stages": stages,
458
+ }
459
+
460
+ @builtins.property
461
+ def app_name(self) -> builtins.str:
462
+ result = self._values.get("app_name")
463
+ assert result is not None, "Required property 'app_name' is missing"
464
+ return typing.cast(builtins.str, result)
465
+
466
+ @builtins.property
467
+ def cdk_command(self) -> builtins.str:
468
+ result = self._values.get("cdk_command")
469
+ assert result is not None, "Required property 'cdk_command' is missing"
470
+ return typing.cast(builtins.str, result)
471
+
472
+ @builtins.property
473
+ def iam_role_arn(self) -> builtins.str:
474
+ result = self._values.get("iam_role_arn")
475
+ assert result is not None, "Required property 'iam_role_arn' is missing"
476
+ return typing.cast(builtins.str, result)
477
+
478
+ @builtins.property
479
+ def iam_role_region(self) -> builtins.str:
480
+ result = self._values.get("iam_role_region")
481
+ assert result is not None, "Required property 'iam_role_region' is missing"
482
+ return typing.cast(builtins.str, result)
483
+
484
+ @builtins.property
485
+ def install_command(self) -> builtins.str:
486
+ result = self._values.get("install_command")
487
+ assert result is not None, "Required property 'install_command' is missing"
488
+ return typing.cast(builtins.str, result)
489
+
490
+ @builtins.property
491
+ def node_version(self) -> builtins.str:
492
+ result = self._values.get("node_version")
493
+ assert result is not None, "Required property 'node_version' is missing"
494
+ return typing.cast(builtins.str, result)
495
+
496
+ @builtins.property
497
+ def pkg_namespace(self) -> builtins.str:
498
+ result = self._values.get("pkg_namespace")
499
+ assert result is not None, "Required property 'pkg_namespace' is missing"
500
+ return typing.cast(builtins.str, result)
501
+
502
+ @builtins.property
503
+ def stack_prefix(self) -> builtins.str:
504
+ result = self._values.get("stack_prefix")
505
+ assert result is not None, "Required property 'stack_prefix' is missing"
506
+ return typing.cast(builtins.str, result)
507
+
508
+ @builtins.property
509
+ def stages(self) -> typing.List["DeployStageOptions"]:
510
+ result = self._values.get("stages")
511
+ assert result is not None, "Required property 'stages' is missing"
512
+ return typing.cast(typing.List["DeployStageOptions"], result)
513
+
514
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
515
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
516
+
517
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
518
+ return not (rhs == self)
519
+
520
+ def __repr__(self) -> str:
521
+ return "DeployDispatchInternalOptions(%s)" % ", ".join(
522
+ k + "=" + repr(v) for k, v in self._values.items()
523
+ )
524
+
525
+
526
+ @jsii.data_type(
527
+ jsii_type="@jjrawlins/cdk-deploy-pr-github-action.DeployStageOptions",
528
+ jsii_struct_bases=[],
529
+ name_mapping={
530
+ "env": "env",
531
+ "name": "name",
532
+ "depends_on": "dependsOn",
533
+ "environment": "environment",
534
+ "iam_role_arn": "iamRoleArn",
535
+ "iam_role_region": "iamRoleRegion",
536
+ "stacks": "stacks",
537
+ },
538
+ )
539
+ class DeployStageOptions:
540
+ def __init__(
541
+ self,
542
+ *,
543
+ env: typing.Union["AwsEnvironment", typing.Dict[builtins.str, typing.Any]],
544
+ name: builtins.str,
545
+ depends_on: typing.Optional[typing.Sequence[builtins.str]] = None,
546
+ environment: typing.Optional[builtins.str] = None,
547
+ iam_role_arn: typing.Optional[builtins.str] = None,
548
+ iam_role_region: typing.Optional[builtins.str] = None,
549
+ stacks: typing.Optional[typing.Sequence[builtins.str]] = None,
550
+ ) -> None:
551
+ '''Configuration for a single deployment stage.
552
+
553
+ :param env: AWS target environment (account + region).
554
+ :param name: Stage name (used as suffix in job IDs and stack names, e.g., 'Sandbox', 'Production').
555
+ :param depends_on: Stage names that must complete successfully before this stage runs. Stages with no dependsOn run in parallel after the publish-assets job. Default: - depends only on publish-assets (runs as soon as assets are ready)
556
+ :param environment: GitHub Environment name for protection rules, secrets scoping, and deployment approvals. Default: - uses the stage name
557
+ :param iam_role_arn: Override the default OIDC role ARN for this stage. Useful for cross-account deployments where each account has its own role.
558
+ :param iam_role_region: Override the default AWS region for OIDC credential assumption. Default: - uses the pipeline-level iamRoleRegion or the stage env.region
559
+ :param stacks: Specific CDK stack names to deploy in this stage. Default: - ['{stackPrefix}-{stageName}']
560
+ '''
561
+ if isinstance(env, dict):
562
+ env = AwsEnvironment(**env)
563
+ if __debug__:
564
+ type_hints = typing.get_type_hints(_typecheckingstub__cc4cfebd6c045db80dc09f05cdcf2a5ca9add5751cf21fb421c4c2181d3d8f5e)
565
+ check_type(argname="argument env", value=env, expected_type=type_hints["env"])
566
+ check_type(argname="argument name", value=name, expected_type=type_hints["name"])
567
+ check_type(argname="argument depends_on", value=depends_on, expected_type=type_hints["depends_on"])
568
+ check_type(argname="argument environment", value=environment, expected_type=type_hints["environment"])
569
+ check_type(argname="argument iam_role_arn", value=iam_role_arn, expected_type=type_hints["iam_role_arn"])
570
+ check_type(argname="argument iam_role_region", value=iam_role_region, expected_type=type_hints["iam_role_region"])
571
+ check_type(argname="argument stacks", value=stacks, expected_type=type_hints["stacks"])
572
+ self._values: typing.Dict[builtins.str, typing.Any] = {
573
+ "env": env,
574
+ "name": name,
575
+ }
576
+ if depends_on is not None:
577
+ self._values["depends_on"] = depends_on
578
+ if environment is not None:
579
+ self._values["environment"] = environment
580
+ if iam_role_arn is not None:
581
+ self._values["iam_role_arn"] = iam_role_arn
582
+ if iam_role_region is not None:
583
+ self._values["iam_role_region"] = iam_role_region
584
+ if stacks is not None:
585
+ self._values["stacks"] = stacks
586
+
587
+ @builtins.property
588
+ def env(self) -> "AwsEnvironment":
589
+ '''AWS target environment (account + region).'''
590
+ result = self._values.get("env")
591
+ assert result is not None, "Required property 'env' is missing"
592
+ return typing.cast("AwsEnvironment", result)
593
+
594
+ @builtins.property
595
+ def name(self) -> builtins.str:
596
+ '''Stage name (used as suffix in job IDs and stack names, e.g., 'Sandbox', 'Production').'''
597
+ result = self._values.get("name")
598
+ assert result is not None, "Required property 'name' is missing"
599
+ return typing.cast(builtins.str, result)
600
+
601
+ @builtins.property
602
+ def depends_on(self) -> typing.Optional[typing.List[builtins.str]]:
603
+ '''Stage names that must complete successfully before this stage runs.
604
+
605
+ Stages with no dependsOn run in parallel after the publish-assets job.
606
+
607
+ :default: - depends only on publish-assets (runs as soon as assets are ready)
608
+
609
+ Example::
610
+
611
+ ['Sandbox', 'Dev'] // waits for both before deploying
612
+ '''
613
+ result = self._values.get("depends_on")
614
+ return typing.cast(typing.Optional[typing.List[builtins.str]], result)
615
+
616
+ @builtins.property
617
+ def environment(self) -> typing.Optional[builtins.str]:
618
+ '''GitHub Environment name for protection rules, secrets scoping, and deployment approvals.
619
+
620
+ :default: - uses the stage name
621
+ '''
622
+ result = self._values.get("environment")
623
+ return typing.cast(typing.Optional[builtins.str], result)
624
+
625
+ @builtins.property
626
+ def iam_role_arn(self) -> typing.Optional[builtins.str]:
627
+ '''Override the default OIDC role ARN for this stage.
628
+
629
+ Useful for cross-account deployments where each account has its own role.
630
+ '''
631
+ result = self._values.get("iam_role_arn")
632
+ return typing.cast(typing.Optional[builtins.str], result)
633
+
634
+ @builtins.property
635
+ def iam_role_region(self) -> typing.Optional[builtins.str]:
636
+ '''Override the default AWS region for OIDC credential assumption.
637
+
638
+ :default: - uses the pipeline-level iamRoleRegion or the stage env.region
639
+ '''
640
+ result = self._values.get("iam_role_region")
641
+ return typing.cast(typing.Optional[builtins.str], result)
642
+
643
+ @builtins.property
644
+ def stacks(self) -> typing.Optional[typing.List[builtins.str]]:
645
+ '''Specific CDK stack names to deploy in this stage.
646
+
647
+ :default: - ['{stackPrefix}-{stageName}']
648
+ '''
649
+ result = self._values.get("stacks")
650
+ return typing.cast(typing.Optional[typing.List[builtins.str]], result)
651
+
652
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
653
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
654
+
655
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
656
+ return not (rhs == self)
657
+
658
+ def __repr__(self) -> str:
659
+ return "DeployStageOptions(%s)" % ", ".join(
660
+ k + "=" + repr(v) for k, v in self._values.items()
661
+ )
662
+
663
+
664
+ __all__ = [
665
+ "AwsEnvironment",
666
+ "CdkDeployDispatchWorkflow",
667
+ "CdkDeployPipeline",
668
+ "CdkDeployPipelineOptions",
669
+ "DeployDispatchInternalOptions",
670
+ "DeployStageOptions",
671
+ ]
672
+
673
+ publication.publish()
674
+
675
+ def _typecheckingstub__55b37d39845ad5a35e8c503333edb493bc147e36a4431940770a9215267c4186(
676
+ *,
677
+ account: builtins.str,
678
+ region: builtins.str,
679
+ ) -> None:
680
+ """Type checking stubs"""
681
+ pass
682
+
683
+ def _typecheckingstub__95e1d806c4c893dadb14d2ffca8dcd1081a6e13665ce071117e4a01c5b32ba72(
684
+ project: typing.Any,
685
+ *,
686
+ app_name: builtins.str,
687
+ cdk_command: builtins.str,
688
+ iam_role_arn: builtins.str,
689
+ iam_role_region: builtins.str,
690
+ install_command: builtins.str,
691
+ node_version: builtins.str,
692
+ pkg_namespace: builtins.str,
693
+ stack_prefix: builtins.str,
694
+ stages: typing.Sequence[typing.Union[DeployStageOptions, typing.Dict[builtins.str, typing.Any]]],
695
+ ) -> None:
696
+ """Type checking stubs"""
697
+ pass
698
+
699
+ def _typecheckingstub__fd5610c02687537e020f1eb5581bb5592e9f94564325ecf494074c110c0f6c7f(
700
+ project: typing.Any,
701
+ *,
702
+ iam_role_arn: builtins.str,
703
+ pkg_namespace: builtins.str,
704
+ stack_prefix: builtins.str,
705
+ stages: typing.Sequence[typing.Union[DeployStageOptions, typing.Dict[builtins.str, typing.Any]]],
706
+ branch_name: typing.Optional[builtins.str] = None,
707
+ cdk_command: typing.Optional[builtins.str] = None,
708
+ iam_role_region: typing.Optional[builtins.str] = None,
709
+ install_command: typing.Optional[builtins.str] = None,
710
+ manual_deployment: typing.Optional[builtins.bool] = None,
711
+ node_version: typing.Optional[builtins.str] = None,
712
+ use_github_packages_for_assembly: typing.Optional[builtins.bool] = None,
713
+ ) -> None:
714
+ """Type checking stubs"""
715
+ pass
716
+
717
+ def _typecheckingstub__61a7fa163838ee4fd916db4be0d084f5f1f643299d15b44adbb9e992f796e1b2(
718
+ *,
719
+ iam_role_arn: builtins.str,
720
+ pkg_namespace: builtins.str,
721
+ stack_prefix: builtins.str,
722
+ stages: typing.Sequence[typing.Union[DeployStageOptions, typing.Dict[builtins.str, typing.Any]]],
723
+ branch_name: typing.Optional[builtins.str] = None,
724
+ cdk_command: typing.Optional[builtins.str] = None,
725
+ iam_role_region: typing.Optional[builtins.str] = None,
726
+ install_command: typing.Optional[builtins.str] = None,
727
+ manual_deployment: typing.Optional[builtins.bool] = None,
728
+ node_version: typing.Optional[builtins.str] = None,
729
+ use_github_packages_for_assembly: typing.Optional[builtins.bool] = None,
730
+ ) -> None:
731
+ """Type checking stubs"""
732
+ pass
733
+
734
+ def _typecheckingstub__bb0cc8f66445ad544cfb6237542cb40e029f4d28a5debf1f25e3e1ef67c17c33(
735
+ *,
736
+ app_name: builtins.str,
737
+ cdk_command: builtins.str,
738
+ iam_role_arn: builtins.str,
739
+ iam_role_region: builtins.str,
740
+ install_command: builtins.str,
741
+ node_version: builtins.str,
742
+ pkg_namespace: builtins.str,
743
+ stack_prefix: builtins.str,
744
+ stages: typing.Sequence[typing.Union[DeployStageOptions, typing.Dict[builtins.str, typing.Any]]],
745
+ ) -> None:
746
+ """Type checking stubs"""
747
+ pass
748
+
749
+ def _typecheckingstub__cc4cfebd6c045db80dc09f05cdcf2a5ca9add5751cf21fb421c4c2181d3d8f5e(
750
+ *,
751
+ env: typing.Union[AwsEnvironment, typing.Dict[builtins.str, typing.Any]],
752
+ name: builtins.str,
753
+ depends_on: typing.Optional[typing.Sequence[builtins.str]] = None,
754
+ environment: typing.Optional[builtins.str] = None,
755
+ iam_role_arn: typing.Optional[builtins.str] = None,
756
+ iam_role_region: typing.Optional[builtins.str] = None,
757
+ stacks: typing.Optional[typing.Sequence[builtins.str]] = None,
758
+ ) -> None:
759
+ """Type checking stubs"""
760
+ pass
@@ -0,0 +1,45 @@
1
+ from pkgutil import extend_path
2
+ __path__ = extend_path(__path__, __name__)
3
+
4
+ import abc
5
+ import builtins
6
+ import datetime
7
+ import enum
8
+ import typing
9
+
10
+ import jsii
11
+ import publication
12
+ import typing_extensions
13
+
14
+ import typeguard
15
+ from importlib.metadata import version as _metadata_package_version
16
+ TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
17
+
18
+ def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
19
+ if TYPEGUARD_MAJOR_VERSION <= 2:
20
+ return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
21
+ else:
22
+ if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
23
+ pass
24
+ else:
25
+ if TYPEGUARD_MAJOR_VERSION == 3:
26
+ typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
27
+ typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
28
+ else:
29
+ typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
30
+
31
+ import aws_cdk._jsii
32
+ import constructs._jsii
33
+
34
+ __jsii_assembly__ = jsii.JSIIAssembly.load(
35
+ "@jjrawlins/cdk-deploy-pr-github-action",
36
+ "0.0.0",
37
+ __name__[0:-6],
38
+ "cdk-deploy-pr-github-action@0.0.0.jsii.tgz",
39
+ )
40
+
41
+ __all__ = [
42
+ "__jsii_assembly__",
43
+ ]
44
+
45
+ publication.publish()
@@ -0,0 +1,28 @@
1
+ Metadata-Version: 2.1
2
+ Name: jjrawlins-cdk-deploy-pr-github-action
3
+ Version: 0.0.0
4
+ Summary: A projen construct that generates GitHub Actions workflows for CDK deployments with GitHub Environments, parallel stages, versioned assemblies, and manual rollback.
5
+ Home-page: https://github.com/JaysonRawlins/cdk-deploy-pr-github-action.git
6
+ Author: Jayson Rawlins<JaysonJ.Rawlins@gmail.com>
7
+ License: Apache-2.0
8
+ Project-URL: Source, https://github.com/JaysonRawlins/cdk-deploy-pr-github-action.git
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Operating System :: OS Independent
11
+ Classifier: Programming Language :: JavaScript
12
+ Classifier: Programming Language :: Python :: 3 :: Only
13
+ Classifier: Programming Language :: Python :: 3.9
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Typing :: Typed
17
+ Classifier: Development Status :: 5 - Production/Stable
18
+ Classifier: License :: OSI Approved
19
+ Requires-Python: ~=3.9
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ Requires-Dist: aws-cdk-lib<3.0.0,>=2.85.0
23
+ Requires-Dist: constructs<11.0.0,>=10.0.5
24
+ Requires-Dist: jsii<2.0.0,>=1.127.0
25
+ Requires-Dist: publication>=0.0.3
26
+ Requires-Dist: typeguard==2.13.3
27
+
28
+ # replace this
@@ -0,0 +1,14 @@
1
+ LICENSE
2
+ MANIFEST.in
3
+ README.md
4
+ pyproject.toml
5
+ setup.py
6
+ src/jjrawlins_cdk_deploy_pr_github_action/__init__.py
7
+ src/jjrawlins_cdk_deploy_pr_github_action/py.typed
8
+ src/jjrawlins_cdk_deploy_pr_github_action.egg-info/PKG-INFO
9
+ src/jjrawlins_cdk_deploy_pr_github_action.egg-info/SOURCES.txt
10
+ src/jjrawlins_cdk_deploy_pr_github_action.egg-info/dependency_links.txt
11
+ src/jjrawlins_cdk_deploy_pr_github_action.egg-info/requires.txt
12
+ src/jjrawlins_cdk_deploy_pr_github_action.egg-info/top_level.txt
13
+ src/jjrawlins_cdk_deploy_pr_github_action/_jsii/__init__.py
14
+ src/jjrawlins_cdk_deploy_pr_github_action/_jsii/cdk-deploy-pr-github-action@0.0.0.jsii.tgz
@@ -0,0 +1,5 @@
1
+ aws-cdk-lib<3.0.0,>=2.85.0
2
+ constructs<11.0.0,>=10.0.5
3
+ jsii<2.0.0,>=1.127.0
4
+ publication>=0.0.3
5
+ typeguard==2.13.3