projen 0.95.0__py3-none-any.whl → 0.95.2__py3-none-any.whl

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.

Potentially problematic release.


This version of projen might be problematic. Click here for more details.

projen/cdk8s/__init__.py CHANGED
@@ -2639,6 +2639,7 @@ class Cdk8sTypeScriptApp(
2639
2639
  publish_tasks: typing.Optional[builtins.bool] = None,
2640
2640
  releasable_commits: typing.Optional[_ReleasableCommits_d481ce10] = None,
2641
2641
  release_branches: typing.Optional[typing.Mapping[builtins.str, typing.Union[_BranchOptions_13663d08, typing.Dict[builtins.str, typing.Any]]]] = None,
2642
+ release_environment: typing.Optional[builtins.str] = None,
2642
2643
  release_every_commit: typing.Optional[builtins.bool] = None,
2643
2644
  release_failure_issue: typing.Optional[builtins.bool] = None,
2644
2645
  release_failure_issue_label: typing.Optional[builtins.str] = None,
@@ -2805,6 +2806,7 @@ class Cdk8sTypeScriptApp(
2805
2806
  :param publish_tasks: (experimental) Define publishing tasks that can be executed manually as well as workflows. Normally, publishing only happens within automated workflows. Enable this in order to create a publishing task for each publishing activity. Default: false
2806
2807
  :param releasable_commits: (experimental) Find commits that should be considered releasable Used to decide if a release is required. Default: ReleasableCommits.everyCommit()
2807
2808
  :param release_branches: (experimental) Defines additional release branches. A workflow will be created for each release branch which will publish releases from commits in this branch. Each release branch *must* be assigned a major version number which is used to enforce that versions published from that branch always use that major version. If multiple branches are used, the ``majorVersion`` field must also be provided for the default branch. Default: - no additional branches are used for release. you can use ``addBranch()`` to add additional branches.
2809
+ :param release_environment: (experimental) The GitHub Actions environment used for the release. This can be used to add an explicit approval step to the release or limit who can initiate a release through environment protection rules. When multiple artifacts are released, the environment can be overwritten on a per artifact basis. Default: - no environment used, unless set at the artifact level
2808
2810
  :param release_every_commit: (deprecated) Automatically release new versions every commit to one of branches in ``releaseBranches``. Default: true
2809
2811
  :param release_failure_issue: (experimental) Create a github issue on every failed publishing task. Default: false
2810
2812
  :param release_failure_issue_label: (experimental) The label to apply to issues indicating publish failures. Only applies if ``releaseFailureIssue`` is true. Default: "failed-release"
@@ -2973,6 +2975,7 @@ class Cdk8sTypeScriptApp(
2973
2975
  publish_tasks=publish_tasks,
2974
2976
  releasable_commits=releasable_commits,
2975
2977
  release_branches=release_branches,
2978
+ release_environment=release_environment,
2976
2979
  release_every_commit=release_every_commit,
2977
2980
  release_failure_issue=release_failure_issue,
2978
2981
  release_failure_issue_label=release_failure_issue_label,
@@ -3102,6 +3105,7 @@ class Cdk8sTypeScriptApp(
3102
3105
  "publish_tasks": "publishTasks",
3103
3106
  "releasable_commits": "releasableCommits",
3104
3107
  "release_branches": "releaseBranches",
3108
+ "release_environment": "releaseEnvironment",
3105
3109
  "release_every_commit": "releaseEveryCommit",
3106
3110
  "release_failure_issue": "releaseFailureIssue",
3107
3111
  "release_failure_issue_label": "releaseFailureIssueLabel",
@@ -3275,6 +3279,7 @@ class Cdk8sTypeScriptAppOptions(
3275
3279
  publish_tasks: typing.Optional[builtins.bool] = None,
3276
3280
  releasable_commits: typing.Optional[_ReleasableCommits_d481ce10] = None,
3277
3281
  release_branches: typing.Optional[typing.Mapping[builtins.str, typing.Union[_BranchOptions_13663d08, typing.Dict[builtins.str, typing.Any]]]] = None,
3282
+ release_environment: typing.Optional[builtins.str] = None,
3278
3283
  release_every_commit: typing.Optional[builtins.bool] = None,
3279
3284
  release_failure_issue: typing.Optional[builtins.bool] = None,
3280
3285
  release_failure_issue_label: typing.Optional[builtins.str] = None,
@@ -3441,6 +3446,7 @@ class Cdk8sTypeScriptAppOptions(
3441
3446
  :param publish_tasks: (experimental) Define publishing tasks that can be executed manually as well as workflows. Normally, publishing only happens within automated workflows. Enable this in order to create a publishing task for each publishing activity. Default: false
3442
3447
  :param releasable_commits: (experimental) Find commits that should be considered releasable Used to decide if a release is required. Default: ReleasableCommits.everyCommit()
3443
3448
  :param release_branches: (experimental) Defines additional release branches. A workflow will be created for each release branch which will publish releases from commits in this branch. Each release branch *must* be assigned a major version number which is used to enforce that versions published from that branch always use that major version. If multiple branches are used, the ``majorVersion`` field must also be provided for the default branch. Default: - no additional branches are used for release. you can use ``addBranch()`` to add additional branches.
3449
+ :param release_environment: (experimental) The GitHub Actions environment used for the release. This can be used to add an explicit approval step to the release or limit who can initiate a release through environment protection rules. When multiple artifacts are released, the environment can be overwritten on a per artifact basis. Default: - no environment used, unless set at the artifact level
3444
3450
  :param release_every_commit: (deprecated) Automatically release new versions every commit to one of branches in ``releaseBranches``. Default: true
3445
3451
  :param release_failure_issue: (experimental) Create a github issue on every failed publishing task. Default: false
3446
3452
  :param release_failure_issue_label: (experimental) The label to apply to issues indicating publish failures. Only applies if ``releaseFailureIssue`` is true. Default: "failed-release"
@@ -3674,6 +3680,7 @@ class Cdk8sTypeScriptAppOptions(
3674
3680
  check_type(argname="argument publish_tasks", value=publish_tasks, expected_type=type_hints["publish_tasks"])
3675
3681
  check_type(argname="argument releasable_commits", value=releasable_commits, expected_type=type_hints["releasable_commits"])
3676
3682
  check_type(argname="argument release_branches", value=release_branches, expected_type=type_hints["release_branches"])
3683
+ check_type(argname="argument release_environment", value=release_environment, expected_type=type_hints["release_environment"])
3677
3684
  check_type(argname="argument release_every_commit", value=release_every_commit, expected_type=type_hints["release_every_commit"])
3678
3685
  check_type(argname="argument release_failure_issue", value=release_failure_issue, expected_type=type_hints["release_failure_issue"])
3679
3686
  check_type(argname="argument release_failure_issue_label", value=release_failure_issue_label, expected_type=type_hints["release_failure_issue_label"])
@@ -3920,6 +3927,8 @@ class Cdk8sTypeScriptAppOptions(
3920
3927
  self._values["releasable_commits"] = releasable_commits
3921
3928
  if release_branches is not None:
3922
3929
  self._values["release_branches"] = release_branches
3930
+ if release_environment is not None:
3931
+ self._values["release_environment"] = release_environment
3923
3932
  if release_every_commit is not None:
3924
3933
  self._values["release_every_commit"] = release_every_commit
3925
3934
  if release_failure_issue is not None:
@@ -5121,6 +5130,23 @@ class Cdk8sTypeScriptAppOptions(
5121
5130
  result = self._values.get("release_branches")
5122
5131
  return typing.cast(typing.Optional[typing.Mapping[builtins.str, _BranchOptions_13663d08]], result)
5123
5132
 
5133
+ @builtins.property
5134
+ def release_environment(self) -> typing.Optional[builtins.str]:
5135
+ '''(experimental) The GitHub Actions environment used for the release.
5136
+
5137
+ This can be used to add an explicit approval step to the release
5138
+ or limit who can initiate a release through environment protection rules.
5139
+
5140
+ When multiple artifacts are released, the environment can be overwritten
5141
+ on a per artifact basis.
5142
+
5143
+ :default: - no environment used, unless set at the artifact level
5144
+
5145
+ :stability: experimental
5146
+ '''
5147
+ result = self._values.get("release_environment")
5148
+ return typing.cast(typing.Optional[builtins.str], result)
5149
+
5124
5150
  @builtins.property
5125
5151
  def release_every_commit(self) -> typing.Optional[builtins.bool]:
5126
5152
  '''(deprecated) Automatically release new versions every commit to one of branches in ``releaseBranches``.
@@ -6291,6 +6317,7 @@ class ConstructLibraryCdk8s(
6291
6317
  publish_tasks: typing.Optional[builtins.bool] = None,
6292
6318
  releasable_commits: typing.Optional[_ReleasableCommits_d481ce10] = None,
6293
6319
  release_branches: typing.Optional[typing.Mapping[builtins.str, typing.Union[_BranchOptions_13663d08, typing.Dict[builtins.str, typing.Any]]]] = None,
6320
+ release_environment: typing.Optional[builtins.str] = None,
6294
6321
  release_every_commit: typing.Optional[builtins.bool] = None,
6295
6322
  release_failure_issue: typing.Optional[builtins.bool] = None,
6296
6323
  release_failure_issue_label: typing.Optional[builtins.str] = None,
@@ -6466,6 +6493,7 @@ class ConstructLibraryCdk8s(
6466
6493
  :param publish_tasks: (experimental) Define publishing tasks that can be executed manually as well as workflows. Normally, publishing only happens within automated workflows. Enable this in order to create a publishing task for each publishing activity. Default: false
6467
6494
  :param releasable_commits: (experimental) Find commits that should be considered releasable Used to decide if a release is required. Default: ReleasableCommits.everyCommit()
6468
6495
  :param release_branches: (experimental) Defines additional release branches. A workflow will be created for each release branch which will publish releases from commits in this branch. Each release branch *must* be assigned a major version number which is used to enforce that versions published from that branch always use that major version. If multiple branches are used, the ``majorVersion`` field must also be provided for the default branch. Default: - no additional branches are used for release. you can use ``addBranch()`` to add additional branches.
6496
+ :param release_environment: (experimental) The GitHub Actions environment used for the release. This can be used to add an explicit approval step to the release or limit who can initiate a release through environment protection rules. When multiple artifacts are released, the environment can be overwritten on a per artifact basis. Default: - no environment used, unless set at the artifact level
6469
6497
  :param release_every_commit: (deprecated) Automatically release new versions every commit to one of branches in ``releaseBranches``. Default: true
6470
6498
  :param release_failure_issue: (experimental) Create a github issue on every failed publishing task. Default: false
6471
6499
  :param release_failure_issue_label: (experimental) The label to apply to issues indicating publish failures. Only applies if ``releaseFailureIssue`` is true. Default: "failed-release"
@@ -6643,6 +6671,7 @@ class ConstructLibraryCdk8s(
6643
6671
  publish_tasks=publish_tasks,
6644
6672
  releasable_commits=releasable_commits,
6645
6673
  release_branches=release_branches,
6674
+ release_environment=release_environment,
6646
6675
  release_every_commit=release_every_commit,
6647
6676
  release_failure_issue=release_failure_issue,
6648
6677
  release_failure_issue_label=release_failure_issue_label,
@@ -6773,6 +6802,7 @@ class ConstructLibraryCdk8s(
6773
6802
  "publish_tasks": "publishTasks",
6774
6803
  "releasable_commits": "releasableCommits",
6775
6804
  "release_branches": "releaseBranches",
6805
+ "release_environment": "releaseEnvironment",
6776
6806
  "release_every_commit": "releaseEveryCommit",
6777
6807
  "release_failure_issue": "releaseFailureIssue",
6778
6808
  "release_failure_issue_label": "releaseFailureIssueLabel",
@@ -6952,6 +6982,7 @@ class ConstructLibraryCdk8sOptions(_ConstructLibraryOptions_dcd2adc0):
6952
6982
  publish_tasks: typing.Optional[builtins.bool] = None,
6953
6983
  releasable_commits: typing.Optional[_ReleasableCommits_d481ce10] = None,
6954
6984
  release_branches: typing.Optional[typing.Mapping[builtins.str, typing.Union[_BranchOptions_13663d08, typing.Dict[builtins.str, typing.Any]]]] = None,
6985
+ release_environment: typing.Optional[builtins.str] = None,
6955
6986
  release_every_commit: typing.Optional[builtins.bool] = None,
6956
6987
  release_failure_issue: typing.Optional[builtins.bool] = None,
6957
6988
  release_failure_issue_label: typing.Optional[builtins.str] = None,
@@ -7127,6 +7158,7 @@ class ConstructLibraryCdk8sOptions(_ConstructLibraryOptions_dcd2adc0):
7127
7158
  :param publish_tasks: (experimental) Define publishing tasks that can be executed manually as well as workflows. Normally, publishing only happens within automated workflows. Enable this in order to create a publishing task for each publishing activity. Default: false
7128
7159
  :param releasable_commits: (experimental) Find commits that should be considered releasable Used to decide if a release is required. Default: ReleasableCommits.everyCommit()
7129
7160
  :param release_branches: (experimental) Defines additional release branches. A workflow will be created for each release branch which will publish releases from commits in this branch. Each release branch *must* be assigned a major version number which is used to enforce that versions published from that branch always use that major version. If multiple branches are used, the ``majorVersion`` field must also be provided for the default branch. Default: - no additional branches are used for release. you can use ``addBranch()`` to add additional branches.
7161
+ :param release_environment: (experimental) The GitHub Actions environment used for the release. This can be used to add an explicit approval step to the release or limit who can initiate a release through environment protection rules. When multiple artifacts are released, the environment can be overwritten on a per artifact basis. Default: - no environment used, unless set at the artifact level
7130
7162
  :param release_every_commit: (deprecated) Automatically release new versions every commit to one of branches in ``releaseBranches``. Default: true
7131
7163
  :param release_failure_issue: (experimental) Create a github issue on every failed publishing task. Default: false
7132
7164
  :param release_failure_issue_label: (experimental) The label to apply to issues indicating publish failures. Only applies if ``releaseFailureIssue`` is true. Default: "failed-release"
@@ -7383,6 +7415,7 @@ class ConstructLibraryCdk8sOptions(_ConstructLibraryOptions_dcd2adc0):
7383
7415
  check_type(argname="argument publish_tasks", value=publish_tasks, expected_type=type_hints["publish_tasks"])
7384
7416
  check_type(argname="argument releasable_commits", value=releasable_commits, expected_type=type_hints["releasable_commits"])
7385
7417
  check_type(argname="argument release_branches", value=release_branches, expected_type=type_hints["release_branches"])
7418
+ check_type(argname="argument release_environment", value=release_environment, expected_type=type_hints["release_environment"])
7386
7419
  check_type(argname="argument release_every_commit", value=release_every_commit, expected_type=type_hints["release_every_commit"])
7387
7420
  check_type(argname="argument release_failure_issue", value=release_failure_issue, expected_type=type_hints["release_failure_issue"])
7388
7421
  check_type(argname="argument release_failure_issue_label", value=release_failure_issue_label, expected_type=type_hints["release_failure_issue_label"])
@@ -7641,6 +7674,8 @@ class ConstructLibraryCdk8sOptions(_ConstructLibraryOptions_dcd2adc0):
7641
7674
  self._values["releasable_commits"] = releasable_commits
7642
7675
  if release_branches is not None:
7643
7676
  self._values["release_branches"] = release_branches
7677
+ if release_environment is not None:
7678
+ self._values["release_environment"] = release_environment
7644
7679
  if release_every_commit is not None:
7645
7680
  self._values["release_every_commit"] = release_every_commit
7646
7681
  if release_failure_issue is not None:
@@ -8854,6 +8889,23 @@ class ConstructLibraryCdk8sOptions(_ConstructLibraryOptions_dcd2adc0):
8854
8889
  result = self._values.get("release_branches")
8855
8890
  return typing.cast(typing.Optional[typing.Mapping[builtins.str, _BranchOptions_13663d08]], result)
8856
8891
 
8892
+ @builtins.property
8893
+ def release_environment(self) -> typing.Optional[builtins.str]:
8894
+ '''(experimental) The GitHub Actions environment used for the release.
8895
+
8896
+ This can be used to add an explicit approval step to the release
8897
+ or limit who can initiate a release through environment protection rules.
8898
+
8899
+ When multiple artifacts are released, the environment can be overwritten
8900
+ on a per artifact basis.
8901
+
8902
+ :default: - no environment used, unless set at the artifact level
8903
+
8904
+ :stability: experimental
8905
+ '''
8906
+ result = self._values.get("release_environment")
8907
+ return typing.cast(typing.Optional[builtins.str], result)
8908
+
8857
8909
  @builtins.property
8858
8910
  def release_every_commit(self) -> typing.Optional[builtins.bool]:
8859
8911
  '''(deprecated) Automatically release new versions every commit to one of branches in ``releaseBranches``.
@@ -10543,6 +10595,7 @@ def _typecheckingstub__38d5838b3dba3e0494a1842bc0bf0513fd0a9baecf03b52c6bb2ef53e
10543
10595
  publish_tasks: typing.Optional[builtins.bool] = None,
10544
10596
  releasable_commits: typing.Optional[_ReleasableCommits_d481ce10] = None,
10545
10597
  release_branches: typing.Optional[typing.Mapping[builtins.str, typing.Union[_BranchOptions_13663d08, typing.Dict[builtins.str, typing.Any]]]] = None,
10598
+ release_environment: typing.Optional[builtins.str] = None,
10546
10599
  release_every_commit: typing.Optional[builtins.bool] = None,
10547
10600
  release_failure_issue: typing.Optional[builtins.bool] = None,
10548
10601
  release_failure_issue_label: typing.Optional[builtins.str] = None,
@@ -10713,6 +10766,7 @@ def _typecheckingstub__af97c045aa0635813d6575f726d794c22aabe3eb1e51bf1ae61d8f28b
10713
10766
  publish_tasks: typing.Optional[builtins.bool] = None,
10714
10767
  releasable_commits: typing.Optional[_ReleasableCommits_d481ce10] = None,
10715
10768
  release_branches: typing.Optional[typing.Mapping[builtins.str, typing.Union[_BranchOptions_13663d08, typing.Dict[builtins.str, typing.Any]]]] = None,
10769
+ release_environment: typing.Optional[builtins.str] = None,
10716
10770
  release_every_commit: typing.Optional[builtins.bool] = None,
10717
10771
  release_failure_issue: typing.Optional[builtins.bool] = None,
10718
10772
  release_failure_issue_label: typing.Optional[builtins.str] = None,
projen/cdktf/__init__.py CHANGED
@@ -255,6 +255,7 @@ class ConstructLibraryCdktf(
255
255
  publish_tasks: typing.Optional[builtins.bool] = None,
256
256
  releasable_commits: typing.Optional[_ReleasableCommits_d481ce10] = None,
257
257
  release_branches: typing.Optional[typing.Mapping[builtins.str, typing.Union[_BranchOptions_13663d08, typing.Dict[builtins.str, typing.Any]]]] = None,
258
+ release_environment: typing.Optional[builtins.str] = None,
258
259
  release_every_commit: typing.Optional[builtins.bool] = None,
259
260
  release_failure_issue: typing.Optional[builtins.bool] = None,
260
261
  release_failure_issue_label: typing.Optional[builtins.str] = None,
@@ -426,6 +427,7 @@ class ConstructLibraryCdktf(
426
427
  :param publish_tasks: (experimental) Define publishing tasks that can be executed manually as well as workflows. Normally, publishing only happens within automated workflows. Enable this in order to create a publishing task for each publishing activity. Default: false
427
428
  :param releasable_commits: (experimental) Find commits that should be considered releasable Used to decide if a release is required. Default: ReleasableCommits.everyCommit()
428
429
  :param release_branches: (experimental) Defines additional release branches. A workflow will be created for each release branch which will publish releases from commits in this branch. Each release branch *must* be assigned a major version number which is used to enforce that versions published from that branch always use that major version. If multiple branches are used, the ``majorVersion`` field must also be provided for the default branch. Default: - no additional branches are used for release. you can use ``addBranch()`` to add additional branches.
430
+ :param release_environment: (experimental) The GitHub Actions environment used for the release. This can be used to add an explicit approval step to the release or limit who can initiate a release through environment protection rules. When multiple artifacts are released, the environment can be overwritten on a per artifact basis. Default: - no environment used, unless set at the artifact level
429
431
  :param release_every_commit: (deprecated) Automatically release new versions every commit to one of branches in ``releaseBranches``. Default: true
430
432
  :param release_failure_issue: (experimental) Create a github issue on every failed publishing task. Default: false
431
433
  :param release_failure_issue_label: (experimental) The label to apply to issues indicating publish failures. Only applies if ``releaseFailureIssue`` is true. Default: "failed-release"
@@ -599,6 +601,7 @@ class ConstructLibraryCdktf(
599
601
  publish_tasks=publish_tasks,
600
602
  releasable_commits=releasable_commits,
601
603
  release_branches=release_branches,
604
+ release_environment=release_environment,
602
605
  release_every_commit=release_every_commit,
603
606
  release_failure_issue=release_failure_issue,
604
607
  release_failure_issue_label=release_failure_issue_label,
@@ -711,6 +714,7 @@ class ConstructLibraryCdktf(
711
714
  "publish_tasks": "publishTasks",
712
715
  "releasable_commits": "releasableCommits",
713
716
  "release_branches": "releaseBranches",
717
+ "release_environment": "releaseEnvironment",
714
718
  "release_every_commit": "releaseEveryCommit",
715
719
  "release_failure_issue": "releaseFailureIssue",
716
720
  "release_failure_issue_label": "releaseFailureIssueLabel",
@@ -886,6 +890,7 @@ class ConstructLibraryCdktfOptions(_ConstructLibraryOptions_dcd2adc0):
886
890
  publish_tasks: typing.Optional[builtins.bool] = None,
887
891
  releasable_commits: typing.Optional[_ReleasableCommits_d481ce10] = None,
888
892
  release_branches: typing.Optional[typing.Mapping[builtins.str, typing.Union[_BranchOptions_13663d08, typing.Dict[builtins.str, typing.Any]]]] = None,
893
+ release_environment: typing.Optional[builtins.str] = None,
889
894
  release_every_commit: typing.Optional[builtins.bool] = None,
890
895
  release_failure_issue: typing.Optional[builtins.bool] = None,
891
896
  release_failure_issue_label: typing.Optional[builtins.str] = None,
@@ -1057,6 +1062,7 @@ class ConstructLibraryCdktfOptions(_ConstructLibraryOptions_dcd2adc0):
1057
1062
  :param publish_tasks: (experimental) Define publishing tasks that can be executed manually as well as workflows. Normally, publishing only happens within automated workflows. Enable this in order to create a publishing task for each publishing activity. Default: false
1058
1063
  :param releasable_commits: (experimental) Find commits that should be considered releasable Used to decide if a release is required. Default: ReleasableCommits.everyCommit()
1059
1064
  :param release_branches: (experimental) Defines additional release branches. A workflow will be created for each release branch which will publish releases from commits in this branch. Each release branch *must* be assigned a major version number which is used to enforce that versions published from that branch always use that major version. If multiple branches are used, the ``majorVersion`` field must also be provided for the default branch. Default: - no additional branches are used for release. you can use ``addBranch()`` to add additional branches.
1065
+ :param release_environment: (experimental) The GitHub Actions environment used for the release. This can be used to add an explicit approval step to the release or limit who can initiate a release through environment protection rules. When multiple artifacts are released, the environment can be overwritten on a per artifact basis. Default: - no environment used, unless set at the artifact level
1060
1066
  :param release_every_commit: (deprecated) Automatically release new versions every commit to one of branches in ``releaseBranches``. Default: true
1061
1067
  :param release_failure_issue: (experimental) Create a github issue on every failed publishing task. Default: false
1062
1068
  :param release_failure_issue_label: (experimental) The label to apply to issues indicating publish failures. Only applies if ``releaseFailureIssue`` is true. Default: "failed-release"
@@ -1309,6 +1315,7 @@ class ConstructLibraryCdktfOptions(_ConstructLibraryOptions_dcd2adc0):
1309
1315
  check_type(argname="argument publish_tasks", value=publish_tasks, expected_type=type_hints["publish_tasks"])
1310
1316
  check_type(argname="argument releasable_commits", value=releasable_commits, expected_type=type_hints["releasable_commits"])
1311
1317
  check_type(argname="argument release_branches", value=release_branches, expected_type=type_hints["release_branches"])
1318
+ check_type(argname="argument release_environment", value=release_environment, expected_type=type_hints["release_environment"])
1312
1319
  check_type(argname="argument release_every_commit", value=release_every_commit, expected_type=type_hints["release_every_commit"])
1313
1320
  check_type(argname="argument release_failure_issue", value=release_failure_issue, expected_type=type_hints["release_failure_issue"])
1314
1321
  check_type(argname="argument release_failure_issue_label", value=release_failure_issue_label, expected_type=type_hints["release_failure_issue_label"])
@@ -1563,6 +1570,8 @@ class ConstructLibraryCdktfOptions(_ConstructLibraryOptions_dcd2adc0):
1563
1570
  self._values["releasable_commits"] = releasable_commits
1564
1571
  if release_branches is not None:
1565
1572
  self._values["release_branches"] = release_branches
1573
+ if release_environment is not None:
1574
+ self._values["release_environment"] = release_environment
1566
1575
  if release_every_commit is not None:
1567
1576
  self._values["release_every_commit"] = release_every_commit
1568
1577
  if release_failure_issue is not None:
@@ -2768,6 +2777,23 @@ class ConstructLibraryCdktfOptions(_ConstructLibraryOptions_dcd2adc0):
2768
2777
  result = self._values.get("release_branches")
2769
2778
  return typing.cast(typing.Optional[typing.Mapping[builtins.str, _BranchOptions_13663d08]], result)
2770
2779
 
2780
+ @builtins.property
2781
+ def release_environment(self) -> typing.Optional[builtins.str]:
2782
+ '''(experimental) The GitHub Actions environment used for the release.
2783
+
2784
+ This can be used to add an explicit approval step to the release
2785
+ or limit who can initiate a release through environment protection rules.
2786
+
2787
+ When multiple artifacts are released, the environment can be overwritten
2788
+ on a per artifact basis.
2789
+
2790
+ :default: - no environment used, unless set at the artifact level
2791
+
2792
+ :stability: experimental
2793
+ '''
2794
+ result = self._values.get("release_environment")
2795
+ return typing.cast(typing.Optional[builtins.str], result)
2796
+
2771
2797
  @builtins.property
2772
2798
  def release_every_commit(self) -> typing.Optional[builtins.bool]:
2773
2799
  '''(deprecated) Automatically release new versions every commit to one of branches in ``releaseBranches``.
@@ -3928,6 +3954,7 @@ def _typecheckingstub__bbf02af18148d47e66a6d0672a809602f782953da7a849545a808c276
3928
3954
  publish_tasks: typing.Optional[builtins.bool] = None,
3929
3955
  releasable_commits: typing.Optional[_ReleasableCommits_d481ce10] = None,
3930
3956
  release_branches: typing.Optional[typing.Mapping[builtins.str, typing.Union[_BranchOptions_13663d08, typing.Dict[builtins.str, typing.Any]]]] = None,
3957
+ release_environment: typing.Optional[builtins.str] = None,
3931
3958
  release_every_commit: typing.Optional[builtins.bool] = None,
3932
3959
  release_failure_issue: typing.Optional[builtins.bool] = None,
3933
3960
  release_failure_issue_label: typing.Optional[builtins.str] = None,
projen/github/__init__.py CHANGED
@@ -7073,6 +7073,7 @@ class TaskWorkflow(
7073
7073
  container: typing.Optional[typing.Union[_ContainerOptions_f50907af, typing.Dict[builtins.str, typing.Any]]] = None,
7074
7074
  download_lfs: typing.Optional[builtins.bool] = None,
7075
7075
  env: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
7076
+ environment: typing.Optional[builtins.str] = None,
7076
7077
  git_identity: typing.Optional[typing.Union[GitIdentity, typing.Dict[builtins.str, typing.Any]]] = None,
7077
7078
  job_defaults: typing.Optional[typing.Union[_JobDefaults_965f0d10, typing.Dict[builtins.str, typing.Any]]] = None,
7078
7079
  outputs: typing.Optional[typing.Mapping[builtins.str, typing.Union[_JobStepOutput_acebe827, typing.Dict[builtins.str, typing.Any]]]] = None,
@@ -7095,6 +7096,7 @@ class TaskWorkflow(
7095
7096
  :param container: Default: - default image
7096
7097
  :param download_lfs: (experimental) Whether to download files from Git LFS for this workflow. Default: - Use the setting on the corresponding GitHub project
7097
7098
  :param env: (experimental) Workflow environment variables. Default: {}
7099
+ :param environment: (experimental) The GitHub Actions environment used for the job. Default: - no environment used
7098
7100
  :param git_identity: (experimental) The git identity to use in this workflow.
7099
7101
  :param job_defaults: (experimental) Default settings for all steps in the TaskWorkflow Job.
7100
7102
  :param outputs: (experimental) Mapping of job output names to values/expressions. Default: {}
@@ -7121,6 +7123,7 @@ class TaskWorkflow(
7121
7123
  container=container,
7122
7124
  download_lfs=download_lfs,
7123
7125
  env=env,
7126
+ environment=environment,
7124
7127
  git_identity=git_identity,
7125
7128
  job_defaults=job_defaults,
7126
7129
  outputs=outputs,
@@ -7173,6 +7176,7 @@ class TaskWorkflowJob(
7173
7176
  container: typing.Optional[typing.Union[_ContainerOptions_f50907af, typing.Dict[builtins.str, typing.Any]]] = None,
7174
7177
  download_lfs: typing.Optional[builtins.bool] = None,
7175
7178
  env: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
7179
+ environment: typing.Optional[builtins.str] = None,
7176
7180
  git_identity: typing.Optional[typing.Union[GitIdentity, typing.Dict[builtins.str, typing.Any]]] = None,
7177
7181
  job_defaults: typing.Optional[typing.Union[_JobDefaults_965f0d10, typing.Dict[builtins.str, typing.Any]]] = None,
7178
7182
  outputs: typing.Optional[typing.Mapping[builtins.str, typing.Union[_JobStepOutput_acebe827, typing.Dict[builtins.str, typing.Any]]]] = None,
@@ -7192,6 +7196,7 @@ class TaskWorkflowJob(
7192
7196
  :param container: Default: - default image
7193
7197
  :param download_lfs: (experimental) Whether to download files from Git LFS for this workflow. Default: - Use the setting on the corresponding GitHub project
7194
7198
  :param env: (experimental) Workflow environment variables. Default: {}
7199
+ :param environment: (experimental) The GitHub Actions environment used for the job. Default: - no environment used
7195
7200
  :param git_identity: (experimental) The git identity to use in this workflow.
7196
7201
  :param job_defaults: (experimental) Default settings for all steps in the TaskWorkflow Job.
7197
7202
  :param outputs: (experimental) Mapping of job output names to values/expressions. Default: {}
@@ -7215,6 +7220,7 @@ class TaskWorkflowJob(
7215
7220
  container=container,
7216
7221
  download_lfs=download_lfs,
7217
7222
  env=env,
7223
+ environment=environment,
7218
7224
  git_identity=git_identity,
7219
7225
  job_defaults=job_defaults,
7220
7226
  outputs=outputs,
@@ -7285,11 +7291,11 @@ class TaskWorkflowJob(
7285
7291
 
7286
7292
  @builtins.property
7287
7293
  @jsii.member(jsii_name="environment")
7288
- def environment(self) -> typing.Any:
7294
+ def environment(self) -> typing.Optional[builtins.str]:
7289
7295
  '''
7290
7296
  :stability: experimental
7291
7297
  '''
7292
- return typing.cast(typing.Any, jsii.get(self, "environment"))
7298
+ return typing.cast(typing.Optional[builtins.str], jsii.get(self, "environment"))
7293
7299
 
7294
7300
  @builtins.property
7295
7301
  @jsii.member(jsii_name="if")
@@ -7387,6 +7393,7 @@ class TaskWorkflowJob(
7387
7393
  "container": "container",
7388
7394
  "download_lfs": "downloadLfs",
7389
7395
  "env": "env",
7396
+ "environment": "environment",
7390
7397
  "git_identity": "gitIdentity",
7391
7398
  "job_defaults": "jobDefaults",
7392
7399
  "outputs": "outputs",
@@ -7408,6 +7415,7 @@ class TaskWorkflowJobOptions:
7408
7415
  container: typing.Optional[typing.Union[_ContainerOptions_f50907af, typing.Dict[builtins.str, typing.Any]]] = None,
7409
7416
  download_lfs: typing.Optional[builtins.bool] = None,
7410
7417
  env: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
7418
+ environment: typing.Optional[builtins.str] = None,
7411
7419
  git_identity: typing.Optional[typing.Union[GitIdentity, typing.Dict[builtins.str, typing.Any]]] = None,
7412
7420
  job_defaults: typing.Optional[typing.Union[_JobDefaults_965f0d10, typing.Dict[builtins.str, typing.Any]]] = None,
7413
7421
  outputs: typing.Optional[typing.Mapping[builtins.str, typing.Union[_JobStepOutput_acebe827, typing.Dict[builtins.str, typing.Any]]]] = None,
@@ -7426,6 +7434,7 @@ class TaskWorkflowJobOptions:
7426
7434
  :param container: Default: - default image
7427
7435
  :param download_lfs: (experimental) Whether to download files from Git LFS for this workflow. Default: - Use the setting on the corresponding GitHub project
7428
7436
  :param env: (experimental) Workflow environment variables. Default: {}
7437
+ :param environment: (experimental) The GitHub Actions environment used for the job. Default: - no environment used
7429
7438
  :param git_identity: (experimental) The git identity to use in this workflow.
7430
7439
  :param job_defaults: (experimental) Default settings for all steps in the TaskWorkflow Job.
7431
7440
  :param outputs: (experimental) Mapping of job output names to values/expressions. Default: {}
@@ -7458,6 +7467,7 @@ class TaskWorkflowJobOptions:
7458
7467
  check_type(argname="argument container", value=container, expected_type=type_hints["container"])
7459
7468
  check_type(argname="argument download_lfs", value=download_lfs, expected_type=type_hints["download_lfs"])
7460
7469
  check_type(argname="argument env", value=env, expected_type=type_hints["env"])
7470
+ check_type(argname="argument environment", value=environment, expected_type=type_hints["environment"])
7461
7471
  check_type(argname="argument git_identity", value=git_identity, expected_type=type_hints["git_identity"])
7462
7472
  check_type(argname="argument job_defaults", value=job_defaults, expected_type=type_hints["job_defaults"])
7463
7473
  check_type(argname="argument outputs", value=outputs, expected_type=type_hints["outputs"])
@@ -7481,6 +7491,8 @@ class TaskWorkflowJobOptions:
7481
7491
  self._values["download_lfs"] = download_lfs
7482
7492
  if env is not None:
7483
7493
  self._values["env"] = env
7494
+ if environment is not None:
7495
+ self._values["environment"] = environment
7484
7496
  if git_identity is not None:
7485
7497
  self._values["git_identity"] = git_identity
7486
7498
  if job_defaults is not None:
@@ -7571,6 +7583,17 @@ class TaskWorkflowJobOptions:
7571
7583
  result = self._values.get("env")
7572
7584
  return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], result)
7573
7585
 
7586
+ @builtins.property
7587
+ def environment(self) -> typing.Optional[builtins.str]:
7588
+ '''(experimental) The GitHub Actions environment used for the job.
7589
+
7590
+ :default: - no environment used
7591
+
7592
+ :stability: experimental
7593
+ '''
7594
+ result = self._values.get("environment")
7595
+ return typing.cast(typing.Optional[builtins.str], result)
7596
+
7574
7597
  @builtins.property
7575
7598
  def git_identity(self) -> typing.Optional[GitIdentity]:
7576
7599
  '''(experimental) The git identity to use in this workflow.
@@ -7682,6 +7705,7 @@ class TaskWorkflowJobOptions:
7682
7705
  "container": "container",
7683
7706
  "download_lfs": "downloadLfs",
7684
7707
  "env": "env",
7708
+ "environment": "environment",
7685
7709
  "git_identity": "gitIdentity",
7686
7710
  "job_defaults": "jobDefaults",
7687
7711
  "outputs": "outputs",
@@ -7707,6 +7731,7 @@ class TaskWorkflowOptions(TaskWorkflowJobOptions):
7707
7731
  container: typing.Optional[typing.Union[_ContainerOptions_f50907af, typing.Dict[builtins.str, typing.Any]]] = None,
7708
7732
  download_lfs: typing.Optional[builtins.bool] = None,
7709
7733
  env: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
7734
+ environment: typing.Optional[builtins.str] = None,
7710
7735
  git_identity: typing.Optional[typing.Union[GitIdentity, typing.Dict[builtins.str, typing.Any]]] = None,
7711
7736
  job_defaults: typing.Optional[typing.Union[_JobDefaults_965f0d10, typing.Dict[builtins.str, typing.Any]]] = None,
7712
7737
  outputs: typing.Optional[typing.Mapping[builtins.str, typing.Union[_JobStepOutput_acebe827, typing.Dict[builtins.str, typing.Any]]]] = None,
@@ -7729,6 +7754,7 @@ class TaskWorkflowOptions(TaskWorkflowJobOptions):
7729
7754
  :param container: Default: - default image
7730
7755
  :param download_lfs: (experimental) Whether to download files from Git LFS for this workflow. Default: - Use the setting on the corresponding GitHub project
7731
7756
  :param env: (experimental) Workflow environment variables. Default: {}
7757
+ :param environment: (experimental) The GitHub Actions environment used for the job. Default: - no environment used
7732
7758
  :param git_identity: (experimental) The git identity to use in this workflow.
7733
7759
  :param job_defaults: (experimental) Default settings for all steps in the TaskWorkflow Job.
7734
7760
  :param outputs: (experimental) Mapping of job output names to values/expressions. Default: {}
@@ -7767,6 +7793,7 @@ class TaskWorkflowOptions(TaskWorkflowJobOptions):
7767
7793
  check_type(argname="argument container", value=container, expected_type=type_hints["container"])
7768
7794
  check_type(argname="argument download_lfs", value=download_lfs, expected_type=type_hints["download_lfs"])
7769
7795
  check_type(argname="argument env", value=env, expected_type=type_hints["env"])
7796
+ check_type(argname="argument environment", value=environment, expected_type=type_hints["environment"])
7770
7797
  check_type(argname="argument git_identity", value=git_identity, expected_type=type_hints["git_identity"])
7771
7798
  check_type(argname="argument job_defaults", value=job_defaults, expected_type=type_hints["job_defaults"])
7772
7799
  check_type(argname="argument outputs", value=outputs, expected_type=type_hints["outputs"])
@@ -7796,6 +7823,8 @@ class TaskWorkflowOptions(TaskWorkflowJobOptions):
7796
7823
  self._values["download_lfs"] = download_lfs
7797
7824
  if env is not None:
7798
7825
  self._values["env"] = env
7826
+ if environment is not None:
7827
+ self._values["environment"] = environment
7799
7828
  if git_identity is not None:
7800
7829
  self._values["git_identity"] = git_identity
7801
7830
  if job_defaults is not None:
@@ -7890,6 +7919,17 @@ class TaskWorkflowOptions(TaskWorkflowJobOptions):
7890
7919
  result = self._values.get("env")
7891
7920
  return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], result)
7892
7921
 
7922
+ @builtins.property
7923
+ def environment(self) -> typing.Optional[builtins.str]:
7924
+ '''(experimental) The GitHub Actions environment used for the job.
7925
+
7926
+ :default: - no environment used
7927
+
7928
+ :stability: experimental
7929
+ '''
7930
+ result = self._values.get("environment")
7931
+ return typing.cast(typing.Optional[builtins.str], result)
7932
+
7893
7933
  @builtins.property
7894
7934
  def git_identity(self) -> typing.Optional[GitIdentity]:
7895
7935
  '''(experimental) The git identity to use in this workflow.
@@ -9831,6 +9871,7 @@ def _typecheckingstub__8d4fb3030e96a87b921aa6bfb0d4ccf7a90d4c2affbcb8eeca2d5a24c
9831
9871
  container: typing.Optional[typing.Union[_ContainerOptions_f50907af, typing.Dict[builtins.str, typing.Any]]] = None,
9832
9872
  download_lfs: typing.Optional[builtins.bool] = None,
9833
9873
  env: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
9874
+ environment: typing.Optional[builtins.str] = None,
9834
9875
  git_identity: typing.Optional[typing.Union[GitIdentity, typing.Dict[builtins.str, typing.Any]]] = None,
9835
9876
  job_defaults: typing.Optional[typing.Union[_JobDefaults_965f0d10, typing.Dict[builtins.str, typing.Any]]] = None,
9836
9877
  outputs: typing.Optional[typing.Mapping[builtins.str, typing.Union[_JobStepOutput_acebe827, typing.Dict[builtins.str, typing.Any]]]] = None,
@@ -9854,6 +9895,7 @@ def _typecheckingstub__8e35b96aa7e4fe84c59cac8c7e3f4c146c780c7b09807f610b1aaf727
9854
9895
  container: typing.Optional[typing.Union[_ContainerOptions_f50907af, typing.Dict[builtins.str, typing.Any]]] = None,
9855
9896
  download_lfs: typing.Optional[builtins.bool] = None,
9856
9897
  env: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
9898
+ environment: typing.Optional[builtins.str] = None,
9857
9899
  git_identity: typing.Optional[typing.Union[GitIdentity, typing.Dict[builtins.str, typing.Any]]] = None,
9858
9900
  job_defaults: typing.Optional[typing.Union[_JobDefaults_965f0d10, typing.Dict[builtins.str, typing.Any]]] = None,
9859
9901
  outputs: typing.Optional[typing.Mapping[builtins.str, typing.Union[_JobStepOutput_acebe827, typing.Dict[builtins.str, typing.Any]]]] = None,
@@ -9875,6 +9917,7 @@ def _typecheckingstub__4f2039f9f0120fa5bcc0261afed5aa5fd2be59874413018ee781d5e75
9875
9917
  container: typing.Optional[typing.Union[_ContainerOptions_f50907af, typing.Dict[builtins.str, typing.Any]]] = None,
9876
9918
  download_lfs: typing.Optional[builtins.bool] = None,
9877
9919
  env: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
9920
+ environment: typing.Optional[builtins.str] = None,
9878
9921
  git_identity: typing.Optional[typing.Union[GitIdentity, typing.Dict[builtins.str, typing.Any]]] = None,
9879
9922
  job_defaults: typing.Optional[typing.Union[_JobDefaults_965f0d10, typing.Dict[builtins.str, typing.Any]]] = None,
9880
9923
  outputs: typing.Optional[typing.Mapping[builtins.str, typing.Union[_JobStepOutput_acebe827, typing.Dict[builtins.str, typing.Any]]]] = None,
@@ -9896,6 +9939,7 @@ def _typecheckingstub__15e1c594f5876baf2e105789fcb541bcb5e71cea5ad4320fb67052a9c
9896
9939
  container: typing.Optional[typing.Union[_ContainerOptions_f50907af, typing.Dict[builtins.str, typing.Any]]] = None,
9897
9940
  download_lfs: typing.Optional[builtins.bool] = None,
9898
9941
  env: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
9942
+ environment: typing.Optional[builtins.str] = None,
9899
9943
  git_identity: typing.Optional[typing.Union[GitIdentity, typing.Dict[builtins.str, typing.Any]]] = None,
9900
9944
  job_defaults: typing.Optional[typing.Union[_JobDefaults_965f0d10, typing.Dict[builtins.str, typing.Any]]] = None,
9901
9945
  outputs: typing.Optional[typing.Mapping[builtins.str, typing.Union[_JobStepOutput_acebe827, typing.Dict[builtins.str, typing.Any]]]] = None,