projen 0.97.2__py3-none-any.whl → 0.98.0__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/_jsii/__init__.py CHANGED
@@ -31,7 +31,7 @@ def check_type(argname: str, value: object, expected_type: typing.Any) -> typing
31
31
  import constructs._jsii
32
32
 
33
33
  __jsii_assembly__ = jsii.JSIIAssembly.load(
34
- "projen", "0.97.2", __name__[0:-6], "projen@0.97.2.jsii.tgz"
34
+ "projen", "0.98.0", __name__[0:-6], "projen@0.98.0.jsii.tgz"
35
35
  )
36
36
 
37
37
  __all__ = [
Binary file
projen/awscdk/__init__.py CHANGED
@@ -1741,7 +1741,7 @@ class AwsCdkJavaApp(
1741
1741
  build_command: typing.Optional[builtins.str] = None,
1742
1742
  cdkout: typing.Optional[builtins.str] = None,
1743
1743
  context: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
1744
- feature_flags: typing.Optional[builtins.bool] = None,
1744
+ feature_flags: typing.Optional["ICdkFeatureFlags"] = None,
1745
1745
  require_approval: typing.Optional[ApprovalLevel] = None,
1746
1746
  watch_excludes: typing.Optional[typing.Sequence[builtins.str]] = None,
1747
1747
  watch_includes: typing.Optional[typing.Sequence[builtins.str]] = None,
@@ -1807,7 +1807,7 @@ class AwsCdkJavaApp(
1807
1807
  :param build_command: (experimental) A command to execute before synthesis. This command will be called when running ``cdk synth`` or when ``cdk watch`` identifies a change in your source code before redeployment. Default: - no build command
1808
1808
  :param cdkout: (experimental) cdk.out directory. Default: "cdk.out"
1809
1809
  :param context: (experimental) Additional context to include in ``cdk.json``. Default: - no additional context
1810
- :param feature_flags: (experimental) Include all feature flags in cdk.json. Default: true
1810
+ :param feature_flags: (experimental) Feature flags that should be enabled in ``cdk.json``. Make sure to double-check any changes to feature flags in ``cdk.json`` before deploying. Unexpected changes may cause breaking changes in your CDK app. You can overwrite any feature flag by passing it into the context field. Default: - no feature flags are enabled by default
1811
1811
  :param require_approval: (experimental) To protect you against unintended changes that affect your security posture, the AWS CDK Toolkit prompts you to approve security-related changes before deploying them. Default: ApprovalLevel.BROADENING
1812
1812
  :param watch_excludes: (experimental) Glob patterns to exclude from ``cdk watch``. Default: []
1813
1813
  :param watch_includes: (experimental) Glob patterns to include in ``cdk watch``. Default: []
@@ -2152,7 +2152,7 @@ class AwsCdkPythonApp(
2152
2152
  build_command: typing.Optional[builtins.str] = None,
2153
2153
  cdkout: typing.Optional[builtins.str] = None,
2154
2154
  context: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
2155
- feature_flags: typing.Optional[builtins.bool] = None,
2155
+ feature_flags: typing.Optional["ICdkFeatureFlags"] = None,
2156
2156
  require_approval: typing.Optional[ApprovalLevel] = None,
2157
2157
  watch_excludes: typing.Optional[typing.Sequence[builtins.str]] = None,
2158
2158
  watch_includes: typing.Optional[typing.Sequence[builtins.str]] = None,
@@ -2230,7 +2230,7 @@ class AwsCdkPythonApp(
2230
2230
  :param build_command: (experimental) A command to execute before synthesis. This command will be called when running ``cdk synth`` or when ``cdk watch`` identifies a change in your source code before redeployment. Default: - no build command
2231
2231
  :param cdkout: (experimental) cdk.out directory. Default: "cdk.out"
2232
2232
  :param context: (experimental) Additional context to include in ``cdk.json``. Default: - no additional context
2233
- :param feature_flags: (experimental) Include all feature flags in cdk.json. Default: true
2233
+ :param feature_flags: (experimental) Feature flags that should be enabled in ``cdk.json``. Make sure to double-check any changes to feature flags in ``cdk.json`` before deploying. Unexpected changes may cause breaking changes in your CDK app. You can overwrite any feature flag by passing it into the context field. Default: - no feature flags are enabled by default
2234
2234
  :param require_approval: (experimental) To protect you against unintended changes that affect your security posture, the AWS CDK Toolkit prompts you to approve security-related changes before deploying them. Default: ApprovalLevel.BROADENING
2235
2235
  :param watch_excludes: (experimental) Glob patterns to exclude from ``cdk watch``. Default: []
2236
2236
  :param watch_includes: (experimental) Glob patterns to include in ``cdk watch``. Default: []
@@ -2475,7 +2475,7 @@ class AwsCdkTypeScriptApp(
2475
2475
  build_command: typing.Optional[builtins.str] = None,
2476
2476
  cdkout: typing.Optional[builtins.str] = None,
2477
2477
  context: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
2478
- feature_flags: typing.Optional[builtins.bool] = None,
2478
+ feature_flags: typing.Optional["ICdkFeatureFlags"] = None,
2479
2479
  require_approval: typing.Optional[ApprovalLevel] = None,
2480
2480
  watch_excludes: typing.Optional[typing.Sequence[builtins.str]] = None,
2481
2481
  watch_includes: typing.Optional[typing.Sequence[builtins.str]] = None,
@@ -2654,7 +2654,7 @@ class AwsCdkTypeScriptApp(
2654
2654
  :param build_command: (experimental) A command to execute before synthesis. This command will be called when running ``cdk synth`` or when ``cdk watch`` identifies a change in your source code before redeployment. Default: - no build command
2655
2655
  :param cdkout: (experimental) cdk.out directory. Default: "cdk.out"
2656
2656
  :param context: (experimental) Additional context to include in ``cdk.json``. Default: - no additional context
2657
- :param feature_flags: (experimental) Include all feature flags in cdk.json. Default: true
2657
+ :param feature_flags: (experimental) Feature flags that should be enabled in ``cdk.json``. Make sure to double-check any changes to feature flags in ``cdk.json`` before deploying. Unexpected changes may cause breaking changes in your CDK app. You can overwrite any feature flag by passing it into the context field. Default: - no feature flags are enabled by default
2658
2658
  :param require_approval: (experimental) To protect you against unintended changes that affect your security posture, the AWS CDK Toolkit prompts you to approve security-related changes before deploying them. Default: ApprovalLevel.BROADENING
2659
2659
  :param watch_excludes: (experimental) Glob patterns to exclude from ``cdk watch``. Default: []
2660
2660
  :param watch_includes: (experimental) Glob patterns to include in ``cdk watch``. Default: []
@@ -3063,7 +3063,7 @@ class CdkConfig(
3063
3063
  build_command: typing.Optional[builtins.str] = None,
3064
3064
  cdkout: typing.Optional[builtins.str] = None,
3065
3065
  context: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
3066
- feature_flags: typing.Optional[builtins.bool] = None,
3066
+ feature_flags: typing.Optional["ICdkFeatureFlags"] = None,
3067
3067
  require_approval: typing.Optional[ApprovalLevel] = None,
3068
3068
  watch_excludes: typing.Optional[typing.Sequence[builtins.str]] = None,
3069
3069
  watch_includes: typing.Optional[typing.Sequence[builtins.str]] = None,
@@ -3074,7 +3074,7 @@ class CdkConfig(
3074
3074
  :param build_command: (experimental) A command to execute before synthesis. This command will be called when running ``cdk synth`` or when ``cdk watch`` identifies a change in your source code before redeployment. Default: - no build command
3075
3075
  :param cdkout: (experimental) cdk.out directory. Default: "cdk.out"
3076
3076
  :param context: (experimental) Additional context to include in ``cdk.json``. Default: - no additional context
3077
- :param feature_flags: (experimental) Include all feature flags in cdk.json. Default: true
3077
+ :param feature_flags: (experimental) Feature flags that should be enabled in ``cdk.json``. Make sure to double-check any changes to feature flags in ``cdk.json`` before deploying. Unexpected changes may cause breaking changes in your CDK app. You can overwrite any feature flag by passing it into the context field. Default: - no feature flags are enabled by default
3078
3078
  :param require_approval: (experimental) To protect you against unintended changes that affect your security posture, the AWS CDK Toolkit prompts you to approve security-related changes before deploying them. Default: ApprovalLevel.BROADENING
3079
3079
  :param watch_excludes: (experimental) Glob patterns to exclude from ``cdk watch``. Default: []
3080
3080
  :param watch_includes: (experimental) Glob patterns to include in ``cdk watch``. Default: []
@@ -3132,6 +3132,15 @@ class CdkConfig(
3132
3132
  '''
3133
3133
  return typing.cast(builtins.str, jsii.get(self, "cdkout"))
3134
3134
 
3135
+ @builtins.property
3136
+ @jsii.member(jsii_name="context")
3137
+ def context(self) -> typing.Mapping[builtins.str, typing.Any]:
3138
+ '''(experimental) The context to write to cdk.json.
3139
+
3140
+ :stability: experimental
3141
+ '''
3142
+ return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "context"))
3143
+
3135
3144
  @builtins.property
3136
3145
  @jsii.member(jsii_name="exclude")
3137
3146
  def exclude(self) -> typing.List[builtins.str]:
@@ -3180,7 +3189,7 @@ class CdkConfigCommonOptions:
3180
3189
  build_command: typing.Optional[builtins.str] = None,
3181
3190
  cdkout: typing.Optional[builtins.str] = None,
3182
3191
  context: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
3183
- feature_flags: typing.Optional[builtins.bool] = None,
3192
+ feature_flags: typing.Optional["ICdkFeatureFlags"] = None,
3184
3193
  require_approval: typing.Optional[ApprovalLevel] = None,
3185
3194
  watch_excludes: typing.Optional[typing.Sequence[builtins.str]] = None,
3186
3195
  watch_includes: typing.Optional[typing.Sequence[builtins.str]] = None,
@@ -3190,7 +3199,7 @@ class CdkConfigCommonOptions:
3190
3199
  :param build_command: (experimental) A command to execute before synthesis. This command will be called when running ``cdk synth`` or when ``cdk watch`` identifies a change in your source code before redeployment. Default: - no build command
3191
3200
  :param cdkout: (experimental) cdk.out directory. Default: "cdk.out"
3192
3201
  :param context: (experimental) Additional context to include in ``cdk.json``. Default: - no additional context
3193
- :param feature_flags: (experimental) Include all feature flags in cdk.json. Default: true
3202
+ :param feature_flags: (experimental) Feature flags that should be enabled in ``cdk.json``. Make sure to double-check any changes to feature flags in ``cdk.json`` before deploying. Unexpected changes may cause breaking changes in your CDK app. You can overwrite any feature flag by passing it into the context field. Default: - no feature flags are enabled by default
3194
3203
  :param require_approval: (experimental) To protect you against unintended changes that affect your security posture, the AWS CDK Toolkit prompts you to approve security-related changes before deploying them. Default: ApprovalLevel.BROADENING
3195
3204
  :param watch_excludes: (experimental) Glob patterns to exclude from ``cdk watch``. Default: []
3196
3205
  :param watch_includes: (experimental) Glob patterns to include in ``cdk watch``. Default: []
@@ -3260,15 +3269,19 @@ class CdkConfigCommonOptions:
3260
3269
  return typing.cast(typing.Optional[typing.Mapping[builtins.str, typing.Any]], result)
3261
3270
 
3262
3271
  @builtins.property
3263
- def feature_flags(self) -> typing.Optional[builtins.bool]:
3264
- '''(experimental) Include all feature flags in cdk.json.
3272
+ def feature_flags(self) -> typing.Optional["ICdkFeatureFlags"]:
3273
+ '''(experimental) Feature flags that should be enabled in ``cdk.json``.
3265
3274
 
3266
- :default: true
3275
+ Make sure to double-check any changes to feature flags in ``cdk.json`` before deploying.
3276
+ Unexpected changes may cause breaking changes in your CDK app.
3277
+ You can overwrite any feature flag by passing it into the context field.
3278
+
3279
+ :default: - no feature flags are enabled by default
3267
3280
 
3268
3281
  :stability: experimental
3269
3282
  '''
3270
3283
  result = self._values.get("feature_flags")
3271
- return typing.cast(typing.Optional[builtins.bool], result)
3284
+ return typing.cast(typing.Optional["ICdkFeatureFlags"], result)
3272
3285
 
3273
3286
  @builtins.property
3274
3287
  def require_approval(self) -> typing.Optional[ApprovalLevel]:
@@ -3336,7 +3349,7 @@ class CdkConfigOptions(CdkConfigCommonOptions):
3336
3349
  build_command: typing.Optional[builtins.str] = None,
3337
3350
  cdkout: typing.Optional[builtins.str] = None,
3338
3351
  context: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
3339
- feature_flags: typing.Optional[builtins.bool] = None,
3352
+ feature_flags: typing.Optional["ICdkFeatureFlags"] = None,
3340
3353
  require_approval: typing.Optional[ApprovalLevel] = None,
3341
3354
  watch_excludes: typing.Optional[typing.Sequence[builtins.str]] = None,
3342
3355
  watch_includes: typing.Optional[typing.Sequence[builtins.str]] = None,
@@ -3347,7 +3360,7 @@ class CdkConfigOptions(CdkConfigCommonOptions):
3347
3360
  :param build_command: (experimental) A command to execute before synthesis. This command will be called when running ``cdk synth`` or when ``cdk watch`` identifies a change in your source code before redeployment. Default: - no build command
3348
3361
  :param cdkout: (experimental) cdk.out directory. Default: "cdk.out"
3349
3362
  :param context: (experimental) Additional context to include in ``cdk.json``. Default: - no additional context
3350
- :param feature_flags: (experimental) Include all feature flags in cdk.json. Default: true
3363
+ :param feature_flags: (experimental) Feature flags that should be enabled in ``cdk.json``. Make sure to double-check any changes to feature flags in ``cdk.json`` before deploying. Unexpected changes may cause breaking changes in your CDK app. You can overwrite any feature flag by passing it into the context field. Default: - no feature flags are enabled by default
3351
3364
  :param require_approval: (experimental) To protect you against unintended changes that affect your security posture, the AWS CDK Toolkit prompts you to approve security-related changes before deploying them. Default: ApprovalLevel.BROADENING
3352
3365
  :param watch_excludes: (experimental) Glob patterns to exclude from ``cdk watch``. Default: []
3353
3366
  :param watch_includes: (experimental) Glob patterns to include in ``cdk watch``. Default: []
@@ -3421,15 +3434,19 @@ class CdkConfigOptions(CdkConfigCommonOptions):
3421
3434
  return typing.cast(typing.Optional[typing.Mapping[builtins.str, typing.Any]], result)
3422
3435
 
3423
3436
  @builtins.property
3424
- def feature_flags(self) -> typing.Optional[builtins.bool]:
3425
- '''(experimental) Include all feature flags in cdk.json.
3437
+ def feature_flags(self) -> typing.Optional["ICdkFeatureFlags"]:
3438
+ '''(experimental) Feature flags that should be enabled in ``cdk.json``.
3426
3439
 
3427
- :default: true
3440
+ Make sure to double-check any changes to feature flags in ``cdk.json`` before deploying.
3441
+ Unexpected changes may cause breaking changes in your CDK app.
3442
+ You can overwrite any feature flag by passing it into the context field.
3443
+
3444
+ :default: - no feature flags are enabled by default
3428
3445
 
3429
3446
  :stability: experimental
3430
3447
  '''
3431
3448
  result = self._values.get("feature_flags")
3432
- return typing.cast(typing.Optional[builtins.bool], result)
3449
+ return typing.cast(typing.Optional["ICdkFeatureFlags"], result)
3433
3450
 
3434
3451
  @builtins.property
3435
3452
  def require_approval(self) -> typing.Optional[ApprovalLevel]:
@@ -4278,6 +4295,44 @@ class EdgeLambdaAutoDiscoverOptions(AutoDiscoverCommonOptions):
4278
4295
  )
4279
4296
 
4280
4297
 
4298
+ @jsii.interface(jsii_type="projen.awscdk.ICdkFeatureFlags")
4299
+ class ICdkFeatureFlags(typing_extensions.Protocol):
4300
+ '''
4301
+ :stability: experimental
4302
+
4303
+ :subclassable: Yes
4304
+ '''
4305
+
4306
+ @builtins.property
4307
+ @jsii.member(jsii_name="flags")
4308
+ def flags(self) -> typing.Mapping[builtins.str, typing.Any]:
4309
+ '''
4310
+ :stability: experimental
4311
+ '''
4312
+ ...
4313
+
4314
+
4315
+ class _ICdkFeatureFlagsProxy:
4316
+ '''
4317
+ :stability: experimental
4318
+
4319
+ :subclassable: Yes
4320
+ '''
4321
+
4322
+ __jsii_type__: typing.ClassVar[str] = "projen.awscdk.ICdkFeatureFlags"
4323
+
4324
+ @builtins.property
4325
+ @jsii.member(jsii_name="flags")
4326
+ def flags(self) -> typing.Mapping[builtins.str, typing.Any]:
4327
+ '''
4328
+ :stability: experimental
4329
+ '''
4330
+ return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "flags"))
4331
+
4332
+ # Adding a "__jsii_proxy_class__(): typing.Type" function to the interface
4333
+ typing.cast(typing.Any, ICdkFeatureFlags).__jsii_proxy_class__ = lambda : _ICdkFeatureFlagsProxy
4334
+
4335
+
4281
4336
  class IntegrationTest(
4282
4337
  _IntegrationTestBase_1ddf7a96,
4283
4338
  metaclass=jsii.JSIIMeta,
@@ -9710,7 +9765,7 @@ class AwsCdkJavaAppOptions(
9710
9765
  build_command: typing.Optional[builtins.str] = None,
9711
9766
  cdkout: typing.Optional[builtins.str] = None,
9712
9767
  context: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
9713
- feature_flags: typing.Optional[builtins.bool] = None,
9768
+ feature_flags: typing.Optional[ICdkFeatureFlags] = None,
9714
9769
  require_approval: typing.Optional[ApprovalLevel] = None,
9715
9770
  watch_excludes: typing.Optional[typing.Sequence[builtins.str]] = None,
9716
9771
  watch_includes: typing.Optional[typing.Sequence[builtins.str]] = None,
@@ -9776,7 +9831,7 @@ class AwsCdkJavaAppOptions(
9776
9831
  :param build_command: (experimental) A command to execute before synthesis. This command will be called when running ``cdk synth`` or when ``cdk watch`` identifies a change in your source code before redeployment. Default: - no build command
9777
9832
  :param cdkout: (experimental) cdk.out directory. Default: "cdk.out"
9778
9833
  :param context: (experimental) Additional context to include in ``cdk.json``. Default: - no additional context
9779
- :param feature_flags: (experimental) Include all feature flags in cdk.json. Default: true
9834
+ :param feature_flags: (experimental) Feature flags that should be enabled in ``cdk.json``. Make sure to double-check any changes to feature flags in ``cdk.json`` before deploying. Unexpected changes may cause breaking changes in your CDK app. You can overwrite any feature flag by passing it into the context field. Default: - no feature flags are enabled by default
9780
9835
  :param require_approval: (experimental) To protect you against unintended changes that affect your security posture, the AWS CDK Toolkit prompts you to approve security-related changes before deploying them. Default: ApprovalLevel.BROADENING
9781
9836
  :param watch_excludes: (experimental) Glob patterns to exclude from ``cdk watch``. Default: []
9782
9837
  :param watch_includes: (experimental) Glob patterns to include in ``cdk watch``. Default: []
@@ -10664,15 +10719,19 @@ class AwsCdkJavaAppOptions(
10664
10719
  return typing.cast(typing.Optional[typing.Mapping[builtins.str, typing.Any]], result)
10665
10720
 
10666
10721
  @builtins.property
10667
- def feature_flags(self) -> typing.Optional[builtins.bool]:
10668
- '''(experimental) Include all feature flags in cdk.json.
10722
+ def feature_flags(self) -> typing.Optional[ICdkFeatureFlags]:
10723
+ '''(experimental) Feature flags that should be enabled in ``cdk.json``.
10669
10724
 
10670
- :default: true
10725
+ Make sure to double-check any changes to feature flags in ``cdk.json`` before deploying.
10726
+ Unexpected changes may cause breaking changes in your CDK app.
10727
+ You can overwrite any feature flag by passing it into the context field.
10728
+
10729
+ :default: - no feature flags are enabled by default
10671
10730
 
10672
10731
  :stability: experimental
10673
10732
  '''
10674
10733
  result = self._values.get("feature_flags")
10675
- return typing.cast(typing.Optional[builtins.bool], result)
10734
+ return typing.cast(typing.Optional[ICdkFeatureFlags], result)
10676
10735
 
10677
10736
  @builtins.property
10678
10737
  def require_approval(self) -> typing.Optional[ApprovalLevel]:
@@ -11013,7 +11072,7 @@ class AwsCdkPythonAppOptions(
11013
11072
  build_command: typing.Optional[builtins.str] = None,
11014
11073
  cdkout: typing.Optional[builtins.str] = None,
11015
11074
  context: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
11016
- feature_flags: typing.Optional[builtins.bool] = None,
11075
+ feature_flags: typing.Optional[ICdkFeatureFlags] = None,
11017
11076
  require_approval: typing.Optional[ApprovalLevel] = None,
11018
11077
  watch_excludes: typing.Optional[typing.Sequence[builtins.str]] = None,
11019
11078
  watch_includes: typing.Optional[typing.Sequence[builtins.str]] = None,
@@ -11092,7 +11151,7 @@ class AwsCdkPythonAppOptions(
11092
11151
  :param build_command: (experimental) A command to execute before synthesis. This command will be called when running ``cdk synth`` or when ``cdk watch`` identifies a change in your source code before redeployment. Default: - no build command
11093
11152
  :param cdkout: (experimental) cdk.out directory. Default: "cdk.out"
11094
11153
  :param context: (experimental) Additional context to include in ``cdk.json``. Default: - no additional context
11095
- :param feature_flags: (experimental) Include all feature flags in cdk.json. Default: true
11154
+ :param feature_flags: (experimental) Feature flags that should be enabled in ``cdk.json``. Make sure to double-check any changes to feature flags in ``cdk.json`` before deploying. Unexpected changes may cause breaking changes in your CDK app. You can overwrite any feature flag by passing it into the context field. Default: - no feature flags are enabled by default
11096
11155
  :param require_approval: (experimental) To protect you against unintended changes that affect your security posture, the AWS CDK Toolkit prompts you to approve security-related changes before deploying them. Default: ApprovalLevel.BROADENING
11097
11156
  :param watch_excludes: (experimental) Glob patterns to exclude from ``cdk watch``. Default: []
11098
11157
  :param watch_includes: (experimental) Glob patterns to include in ``cdk watch``. Default: []
@@ -12106,15 +12165,19 @@ class AwsCdkPythonAppOptions(
12106
12165
  return typing.cast(typing.Optional[typing.Mapping[builtins.str, typing.Any]], result)
12107
12166
 
12108
12167
  @builtins.property
12109
- def feature_flags(self) -> typing.Optional[builtins.bool]:
12110
- '''(experimental) Include all feature flags in cdk.json.
12168
+ def feature_flags(self) -> typing.Optional[ICdkFeatureFlags]:
12169
+ '''(experimental) Feature flags that should be enabled in ``cdk.json``.
12111
12170
 
12112
- :default: true
12171
+ Make sure to double-check any changes to feature flags in ``cdk.json`` before deploying.
12172
+ Unexpected changes may cause breaking changes in your CDK app.
12173
+ You can overwrite any feature flag by passing it into the context field.
12174
+
12175
+ :default: - no feature flags are enabled by default
12113
12176
 
12114
12177
  :stability: experimental
12115
12178
  '''
12116
12179
  result = self._values.get("feature_flags")
12117
- return typing.cast(typing.Optional[builtins.bool], result)
12180
+ return typing.cast(typing.Optional[ICdkFeatureFlags], result)
12118
12181
 
12119
12182
  @builtins.property
12120
12183
  def require_approval(self) -> typing.Optional[ApprovalLevel]:
@@ -12662,7 +12725,7 @@ class AwsCdkTypeScriptAppOptions(
12662
12725
  build_command: typing.Optional[builtins.str] = None,
12663
12726
  cdkout: typing.Optional[builtins.str] = None,
12664
12727
  context: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
12665
- feature_flags: typing.Optional[builtins.bool] = None,
12728
+ feature_flags: typing.Optional[ICdkFeatureFlags] = None,
12666
12729
  require_approval: typing.Optional[ApprovalLevel] = None,
12667
12730
  watch_excludes: typing.Optional[typing.Sequence[builtins.str]] = None,
12668
12731
  watch_includes: typing.Optional[typing.Sequence[builtins.str]] = None,
@@ -12841,7 +12904,7 @@ class AwsCdkTypeScriptAppOptions(
12841
12904
  :param build_command: (experimental) A command to execute before synthesis. This command will be called when running ``cdk synth`` or when ``cdk watch`` identifies a change in your source code before redeployment. Default: - no build command
12842
12905
  :param cdkout: (experimental) cdk.out directory. Default: "cdk.out"
12843
12906
  :param context: (experimental) Additional context to include in ``cdk.json``. Default: - no additional context
12844
- :param feature_flags: (experimental) Include all feature flags in cdk.json. Default: true
12907
+ :param feature_flags: (experimental) Feature flags that should be enabled in ``cdk.json``. Make sure to double-check any changes to feature flags in ``cdk.json`` before deploying. Unexpected changes may cause breaking changes in your CDK app. You can overwrite any feature flag by passing it into the context field. Default: - no feature flags are enabled by default
12845
12908
  :param require_approval: (experimental) To protect you against unintended changes that affect your security posture, the AWS CDK Toolkit prompts you to approve security-related changes before deploying them. Default: ApprovalLevel.BROADENING
12846
12909
  :param watch_excludes: (experimental) Glob patterns to exclude from ``cdk watch``. Default: []
12847
12910
  :param watch_includes: (experimental) Glob patterns to include in ``cdk watch``. Default: []
@@ -15401,15 +15464,19 @@ class AwsCdkTypeScriptAppOptions(
15401
15464
  return typing.cast(typing.Optional[typing.Mapping[builtins.str, typing.Any]], result)
15402
15465
 
15403
15466
  @builtins.property
15404
- def feature_flags(self) -> typing.Optional[builtins.bool]:
15405
- '''(experimental) Include all feature flags in cdk.json.
15467
+ def feature_flags(self) -> typing.Optional[ICdkFeatureFlags]:
15468
+ '''(experimental) Feature flags that should be enabled in ``cdk.json``.
15406
15469
 
15407
- :default: true
15470
+ Make sure to double-check any changes to feature flags in ``cdk.json`` before deploying.
15471
+ Unexpected changes may cause breaking changes in your CDK app.
15472
+ You can overwrite any feature flag by passing it into the context field.
15473
+
15474
+ :default: - no feature flags are enabled by default
15408
15475
 
15409
15476
  :stability: experimental
15410
15477
  '''
15411
15478
  result = self._values.get("feature_flags")
15412
- return typing.cast(typing.Optional[builtins.bool], result)
15479
+ return typing.cast(typing.Optional[ICdkFeatureFlags], result)
15413
15480
 
15414
15481
  @builtins.property
15415
15482
  def require_approval(self) -> typing.Optional[ApprovalLevel]:
@@ -15668,6 +15735,138 @@ class AwsCdkTypeScriptAppOptions(
15668
15735
  )
15669
15736
 
15670
15737
 
15738
+ @jsii.implements(ICdkFeatureFlags)
15739
+ class CdkFeatureFlags(
15740
+ metaclass=jsii.JSIIMeta,
15741
+ jsii_type="projen.awscdk.CdkFeatureFlags",
15742
+ ):
15743
+ '''(experimental) CDK feature flags configuration.
15744
+
15745
+ :stability: experimental
15746
+ '''
15747
+
15748
+ @jsii.python.classproperty
15749
+ @jsii.member(jsii_name="V1")
15750
+ def V1(cls) -> "CdkFeatureFlagsV1":
15751
+ '''(deprecated) CDK V1 feature flags configuration.
15752
+
15753
+ :deprecated: CDK V1 is EOS. Upgrade to CDK V2.
15754
+
15755
+ :stability: deprecated
15756
+ '''
15757
+ return typing.cast("CdkFeatureFlagsV1", jsii.sget(cls, "V1"))
15758
+
15759
+ @jsii.python.classproperty
15760
+ @jsii.member(jsii_name="V2")
15761
+ def V2(cls) -> "CdkFeatureFlagsV2":
15762
+ '''(experimental) CDK V2 feature flags configuration.
15763
+
15764
+ :stability: experimental
15765
+ '''
15766
+ return typing.cast("CdkFeatureFlagsV2", jsii.sget(cls, "V2"))
15767
+
15768
+ @builtins.property
15769
+ @jsii.member(jsii_name="flags")
15770
+ def flags(self) -> typing.Mapping[builtins.str, typing.Any]:
15771
+ '''
15772
+ :stability: experimental
15773
+ '''
15774
+ return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "flags"))
15775
+
15776
+
15777
+ @jsii.implements(ICdkFeatureFlags)
15778
+ class CdkFeatureFlagsV1(
15779
+ metaclass=jsii.JSIIMeta,
15780
+ jsii_type="projen.awscdk.CdkFeatureFlagsV1",
15781
+ ):
15782
+ '''(deprecated) CDK V1 feature flags configuration.
15783
+
15784
+ :deprecated: CDK V1 is EOS. Upgrade to CDK V2.
15785
+
15786
+ :stability: deprecated
15787
+ '''
15788
+
15789
+ @jsii.python.classproperty
15790
+ @jsii.member(jsii_name="ALL")
15791
+ def ALL(cls) -> "CdkFeatureFlagsV1":
15792
+ '''(deprecated) Enable all CDK V1 feature flags.
15793
+
15794
+ :stability: deprecated
15795
+ '''
15796
+ return typing.cast("CdkFeatureFlagsV1", jsii.sget(cls, "ALL"))
15797
+
15798
+ @jsii.python.classproperty
15799
+ @jsii.member(jsii_name="NONE")
15800
+ def NONE(cls) -> "CdkFeatureFlagsV1":
15801
+ '''(deprecated) Disable all feature flags.
15802
+
15803
+ :stability: deprecated
15804
+ '''
15805
+ return typing.cast("CdkFeatureFlagsV1", jsii.sget(cls, "NONE"))
15806
+
15807
+ @builtins.property
15808
+ @jsii.member(jsii_name="flags")
15809
+ def flags(self) -> typing.Mapping[builtins.str, typing.Any]:
15810
+ '''
15811
+ :stability: deprecated
15812
+ '''
15813
+ return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "flags"))
15814
+
15815
+
15816
+ @jsii.implements(ICdkFeatureFlags)
15817
+ class CdkFeatureFlagsV2(
15818
+ metaclass=jsii.JSIIMeta,
15819
+ jsii_type="projen.awscdk.CdkFeatureFlagsV2",
15820
+ ):
15821
+ '''(experimental) CDK V2 feature flags configuration.
15822
+
15823
+ :stability: experimental
15824
+ '''
15825
+
15826
+ @jsii.member(jsii_name="fromLocalAwsCdkLib")
15827
+ @builtins.classmethod
15828
+ def from_local_aws_cdk_lib(cls) -> "CdkFeatureFlagsV2":
15829
+ '''(experimental) Attempt to load the feature flags from the ``aws-cdk-lib/recommended-feature-flags.json`` in a locally available npm package. This file is typically only present in AWS CDK TypeScript projects, but can yield more accurate results.
15830
+
15831
+ Falls back to all known feature flags if not found.
15832
+
15833
+ :stability: experimental
15834
+ '''
15835
+ return typing.cast("CdkFeatureFlagsV2", jsii.sinvoke(cls, "fromLocalAwsCdkLib", []))
15836
+
15837
+ @jsii.python.classproperty
15838
+ @jsii.member(jsii_name="ALL")
15839
+ def ALL(cls) -> "CdkFeatureFlagsV2":
15840
+ '''(experimental) Enable all CDK V2 feature flags known to projen.
15841
+
15842
+ These might not include feature flags, if your version of projen isn't up-to-date.
15843
+
15844
+ Make sure to double-check any changes to feature flags in ``cdk.json`` before deploying.
15845
+ Unexpected changes may cause breaking changes in your CDK app.
15846
+ You can overwrite any feature flag by passing it into the context field.
15847
+
15848
+ :stability: experimental
15849
+ '''
15850
+ return typing.cast("CdkFeatureFlagsV2", jsii.sget(cls, "ALL"))
15851
+
15852
+ @jsii.python.classproperty
15853
+ @jsii.member(jsii_name="NONE")
15854
+ def NONE(cls) -> "CdkFeatureFlagsV2":
15855
+ '''(experimental) Disable all feature flags.
15856
+
15857
+ :stability: experimental
15858
+ '''
15859
+ return typing.cast("CdkFeatureFlagsV2", jsii.sget(cls, "NONE"))
15860
+
15861
+ @builtins.property
15862
+ @jsii.member(jsii_name="flags")
15863
+ def flags(self) -> typing.Mapping[builtins.str, typing.Any]:
15864
+ '''
15865
+ :stability: experimental
15866
+ '''
15867
+ return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "flags"))
15868
+
15869
+
15671
15870
  @jsii.data_type(
15672
15871
  jsii_type="projen.awscdk.ConstructLibraryAwsOptions",
15673
15872
  jsii_struct_bases=[AwsCdkConstructLibraryOptions],
@@ -19212,11 +19411,15 @@ __all__ = [
19212
19411
  "CdkConfig",
19213
19412
  "CdkConfigCommonOptions",
19214
19413
  "CdkConfigOptions",
19414
+ "CdkFeatureFlags",
19415
+ "CdkFeatureFlagsV1",
19416
+ "CdkFeatureFlagsV2",
19215
19417
  "CdkTasks",
19216
19418
  "ConstructLibraryAws",
19217
19419
  "ConstructLibraryAwsOptions",
19218
19420
  "EdgeLambdaAutoDiscover",
19219
19421
  "EdgeLambdaAutoDiscoverOptions",
19422
+ "ICdkFeatureFlags",
19220
19423
  "IntegrationTest",
19221
19424
  "IntegrationTestAutoDiscover",
19222
19425
  "IntegrationTestAutoDiscoverOptions",
@@ -19417,7 +19620,7 @@ def _typecheckingstub__2193982c803c2bf032d2edee3f43915e940fec35ac37cd9b3e183323b
19417
19620
  build_command: typing.Optional[builtins.str] = None,
19418
19621
  cdkout: typing.Optional[builtins.str] = None,
19419
19622
  context: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
19420
- feature_flags: typing.Optional[builtins.bool] = None,
19623
+ feature_flags: typing.Optional[ICdkFeatureFlags] = None,
19421
19624
  require_approval: typing.Optional[ApprovalLevel] = None,
19422
19625
  watch_excludes: typing.Optional[typing.Sequence[builtins.str]] = None,
19423
19626
  watch_includes: typing.Optional[typing.Sequence[builtins.str]] = None,
@@ -19442,7 +19645,7 @@ def _typecheckingstub__17b71fd85a588dece1cab7a1f10a489c1f99d5cffc9bc94054d085940
19442
19645
  build_command: typing.Optional[builtins.str] = None,
19443
19646
  cdkout: typing.Optional[builtins.str] = None,
19444
19647
  context: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
19445
- feature_flags: typing.Optional[builtins.bool] = None,
19648
+ feature_flags: typing.Optional[ICdkFeatureFlags] = None,
19446
19649
  require_approval: typing.Optional[ApprovalLevel] = None,
19447
19650
  watch_excludes: typing.Optional[typing.Sequence[builtins.str]] = None,
19448
19651
  watch_includes: typing.Optional[typing.Sequence[builtins.str]] = None,
@@ -19455,7 +19658,7 @@ def _typecheckingstub__b4c0c207e869c8418ac98b7fb9e817aeb45676d86479b832ccd72d984
19455
19658
  build_command: typing.Optional[builtins.str] = None,
19456
19659
  cdkout: typing.Optional[builtins.str] = None,
19457
19660
  context: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
19458
- feature_flags: typing.Optional[builtins.bool] = None,
19661
+ feature_flags: typing.Optional[ICdkFeatureFlags] = None,
19459
19662
  require_approval: typing.Optional[ApprovalLevel] = None,
19460
19663
  watch_excludes: typing.Optional[typing.Sequence[builtins.str]] = None,
19461
19664
  watch_includes: typing.Optional[typing.Sequence[builtins.str]] = None,
@@ -19939,7 +20142,7 @@ def _typecheckingstub__106ed1d5e4c0173b124a04a202f17277b84ed8b1cd40b215afcfe0850
19939
20142
  build_command: typing.Optional[builtins.str] = None,
19940
20143
  cdkout: typing.Optional[builtins.str] = None,
19941
20144
  context: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
19942
- feature_flags: typing.Optional[builtins.bool] = None,
20145
+ feature_flags: typing.Optional[ICdkFeatureFlags] = None,
19943
20146
  require_approval: typing.Optional[ApprovalLevel] = None,
19944
20147
  watch_excludes: typing.Optional[typing.Sequence[builtins.str]] = None,
19945
20148
  watch_includes: typing.Optional[typing.Sequence[builtins.str]] = None,
@@ -20020,7 +20223,7 @@ def _typecheckingstub__e27f38787d25060d19d8209d5a55fd2b531387f6b87a60a7f639bbb7f
20020
20223
  build_command: typing.Optional[builtins.str] = None,
20021
20224
  cdkout: typing.Optional[builtins.str] = None,
20022
20225
  context: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
20023
- feature_flags: typing.Optional[builtins.bool] = None,
20226
+ feature_flags: typing.Optional[ICdkFeatureFlags] = None,
20024
20227
  require_approval: typing.Optional[ApprovalLevel] = None,
20025
20228
  watch_excludes: typing.Optional[typing.Sequence[builtins.str]] = None,
20026
20229
  watch_includes: typing.Optional[typing.Sequence[builtins.str]] = None,
@@ -20197,7 +20400,7 @@ def _typecheckingstub__d4516e51d77bf8bd5807e45e842cd19fa87c9a6d72e4f7d0caead33d3
20197
20400
  build_command: typing.Optional[builtins.str] = None,
20198
20401
  cdkout: typing.Optional[builtins.str] = None,
20199
20402
  context: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
20200
- feature_flags: typing.Optional[builtins.bool] = None,
20403
+ feature_flags: typing.Optional[ICdkFeatureFlags] = None,
20201
20404
  require_approval: typing.Optional[ApprovalLevel] = None,
20202
20405
  watch_excludes: typing.Optional[typing.Sequence[builtins.str]] = None,
20203
20406
  watch_includes: typing.Optional[typing.Sequence[builtins.str]] = None,
@@ -20412,3 +20615,6 @@ def _typecheckingstub__53f11e06b68a1910463459774b89205819af9292d548e5215ddd85989
20412
20615
  ) -> None:
20413
20616
  """Type checking stubs"""
20414
20617
  pass
20618
+
20619
+ for cls in [ICdkFeatureFlags]:
20620
+ typing.cast(typing.Any, cls).__protocol_attrs__ = typing.cast(typing.Any, cls).__protocol_attrs__ - set(['__jsii_proxy_class__', '__jsii_type__'])
@@ -8,7 +8,7 @@ if "JSII_RUNTIME_PACKAGE_CACHE" not in os.environ:
8
8
  os.environ["JSII_RUNTIME_PACKAGE_CACHE"] = "disabled"
9
9
 
10
10
  __jsii_assembly__ = jsii.JSIIAssembly.load(
11
- "projen", "0.97.2", "projen", "projen@0.97.2.jsii.tgz"
11
+ "projen", "0.98.0", "projen", "projen@0.98.0.jsii.tgz"
12
12
  )
13
13
 
14
14
  exit_code = __jsii_assembly__.invokeBinScript("projen", "projen", sys.argv[1:])
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: projen
3
- Version: 0.97.2
3
+ Version: 0.98.0
4
4
  Summary: CDK for software projects
5
5
  Home-page: https://github.com/projen/projen.git
6
6
  Author: Amazon Web Services
@@ -1,8 +1,8 @@
1
1
  projen/__init__.py,sha256=-5-G0j3kUS_DA0HGLbfGUmpDPPAjHhbe3HeAfpAP_qE,684443
2
2
  projen/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
- projen/_jsii/__init__.py,sha256=en0j72_D1AZtemXuOxsEFUL_g-NjZ3hRcoTi8XBu_2M,1404
4
- projen/_jsii/projen@0.97.2.jsii.tgz,sha256=7H1QnRidRje-_E4n0dQJPAqVBoNZkpyuLT6oyHXwuXk,2936257
5
- projen/awscdk/__init__.py,sha256=d2tlprVSm3D3jK7UtbpLX-QE0kb2hsjUao-4nr04VcA,1147624
3
+ projen/_jsii/__init__.py,sha256=4SMq5ys9LE8nMP1tyFhQxGOP1p7uqVeNv9Z3BTgn-Xc,1404
4
+ projen/_jsii/projen@0.98.0.jsii.tgz,sha256=hGNeXkfrq4m-ECN9c9s-CevSUivMFxNldwXEiHKyeNc,2949524
5
+ projen/awscdk/__init__.py,sha256=Y9PBCcy4WP1EFw243U6jnGHx3O4SIozJ50BJ1WBVldU,1157607
6
6
  projen/build/__init__.py,sha256=RZllpmDOwZ2McAIifVv2zr9oIrTEHhq-vXJEjzX2VkE,54258
7
7
  projen/cdk/__init__.py,sha256=-rKj5LNE96XVbKLV1OwO_jxjAeem6DAHjJLDdslmx9U,557823
8
8
  projen/cdk8s/__init__.py,sha256=1Wx4ksLOj6b_iH3itqQsY-Nhr4r9MGiZpx9BmD4rZ9k,633747
@@ -19,9 +19,9 @@ projen/release/__init__.py,sha256=-kYImxRw-uQRzzYwwxIrzUKcymPI4SPR2ui56VIBWow,33
19
19
  projen/typescript/__init__.py,sha256=feogxGz8d-OTBl9O2PWJOkC5jkItBW8FLSoDp8Q2hpY,533562
20
20
  projen/vscode/__init__.py,sha256=gDvpsybrGDRr6b5owXoQ6-fS9sJlKiGr-jH6y8D985k,70199
21
21
  projen/web/__init__.py,sha256=fK7vIMzaHNYTpnrNo9piYjzp_HuEbYIzxXc_lgbLSSU,866566
22
- projen-0.97.2.data/scripts/projen,sha256=mBt4G4VgkfuZG92poTUtkl-tFiExDLzaRXDzZlJEagc,356
23
- projen-0.97.2.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
24
- projen-0.97.2.dist-info/METADATA,sha256=JAzdyrUIULpNZci0iKuxazZLvy61SHqLIZHk_amMcFI,79609
25
- projen-0.97.2.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
26
- projen-0.97.2.dist-info/top_level.txt,sha256=Ul8VGUArFqejE5BMSked3l6NMBO6gjQEWywhM5gw1zw,7
27
- projen-0.97.2.dist-info/RECORD,,
22
+ projen-0.98.0.data/scripts/projen,sha256=8vTKxoFvL6KXlXazdAPn_3aBcRG9bsDdmV6IfkNGp1Q,356
23
+ projen-0.98.0.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
24
+ projen-0.98.0.dist-info/METADATA,sha256=VMOUm9Iiw_O5h8WPhwArtBAMFHYTzO5Z52dCuJpgfkE,79609
25
+ projen-0.98.0.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
26
+ projen-0.98.0.dist-info/top_level.txt,sha256=Ul8VGUArFqejE5BMSked3l6NMBO6gjQEWywhM5gw1zw,7
27
+ projen-0.98.0.dist-info/RECORD,,
Binary file