aws-cdk-lib 2.137.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.
- aws_cdk/__init__.py +8 -0
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.137.0.jsii.tgz → aws-cdk-lib@2.139.0.jsii.tgz} +0 -0
- aws_cdk/aws_amplify/__init__.py +29 -113
- aws_cdk/aws_apigateway/__init__.py +29 -16
- aws_cdk/aws_appconfig/__init__.py +315 -77
- aws_cdk/aws_appintegrations/__init__.py +55 -6
- aws_cdk/aws_apprunner/__init__.py +5 -2
- aws_cdk/aws_appsync/__init__.py +400 -13
- aws_cdk/aws_aps/__init__.py +64 -47
- aws_cdk/aws_autoscaling/__init__.py +62 -60
- aws_cdk/aws_b2bi/__init__.py +2 -6
- aws_cdk/aws_backup/__init__.py +53 -57
- aws_cdk/aws_batch/__init__.py +109 -0
- aws_cdk/aws_bcmdataexports/__init__.py +1114 -0
- aws_cdk/aws_bedrock/__init__.py +4144 -0
- aws_cdk/aws_chatbot/__init__.py +6 -4
- aws_cdk/aws_cleanrooms/__init__.py +526 -3
- aws_cdk/aws_cleanroomsml/__init__.py +960 -0
- aws_cdk/aws_cloudtrail/__init__.py +10 -10
- aws_cdk/aws_cloudwatch/__init__.py +244 -8
- aws_cdk/aws_codebuild/__init__.py +27 -22
- aws_cdk/aws_codeconnections/__init__.py +435 -0
- aws_cdk/aws_cognito/__init__.py +175 -79
- aws_cdk/aws_datazone/__init__.py +22 -0
- aws_cdk/aws_deadline/__init__.py +5394 -0
- aws_cdk/aws_dms/__init__.py +2 -4
- aws_cdk/aws_ec2/__init__.py +402 -247
- aws_cdk/aws_ecr/__init__.py +630 -0
- aws_cdk/aws_ecs/__init__.py +361 -20
- aws_cdk/aws_efs/__init__.py +594 -2
- aws_cdk/aws_elasticache/__init__.py +86 -32
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +75 -10
- aws_cdk/aws_emr/__init__.py +2 -2
- aws_cdk/aws_entityresolution/__init__.py +1982 -773
- aws_cdk/aws_events_targets/__init__.py +17 -4
- aws_cdk/aws_globalaccelerator/__init__.py +443 -0
- aws_cdk/aws_iam/__init__.py +1 -2
- aws_cdk/aws_internetmonitor/__init__.py +14 -6
- aws_cdk/aws_ivs/__init__.py +1273 -71
- aws_cdk/aws_kms/__init__.py +44 -0
- aws_cdk/aws_lambda/__init__.py +9 -0
- aws_cdk/aws_mediatailor/__init__.py +41 -0
- aws_cdk/aws_oam/__init__.py +204 -0
- aws_cdk/aws_personalize/__init__.py +8 -6
- aws_cdk/aws_pinpoint/__init__.py +5 -3
- aws_cdk/aws_pipes/__init__.py +5 -1
- aws_cdk/aws_quicksight/__init__.py +12 -6
- aws_cdk/aws_rds/__init__.py +370 -96
- aws_cdk/aws_redshiftserverless/__init__.py +157 -0
- aws_cdk/aws_route53/__init__.py +587 -14
- aws_cdk/aws_sagemaker/__init__.py +233 -2
- aws_cdk/aws_securityhub/__init__.py +4940 -102
- aws_cdk/aws_securitylake/__init__.py +1326 -89
- aws_cdk/aws_ses_actions/__init__.py +155 -0
- aws_cdk/aws_sns/__init__.py +61 -4
- aws_cdk/aws_ssm/__init__.py +5 -2
- aws_cdk/aws_ssmcontacts/__init__.py +11 -4
- aws_cdk/aws_stepfunctions/__init__.py +8 -16
- aws_cdk/aws_stepfunctions_tasks/__init__.py +676 -1
- aws_cdk/aws_timestream/__init__.py +1045 -0
- aws_cdk/aws_transfer/__init__.py +19 -10
- aws_cdk/aws_verifiedpermissions/__init__.py +114 -37
- aws_cdk/aws_wisdom/__init__.py +2 -2
- aws_cdk/aws_workspacesthinclient/__init__.py +8 -8
- aws_cdk/custom_resources/__init__.py +688 -26
- aws_cdk/cx_api/__init__.py +17 -0
- {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.139.0.dist-info}/METADATA +3 -3
- {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.139.0.dist-info}/RECORD +73 -69
- {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.139.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.139.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.139.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.137.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.
|
|
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:
|
|
@@ -942,7 +1031,7 @@ class CfnApplication(
|
|
|
942
1031
|
- Create an application
|
|
943
1032
|
- Create an environment
|
|
944
1033
|
- Create a configuration profile
|
|
945
|
-
-
|
|
1034
|
+
- Choose a pre-defined deployment strategy or create your own
|
|
946
1035
|
- Deploy the configuration
|
|
947
1036
|
|
|
948
1037
|
For more information, see `AWS AppConfig <https://docs.aws.amazon.com/appconfig/latest/userguide/what-is-appconfig.html>`_ in the *AWS AppConfig User Guide* .
|
|
@@ -1196,7 +1285,7 @@ class CfnConfigurationProfile(
|
|
|
1196
1285
|
- Create an application
|
|
1197
1286
|
- Create an environment
|
|
1198
1287
|
- Create a configuration profile
|
|
1199
|
-
-
|
|
1288
|
+
- Choose a pre-defined deployment strategy or create your own
|
|
1200
1289
|
- Deploy the configuration
|
|
1201
1290
|
|
|
1202
1291
|
For more information, see `AWS AppConfig <https://docs.aws.amazon.com/appconfig/latest/userguide/what-is-appconfig.html>`_ in the *AWS AppConfig User Guide* .
|
|
@@ -1322,7 +1411,7 @@ class CfnConfigurationProfile(
|
|
|
1322
1411
|
def attr_kms_key_arn(self) -> builtins.str:
|
|
1323
1412
|
'''The Amazon Resource Name of the AWS Key Management Service key to encrypt new configuration data versions in the AWS AppConfig hosted configuration store.
|
|
1324
1413
|
|
|
1325
|
-
This attribute is only used for hosted configuration types. To encrypt data managed in other configuration stores, see the documentation for how to specify an AWS KMS key for that particular service.
|
|
1414
|
+
This attribute is only used for ``hosted`` configuration types. To encrypt data managed in other configuration stores, see the documentation for how to specify an AWS KMS key for that particular service.
|
|
1326
1415
|
|
|
1327
1416
|
:cloudformationAttribute: KmsKeyArn
|
|
1328
1417
|
'''
|
|
@@ -1770,7 +1859,7 @@ class CfnDeployment(
|
|
|
1770
1859
|
- Create an application
|
|
1771
1860
|
- Create an environment
|
|
1772
1861
|
- Create a configuration profile
|
|
1773
|
-
-
|
|
1862
|
+
- Choose a pre-defined deployment strategy or create your own
|
|
1774
1863
|
- Deploy the configuration
|
|
1775
1864
|
|
|
1776
1865
|
For more information, see `AWS AppConfig <https://docs.aws.amazon.com/appconfig/latest/userguide/what-is-appconfig.html>`_ in the *AWS AppConfig User Guide* .
|
|
@@ -1831,7 +1920,7 @@ class CfnDeployment(
|
|
|
1831
1920
|
:param deployment_strategy_id: The deployment strategy ID.
|
|
1832
1921
|
:param environment_id: The environment ID.
|
|
1833
1922
|
:param description: A description of the deployment.
|
|
1834
|
-
:param dynamic_extension_parameters:
|
|
1923
|
+
:param dynamic_extension_parameters: A map of dynamic extension parameter names to values to pass to associated extensions with ``PRE_START_DEPLOYMENT`` actions.
|
|
1835
1924
|
:param kms_key_identifier: The AWS Key Management Service key identifier (key ID, key alias, or key ARN) provided when the resource was created or updated.
|
|
1836
1925
|
:param tags: Metadata to assign to the deployment. Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define.
|
|
1837
1926
|
'''
|
|
@@ -1985,7 +2074,7 @@ class CfnDeployment(
|
|
|
1985
2074
|
def dynamic_extension_parameters(
|
|
1986
2075
|
self,
|
|
1987
2076
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnDeployment.DynamicExtensionParametersProperty"]]]]:
|
|
1988
|
-
'''
|
|
2077
|
+
'''A map of dynamic extension parameter names to values to pass to associated extensions with ``PRE_START_DEPLOYMENT`` actions.'''
|
|
1989
2078
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnDeployment.DynamicExtensionParametersProperty"]]]], jsii.get(self, "dynamicExtensionParameters"))
|
|
1990
2079
|
|
|
1991
2080
|
@dynamic_extension_parameters.setter
|
|
@@ -2041,10 +2130,11 @@ class CfnDeployment(
|
|
|
2041
2130
|
parameter_name: typing.Optional[builtins.str] = None,
|
|
2042
2131
|
parameter_value: typing.Optional[builtins.str] = None,
|
|
2043
2132
|
) -> None:
|
|
2044
|
-
'''
|
|
2045
|
-
|
|
2046
|
-
:param
|
|
2047
|
-
:param
|
|
2133
|
+
'''A map of dynamic extension parameter names to values to pass to associated extensions with ``PRE_START_DEPLOYMENT`` actions.
|
|
2134
|
+
|
|
2135
|
+
:param extension_reference: The ARN or ID of the extension for which you are inserting a dynamic parameter.
|
|
2136
|
+
:param parameter_name: The parameter name.
|
|
2137
|
+
:param parameter_value: The parameter value.
|
|
2048
2138
|
|
|
2049
2139
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appconfig-deployment-dynamicextensionparameters.html
|
|
2050
2140
|
:exampleMetadata: fixture=_generated
|
|
@@ -2076,7 +2166,8 @@ class CfnDeployment(
|
|
|
2076
2166
|
|
|
2077
2167
|
@builtins.property
|
|
2078
2168
|
def extension_reference(self) -> typing.Optional[builtins.str]:
|
|
2079
|
-
'''
|
|
2169
|
+
'''The ARN or ID of the extension for which you are inserting a dynamic parameter.
|
|
2170
|
+
|
|
2080
2171
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appconfig-deployment-dynamicextensionparameters.html#cfn-appconfig-deployment-dynamicextensionparameters-extensionreference
|
|
2081
2172
|
'''
|
|
2082
2173
|
result = self._values.get("extension_reference")
|
|
@@ -2084,7 +2175,8 @@ class CfnDeployment(
|
|
|
2084
2175
|
|
|
2085
2176
|
@builtins.property
|
|
2086
2177
|
def parameter_name(self) -> typing.Optional[builtins.str]:
|
|
2087
|
-
'''
|
|
2178
|
+
'''The parameter name.
|
|
2179
|
+
|
|
2088
2180
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appconfig-deployment-dynamicextensionparameters.html#cfn-appconfig-deployment-dynamicextensionparameters-parametername
|
|
2089
2181
|
'''
|
|
2090
2182
|
result = self._values.get("parameter_name")
|
|
@@ -2092,7 +2184,8 @@ class CfnDeployment(
|
|
|
2092
2184
|
|
|
2093
2185
|
@builtins.property
|
|
2094
2186
|
def parameter_value(self) -> typing.Optional[builtins.str]:
|
|
2095
|
-
'''
|
|
2187
|
+
'''The parameter value.
|
|
2188
|
+
|
|
2096
2189
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appconfig-deployment-dynamicextensionparameters.html#cfn-appconfig-deployment-dynamicextensionparameters-parametervalue
|
|
2097
2190
|
'''
|
|
2098
2191
|
result = self._values.get("parameter_value")
|
|
@@ -2147,7 +2240,7 @@ class CfnDeploymentProps:
|
|
|
2147
2240
|
:param deployment_strategy_id: The deployment strategy ID.
|
|
2148
2241
|
:param environment_id: The environment ID.
|
|
2149
2242
|
:param description: A description of the deployment.
|
|
2150
|
-
:param dynamic_extension_parameters:
|
|
2243
|
+
:param dynamic_extension_parameters: A map of dynamic extension parameter names to values to pass to associated extensions with ``PRE_START_DEPLOYMENT`` actions.
|
|
2151
2244
|
:param kms_key_identifier: The AWS Key Management Service key identifier (key ID, key alias, or key ARN) provided when the resource was created or updated.
|
|
2152
2245
|
:param tags: Metadata to assign to the deployment. Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define.
|
|
2153
2246
|
|
|
@@ -2273,9 +2366,7 @@ class CfnDeploymentProps:
|
|
|
2273
2366
|
def dynamic_extension_parameters(
|
|
2274
2367
|
self,
|
|
2275
2368
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnDeployment.DynamicExtensionParametersProperty]]]]:
|
|
2276
|
-
'''
|
|
2277
|
-
|
|
2278
|
-
You specify parameter values when you associate the extension to an AWS AppConfig resource by using the ``CreateExtensionAssociation`` API action. For AWS Lambda extension actions, these parameters are included in the Lambda request object.
|
|
2369
|
+
'''A map of dynamic extension parameter names to values to pass to associated extensions with ``PRE_START_DEPLOYMENT`` actions.
|
|
2279
2370
|
|
|
2280
2371
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appconfig-deployment.html#cfn-appconfig-deployment-dynamicextensionparameters
|
|
2281
2372
|
'''
|
|
@@ -2329,7 +2420,7 @@ class CfnDeploymentStrategy(
|
|
|
2329
2420
|
- Create an application
|
|
2330
2421
|
- Create an environment
|
|
2331
2422
|
- Create a configuration profile
|
|
2332
|
-
-
|
|
2423
|
+
- Choose a pre-defined deployment strategy or create your own
|
|
2333
2424
|
- Deploy the configuration
|
|
2334
2425
|
|
|
2335
2426
|
For more information, see `AWS AppConfig <https://docs.aws.amazon.com/appconfig/latest/userguide/what-is-appconfig.html>`_ in the *AWS AppConfig User Guide* .
|
|
@@ -2437,7 +2528,8 @@ class CfnDeploymentStrategy(
|
|
|
2437
2528
|
@builtins.property
|
|
2438
2529
|
@jsii.member(jsii_name="attrId")
|
|
2439
2530
|
def attr_id(self) -> builtins.str:
|
|
2440
|
-
'''
|
|
2531
|
+
'''The deployment strategy ID.
|
|
2532
|
+
|
|
2441
2533
|
:cloudformationAttribute: Id
|
|
2442
2534
|
'''
|
|
2443
2535
|
return typing.cast(builtins.str, jsii.get(self, "attrId"))
|
|
@@ -2768,7 +2860,7 @@ class CfnEnvironment(
|
|
|
2768
2860
|
- Create an application
|
|
2769
2861
|
- Create an environment
|
|
2770
2862
|
- Create a configuration profile
|
|
2771
|
-
-
|
|
2863
|
+
- Choose a pre-defined deployment strategy or create your own
|
|
2772
2864
|
- Deploy the configuration
|
|
2773
2865
|
|
|
2774
2866
|
For more information, see `AWS AppConfig <https://docs.aws.amazon.com/appconfig/latest/userguide/what-is-appconfig.html>`_ in the *AWS AppConfig User Guide* .
|
|
@@ -3490,21 +3582,11 @@ class CfnExtension(
|
|
|
3490
3582
|
description: typing.Optional[builtins.str] = None,
|
|
3491
3583
|
role_arn: typing.Optional[builtins.str] = None,
|
|
3492
3584
|
) -> None:
|
|
3493
|
-
'''
|
|
3494
|
-
|
|
3495
|
-
Each action includes an action point such as ``ON_CREATE_HOSTED_CONFIGURATION`` , ``PRE_DEPLOYMENT`` , or ``ON_DEPLOYMENT`` . Each action also includes a name, a URI to an AWS Lambda function, and an Amazon Resource Name (ARN) for an AWS Identity and Access Management assume role. You specify the name, URI, and ARN for each *action point* defined in the extension. You can specify the following actions for an extension:
|
|
3496
|
-
|
|
3497
|
-
- ``PRE_CREATE_HOSTED_CONFIGURATION_VERSION``
|
|
3498
|
-
- ``PRE_START_DEPLOYMENT``
|
|
3499
|
-
- ``ON_DEPLOYMENT_START``
|
|
3500
|
-
- ``ON_DEPLOYMENT_STEP``
|
|
3501
|
-
- ``ON_DEPLOYMENT_BAKING``
|
|
3502
|
-
- ``ON_DEPLOYMENT_COMPLETE``
|
|
3503
|
-
- ``ON_DEPLOYMENT_ROLLED_BACK``
|
|
3585
|
+
'''The actions defined in the extension.
|
|
3504
3586
|
|
|
3505
3587
|
:param name: The action name.
|
|
3506
3588
|
:param uri: The extension URI associated to the action point in the extension definition. The URI can be an Amazon Resource Name (ARN) for one of the following: an AWS Lambda function, an Amazon Simple Queue Service queue, an Amazon Simple Notification Service topic, or the Amazon EventBridge default event bus.
|
|
3507
|
-
:param description: Information about the
|
|
3589
|
+
:param description: Information about actions defined in the extension.
|
|
3508
3590
|
:param role_arn: An Amazon Resource Name (ARN) for an AWS Identity and Access Management assume role.
|
|
3509
3591
|
|
|
3510
3592
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appconfig-extension-action.html
|
|
@@ -3564,7 +3646,7 @@ class CfnExtension(
|
|
|
3564
3646
|
|
|
3565
3647
|
@builtins.property
|
|
3566
3648
|
def description(self) -> typing.Optional[builtins.str]:
|
|
3567
|
-
'''Information about the
|
|
3649
|
+
'''Information about actions defined in the extension.
|
|
3568
3650
|
|
|
3569
3651
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appconfig-extension-action.html#cfn-appconfig-extension-action-description
|
|
3570
3652
|
'''
|
|
@@ -4591,13 +4673,15 @@ class ConfigurationContent(
|
|
|
4591
4673
|
|
|
4592
4674
|
Example::
|
|
4593
4675
|
|
|
4594
|
-
|
|
4595
|
-
|
|
4676
|
+
app = appconfig.Application(self, "MyApp")
|
|
4677
|
+
env = appconfig.Environment(self, "MyEnv",
|
|
4678
|
+
application=app
|
|
4679
|
+
)
|
|
4596
4680
|
|
|
4597
|
-
appconfig.HostedConfiguration(self, "
|
|
4598
|
-
application=
|
|
4599
|
-
|
|
4600
|
-
|
|
4681
|
+
appconfig.HostedConfiguration(self, "MyHostedConfig",
|
|
4682
|
+
application=app,
|
|
4683
|
+
deploy_to=[env],
|
|
4684
|
+
content=appconfig.ConfigurationContent.from_inline_text("This is my configuration content.")
|
|
4601
4685
|
)
|
|
4602
4686
|
'''
|
|
4603
4687
|
|
|
@@ -4743,7 +4827,7 @@ class ConfigurationOptions:
|
|
|
4743
4827
|
|
|
4744
4828
|
:param deployment_key: The deployment key of the configuration. Default: - None.
|
|
4745
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
|
|
4746
|
-
: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.
|
|
4747
4831
|
:param description: The description of the configuration. Default: - No description.
|
|
4748
4832
|
:param name: The name of the configuration. Default: - A name is generated.
|
|
4749
4833
|
:param type: The type of configuration. Default: ConfigurationType.FREEFORM
|
|
@@ -4824,7 +4908,10 @@ class ConfigurationOptions:
|
|
|
4824
4908
|
'''The list of environments to deploy the configuration to.
|
|
4825
4909
|
|
|
4826
4910
|
If this parameter is not specified, then there will be no
|
|
4827
|
-
deployment.
|
|
4911
|
+
deployment created alongside this configuration.
|
|
4912
|
+
|
|
4913
|
+
Deployments can be added later using the ``IEnvironment.addDeployment`` or
|
|
4914
|
+
``IEnvironment.addDeployments`` methods.
|
|
4828
4915
|
|
|
4829
4916
|
:default: - None.
|
|
4830
4917
|
'''
|
|
@@ -4910,7 +4997,7 @@ class ConfigurationProps(ConfigurationOptions):
|
|
|
4910
4997
|
|
|
4911
4998
|
:param deployment_key: The deployment key of the configuration. Default: - None.
|
|
4912
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
|
|
4913
|
-
: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.
|
|
4914
5001
|
:param description: The description of the configuration. Default: - No description.
|
|
4915
5002
|
:param name: The name of the configuration. Default: - A name is generated.
|
|
4916
5003
|
:param type: The type of configuration. Default: ConfigurationType.FREEFORM
|
|
@@ -4999,7 +5086,10 @@ class ConfigurationProps(ConfigurationOptions):
|
|
|
4999
5086
|
'''The list of environments to deploy the configuration to.
|
|
5000
5087
|
|
|
5001
5088
|
If this parameter is not specified, then there will be no
|
|
5002
|
-
deployment.
|
|
5089
|
+
deployment created alongside this configuration.
|
|
5090
|
+
|
|
5091
|
+
Deployments can be added later using the ``IEnvironment.addDeployment`` or
|
|
5092
|
+
``IEnvironment.addDeployments`` methods.
|
|
5003
5093
|
|
|
5004
5094
|
:default: - None.
|
|
5005
5095
|
'''
|
|
@@ -5686,10 +5776,16 @@ class EnvironmentProps(EnvironmentOptions):
|
|
|
5686
5776
|
application=app
|
|
5687
5777
|
)
|
|
5688
5778
|
|
|
5689
|
-
appconfig.HostedConfiguration(self, "
|
|
5779
|
+
appconfig.HostedConfiguration(self, "MyFirstHostedConfig",
|
|
5690
5780
|
application=app,
|
|
5691
5781
|
deploy_to=[env],
|
|
5692
|
-
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.")
|
|
5693
5789
|
)
|
|
5694
5790
|
'''
|
|
5695
5791
|
if __debug__:
|
|
@@ -6173,7 +6269,7 @@ class HostedConfigurationOptions(ConfigurationOptions):
|
|
|
6173
6269
|
|
|
6174
6270
|
:param deployment_key: The deployment key of the configuration. Default: - None.
|
|
6175
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
|
|
6176
|
-
: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.
|
|
6177
6273
|
:param description: The description of the configuration. Default: - No description.
|
|
6178
6274
|
:param name: The name of the configuration. Default: - A name is generated.
|
|
6179
6275
|
:param type: The type of configuration. Default: ConfigurationType.FREEFORM
|
|
@@ -6272,7 +6368,10 @@ class HostedConfigurationOptions(ConfigurationOptions):
|
|
|
6272
6368
|
'''The list of environments to deploy the configuration to.
|
|
6273
6369
|
|
|
6274
6370
|
If this parameter is not specified, then there will be no
|
|
6275
|
-
deployment.
|
|
6371
|
+
deployment created alongside this configuration.
|
|
6372
|
+
|
|
6373
|
+
Deployments can be added later using the ``IEnvironment.addDeployment`` or
|
|
6374
|
+
``IEnvironment.addDeployments`` methods.
|
|
6276
6375
|
|
|
6277
6376
|
:default: - None.
|
|
6278
6377
|
'''
|
|
@@ -6389,7 +6488,7 @@ class HostedConfigurationProps(ConfigurationProps):
|
|
|
6389
6488
|
|
|
6390
6489
|
:param deployment_key: The deployment key of the configuration. Default: - None.
|
|
6391
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
|
|
6392
|
-
: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.
|
|
6393
6492
|
:param description: The description of the configuration. Default: - No description.
|
|
6394
6493
|
:param name: The name of the configuration. Default: - A name is generated.
|
|
6395
6494
|
:param type: The type of configuration. Default: ConfigurationType.FREEFORM
|
|
@@ -6403,13 +6502,15 @@ class HostedConfigurationProps(ConfigurationProps):
|
|
|
6403
6502
|
|
|
6404
6503
|
Example::
|
|
6405
6504
|
|
|
6406
|
-
|
|
6407
|
-
|
|
6505
|
+
app = appconfig.Application(self, "MyApp")
|
|
6506
|
+
env = appconfig.Environment(self, "MyEnv",
|
|
6507
|
+
application=app
|
|
6508
|
+
)
|
|
6408
6509
|
|
|
6409
|
-
appconfig.HostedConfiguration(self, "
|
|
6410
|
-
application=
|
|
6411
|
-
|
|
6412
|
-
|
|
6510
|
+
appconfig.HostedConfiguration(self, "MyHostedConfig",
|
|
6511
|
+
application=app,
|
|
6512
|
+
deploy_to=[env],
|
|
6513
|
+
content=appconfig.ConfigurationContent.from_inline_text("This is my configuration content.")
|
|
6413
6514
|
)
|
|
6414
6515
|
'''
|
|
6415
6516
|
if __debug__:
|
|
@@ -6474,7 +6575,10 @@ class HostedConfigurationProps(ConfigurationProps):
|
|
|
6474
6575
|
'''The list of environments to deploy the configuration to.
|
|
6475
6576
|
|
|
6476
6577
|
If this parameter is not specified, then there will be no
|
|
6477
|
-
deployment.
|
|
6578
|
+
deployment created alongside this configuration.
|
|
6579
|
+
|
|
6580
|
+
Deployments can be added later using the ``IEnvironment.addDeployment`` or
|
|
6581
|
+
``IEnvironment.addDeployments`` methods.
|
|
6478
6582
|
|
|
6479
6583
|
:default: - None.
|
|
6480
6584
|
'''
|
|
@@ -6651,7 +6755,7 @@ class IApplication(_IResource_c80c4260, typing_extensions.Protocol):
|
|
|
6651
6755
|
:param version_label: The version label of the hosted configuration. Default: - None.
|
|
6652
6756
|
:param deployment_key: The deployment key of the configuration. Default: - None.
|
|
6653
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
|
|
6654
|
-
: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.
|
|
6655
6759
|
:param description: The description of the configuration. Default: - No description.
|
|
6656
6760
|
:param name: The name of the configuration. Default: - A name is generated.
|
|
6657
6761
|
:param type: The type of configuration. Default: ConfigurationType.FREEFORM
|
|
@@ -6683,7 +6787,7 @@ class IApplication(_IResource_c80c4260, typing_extensions.Protocol):
|
|
|
6683
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.
|
|
6684
6788
|
:param deployment_key: The deployment key of the configuration. Default: - None.
|
|
6685
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
|
|
6686
|
-
: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.
|
|
6687
6791
|
:param description: The description of the configuration. Default: - No description.
|
|
6688
6792
|
:param name: The name of the configuration. Default: - A name is generated.
|
|
6689
6793
|
:param type: The type of configuration. Default: ConfigurationType.FREEFORM
|
|
@@ -6967,7 +7071,7 @@ class _IApplicationProxy(
|
|
|
6967
7071
|
:param version_label: The version label of the hosted configuration. Default: - None.
|
|
6968
7072
|
:param deployment_key: The deployment key of the configuration. Default: - None.
|
|
6969
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
|
|
6970
|
-
: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.
|
|
6971
7075
|
:param description: The description of the configuration. Default: - No description.
|
|
6972
7076
|
:param name: The name of the configuration. Default: - A name is generated.
|
|
6973
7077
|
:param type: The type of configuration. Default: ConfigurationType.FREEFORM
|
|
@@ -7015,7 +7119,7 @@ class _IApplicationProxy(
|
|
|
7015
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.
|
|
7016
7120
|
:param deployment_key: The deployment key of the configuration. Default: - None.
|
|
7017
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
|
|
7018
|
-
: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.
|
|
7019
7123
|
:param description: The description of the configuration. Default: - No description.
|
|
7020
7124
|
:param name: The name of the configuration. Default: - A name is generated.
|
|
7021
7125
|
:param type: The type of configuration. Default: ConfigurationType.FREEFORM
|
|
@@ -7593,6 +7697,28 @@ class IEnvironment(_IResource_c80c4260, typing_extensions.Protocol):
|
|
|
7593
7697
|
'''The name of the environment.'''
|
|
7594
7698
|
...
|
|
7595
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
|
+
|
|
7596
7722
|
@jsii.member(jsii_name="addExtension")
|
|
7597
7723
|
def add_extension(self, extension: "IExtension") -> None:
|
|
7598
7724
|
'''Adds an extension association to the environment.
|
|
@@ -7817,6 +7943,34 @@ class _IEnvironmentProxy(
|
|
|
7817
7943
|
'''The name of the environment.'''
|
|
7818
7944
|
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "name"))
|
|
7819
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
|
+
|
|
7820
7974
|
@jsii.member(jsii_name="addExtension")
|
|
7821
7975
|
def add_extension(self, extension: "IExtension") -> None:
|
|
7822
7976
|
'''Adds an extension association to the environment.
|
|
@@ -9557,7 +9711,7 @@ class SourcedConfiguration(
|
|
|
9557
9711
|
:param application: The application associated with the configuration.
|
|
9558
9712
|
:param deployment_key: The deployment key of the configuration. Default: - None.
|
|
9559
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
|
|
9560
|
-
: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.
|
|
9561
9715
|
:param description: The description of the configuration. Default: - No description.
|
|
9562
9716
|
:param name: The name of the configuration. Default: - A name is generated.
|
|
9563
9717
|
:param type: The type of configuration. Default: ConfigurationType.FREEFORM
|
|
@@ -9994,7 +10148,7 @@ class SourcedConfigurationOptions(ConfigurationOptions):
|
|
|
9994
10148
|
|
|
9995
10149
|
:param deployment_key: The deployment key of the configuration. Default: - None.
|
|
9996
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
|
|
9997
|
-
: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.
|
|
9998
10152
|
:param description: The description of the configuration. Default: - No description.
|
|
9999
10153
|
:param name: The name of the configuration. Default: - A name is generated.
|
|
10000
10154
|
:param type: The type of configuration. Default: ConfigurationType.FREEFORM
|
|
@@ -10095,7 +10249,10 @@ class SourcedConfigurationOptions(ConfigurationOptions):
|
|
|
10095
10249
|
'''The list of environments to deploy the configuration to.
|
|
10096
10250
|
|
|
10097
10251
|
If this parameter is not specified, then there will be no
|
|
10098
|
-
deployment.
|
|
10252
|
+
deployment created alongside this configuration.
|
|
10253
|
+
|
|
10254
|
+
Deployments can be added later using the ``IEnvironment.addDeployment`` or
|
|
10255
|
+
``IEnvironment.addDeployments`` methods.
|
|
10099
10256
|
|
|
10100
10257
|
:default: - None.
|
|
10101
10258
|
'''
|
|
@@ -10215,7 +10372,7 @@ class SourcedConfigurationProps(ConfigurationProps):
|
|
|
10215
10372
|
|
|
10216
10373
|
:param deployment_key: The deployment key of the configuration. Default: - None.
|
|
10217
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
|
|
10218
|
-
: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.
|
|
10219
10376
|
:param description: The description of the configuration. Default: - No description.
|
|
10220
10377
|
:param name: The name of the configuration. Default: - A name is generated.
|
|
10221
10378
|
:param type: The type of configuration. Default: ConfigurationType.FREEFORM
|
|
@@ -10303,7 +10460,10 @@ class SourcedConfigurationProps(ConfigurationProps):
|
|
|
10303
10460
|
'''The list of environments to deploy the configuration to.
|
|
10304
10461
|
|
|
10305
10462
|
If this parameter is not specified, then there will be no
|
|
10306
|
-
deployment.
|
|
10463
|
+
deployment created alongside this configuration.
|
|
10464
|
+
|
|
10465
|
+
Deployments can be added later using the ``IEnvironment.addDeployment`` or
|
|
10466
|
+
``IEnvironment.addDeployments`` methods.
|
|
10307
10467
|
|
|
10308
10468
|
:default: - None.
|
|
10309
10469
|
'''
|
|
@@ -10652,7 +10812,7 @@ class Application(
|
|
|
10652
10812
|
:param version_label: The version label of the hosted configuration. Default: - None.
|
|
10653
10813
|
:param deployment_key: The deployment key of the configuration. Default: - None.
|
|
10654
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
|
|
10655
|
-
: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.
|
|
10656
10816
|
:param description: The description of the configuration. Default: - No description.
|
|
10657
10817
|
:param name: The name of the configuration. Default: - A name is generated.
|
|
10658
10818
|
:param type: The type of configuration. Default: ConfigurationType.FREEFORM
|
|
@@ -10700,7 +10860,7 @@ class Application(
|
|
|
10700
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.
|
|
10701
10861
|
:param deployment_key: The deployment key of the configuration. Default: - None.
|
|
10702
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
|
|
10703
|
-
: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.
|
|
10704
10864
|
:param description: The description of the configuration. Default: - No description.
|
|
10705
10865
|
:param name: The name of the configuration. Default: - A name is generated.
|
|
10706
10866
|
:param type: The type of configuration. Default: ConfigurationType.FREEFORM
|
|
@@ -11179,10 +11339,16 @@ class Environment(
|
|
|
11179
11339
|
application=app
|
|
11180
11340
|
)
|
|
11181
11341
|
|
|
11182
|
-
appconfig.HostedConfiguration(self, "
|
|
11342
|
+
appconfig.HostedConfiguration(self, "MyFirstHostedConfig",
|
|
11183
11343
|
application=app,
|
|
11184
11344
|
deploy_to=[env],
|
|
11185
|
-
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.")
|
|
11186
11352
|
)
|
|
11187
11353
|
'''
|
|
11188
11354
|
|
|
@@ -11275,6 +11441,34 @@ class Environment(
|
|
|
11275
11441
|
|
|
11276
11442
|
return typing.cast(IEnvironment, jsii.sinvoke(cls, "fromEnvironmentAttributes", [scope, id, attrs]))
|
|
11277
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
|
+
|
|
11278
11472
|
@jsii.member(jsii_name="addExtension")
|
|
11279
11473
|
def add_extension(self, extension: IExtension) -> None:
|
|
11280
11474
|
'''Adds an extension association to the environment.
|
|
@@ -11577,6 +11771,18 @@ class Environment(
|
|
|
11577
11771
|
'''The name of the environment.'''
|
|
11578
11772
|
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "name"))
|
|
11579
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
|
+
|
|
11580
11786
|
@builtins.property
|
|
11581
11787
|
@jsii.member(jsii_name="extensible")
|
|
11582
11788
|
def _extensible(self) -> "ExtensibleBase":
|
|
@@ -12123,13 +12329,15 @@ class HostedConfiguration(
|
|
|
12123
12329
|
|
|
12124
12330
|
Example::
|
|
12125
12331
|
|
|
12126
|
-
|
|
12127
|
-
|
|
12332
|
+
app = appconfig.Application(self, "MyApp")
|
|
12333
|
+
env = appconfig.Environment(self, "MyEnv",
|
|
12334
|
+
application=app
|
|
12335
|
+
)
|
|
12128
12336
|
|
|
12129
|
-
appconfig.HostedConfiguration(self, "
|
|
12130
|
-
application=
|
|
12131
|
-
|
|
12132
|
-
|
|
12337
|
+
appconfig.HostedConfiguration(self, "MyHostedConfig",
|
|
12338
|
+
application=app,
|
|
12339
|
+
deploy_to=[env],
|
|
12340
|
+
content=appconfig.ConfigurationContent.from_inline_text("This is my configuration content.")
|
|
12133
12341
|
)
|
|
12134
12342
|
'''
|
|
12135
12343
|
|
|
@@ -12159,7 +12367,7 @@ class HostedConfiguration(
|
|
|
12159
12367
|
:param application: The application associated with the configuration.
|
|
12160
12368
|
:param deployment_key: The deployment key of the configuration. Default: - None.
|
|
12161
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
|
|
12162
|
-
: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.
|
|
12163
12371
|
:param description: The description of the configuration. Default: - No description.
|
|
12164
12372
|
:param name: The name of the configuration. Default: - A name is generated.
|
|
12165
12373
|
:param type: The type of configuration. Default: ConfigurationType.FREEFORM
|
|
@@ -13686,6 +13894,18 @@ def _typecheckingstub__6e94c708c7603af848bf6e13c31c0fc2a81ad1aa833b38ab455b5a4db
|
|
|
13686
13894
|
"""Type checking stubs"""
|
|
13687
13895
|
pass
|
|
13688
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
|
+
|
|
13689
13909
|
def _typecheckingstub__21f3fd9d8706d2da33872e0f177690ef7904e1a5bffb8f09838105674dab79cf(
|
|
13690
13910
|
extension: IExtension,
|
|
13691
13911
|
) -> None:
|
|
@@ -14353,6 +14573,18 @@ def _typecheckingstub__5d0acdd2bc2062b1e3a3bcead8b9d2670bef03c315b3aa44522a20995
|
|
|
14353
14573
|
"""Type checking stubs"""
|
|
14354
14574
|
pass
|
|
14355
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
|
+
|
|
14356
14588
|
def _typecheckingstub__46eeb9c815b4c9f3f9ff6e64ae0bba20fa3057be7b74747b611ea672668a95cf(
|
|
14357
14589
|
extension: IExtension,
|
|
14358
14590
|
) -> None:
|
|
@@ -14448,6 +14680,12 @@ def _typecheckingstub__22ccb2ca13f7df2815220f1d2cdda0fb9d20c17ac1fafb9dcc5006455
|
|
|
14448
14680
|
"""Type checking stubs"""
|
|
14449
14681
|
pass
|
|
14450
14682
|
|
|
14683
|
+
def _typecheckingstub__bd39d7b7b77c944582e5f7fabeb3e37717eaa470540d764633f9ce909058030a(
|
|
14684
|
+
value: typing.List[CfnDeployment],
|
|
14685
|
+
) -> None:
|
|
14686
|
+
"""Type checking stubs"""
|
|
14687
|
+
pass
|
|
14688
|
+
|
|
14451
14689
|
def _typecheckingstub__f249899e37c9153afa9dc39542328ce1c247c1f209ac134fb2bc8a4ad1120946(
|
|
14452
14690
|
value: ExtensibleBase,
|
|
14453
14691
|
) -> None:
|