aws-cdk-lib 2.138.0__py3-none-any.whl → 2.139.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 aws-cdk-lib might be problematic. Click here for more details.

Files changed (37) hide show
  1. aws_cdk/_jsii/__init__.py +1 -1
  2. aws_cdk/_jsii/{aws-cdk-lib@2.138.0.jsii.tgz → aws-cdk-lib@2.139.0.jsii.tgz} +0 -0
  3. aws_cdk/aws_apigateway/__init__.py +29 -16
  4. aws_cdk/aws_appconfig/__init__.py +289 -44
  5. aws_cdk/aws_appintegrations/__init__.py +55 -6
  6. aws_cdk/aws_autoscaling/__init__.py +62 -60
  7. aws_cdk/aws_backup/__init__.py +34 -42
  8. aws_cdk/aws_batch/__init__.py +9 -3
  9. aws_cdk/aws_bedrock/__init__.py +4144 -0
  10. aws_cdk/aws_cloudwatch/__init__.py +120 -0
  11. aws_cdk/aws_datazone/__init__.py +22 -0
  12. aws_cdk/aws_dms/__init__.py +2 -4
  13. aws_cdk/aws_ec2/__init__.py +123 -84
  14. aws_cdk/aws_ecr/__init__.py +630 -0
  15. aws_cdk/aws_ecs/__init__.py +121 -19
  16. aws_cdk/aws_efs/__init__.py +592 -0
  17. aws_cdk/aws_elasticloadbalancingv2/__init__.py +23 -8
  18. aws_cdk/aws_events_targets/__init__.py +17 -4
  19. aws_cdk/aws_kms/__init__.py +44 -0
  20. aws_cdk/aws_lambda/__init__.py +9 -0
  21. aws_cdk/aws_oam/__init__.py +204 -0
  22. aws_cdk/aws_rds/__init__.py +15 -11
  23. aws_cdk/aws_redshiftserverless/__init__.py +157 -0
  24. aws_cdk/aws_securitylake/__init__.py +160 -105
  25. aws_cdk/aws_ses_actions/__init__.py +155 -0
  26. aws_cdk/aws_ssm/__init__.py +5 -2
  27. aws_cdk/aws_timestream/__init__.py +1045 -0
  28. aws_cdk/aws_transfer/__init__.py +15 -6
  29. aws_cdk/aws_wisdom/__init__.py +2 -2
  30. aws_cdk/custom_resources/__init__.py +440 -0
  31. aws_cdk/cx_api/__init__.py +17 -0
  32. {aws_cdk_lib-2.138.0.dist-info → aws_cdk_lib-2.139.0.dist-info}/METADATA +1 -1
  33. {aws_cdk_lib-2.138.0.dist-info → aws_cdk_lib-2.139.0.dist-info}/RECORD +37 -37
  34. {aws_cdk_lib-2.138.0.dist-info → aws_cdk_lib-2.139.0.dist-info}/LICENSE +0 -0
  35. {aws_cdk_lib-2.138.0.dist-info → aws_cdk_lib-2.139.0.dist-info}/NOTICE +0 -0
  36. {aws_cdk_lib-2.138.0.dist-info → aws_cdk_lib-2.139.0.dist-info}/WHEEL +0 -0
  37. {aws_cdk_lib-2.138.0.dist-info → aws_cdk_lib-2.139.0.dist-info}/top_level.txt +0 -0
@@ -257,8 +257,7 @@ appconfig.HostedConfiguration(self, "MyHostedConfiguration",
257
257
  )
258
258
  ```
259
259
 
260
- The `deployTo` parameter is used to specify which environments to deploy the configuration to. If this parameter is not
261
- specified, there will not be a deployment.
260
+ The `deployTo` parameter is used to specify which environments to deploy the configuration to.
262
261
 
263
262
  A hosted configuration with `deployTo`:
264
263
 
@@ -274,6 +273,96 @@ appconfig.HostedConfiguration(self, "MyHostedConfiguration",
274
273
  )
275
274
  ```
276
275
 
276
+ When more than one configuration is set to deploy to the same environment, the
277
+ deployments will occur one at a time. This is done to satisfy
278
+ [AppConfig's constraint](https://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-deploying.html):
279
+
280
+ > [!NOTE]
281
+ > You can only deploy one configuration at a time to an environment.
282
+ > However, you can deploy one configuration each to different environments at the same time.
283
+
284
+ The deployment order matches the order in which the configurations are declared.
285
+
286
+ ```python
287
+ app = appconfig.Application(self, "MyApp")
288
+ env = appconfig.Environment(self, "MyEnv",
289
+ application=app
290
+ )
291
+
292
+ appconfig.HostedConfiguration(self, "MyFirstHostedConfig",
293
+ application=app,
294
+ deploy_to=[env],
295
+ content=appconfig.ConfigurationContent.from_inline_text("This is my first configuration content.")
296
+ )
297
+
298
+ appconfig.HostedConfiguration(self, "MySecondHostedConfig",
299
+ application=app,
300
+ deploy_to=[env],
301
+ content=appconfig.ConfigurationContent.from_inline_text("This is my second configuration content.")
302
+ )
303
+ ```
304
+
305
+ If an application would benefit from a deployment order that differs from the
306
+ declared order, you can defer the decision by using `IEnvironment.addDeployment`
307
+ rather than the `deployTo` property.
308
+ In this example, `firstConfig` will be deployed before `secondConfig`.
309
+
310
+ ```python
311
+ app = appconfig.Application(self, "MyApp")
312
+ env = appconfig.Environment(self, "MyEnv",
313
+ application=app
314
+ )
315
+
316
+ second_config = appconfig.HostedConfiguration(self, "MySecondHostedConfig",
317
+ application=app,
318
+ content=appconfig.ConfigurationContent.from_inline_text("This is my second configuration content.")
319
+ )
320
+
321
+ first_config = appconfig.HostedConfiguration(self, "MyFirstHostedConfig",
322
+ application=app,
323
+ deploy_to=[env],
324
+ content=appconfig.ConfigurationContent.from_inline_text("This is my first configuration content.")
325
+ )
326
+
327
+ env.add_deployment(second_config)
328
+ ```
329
+
330
+ Alternatively, you can defer multiple deployments in favor of
331
+ `IEnvironment.addDeployments`, which allows you to declare multiple
332
+ configurations in the order they will be deployed.
333
+ In this example the deployment order will be
334
+ `firstConfig`, then `secondConfig`, and finally `thirdConfig`.
335
+
336
+ ```python
337
+ app = appconfig.Application(self, "MyApp")
338
+ env = appconfig.Environment(self, "MyEnv",
339
+ application=app
340
+ )
341
+
342
+ second_config = appconfig.HostedConfiguration(self, "MySecondHostedConfig",
343
+ application=app,
344
+ content=appconfig.ConfigurationContent.from_inline_text("This is my second configuration content.")
345
+ )
346
+
347
+ third_config = appconfig.HostedConfiguration(self, "MyThirdHostedConfig",
348
+ application=app,
349
+ content=appconfig.ConfigurationContent.from_inline_text("This is my third configuration content.")
350
+ )
351
+
352
+ first_config = appconfig.HostedConfiguration(self, "MyFirstHostedConfig",
353
+ application=app,
354
+ content=appconfig.ConfigurationContent.from_inline_text("This is my first configuration content.")
355
+ )
356
+
357
+ env.add_deployments(first_config, second_config, third_config)
358
+ ```
359
+
360
+ Any mix of `deployTo`, `addDeployment`, and `addDeployments` is permitted.
361
+ The declaration order will be respected regardless of the approach used.
362
+
363
+ > [!IMPORTANT]
364
+ > If none of these options are utilized, there will not be any deployments.
365
+
277
366
  ### SourcedConfiguration
278
367
 
279
368
  A sourced configuration represents configuration stored in any of the following:
@@ -4584,13 +4673,15 @@ class ConfigurationContent(
4584
4673
 
4585
4674
  Example::
4586
4675
 
4587
- # application: appconfig.Application
4588
-
4676
+ app = appconfig.Application(self, "MyApp")
4677
+ env = appconfig.Environment(self, "MyEnv",
4678
+ application=app
4679
+ )
4589
4680
 
4590
- appconfig.HostedConfiguration(self, "MyHostedConfiguration",
4591
- application=application,
4592
- content=appconfig.ConfigurationContent.from_inline_text("This is my configuration content."),
4593
- type=appconfig.ConfigurationType.FEATURE_FLAGS
4681
+ appconfig.HostedConfiguration(self, "MyHostedConfig",
4682
+ application=app,
4683
+ deploy_to=[env],
4684
+ content=appconfig.ConfigurationContent.from_inline_text("This is my configuration content.")
4594
4685
  )
4595
4686
  '''
4596
4687
 
@@ -4736,7 +4827,7 @@ class ConfigurationOptions:
4736
4827
 
4737
4828
  :param deployment_key: The deployment key of the configuration. Default: - None.
4738
4829
  :param deployment_strategy: The deployment strategy for the configuration. Default: - A deployment strategy with the rollout strategy set to RolloutStrategy.CANARY_10_PERCENT_20_MINUTES
4739
- :param deploy_to: The list of environments to deploy the configuration to. If this parameter is not specified, then there will be no deployment. Default: - None.
4830
+ :param deploy_to: The list of environments to deploy the configuration to. If this parameter is not specified, then there will be no deployment created alongside this configuration. Deployments can be added later using the ``IEnvironment.addDeployment`` or ``IEnvironment.addDeployments`` methods. Default: - None.
4740
4831
  :param description: The description of the configuration. Default: - No description.
4741
4832
  :param name: The name of the configuration. Default: - A name is generated.
4742
4833
  :param type: The type of configuration. Default: ConfigurationType.FREEFORM
@@ -4817,7 +4908,10 @@ class ConfigurationOptions:
4817
4908
  '''The list of environments to deploy the configuration to.
4818
4909
 
4819
4910
  If this parameter is not specified, then there will be no
4820
- deployment.
4911
+ deployment created alongside this configuration.
4912
+
4913
+ Deployments can be added later using the ``IEnvironment.addDeployment`` or
4914
+ ``IEnvironment.addDeployments`` methods.
4821
4915
 
4822
4916
  :default: - None.
4823
4917
  '''
@@ -4903,7 +4997,7 @@ class ConfigurationProps(ConfigurationOptions):
4903
4997
 
4904
4998
  :param deployment_key: The deployment key of the configuration. Default: - None.
4905
4999
  :param deployment_strategy: The deployment strategy for the configuration. Default: - A deployment strategy with the rollout strategy set to RolloutStrategy.CANARY_10_PERCENT_20_MINUTES
4906
- :param deploy_to: The list of environments to deploy the configuration to. If this parameter is not specified, then there will be no deployment. Default: - None.
5000
+ :param deploy_to: The list of environments to deploy the configuration to. If this parameter is not specified, then there will be no deployment created alongside this configuration. Deployments can be added later using the ``IEnvironment.addDeployment`` or ``IEnvironment.addDeployments`` methods. Default: - None.
4907
5001
  :param description: The description of the configuration. Default: - No description.
4908
5002
  :param name: The name of the configuration. Default: - A name is generated.
4909
5003
  :param type: The type of configuration. Default: ConfigurationType.FREEFORM
@@ -4992,7 +5086,10 @@ class ConfigurationProps(ConfigurationOptions):
4992
5086
  '''The list of environments to deploy the configuration to.
4993
5087
 
4994
5088
  If this parameter is not specified, then there will be no
4995
- deployment.
5089
+ deployment created alongside this configuration.
5090
+
5091
+ Deployments can be added later using the ``IEnvironment.addDeployment`` or
5092
+ ``IEnvironment.addDeployments`` methods.
4996
5093
 
4997
5094
  :default: - None.
4998
5095
  '''
@@ -5679,10 +5776,16 @@ class EnvironmentProps(EnvironmentOptions):
5679
5776
  application=app
5680
5777
  )
5681
5778
 
5682
- appconfig.HostedConfiguration(self, "MyHostedConfig",
5779
+ appconfig.HostedConfiguration(self, "MyFirstHostedConfig",
5683
5780
  application=app,
5684
5781
  deploy_to=[env],
5685
- content=appconfig.ConfigurationContent.from_inline_text("This is my configuration content.")
5782
+ content=appconfig.ConfigurationContent.from_inline_text("This is my first configuration content.")
5783
+ )
5784
+
5785
+ appconfig.HostedConfiguration(self, "MySecondHostedConfig",
5786
+ application=app,
5787
+ deploy_to=[env],
5788
+ content=appconfig.ConfigurationContent.from_inline_text("This is my second configuration content.")
5686
5789
  )
5687
5790
  '''
5688
5791
  if __debug__:
@@ -6166,7 +6269,7 @@ class HostedConfigurationOptions(ConfigurationOptions):
6166
6269
 
6167
6270
  :param deployment_key: The deployment key of the configuration. Default: - None.
6168
6271
  :param deployment_strategy: The deployment strategy for the configuration. Default: - A deployment strategy with the rollout strategy set to RolloutStrategy.CANARY_10_PERCENT_20_MINUTES
6169
- :param deploy_to: The list of environments to deploy the configuration to. If this parameter is not specified, then there will be no deployment. Default: - None.
6272
+ :param deploy_to: The list of environments to deploy the configuration to. If this parameter is not specified, then there will be no deployment created alongside this configuration. Deployments can be added later using the ``IEnvironment.addDeployment`` or ``IEnvironment.addDeployments`` methods. Default: - None.
6170
6273
  :param description: The description of the configuration. Default: - No description.
6171
6274
  :param name: The name of the configuration. Default: - A name is generated.
6172
6275
  :param type: The type of configuration. Default: ConfigurationType.FREEFORM
@@ -6265,7 +6368,10 @@ class HostedConfigurationOptions(ConfigurationOptions):
6265
6368
  '''The list of environments to deploy the configuration to.
6266
6369
 
6267
6370
  If this parameter is not specified, then there will be no
6268
- deployment.
6371
+ deployment created alongside this configuration.
6372
+
6373
+ Deployments can be added later using the ``IEnvironment.addDeployment`` or
6374
+ ``IEnvironment.addDeployments`` methods.
6269
6375
 
6270
6376
  :default: - None.
6271
6377
  '''
@@ -6382,7 +6488,7 @@ class HostedConfigurationProps(ConfigurationProps):
6382
6488
 
6383
6489
  :param deployment_key: The deployment key of the configuration. Default: - None.
6384
6490
  :param deployment_strategy: The deployment strategy for the configuration. Default: - A deployment strategy with the rollout strategy set to RolloutStrategy.CANARY_10_PERCENT_20_MINUTES
6385
- :param deploy_to: The list of environments to deploy the configuration to. If this parameter is not specified, then there will be no deployment. Default: - None.
6491
+ :param deploy_to: The list of environments to deploy the configuration to. If this parameter is not specified, then there will be no deployment created alongside this configuration. Deployments can be added later using the ``IEnvironment.addDeployment`` or ``IEnvironment.addDeployments`` methods. Default: - None.
6386
6492
  :param description: The description of the configuration. Default: - No description.
6387
6493
  :param name: The name of the configuration. Default: - A name is generated.
6388
6494
  :param type: The type of configuration. Default: ConfigurationType.FREEFORM
@@ -6396,13 +6502,15 @@ class HostedConfigurationProps(ConfigurationProps):
6396
6502
 
6397
6503
  Example::
6398
6504
 
6399
- # application: appconfig.Application
6400
-
6505
+ app = appconfig.Application(self, "MyApp")
6506
+ env = appconfig.Environment(self, "MyEnv",
6507
+ application=app
6508
+ )
6401
6509
 
6402
- appconfig.HostedConfiguration(self, "MyHostedConfiguration",
6403
- application=application,
6404
- content=appconfig.ConfigurationContent.from_inline_text("This is my configuration content."),
6405
- type=appconfig.ConfigurationType.FEATURE_FLAGS
6510
+ appconfig.HostedConfiguration(self, "MyHostedConfig",
6511
+ application=app,
6512
+ deploy_to=[env],
6513
+ content=appconfig.ConfigurationContent.from_inline_text("This is my configuration content.")
6406
6514
  )
6407
6515
  '''
6408
6516
  if __debug__:
@@ -6467,7 +6575,10 @@ class HostedConfigurationProps(ConfigurationProps):
6467
6575
  '''The list of environments to deploy the configuration to.
6468
6576
 
6469
6577
  If this parameter is not specified, then there will be no
6470
- deployment.
6578
+ deployment created alongside this configuration.
6579
+
6580
+ Deployments can be added later using the ``IEnvironment.addDeployment`` or
6581
+ ``IEnvironment.addDeployments`` methods.
6471
6582
 
6472
6583
  :default: - None.
6473
6584
  '''
@@ -6644,7 +6755,7 @@ class IApplication(_IResource_c80c4260, typing_extensions.Protocol):
6644
6755
  :param version_label: The version label of the hosted configuration. Default: - None.
6645
6756
  :param deployment_key: The deployment key of the configuration. Default: - None.
6646
6757
  :param deployment_strategy: The deployment strategy for the configuration. Default: - A deployment strategy with the rollout strategy set to RolloutStrategy.CANARY_10_PERCENT_20_MINUTES
6647
- :param deploy_to: The list of environments to deploy the configuration to. If this parameter is not specified, then there will be no deployment. Default: - None.
6758
+ :param deploy_to: The list of environments to deploy the configuration to. If this parameter is not specified, then there will be no deployment created alongside this configuration. Deployments can be added later using the ``IEnvironment.addDeployment`` or ``IEnvironment.addDeployments`` methods. Default: - None.
6648
6759
  :param description: The description of the configuration. Default: - No description.
6649
6760
  :param name: The name of the configuration. Default: - A name is generated.
6650
6761
  :param type: The type of configuration. Default: ConfigurationType.FREEFORM
@@ -6676,7 +6787,7 @@ class IApplication(_IResource_c80c4260, typing_extensions.Protocol):
6676
6787
  :param version_number: The version number of the sourced configuration to deploy. If this is not specified, then there will be no deployment. Default: - None.
6677
6788
  :param deployment_key: The deployment key of the configuration. Default: - None.
6678
6789
  :param deployment_strategy: The deployment strategy for the configuration. Default: - A deployment strategy with the rollout strategy set to RolloutStrategy.CANARY_10_PERCENT_20_MINUTES
6679
- :param deploy_to: The list of environments to deploy the configuration to. If this parameter is not specified, then there will be no deployment. Default: - None.
6790
+ :param deploy_to: The list of environments to deploy the configuration to. If this parameter is not specified, then there will be no deployment created alongside this configuration. Deployments can be added later using the ``IEnvironment.addDeployment`` or ``IEnvironment.addDeployments`` methods. Default: - None.
6680
6791
  :param description: The description of the configuration. Default: - No description.
6681
6792
  :param name: The name of the configuration. Default: - A name is generated.
6682
6793
  :param type: The type of configuration. Default: ConfigurationType.FREEFORM
@@ -6960,7 +7071,7 @@ class _IApplicationProxy(
6960
7071
  :param version_label: The version label of the hosted configuration. Default: - None.
6961
7072
  :param deployment_key: The deployment key of the configuration. Default: - None.
6962
7073
  :param deployment_strategy: The deployment strategy for the configuration. Default: - A deployment strategy with the rollout strategy set to RolloutStrategy.CANARY_10_PERCENT_20_MINUTES
6963
- :param deploy_to: The list of environments to deploy the configuration to. If this parameter is not specified, then there will be no deployment. Default: - None.
7074
+ :param deploy_to: The list of environments to deploy the configuration to. If this parameter is not specified, then there will be no deployment created alongside this configuration. Deployments can be added later using the ``IEnvironment.addDeployment`` or ``IEnvironment.addDeployments`` methods. Default: - None.
6964
7075
  :param description: The description of the configuration. Default: - No description.
6965
7076
  :param name: The name of the configuration. Default: - A name is generated.
6966
7077
  :param type: The type of configuration. Default: ConfigurationType.FREEFORM
@@ -7008,7 +7119,7 @@ class _IApplicationProxy(
7008
7119
  :param version_number: The version number of the sourced configuration to deploy. If this is not specified, then there will be no deployment. Default: - None.
7009
7120
  :param deployment_key: The deployment key of the configuration. Default: - None.
7010
7121
  :param deployment_strategy: The deployment strategy for the configuration. Default: - A deployment strategy with the rollout strategy set to RolloutStrategy.CANARY_10_PERCENT_20_MINUTES
7011
- :param deploy_to: The list of environments to deploy the configuration to. If this parameter is not specified, then there will be no deployment. Default: - None.
7122
+ :param deploy_to: The list of environments to deploy the configuration to. If this parameter is not specified, then there will be no deployment created alongside this configuration. Deployments can be added later using the ``IEnvironment.addDeployment`` or ``IEnvironment.addDeployments`` methods. Default: - None.
7012
7123
  :param description: The description of the configuration. Default: - No description.
7013
7124
  :param name: The name of the configuration. Default: - A name is generated.
7014
7125
  :param type: The type of configuration. Default: ConfigurationType.FREEFORM
@@ -7586,6 +7697,28 @@ class IEnvironment(_IResource_c80c4260, typing_extensions.Protocol):
7586
7697
  '''The name of the environment.'''
7587
7698
  ...
7588
7699
 
7700
+ @jsii.member(jsii_name="addDeployment")
7701
+ def add_deployment(self, configuration: IConfiguration) -> None:
7702
+ '''Creates a deployment of the supplied configuration to this environment.
7703
+
7704
+ Note that you can only deploy one configuration at a time to an environment.
7705
+ However, you can deploy one configuration each to different environments at the same time.
7706
+ If more than one deployment is requested for this environment, they will occur in the same order they were provided.
7707
+
7708
+ :param configuration: The configuration that will be deployed to this environment.
7709
+ '''
7710
+ ...
7711
+
7712
+ @jsii.member(jsii_name="addDeployments")
7713
+ def add_deployments(self, *configurations: IConfiguration) -> None:
7714
+ '''Creates a deployment for each of the supplied configurations to this environment.
7715
+
7716
+ These configurations will be deployed in the same order as the input array.
7717
+
7718
+ :param configurations: The configurations that will be deployed to this environment.
7719
+ '''
7720
+ ...
7721
+
7589
7722
  @jsii.member(jsii_name="addExtension")
7590
7723
  def add_extension(self, extension: "IExtension") -> None:
7591
7724
  '''Adds an extension association to the environment.
@@ -7810,6 +7943,34 @@ class _IEnvironmentProxy(
7810
7943
  '''The name of the environment.'''
7811
7944
  return typing.cast(typing.Optional[builtins.str], jsii.get(self, "name"))
7812
7945
 
7946
+ @jsii.member(jsii_name="addDeployment")
7947
+ def add_deployment(self, configuration: IConfiguration) -> None:
7948
+ '''Creates a deployment of the supplied configuration to this environment.
7949
+
7950
+ Note that you can only deploy one configuration at a time to an environment.
7951
+ However, you can deploy one configuration each to different environments at the same time.
7952
+ If more than one deployment is requested for this environment, they will occur in the same order they were provided.
7953
+
7954
+ :param configuration: The configuration that will be deployed to this environment.
7955
+ '''
7956
+ if __debug__:
7957
+ type_hints = typing.get_type_hints(_typecheckingstub__3f39f9fc38c2348c1cbb526adb681012a66d9e97575dc37ba0af87ab3bc3eddc)
7958
+ check_type(argname="argument configuration", value=configuration, expected_type=type_hints["configuration"])
7959
+ return typing.cast(None, jsii.invoke(self, "addDeployment", [configuration]))
7960
+
7961
+ @jsii.member(jsii_name="addDeployments")
7962
+ def add_deployments(self, *configurations: IConfiguration) -> None:
7963
+ '''Creates a deployment for each of the supplied configurations to this environment.
7964
+
7965
+ These configurations will be deployed in the same order as the input array.
7966
+
7967
+ :param configurations: The configurations that will be deployed to this environment.
7968
+ '''
7969
+ if __debug__:
7970
+ type_hints = typing.get_type_hints(_typecheckingstub__44b48a1bae27d9166bf28c62529963c2221d313260dbc1e9f5239536a54010d5)
7971
+ check_type(argname="argument configurations", value=configurations, expected_type=typing.Tuple[type_hints["configurations"], ...]) # pyright: ignore [reportGeneralTypeIssues]
7972
+ return typing.cast(None, jsii.invoke(self, "addDeployments", [*configurations]))
7973
+
7813
7974
  @jsii.member(jsii_name="addExtension")
7814
7975
  def add_extension(self, extension: "IExtension") -> None:
7815
7976
  '''Adds an extension association to the environment.
@@ -9550,7 +9711,7 @@ class SourcedConfiguration(
9550
9711
  :param application: The application associated with the configuration.
9551
9712
  :param deployment_key: The deployment key of the configuration. Default: - None.
9552
9713
  :param deployment_strategy: The deployment strategy for the configuration. Default: - A deployment strategy with the rollout strategy set to RolloutStrategy.CANARY_10_PERCENT_20_MINUTES
9553
- :param deploy_to: The list of environments to deploy the configuration to. If this parameter is not specified, then there will be no deployment. Default: - None.
9714
+ :param deploy_to: The list of environments to deploy the configuration to. If this parameter is not specified, then there will be no deployment created alongside this configuration. Deployments can be added later using the ``IEnvironment.addDeployment`` or ``IEnvironment.addDeployments`` methods. Default: - None.
9554
9715
  :param description: The description of the configuration. Default: - No description.
9555
9716
  :param name: The name of the configuration. Default: - A name is generated.
9556
9717
  :param type: The type of configuration. Default: ConfigurationType.FREEFORM
@@ -9987,7 +10148,7 @@ class SourcedConfigurationOptions(ConfigurationOptions):
9987
10148
 
9988
10149
  :param deployment_key: The deployment key of the configuration. Default: - None.
9989
10150
  :param deployment_strategy: The deployment strategy for the configuration. Default: - A deployment strategy with the rollout strategy set to RolloutStrategy.CANARY_10_PERCENT_20_MINUTES
9990
- :param deploy_to: The list of environments to deploy the configuration to. If this parameter is not specified, then there will be no deployment. Default: - None.
10151
+ :param deploy_to: The list of environments to deploy the configuration to. If this parameter is not specified, then there will be no deployment created alongside this configuration. Deployments can be added later using the ``IEnvironment.addDeployment`` or ``IEnvironment.addDeployments`` methods. Default: - None.
9991
10152
  :param description: The description of the configuration. Default: - No description.
9992
10153
  :param name: The name of the configuration. Default: - A name is generated.
9993
10154
  :param type: The type of configuration. Default: ConfigurationType.FREEFORM
@@ -10088,7 +10249,10 @@ class SourcedConfigurationOptions(ConfigurationOptions):
10088
10249
  '''The list of environments to deploy the configuration to.
10089
10250
 
10090
10251
  If this parameter is not specified, then there will be no
10091
- deployment.
10252
+ deployment created alongside this configuration.
10253
+
10254
+ Deployments can be added later using the ``IEnvironment.addDeployment`` or
10255
+ ``IEnvironment.addDeployments`` methods.
10092
10256
 
10093
10257
  :default: - None.
10094
10258
  '''
@@ -10208,7 +10372,7 @@ class SourcedConfigurationProps(ConfigurationProps):
10208
10372
 
10209
10373
  :param deployment_key: The deployment key of the configuration. Default: - None.
10210
10374
  :param deployment_strategy: The deployment strategy for the configuration. Default: - A deployment strategy with the rollout strategy set to RolloutStrategy.CANARY_10_PERCENT_20_MINUTES
10211
- :param deploy_to: The list of environments to deploy the configuration to. If this parameter is not specified, then there will be no deployment. Default: - None.
10375
+ :param deploy_to: The list of environments to deploy the configuration to. If this parameter is not specified, then there will be no deployment created alongside this configuration. Deployments can be added later using the ``IEnvironment.addDeployment`` or ``IEnvironment.addDeployments`` methods. Default: - None.
10212
10376
  :param description: The description of the configuration. Default: - No description.
10213
10377
  :param name: The name of the configuration. Default: - A name is generated.
10214
10378
  :param type: The type of configuration. Default: ConfigurationType.FREEFORM
@@ -10296,7 +10460,10 @@ class SourcedConfigurationProps(ConfigurationProps):
10296
10460
  '''The list of environments to deploy the configuration to.
10297
10461
 
10298
10462
  If this parameter is not specified, then there will be no
10299
- deployment.
10463
+ deployment created alongside this configuration.
10464
+
10465
+ Deployments can be added later using the ``IEnvironment.addDeployment`` or
10466
+ ``IEnvironment.addDeployments`` methods.
10300
10467
 
10301
10468
  :default: - None.
10302
10469
  '''
@@ -10645,7 +10812,7 @@ class Application(
10645
10812
  :param version_label: The version label of the hosted configuration. Default: - None.
10646
10813
  :param deployment_key: The deployment key of the configuration. Default: - None.
10647
10814
  :param deployment_strategy: The deployment strategy for the configuration. Default: - A deployment strategy with the rollout strategy set to RolloutStrategy.CANARY_10_PERCENT_20_MINUTES
10648
- :param deploy_to: The list of environments to deploy the configuration to. If this parameter is not specified, then there will be no deployment. Default: - None.
10815
+ :param deploy_to: The list of environments to deploy the configuration to. If this parameter is not specified, then there will be no deployment created alongside this configuration. Deployments can be added later using the ``IEnvironment.addDeployment`` or ``IEnvironment.addDeployments`` methods. Default: - None.
10649
10816
  :param description: The description of the configuration. Default: - No description.
10650
10817
  :param name: The name of the configuration. Default: - A name is generated.
10651
10818
  :param type: The type of configuration. Default: ConfigurationType.FREEFORM
@@ -10693,7 +10860,7 @@ class Application(
10693
10860
  :param version_number: The version number of the sourced configuration to deploy. If this is not specified, then there will be no deployment. Default: - None.
10694
10861
  :param deployment_key: The deployment key of the configuration. Default: - None.
10695
10862
  :param deployment_strategy: The deployment strategy for the configuration. Default: - A deployment strategy with the rollout strategy set to RolloutStrategy.CANARY_10_PERCENT_20_MINUTES
10696
- :param deploy_to: The list of environments to deploy the configuration to. If this parameter is not specified, then there will be no deployment. Default: - None.
10863
+ :param deploy_to: The list of environments to deploy the configuration to. If this parameter is not specified, then there will be no deployment created alongside this configuration. Deployments can be added later using the ``IEnvironment.addDeployment`` or ``IEnvironment.addDeployments`` methods. Default: - None.
10697
10864
  :param description: The description of the configuration. Default: - No description.
10698
10865
  :param name: The name of the configuration. Default: - A name is generated.
10699
10866
  :param type: The type of configuration. Default: ConfigurationType.FREEFORM
@@ -11172,10 +11339,16 @@ class Environment(
11172
11339
  application=app
11173
11340
  )
11174
11341
 
11175
- appconfig.HostedConfiguration(self, "MyHostedConfig",
11342
+ appconfig.HostedConfiguration(self, "MyFirstHostedConfig",
11176
11343
  application=app,
11177
11344
  deploy_to=[env],
11178
- content=appconfig.ConfigurationContent.from_inline_text("This is my configuration content.")
11345
+ content=appconfig.ConfigurationContent.from_inline_text("This is my first configuration content.")
11346
+ )
11347
+
11348
+ appconfig.HostedConfiguration(self, "MySecondHostedConfig",
11349
+ application=app,
11350
+ deploy_to=[env],
11351
+ content=appconfig.ConfigurationContent.from_inline_text("This is my second configuration content.")
11179
11352
  )
11180
11353
  '''
11181
11354
 
@@ -11268,6 +11441,34 @@ class Environment(
11268
11441
 
11269
11442
  return typing.cast(IEnvironment, jsii.sinvoke(cls, "fromEnvironmentAttributes", [scope, id, attrs]))
11270
11443
 
11444
+ @jsii.member(jsii_name="addDeployment")
11445
+ def add_deployment(self, configuration: IConfiguration) -> None:
11446
+ '''Creates a deployment of the supplied configuration to this environment.
11447
+
11448
+ Note that you can only deploy one configuration at a time to an environment.
11449
+ However, you can deploy one configuration each to different environments at the same time.
11450
+ If more than one deployment is requested for this environment, they will occur in the same order they were provided.
11451
+
11452
+ :param configuration: -
11453
+ '''
11454
+ if __debug__:
11455
+ type_hints = typing.get_type_hints(_typecheckingstub__60a6cee655356c4a43230057c8909db67a6239e7701192ff39fda6b5549a6672)
11456
+ check_type(argname="argument configuration", value=configuration, expected_type=type_hints["configuration"])
11457
+ return typing.cast(None, jsii.invoke(self, "addDeployment", [configuration]))
11458
+
11459
+ @jsii.member(jsii_name="addDeployments")
11460
+ def add_deployments(self, *configurations: IConfiguration) -> None:
11461
+ '''Creates a deployment for each of the supplied configurations to this environment.
11462
+
11463
+ These configurations will be deployed in the same order as the input array.
11464
+
11465
+ :param configurations: -
11466
+ '''
11467
+ if __debug__:
11468
+ type_hints = typing.get_type_hints(_typecheckingstub__9a87ca2c61c81bb433441138d696247c8865c67883b0937278f3b0aa320b5db0)
11469
+ check_type(argname="argument configurations", value=configurations, expected_type=typing.Tuple[type_hints["configurations"], ...]) # pyright: ignore [reportGeneralTypeIssues]
11470
+ return typing.cast(None, jsii.invoke(self, "addDeployments", [*configurations]))
11471
+
11271
11472
  @jsii.member(jsii_name="addExtension")
11272
11473
  def add_extension(self, extension: IExtension) -> None:
11273
11474
  '''Adds an extension association to the environment.
@@ -11570,6 +11771,18 @@ class Environment(
11570
11771
  '''The name of the environment.'''
11571
11772
  return typing.cast(typing.Optional[builtins.str], jsii.get(self, "name"))
11572
11773
 
11774
+ @builtins.property
11775
+ @jsii.member(jsii_name="deploymentQueue")
11776
+ def _deployment_queue(self) -> typing.List[CfnDeployment]:
11777
+ return typing.cast(typing.List[CfnDeployment], jsii.get(self, "deploymentQueue"))
11778
+
11779
+ @_deployment_queue.setter
11780
+ def _deployment_queue(self, value: typing.List[CfnDeployment]) -> None:
11781
+ if __debug__:
11782
+ type_hints = typing.get_type_hints(_typecheckingstub__bd39d7b7b77c944582e5f7fabeb3e37717eaa470540d764633f9ce909058030a)
11783
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
11784
+ jsii.set(self, "deploymentQueue", value)
11785
+
11573
11786
  @builtins.property
11574
11787
  @jsii.member(jsii_name="extensible")
11575
11788
  def _extensible(self) -> "ExtensibleBase":
@@ -12116,13 +12329,15 @@ class HostedConfiguration(
12116
12329
 
12117
12330
  Example::
12118
12331
 
12119
- # application: appconfig.Application
12120
-
12332
+ app = appconfig.Application(self, "MyApp")
12333
+ env = appconfig.Environment(self, "MyEnv",
12334
+ application=app
12335
+ )
12121
12336
 
12122
- appconfig.HostedConfiguration(self, "MyHostedConfiguration",
12123
- application=application,
12124
- content=appconfig.ConfigurationContent.from_inline_text("This is my configuration content."),
12125
- type=appconfig.ConfigurationType.FEATURE_FLAGS
12337
+ appconfig.HostedConfiguration(self, "MyHostedConfig",
12338
+ application=app,
12339
+ deploy_to=[env],
12340
+ content=appconfig.ConfigurationContent.from_inline_text("This is my configuration content.")
12126
12341
  )
12127
12342
  '''
12128
12343
 
@@ -12152,7 +12367,7 @@ class HostedConfiguration(
12152
12367
  :param application: The application associated with the configuration.
12153
12368
  :param deployment_key: The deployment key of the configuration. Default: - None.
12154
12369
  :param deployment_strategy: The deployment strategy for the configuration. Default: - A deployment strategy with the rollout strategy set to RolloutStrategy.CANARY_10_PERCENT_20_MINUTES
12155
- :param deploy_to: The list of environments to deploy the configuration to. If this parameter is not specified, then there will be no deployment. Default: - None.
12370
+ :param deploy_to: The list of environments to deploy the configuration to. If this parameter is not specified, then there will be no deployment created alongside this configuration. Deployments can be added later using the ``IEnvironment.addDeployment`` or ``IEnvironment.addDeployments`` methods. Default: - None.
12156
12371
  :param description: The description of the configuration. Default: - No description.
12157
12372
  :param name: The name of the configuration. Default: - A name is generated.
12158
12373
  :param type: The type of configuration. Default: ConfigurationType.FREEFORM
@@ -13679,6 +13894,18 @@ def _typecheckingstub__6e94c708c7603af848bf6e13c31c0fc2a81ad1aa833b38ab455b5a4db
13679
13894
  """Type checking stubs"""
13680
13895
  pass
13681
13896
 
13897
+ def _typecheckingstub__3f39f9fc38c2348c1cbb526adb681012a66d9e97575dc37ba0af87ab3bc3eddc(
13898
+ configuration: IConfiguration,
13899
+ ) -> None:
13900
+ """Type checking stubs"""
13901
+ pass
13902
+
13903
+ def _typecheckingstub__44b48a1bae27d9166bf28c62529963c2221d313260dbc1e9f5239536a54010d5(
13904
+ *configurations: IConfiguration,
13905
+ ) -> None:
13906
+ """Type checking stubs"""
13907
+ pass
13908
+
13682
13909
  def _typecheckingstub__21f3fd9d8706d2da33872e0f177690ef7904e1a5bffb8f09838105674dab79cf(
13683
13910
  extension: IExtension,
13684
13911
  ) -> None:
@@ -14346,6 +14573,18 @@ def _typecheckingstub__5d0acdd2bc2062b1e3a3bcead8b9d2670bef03c315b3aa44522a20995
14346
14573
  """Type checking stubs"""
14347
14574
  pass
14348
14575
 
14576
+ def _typecheckingstub__60a6cee655356c4a43230057c8909db67a6239e7701192ff39fda6b5549a6672(
14577
+ configuration: IConfiguration,
14578
+ ) -> None:
14579
+ """Type checking stubs"""
14580
+ pass
14581
+
14582
+ def _typecheckingstub__9a87ca2c61c81bb433441138d696247c8865c67883b0937278f3b0aa320b5db0(
14583
+ *configurations: IConfiguration,
14584
+ ) -> None:
14585
+ """Type checking stubs"""
14586
+ pass
14587
+
14349
14588
  def _typecheckingstub__46eeb9c815b4c9f3f9ff6e64ae0bba20fa3057be7b74747b611ea672668a95cf(
14350
14589
  extension: IExtension,
14351
14590
  ) -> None:
@@ -14441,6 +14680,12 @@ def _typecheckingstub__22ccb2ca13f7df2815220f1d2cdda0fb9d20c17ac1fafb9dcc5006455
14441
14680
  """Type checking stubs"""
14442
14681
  pass
14443
14682
 
14683
+ def _typecheckingstub__bd39d7b7b77c944582e5f7fabeb3e37717eaa470540d764633f9ce909058030a(
14684
+ value: typing.List[CfnDeployment],
14685
+ ) -> None:
14686
+ """Type checking stubs"""
14687
+ pass
14688
+
14444
14689
  def _typecheckingstub__f249899e37c9153afa9dc39542328ce1c247c1f209ac134fb2bc8a4ad1120946(
14445
14690
  value: ExtensibleBase,
14446
14691
  ) -> None: