aws-cdk-lib 2.129.0__py3-none-any.whl → 2.131.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 (75) hide show
  1. aws_cdk/__init__.py +41 -21
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.129.0.jsii.tgz → aws-cdk-lib@2.131.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_apigatewayv2/__init__.py +52 -11
  5. aws_cdk/aws_apigatewayv2_integrations/__init__.py +286 -0
  6. aws_cdk/aws_appconfig/__init__.py +13062 -2713
  7. aws_cdk/aws_applicationautoscaling/__init__.py +80 -123
  8. aws_cdk/aws_applicationinsights/__init__.py +48 -0
  9. aws_cdk/aws_apprunner/__init__.py +8 -1
  10. aws_cdk/aws_appstream/__init__.py +8 -1
  11. aws_cdk/aws_appsync/__init__.py +324 -103
  12. aws_cdk/aws_athena/__init__.py +8 -1
  13. aws_cdk/aws_b2bi/__init__.py +30 -4
  14. aws_cdk/aws_backup/__init__.py +80 -56
  15. aws_cdk/aws_bedrock/__init__.py +13 -1
  16. aws_cdk/aws_cleanrooms/__init__.py +37 -5
  17. aws_cdk/aws_cloudtrail/__init__.py +23 -1
  18. aws_cdk/aws_codebuild/__init__.py +8 -1
  19. aws_cdk/aws_codestarconnections/__init__.py +8 -1
  20. aws_cdk/aws_cognito/__init__.py +21 -21
  21. aws_cdk/aws_comprehend/__init__.py +8 -1
  22. aws_cdk/aws_connect/__init__.py +57 -8
  23. aws_cdk/aws_controltower/__init__.py +27 -7
  24. aws_cdk/aws_customerprofiles/__init__.py +136 -123
  25. aws_cdk/aws_datapipeline/__init__.py +19 -11
  26. aws_cdk/aws_datasync/__init__.py +8 -1
  27. aws_cdk/aws_datazone/__init__.py +9 -1
  28. aws_cdk/aws_dms/__init__.py +29 -4
  29. aws_cdk/aws_docdb/__init__.py +131 -5
  30. aws_cdk/aws_ec2/__init__.py +178 -65
  31. aws_cdk/aws_ecs/__init__.py +43 -51
  32. aws_cdk/aws_ecs_patterns/__init__.py +214 -0
  33. aws_cdk/aws_eks/__init__.py +44 -3
  34. aws_cdk/aws_elasticache/__init__.py +8 -1
  35. aws_cdk/aws_elasticloadbalancingv2/__init__.py +8 -1
  36. aws_cdk/aws_emr/__init__.py +8 -1
  37. aws_cdk/aws_entityresolution/__init__.py +23 -3
  38. aws_cdk/aws_events/__init__.py +12 -1
  39. aws_cdk/aws_fms/__init__.py +8 -1
  40. aws_cdk/aws_glue/__init__.py +18 -4
  41. aws_cdk/aws_healthimaging/__init__.py +9 -1
  42. aws_cdk/aws_inspectorv2/__init__.py +9 -1
  43. aws_cdk/aws_iot/__init__.py +29 -4
  44. aws_cdk/aws_ivs/__init__.py +8 -1
  45. aws_cdk/aws_kms/__init__.py +1 -1
  46. aws_cdk/aws_lambda/__init__.py +3 -5
  47. aws_cdk/aws_location/__init__.py +44 -6
  48. aws_cdk/aws_logs/__init__.py +22 -3
  49. aws_cdk/aws_macie/__init__.py +15 -2
  50. aws_cdk/aws_medialive/__init__.py +8 -1
  51. aws_cdk/aws_mediapackagev2/__init__.py +23 -3
  52. aws_cdk/aws_mediatailor/__init__.py +29 -4
  53. aws_cdk/aws_msk/__init__.py +8 -1
  54. aws_cdk/aws_neptunegraph/__init__.py +9 -1
  55. aws_cdk/aws_networkfirewall/__init__.py +8 -1
  56. aws_cdk/aws_opensearchservice/__init__.py +6 -3
  57. aws_cdk/aws_pcaconnectorad/__init__.py +23 -3
  58. aws_cdk/aws_pinpointemail/__init__.py +23 -3
  59. aws_cdk/aws_quicksight/__init__.py +37 -0
  60. aws_cdk/aws_rds/__init__.py +52 -9
  61. aws_cdk/aws_route53resolver/__init__.py +8 -1
  62. aws_cdk/aws_s3/__init__.py +29 -4
  63. aws_cdk/aws_sagemaker/__init__.py +19 -8
  64. aws_cdk/aws_securityhub/__init__.py +8 -1
  65. aws_cdk/aws_shield/__init__.py +16 -2
  66. aws_cdk/aws_workspacesthinclient/__init__.py +9 -1
  67. aws_cdk/aws_workspacesweb/__init__.py +51 -7
  68. aws_cdk/aws_xray/__init__.py +16 -2
  69. aws_cdk/pipelines/__init__.py +3 -2
  70. {aws_cdk_lib-2.129.0.dist-info → aws_cdk_lib-2.131.0.dist-info}/METADATA +1 -1
  71. {aws_cdk_lib-2.129.0.dist-info → aws_cdk_lib-2.131.0.dist-info}/NOTICE +30 -0
  72. {aws_cdk_lib-2.129.0.dist-info → aws_cdk_lib-2.131.0.dist-info}/RECORD +75 -75
  73. {aws_cdk_lib-2.129.0.dist-info → aws_cdk_lib-2.131.0.dist-info}/LICENSE +0 -0
  74. {aws_cdk_lib-2.129.0.dist-info → aws_cdk_lib-2.131.0.dist-info}/WHEEL +0 -0
  75. {aws_cdk_lib-2.129.0.dist-info → aws_cdk_lib-2.131.0.dist-info}/top_level.txt +0 -0
@@ -240,6 +240,23 @@ shards_scalable_target.scale_to_track_metric("ElastiCacheRedisShardsCPUUtilizati
240
240
  predefined_metric=appscaling.PredefinedMetric.ELASTICACHE_PRIMARY_ENGINE_CPU_UTILIZATION
241
241
  )
242
242
  ```
243
+
244
+ ### SageMaker variant provisioned concurrency utilization with target value
245
+
246
+ ```python
247
+ target = appscaling.ScalableTarget(self, "SageMakerVariantScalableTarget",
248
+ service_namespace=appscaling.ServiceNamespace.SAGEMAKER,
249
+ scalable_dimension="sagemaker:variant:DesiredProvisionedConcurrency",
250
+ min_capacity=2,
251
+ max_capacity=10,
252
+ resource_id="endpoint/MyEndpoint/variant/MyVariant"
253
+ )
254
+
255
+ target.scale_to_track_metric("SageMakerVariantProvisionedConcurrencyUtilization",
256
+ target_value=0.9,
257
+ predefined_metric=appscaling.PredefinedMetric.SAGEMAKER_VARIANT_PROVISIONED_CONCURRENCY_UTILIZATION
258
+ )
259
+ ```
243
260
  '''
244
261
  import abc
245
262
  import builtins
@@ -964,32 +981,17 @@ class BasicTargetTrackingScalingPolicyProps(BaseTargetTrackingProps):
964
981
 
965
982
  Example::
966
983
 
967
- import aws_cdk.aws_lambda as lambda_
968
-
969
- # code: lambda.Code
970
-
971
-
972
- handler = lambda_.Function(self, "MyFunction",
973
- runtime=lambda_.Runtime.PYTHON_3_12,
974
- handler="index.handler",
975
- code=code,
976
-
977
- reserved_concurrent_executions=2
984
+ shards_scalable_target = appscaling.ScalableTarget(self, "ElastiCacheRedisShardsScalableTarget",
985
+ service_namespace=appscaling.ServiceNamespace.ELASTICACHE,
986
+ scalable_dimension="elasticache:replication-group:NodeGroups",
987
+ min_capacity=2,
988
+ max_capacity=10,
989
+ resource_id="replication-group/main-cluster"
978
990
  )
979
991
 
980
- fn_ver = handler.current_version
981
-
982
- target = appscaling.ScalableTarget(self, "ScalableTarget",
983
- service_namespace=appscaling.ServiceNamespace.LAMBDA,
984
- max_capacity=100,
985
- min_capacity=10,
986
- resource_id=f"function:{handler.functionName}:{fnVer.version}",
987
- scalable_dimension="lambda:function:ProvisionedConcurrency"
988
- )
989
-
990
- target.scale_to_track_metric("PceTracking",
991
- target_value=0.9,
992
- predefined_metric=appscaling.PredefinedMetric.LAMBDA_PROVISIONED_CONCURRENCY_UTILIZATION
992
+ shards_scalable_target.scale_to_track_metric("ElastiCacheRedisShardsCPUUtilization",
993
+ target_value=20,
994
+ predefined_metric=appscaling.PredefinedMetric.ELASTICACHE_PRIMARY_ENGINE_CPU_UTILIZATION
993
995
  )
994
996
  '''
995
997
  if __debug__:
@@ -4074,32 +4076,17 @@ class PredefinedMetric(enum.Enum):
4074
4076
 
4075
4077
  Example::
4076
4078
 
4077
- import aws_cdk.aws_lambda as lambda_
4078
-
4079
- # code: lambda.Code
4080
-
4081
-
4082
- handler = lambda_.Function(self, "MyFunction",
4083
- runtime=lambda_.Runtime.PYTHON_3_12,
4084
- handler="index.handler",
4085
- code=code,
4086
-
4087
- reserved_concurrent_executions=2
4079
+ shards_scalable_target = appscaling.ScalableTarget(self, "ElastiCacheRedisShardsScalableTarget",
4080
+ service_namespace=appscaling.ServiceNamespace.ELASTICACHE,
4081
+ scalable_dimension="elasticache:replication-group:NodeGroups",
4082
+ min_capacity=2,
4083
+ max_capacity=10,
4084
+ resource_id="replication-group/main-cluster"
4088
4085
  )
4089
4086
 
4090
- fn_ver = handler.current_version
4091
-
4092
- target = appscaling.ScalableTarget(self, "ScalableTarget",
4093
- service_namespace=appscaling.ServiceNamespace.LAMBDA,
4094
- max_capacity=100,
4095
- min_capacity=10,
4096
- resource_id=f"function:{handler.functionName}:{fnVer.version}",
4097
- scalable_dimension="lambda:function:ProvisionedConcurrency"
4098
- )
4099
-
4100
- target.scale_to_track_metric("PceTracking",
4101
- target_value=0.9,
4102
- predefined_metric=appscaling.PredefinedMetric.LAMBDA_PROVISIONED_CONCURRENCY_UTILIZATION
4087
+ shards_scalable_target.scale_to_track_metric("ElastiCacheRedisShardsCPUUtilization",
4088
+ target_value=20,
4089
+ predefined_metric=appscaling.PredefinedMetric.ELASTICACHE_PRIMARY_ENGINE_CPU_UTILIZATION
4103
4090
  )
4104
4091
  '''
4105
4092
 
@@ -4165,6 +4152,16 @@ class PredefinedMetric(enum.Enum):
4165
4152
  SAGEMAKER_VARIANT_INVOCATIONS_PER_INSTANCE = "SAGEMAKER_VARIANT_INVOCATIONS_PER_INSTANCE"
4166
4153
  '''SAGEMAKER_VARIANT_INVOCATIONS_PER_INSTANCE.
4167
4154
 
4155
+ :see: https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html
4156
+ '''
4157
+ SAGEMAKER_VARIANT_PROVISIONED_CONCURRENCY_UTILIZATION = "SAGEMAKER_VARIANT_PROVISIONED_CONCURRENCY_UTILIZATION"
4158
+ '''SAGEMAKER_VARIANT_PROVISIONED_CONCURRENCY_UTILIZATION.
4159
+
4160
+ :see: https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html
4161
+ '''
4162
+ SAGEMAKER_INFERENCE_COMPONENT_INVOCATIONS_PER_COPY = "SAGEMAKER_INFERENCE_COMPONENT_INVOCATIONS_PER_COPY"
4163
+ '''SAGEMAKER_INFERENCE_COMPONENT_INVOCATIONS_PER_COPY.
4164
+
4168
4165
  :see: https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html
4169
4166
  '''
4170
4167
  ECS_SERVICE_AVERAGE_CPU_UTILIZATION = "ECS_SERVICE_AVERAGE_CPU_UTILIZATION"
@@ -4188,17 +4185,22 @@ class PredefinedMetric(enum.Enum):
4188
4185
  :see: https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html
4189
4186
  '''
4190
4187
  ELASTICACHE_PRIMARY_ENGINE_CPU_UTILIZATION = "ELASTICACHE_PRIMARY_ENGINE_CPU_UTILIZATION"
4191
- '''ELASTIC_CACHE_PRIMARY_ENGINE_CPU_UTILIZATION.
4188
+ '''ELASTICACHE_PRIMARY_ENGINE_CPU_UTILIZATION.
4192
4189
 
4193
4190
  :see: https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html
4194
4191
  '''
4195
4192
  ELASTICACHE_REPLICA_ENGINE_CPU_UTILIZATION = "ELASTICACHE_REPLICA_ENGINE_CPU_UTILIZATION"
4196
- '''ELASTIC_CACHE_REPLICA_ENGINE_CPU_UTILIZATION.
4193
+ '''ELASTICACHE_REPLICA_ENGINE_CPU_UTILIZATION.
4197
4194
 
4198
4195
  :see: https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html
4199
4196
  '''
4200
4197
  ELASTICACHE_DATABASE_MEMORY_USAGE_COUNTED_FOR_EVICT_PERCENTAGE = "ELASTICACHE_DATABASE_MEMORY_USAGE_COUNTED_FOR_EVICT_PERCENTAGE"
4201
- '''ELASTIC_CACHE_REPLICA_ENGINE_CPU_UTILIZATION.
4198
+ '''ELASTICACHE_DATABASE_MEMORY_USAGE_COUNTED_FOR_EVICT_PERCENTAGE.
4199
+
4200
+ :see: https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html
4201
+ '''
4202
+ ELASTICACHE_DATABASE_CAPACITY_USAGE_COUNTED_FOR_EVICT_PERCENTAGE = "ELASTICACHE_DATABASE_CAPACITY_USAGE_COUNTED_FOR_EVICT_PERCENTAGE"
4203
+ '''ELASTICACHE_DATABASE_CAPACITY_USAGE_COUNTED_FOR_EVICT_PERCENTAGE.
4202
4204
 
4203
4205
  :see: https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html
4204
4206
  '''
@@ -4216,32 +4218,17 @@ class ScalableTarget(
4216
4218
 
4217
4219
  Example::
4218
4220
 
4219
- import aws_cdk.aws_lambda as lambda_
4220
-
4221
- # code: lambda.Code
4222
-
4223
-
4224
- handler = lambda_.Function(self, "MyFunction",
4225
- runtime=lambda_.Runtime.PYTHON_3_12,
4226
- handler="index.handler",
4227
- code=code,
4228
-
4229
- reserved_concurrent_executions=2
4221
+ shards_scalable_target = appscaling.ScalableTarget(self, "ElastiCacheRedisShardsScalableTarget",
4222
+ service_namespace=appscaling.ServiceNamespace.ELASTICACHE,
4223
+ scalable_dimension="elasticache:replication-group:NodeGroups",
4224
+ min_capacity=2,
4225
+ max_capacity=10,
4226
+ resource_id="replication-group/main-cluster"
4230
4227
  )
4231
4228
 
4232
- fn_ver = handler.current_version
4233
-
4234
- target = appscaling.ScalableTarget(self, "ScalableTarget",
4235
- service_namespace=appscaling.ServiceNamespace.LAMBDA,
4236
- max_capacity=100,
4237
- min_capacity=10,
4238
- resource_id=f"function:{handler.functionName}:{fnVer.version}",
4239
- scalable_dimension="lambda:function:ProvisionedConcurrency"
4240
- )
4241
-
4242
- target.scale_to_track_metric("PceTracking",
4243
- target_value=0.9,
4244
- predefined_metric=appscaling.PredefinedMetric.LAMBDA_PROVISIONED_CONCURRENCY_UTILIZATION
4229
+ shards_scalable_target.scale_to_track_metric("ElastiCacheRedisShardsCPUUtilization",
4230
+ target_value=20,
4231
+ predefined_metric=appscaling.PredefinedMetric.ELASTICACHE_PRIMARY_ENGINE_CPU_UTILIZATION
4245
4232
  )
4246
4233
  '''
4247
4234
 
@@ -4487,32 +4474,17 @@ class ScalableTargetProps:
4487
4474
 
4488
4475
  Example::
4489
4476
 
4490
- import aws_cdk.aws_lambda as lambda_
4491
-
4492
- # code: lambda.Code
4493
-
4494
-
4495
- handler = lambda_.Function(self, "MyFunction",
4496
- runtime=lambda_.Runtime.PYTHON_3_12,
4497
- handler="index.handler",
4498
- code=code,
4499
-
4500
- reserved_concurrent_executions=2
4477
+ shards_scalable_target = appscaling.ScalableTarget(self, "ElastiCacheRedisShardsScalableTarget",
4478
+ service_namespace=appscaling.ServiceNamespace.ELASTICACHE,
4479
+ scalable_dimension="elasticache:replication-group:NodeGroups",
4480
+ min_capacity=2,
4481
+ max_capacity=10,
4482
+ resource_id="replication-group/main-cluster"
4501
4483
  )
4502
4484
 
4503
- fn_ver = handler.current_version
4504
-
4505
- target = appscaling.ScalableTarget(self, "ScalableTarget",
4506
- service_namespace=appscaling.ServiceNamespace.LAMBDA,
4507
- max_capacity=100,
4508
- min_capacity=10,
4509
- resource_id=f"function:{handler.functionName}:{fnVer.version}",
4510
- scalable_dimension="lambda:function:ProvisionedConcurrency"
4511
- )
4512
-
4513
- target.scale_to_track_metric("PceTracking",
4514
- target_value=0.9,
4515
- predefined_metric=appscaling.PredefinedMetric.LAMBDA_PROVISIONED_CONCURRENCY_UTILIZATION
4485
+ shards_scalable_target.scale_to_track_metric("ElastiCacheRedisShardsCPUUtilization",
4486
+ target_value=20,
4487
+ predefined_metric=appscaling.PredefinedMetric.ELASTICACHE_PRIMARY_ENGINE_CPU_UTILIZATION
4516
4488
  )
4517
4489
  '''
4518
4490
  if __debug__:
@@ -4997,32 +4969,17 @@ class ServiceNamespace(enum.Enum):
4997
4969
 
4998
4970
  Example::
4999
4971
 
5000
- import aws_cdk.aws_lambda as lambda_
5001
-
5002
- # code: lambda.Code
5003
-
5004
-
5005
- handler = lambda_.Function(self, "MyFunction",
5006
- runtime=lambda_.Runtime.PYTHON_3_12,
5007
- handler="index.handler",
5008
- code=code,
5009
-
5010
- reserved_concurrent_executions=2
5011
- )
5012
-
5013
- fn_ver = handler.current_version
5014
-
5015
- target = appscaling.ScalableTarget(self, "ScalableTarget",
5016
- service_namespace=appscaling.ServiceNamespace.LAMBDA,
5017
- max_capacity=100,
5018
- min_capacity=10,
5019
- resource_id=f"function:{handler.functionName}:{fnVer.version}",
5020
- scalable_dimension="lambda:function:ProvisionedConcurrency"
4972
+ shards_scalable_target = appscaling.ScalableTarget(self, "ElastiCacheRedisShardsScalableTarget",
4973
+ service_namespace=appscaling.ServiceNamespace.ELASTICACHE,
4974
+ scalable_dimension="elasticache:replication-group:NodeGroups",
4975
+ min_capacity=2,
4976
+ max_capacity=10,
4977
+ resource_id="replication-group/main-cluster"
5021
4978
  )
5022
4979
 
5023
- target.scale_to_track_metric("PceTracking",
5024
- target_value=0.9,
5025
- predefined_metric=appscaling.PredefinedMetric.LAMBDA_PROVISIONED_CONCURRENCY_UTILIZATION
4980
+ shards_scalable_target.scale_to_track_metric("ElastiCacheRedisShardsCPUUtilization",
4981
+ target_value=20,
4982
+ predefined_metric=appscaling.PredefinedMetric.ELASTICACHE_PRIMARY_ENGINE_CPU_UTILIZATION
5026
4983
  )
5027
4984
  '''
5028
4985
 
@@ -73,6 +73,7 @@ class CfnApplication(
73
73
  resource_group_name="resourceGroupName",
74
74
 
75
75
  # the properties below are optional
76
+ attach_missing_permission=False,
76
77
  auto_configuration_enabled=False,
77
78
  component_monitoring_settings=[applicationinsights.CfnApplication.ComponentMonitoringSettingProperty(
78
79
  component_configuration_mode="componentConfigurationMode",
@@ -255,6 +256,7 @@ class CfnApplication(
255
256
  id: builtins.str,
256
257
  *,
257
258
  resource_group_name: builtins.str,
259
+ attach_missing_permission: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
258
260
  auto_configuration_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
259
261
  component_monitoring_settings: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnApplication.ComponentMonitoringSettingProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
260
262
  custom_components: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnApplication.CustomComponentProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
@@ -269,6 +271,7 @@ class CfnApplication(
269
271
  :param scope: Scope in which this resource is defined.
270
272
  :param id: Construct identifier for this resource (unique in its scope).
271
273
  :param resource_group_name: The name of the resource group used for the application.
274
+ :param attach_missing_permission: If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.
272
275
  :param auto_configuration_enabled: If set to ``true`` , the application components will be configured with the monitoring configuration recommended by Application Insights.
273
276
  :param component_monitoring_settings: The monitoring settings of the components.
274
277
  :param custom_components: Describes a custom component by grouping similar standalone instances to monitor.
@@ -285,6 +288,7 @@ class CfnApplication(
285
288
  check_type(argname="argument id", value=id, expected_type=type_hints["id"])
286
289
  props = CfnApplicationProps(
287
290
  resource_group_name=resource_group_name,
291
+ attach_missing_permission=attach_missing_permission,
288
292
  auto_configuration_enabled=auto_configuration_enabled,
289
293
  component_monitoring_settings=component_monitoring_settings,
290
294
  custom_components=custom_components,
@@ -361,6 +365,24 @@ class CfnApplication(
361
365
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
362
366
  jsii.set(self, "resourceGroupName", value)
363
367
 
368
+ @builtins.property
369
+ @jsii.member(jsii_name="attachMissingPermission")
370
+ def attach_missing_permission(
371
+ self,
372
+ ) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
373
+ '''If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.'''
374
+ return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], jsii.get(self, "attachMissingPermission"))
375
+
376
+ @attach_missing_permission.setter
377
+ def attach_missing_permission(
378
+ self,
379
+ value: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]],
380
+ ) -> None:
381
+ if __debug__:
382
+ type_hints = typing.get_type_hints(_typecheckingstub__4aef364aded2cdbe349e8e55974301cc2fa82ac926c14d0946c016694102e2c2)
383
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
384
+ jsii.set(self, "attachMissingPermission", value)
385
+
364
386
  @builtins.property
365
387
  @jsii.member(jsii_name="autoConfigurationEnabled")
366
388
  def auto_configuration_enabled(
@@ -2290,6 +2312,7 @@ class CfnApplication(
2290
2312
  jsii_struct_bases=[],
2291
2313
  name_mapping={
2292
2314
  "resource_group_name": "resourceGroupName",
2315
+ "attach_missing_permission": "attachMissingPermission",
2293
2316
  "auto_configuration_enabled": "autoConfigurationEnabled",
2294
2317
  "component_monitoring_settings": "componentMonitoringSettings",
2295
2318
  "custom_components": "customComponents",
@@ -2306,6 +2329,7 @@ class CfnApplicationProps:
2306
2329
  self,
2307
2330
  *,
2308
2331
  resource_group_name: builtins.str,
2332
+ attach_missing_permission: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
2309
2333
  auto_configuration_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
2310
2334
  component_monitoring_settings: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnApplication.ComponentMonitoringSettingProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
2311
2335
  custom_components: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnApplication.CustomComponentProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
@@ -2319,6 +2343,7 @@ class CfnApplicationProps:
2319
2343
  '''Properties for defining a ``CfnApplication``.
2320
2344
 
2321
2345
  :param resource_group_name: The name of the resource group used for the application.
2346
+ :param attach_missing_permission: If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.
2322
2347
  :param auto_configuration_enabled: If set to ``true`` , the application components will be configured with the monitoring configuration recommended by Application Insights.
2323
2348
  :param component_monitoring_settings: The monitoring settings of the components.
2324
2349
  :param custom_components: Describes a custom component by grouping similar standalone instances to monitor.
@@ -2342,6 +2367,7 @@ class CfnApplicationProps:
2342
2367
  resource_group_name="resourceGroupName",
2343
2368
 
2344
2369
  # the properties below are optional
2370
+ attach_missing_permission=False,
2345
2371
  auto_configuration_enabled=False,
2346
2372
  component_monitoring_settings=[applicationinsights.CfnApplication.ComponentMonitoringSettingProperty(
2347
2373
  component_configuration_mode="componentConfigurationMode",
@@ -2520,6 +2546,7 @@ class CfnApplicationProps:
2520
2546
  if __debug__:
2521
2547
  type_hints = typing.get_type_hints(_typecheckingstub__8cffa09a5f66aca30b2e15034c06662c459b8bc4a4b3a9e705762d12485b64cc)
2522
2548
  check_type(argname="argument resource_group_name", value=resource_group_name, expected_type=type_hints["resource_group_name"])
2549
+ check_type(argname="argument attach_missing_permission", value=attach_missing_permission, expected_type=type_hints["attach_missing_permission"])
2523
2550
  check_type(argname="argument auto_configuration_enabled", value=auto_configuration_enabled, expected_type=type_hints["auto_configuration_enabled"])
2524
2551
  check_type(argname="argument component_monitoring_settings", value=component_monitoring_settings, expected_type=type_hints["component_monitoring_settings"])
2525
2552
  check_type(argname="argument custom_components", value=custom_components, expected_type=type_hints["custom_components"])
@@ -2532,6 +2559,8 @@ class CfnApplicationProps:
2532
2559
  self._values: typing.Dict[builtins.str, typing.Any] = {
2533
2560
  "resource_group_name": resource_group_name,
2534
2561
  }
2562
+ if attach_missing_permission is not None:
2563
+ self._values["attach_missing_permission"] = attach_missing_permission
2535
2564
  if auto_configuration_enabled is not None:
2536
2565
  self._values["auto_configuration_enabled"] = auto_configuration_enabled
2537
2566
  if component_monitoring_settings is not None:
@@ -2561,6 +2590,17 @@ class CfnApplicationProps:
2561
2590
  assert result is not None, "Required property 'resource_group_name' is missing"
2562
2591
  return typing.cast(builtins.str, result)
2563
2592
 
2593
+ @builtins.property
2594
+ def attach_missing_permission(
2595
+ self,
2596
+ ) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
2597
+ '''If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.
2598
+
2599
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationinsights-application.html#cfn-applicationinsights-application-attachmissingpermission
2600
+ '''
2601
+ result = self._values.get("attach_missing_permission")
2602
+ return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
2603
+
2564
2604
  @builtins.property
2565
2605
  def auto_configuration_enabled(
2566
2606
  self,
@@ -2680,6 +2720,7 @@ def _typecheckingstub__4243897a1b09da007f04bd9d10c5c58049449cf0c6e94f1290a6e466b
2680
2720
  id: builtins.str,
2681
2721
  *,
2682
2722
  resource_group_name: builtins.str,
2723
+ attach_missing_permission: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
2683
2724
  auto_configuration_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
2684
2725
  component_monitoring_settings: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnApplication.ComponentMonitoringSettingProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
2685
2726
  custom_components: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnApplication.CustomComponentProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
@@ -2711,6 +2752,12 @@ def _typecheckingstub__2ee9ee1a0f2d356c3be3daeb14a21f96499dff9c9b8275d16ae3d0cce
2711
2752
  """Type checking stubs"""
2712
2753
  pass
2713
2754
 
2755
+ def _typecheckingstub__4aef364aded2cdbe349e8e55974301cc2fa82ac926c14d0946c016694102e2c2(
2756
+ value: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]],
2757
+ ) -> None:
2758
+ """Type checking stubs"""
2759
+ pass
2760
+
2714
2761
  def _typecheckingstub__39427db0f519fa35b3fc1248a299d56faac8ae0db9d2a5713a7857038543feee(
2715
2762
  value: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]],
2716
2763
  ) -> None:
@@ -2906,6 +2953,7 @@ def _typecheckingstub__c8f686914af1e99a20ac67757008f34ae50702950aeb2221b096df374
2906
2953
  def _typecheckingstub__8cffa09a5f66aca30b2e15034c06662c459b8bc4a4b3a9e705762d12485b64cc(
2907
2954
  *,
2908
2955
  resource_group_name: builtins.str,
2956
+ attach_missing_permission: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
2909
2957
  auto_configuration_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
2910
2958
  component_monitoring_settings: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnApplication.ComponentMonitoringSettingProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
2911
2959
  custom_components: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnApplication.CustomComponentProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
@@ -51,12 +51,13 @@ from .. import (
51
51
  IInspectable as _IInspectable_c2943556,
52
52
  IResolvable as _IResolvable_da3f097b,
53
53
  ITaggable as _ITaggable_36806126,
54
+ ITaggableV2 as _ITaggableV2_4e6798f8,
54
55
  TagManager as _TagManager_0a598cb3,
55
56
  TreeInspector as _TreeInspector_488e0dd5,
56
57
  )
57
58
 
58
59
 
59
- @jsii.implements(_IInspectable_c2943556)
60
+ @jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
60
61
  class CfnAutoScalingConfiguration(
61
62
  _CfnResource_9df397a6,
62
63
  metaclass=jsii.JSIIMeta,
@@ -191,6 +192,12 @@ class CfnAutoScalingConfiguration(
191
192
  '''
192
193
  return typing.cast(_IResolvable_da3f097b, jsii.get(self, "attrLatest"))
193
194
 
195
+ @builtins.property
196
+ @jsii.member(jsii_name="cdkTagManager")
197
+ def cdk_tag_manager(self) -> _TagManager_0a598cb3:
198
+ '''Tag Manager which manages the tags for this resource.'''
199
+ return typing.cast(_TagManager_0a598cb3, jsii.get(self, "cdkTagManager"))
200
+
194
201
  @builtins.property
195
202
  @jsii.member(jsii_name="cfnProperties")
196
203
  def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
@@ -46,6 +46,7 @@ from .. import (
46
46
  IInspectable as _IInspectable_c2943556,
47
47
  IResolvable as _IResolvable_da3f097b,
48
48
  ITaggable as _ITaggable_36806126,
49
+ ITaggableV2 as _ITaggableV2_4e6798f8,
49
50
  TagManager as _TagManager_0a598cb3,
50
51
  TreeInspector as _TreeInspector_488e0dd5,
51
52
  )
@@ -529,7 +530,7 @@ class CfnAppBlock(
529
530
  )
530
531
 
531
532
 
532
- @jsii.implements(_IInspectable_c2943556)
533
+ @jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
533
534
  class CfnAppBlockBuilder(
534
535
  _CfnResource_9df397a6,
535
536
  metaclass=jsii.JSIIMeta,
@@ -673,6 +674,12 @@ class CfnAppBlockBuilder(
673
674
  '''
674
675
  return typing.cast(builtins.str, jsii.get(self, "attrCreatedTime"))
675
676
 
677
+ @builtins.property
678
+ @jsii.member(jsii_name="cdkTagManager")
679
+ def cdk_tag_manager(self) -> _TagManager_0a598cb3:
680
+ '''Tag Manager which manages the tags for this resource.'''
681
+ return typing.cast(_TagManager_0a598cb3, jsii.get(self, "cdkTagManager"))
682
+
676
683
  @builtins.property
677
684
  @jsii.member(jsii_name="cfnProperties")
678
685
  def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]: