aws-cdk-lib 2.95.0__py3-none-any.whl → 2.96.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 (42) hide show
  1. aws_cdk/__init__.py +38 -5
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.95.0.jsii.tgz → aws-cdk-lib@2.96.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_apigateway/__init__.py +4 -4
  5. aws_cdk/aws_backup/__init__.py +3 -3
  6. aws_cdk/aws_batch/__init__.py +15057 -385
  7. aws_cdk/aws_budgets/__init__.py +9 -4
  8. aws_cdk/aws_cloudformation/__init__.py +38 -5
  9. aws_cdk/aws_cloudtrail/__init__.py +25 -3
  10. aws_cdk/aws_codepipeline/__init__.py +2 -2
  11. aws_cdk/aws_codepipeline_actions/__init__.py +3 -3
  12. aws_cdk/aws_config/__init__.py +54 -13
  13. aws_cdk/aws_datasync/__init__.py +104 -45
  14. aws_cdk/aws_dms/__init__.py +3 -3
  15. aws_cdk/aws_dynamodb/__init__.py +2 -2
  16. aws_cdk/aws_ec2/__init__.py +12 -7
  17. aws_cdk/aws_ecs/__init__.py +55 -19
  18. aws_cdk/aws_elasticloadbalancingv2/__init__.py +3 -2
  19. aws_cdk/aws_events_targets/__init__.py +3 -3
  20. aws_cdk/aws_iam/__init__.py +8 -6
  21. aws_cdk/aws_internetmonitor/__init__.py +69 -30
  22. aws_cdk/aws_iotwireless/__init__.py +2 -4
  23. aws_cdk/aws_lambda/__init__.py +8 -8
  24. aws_cdk/aws_lambda_nodejs/__init__.py +1 -1
  25. aws_cdk/aws_managedblockchain/__init__.py +2 -3
  26. aws_cdk/aws_quicksight/__init__.py +185 -103
  27. aws_cdk/aws_rds/__init__.py +7 -7
  28. aws_cdk/aws_rolesanywhere/__init__.py +58 -74
  29. aws_cdk/aws_s3/__init__.py +1 -1
  30. aws_cdk/aws_securityhub/__init__.py +108 -42
  31. aws_cdk/aws_sns/__init__.py +5 -5
  32. aws_cdk/aws_stepfunctions/__init__.py +36 -25
  33. aws_cdk/aws_stepfunctions_tasks/__init__.py +13 -12
  34. aws_cdk/aws_transfer/__init__.py +9 -2
  35. aws_cdk/aws_wafv2/__init__.py +6 -6
  36. aws_cdk/pipelines/__init__.py +1 -1
  37. {aws_cdk_lib-2.95.0.dist-info → aws_cdk_lib-2.96.0.dist-info}/METADATA +1 -1
  38. {aws_cdk_lib-2.95.0.dist-info → aws_cdk_lib-2.96.0.dist-info}/RECORD +42 -42
  39. {aws_cdk_lib-2.95.0.dist-info → aws_cdk_lib-2.96.0.dist-info}/LICENSE +0 -0
  40. {aws_cdk_lib-2.95.0.dist-info → aws_cdk_lib-2.96.0.dist-info}/NOTICE +0 -0
  41. {aws_cdk_lib-2.95.0.dist-info → aws_cdk_lib-2.96.0.dist-info}/WHEEL +0 -0
  42. {aws_cdk_lib-2.95.0.dist-info → aws_cdk_lib-2.96.0.dist-info}/top_level.txt +0 -0
@@ -8879,7 +8879,7 @@ class CfnTargetGroup(
8879
8879
  ) -> None:
8880
8880
  '''Specifies a target group attribute.
8881
8881
 
8882
- :param key: The name of the attribute. The following attributes are supported by all load balancers: - ``deregistration_delay.timeout_seconds`` - The amount of time, in seconds, for Elastic Load Balancing to wait before changing the state of a deregistering target from ``draining`` to ``unused`` . The range is 0-3600 seconds. The default value is 300 seconds. If the target is a Lambda function, this attribute is not supported. - ``stickiness.enabled`` - Indicates whether target stickiness is enabled. The value is ``true`` or ``false`` . The default is ``false`` . - ``stickiness.type`` - Indicates the type of stickiness. The possible values are: - ``lb_cookie`` and ``app_cookie`` for Application Load Balancers. - ``source_ip`` for Network Load Balancers. - ``source_ip_dest_ip`` and ``source_ip_dest_ip_proto`` for Gateway Load Balancers. The following attributes are supported by Application Load Balancers and Network Load Balancers: - ``load_balancing.cross_zone.enabled`` - Indicates whether cross zone load balancing is enabled. The value is ``true`` , ``false`` or ``use_load_balancer_configuration`` . The default is ``use_load_balancer_configuration`` . - ``target_group_health.dns_failover.minimum_healthy_targets.count`` - The minimum number of targets that must be healthy. If the number of healthy targets is below this value, mark the zone as unhealthy in DNS, so that traffic is routed only to healthy zones. The possible values are ``off`` or an integer from 1 to the maximum number of targets. The default is ``off`` . - ``target_group_health.dns_failover.minimum_healthy_targets.percentage`` - The minimum percentage of targets that must be healthy. If the percentage of healthy targets is below this value, mark the zone as unhealthy in DNS, so that traffic is routed only to healthy zones. The possible values are ``off`` or an integer from 1 to 100. The default is ``off`` . - ``target_group_health.unhealthy_state_routing.minimum_healthy_targets.count`` - The minimum number of targets that must be healthy. If the number of healthy targets is below this value, send traffic to all targets, including unhealthy targets. The possible values are 1 to the maximum number of targets. The default is 1. - ``target_group_health.unhealthy_state_routing.minimum_healthy_targets.percentage`` - The minimum percentage of targets that must be healthy. If the percentage of healthy targets is below this value, send traffic to all targets, including unhealthy targets. The possible values are ``off`` or an integer from 1 to 100. The default is ``off`` . The following attributes are supported only if the load balancer is an Application Load Balancer and the target is an instance or an IP address: - ``load_balancing.algorithm.type`` - The load balancing algorithm determines how the load balancer selects targets when routing requests. The value is ``round_robin`` or ``least_outstanding_requests`` . The default is ``round_robin`` . - ``slow_start.duration_seconds`` - The time period, in seconds, during which a newly registered target receives an increasing share of the traffic to the target group. After this time period ends, the target receives its full share of traffic. The range is 30-900 seconds (15 minutes). The default is 0 seconds (disabled). - ``stickiness.app_cookie.cookie_name`` - Indicates the name of the application-based cookie. Names that start with the following prefixes are not allowed: ``AWSALB`` , ``AWSALBAPP`` , and ``AWSALBTG`` ; they're reserved for use by the load balancer. - ``stickiness.app_cookie.duration_seconds`` - The time period, in seconds, during which requests from a client should be routed to the same target. After this time period expires, the application-based cookie is considered stale. The range is 1 second to 1 week (604800 seconds). The default value is 1 day (86400 seconds). - ``stickiness.lb_cookie.duration_seconds`` - The time period, in seconds, during which requests from a client should be routed to the same target. After this time period expires, the load balancer-generated cookie is considered stale. The range is 1 second to 1 week (604800 seconds). The default value is 1 day (86400 seconds). The following attribute is supported only if the load balancer is an Application Load Balancer and the target is a Lambda function: - ``lambda.multi_value_headers.enabled`` - Indicates whether the request and response headers that are exchanged between the load balancer and the Lambda function include arrays of values or strings. The value is ``true`` or ``false`` . The default is ``false`` . If the value is ``false`` and the request contains a duplicate header field name or query parameter key, the load balancer uses the last value sent by the client. The following attributes are supported only by Network Load Balancers: - ``deregistration_delay.connection_termination.enabled`` - Indicates whether the load balancer terminates connections at the end of the deregistration timeout. The value is ``true`` or ``false`` . The default is ``false`` . - ``preserve_client_ip.enabled`` - Indicates whether client IP preservation is enabled. The value is ``true`` or ``false`` . The default is disabled if the target group type is IP address and the target group protocol is TCP or TLS. Otherwise, the default is enabled. Client IP preservation cannot be disabled for UDP and TCP_UDP target groups. - ``proxy_protocol_v2.enabled`` - Indicates whether Proxy Protocol version 2 is enabled. The value is ``true`` or ``false`` . The default is ``false`` . The following attributes are supported only by Gateway Load Balancers: - ``target_failover.on_deregistration`` - Indicates how the Gateway Load Balancer handles existing flows when a target is deregistered. The possible values are ``rebalance`` and ``no_rebalance`` . The default is ``no_rebalance`` . The two attributes ( ``target_failover.on_deregistration`` and ``target_failover.on_unhealthy`` ) can't be set independently. The value you set for both attributes must be the same. - ``target_failover.on_unhealthy`` - Indicates how the Gateway Load Balancer handles existing flows when a target is unhealthy. The possible values are ``rebalance`` and ``no_rebalance`` . The default is ``no_rebalance`` . The two attributes ( ``target_failover.on_deregistration`` and ``target_failover.on_unhealthy`` ) cannot be set independently. The value you set for both attributes must be the same.
8882
+ :param key: The name of the attribute. The following attributes are supported by all load balancers: - ``deregistration_delay.timeout_seconds`` - The amount of time, in seconds, for Elastic Load Balancing to wait before changing the state of a deregistering target from ``draining`` to ``unused`` . The range is 0-3600 seconds. The default value is 300 seconds. If the target is a Lambda function, this attribute is not supported. - ``stickiness.enabled`` - Indicates whether target stickiness is enabled. The value is ``true`` or ``false`` . The default is ``false`` . - ``stickiness.type`` - Indicates the type of stickiness. The possible values are: - ``lb_cookie`` and ``app_cookie`` for Application Load Balancers. - ``source_ip`` for Network Load Balancers. - ``source_ip_dest_ip`` and ``source_ip_dest_ip_proto`` for Gateway Load Balancers. The following attributes are supported by Application Load Balancers and Network Load Balancers: - ``load_balancing.cross_zone.enabled`` - Indicates whether cross zone load balancing is enabled. The value is ``true`` , ``false`` or ``use_load_balancer_configuration`` . The default is ``use_load_balancer_configuration`` . - ``target_group_health.dns_failover.minimum_healthy_targets.count`` - The minimum number of targets that must be healthy. If the number of healthy targets is below this value, mark the zone as unhealthy in DNS, so that traffic is routed only to healthy zones. The possible values are ``off`` or an integer from 1 to the maximum number of targets. The default is ``off`` . - ``target_group_health.dns_failover.minimum_healthy_targets.percentage`` - The minimum percentage of targets that must be healthy. If the percentage of healthy targets is below this value, mark the zone as unhealthy in DNS, so that traffic is routed only to healthy zones. The possible values are ``off`` or an integer from 1 to 100. The default is ``off`` . - ``target_group_health.unhealthy_state_routing.minimum_healthy_targets.count`` - The minimum number of targets that must be healthy. If the number of healthy targets is below this value, send traffic to all targets, including unhealthy targets. The possible values are 1 to the maximum number of targets. The default is 1. - ``target_group_health.unhealthy_state_routing.minimum_healthy_targets.percentage`` - The minimum percentage of targets that must be healthy. If the percentage of healthy targets is below this value, send traffic to all targets, including unhealthy targets. The possible values are ``off`` or an integer from 1 to 100. The default is ``off`` . The following attributes are supported only if the load balancer is an Application Load Balancer and the target is an instance or an IP address: - ``load_balancing.algorithm.type`` - The load balancing algorithm determines how the load balancer selects targets when routing requests. The value is ``round_robin`` or ``least_outstanding_requests`` . The default is ``round_robin`` . - ``slow_start.duration_seconds`` - The time period, in seconds, during which a newly registered target receives an increasing share of the traffic to the target group. After this time period ends, the target receives its full share of traffic. The range is 30-900 seconds (15 minutes). The default is 0 seconds (disabled). - ``stickiness.app_cookie.cookie_name`` - Indicates the name of the application-based cookie. Names that start with the following prefixes are not allowed: ``AWSALB`` , ``AWSALBAPP`` , and ``AWSALBTG`` ; they're reserved for use by the load balancer. - ``stickiness.app_cookie.duration_seconds`` - The time period, in seconds, during which requests from a client should be routed to the same target. After this time period expires, the application-based cookie is considered stale. The range is 1 second to 1 week (604800 seconds). The default value is 1 day (86400 seconds). - ``stickiness.lb_cookie.duration_seconds`` - The time period, in seconds, during which requests from a client should be routed to the same target. After this time period expires, the load balancer-generated cookie is considered stale. The range is 1 second to 1 week (604800 seconds). The default value is 1 day (86400 seconds). The following attribute is supported only if the load balancer is an Application Load Balancer and the target is a Lambda function: - ``lambda.multi_value_headers.enabled`` - Indicates whether the request and response headers that are exchanged between the load balancer and the Lambda function include arrays of values or strings. The value is ``true`` or ``false`` . The default is ``false`` . If the value is ``false`` and the request contains a duplicate header field name or query parameter key, the load balancer uses the last value sent by the client. The following attributes are supported only by Network Load Balancers: - ``deregistration_delay.connection_termination.enabled`` - Indicates whether the load balancer terminates connections at the end of the deregistration timeout. The value is ``true`` or ``false`` . For new UDP/TCP_UDP target groups the default is ``true`` . Otherwise, the default is ``false`` . - ``preserve_client_ip.enabled`` - Indicates whether client IP preservation is enabled. The value is ``true`` or ``false`` . The default is disabled if the target group type is IP address and the target group protocol is TCP or TLS. Otherwise, the default is enabled. Client IP preservation cannot be disabled for UDP and TCP_UDP target groups. - ``proxy_protocol_v2.enabled`` - Indicates whether Proxy Protocol version 2 is enabled. The value is ``true`` or ``false`` . The default is ``false`` . - ``target_health_state.unhealthy.connection_termination.enabled`` - Indicates whether the load balancer terminates connections to unhealthy targets. The value is ``true`` or ``false`` . The default is ``true`` . The following attributes are supported only by Gateway Load Balancers: - ``target_failover.on_deregistration`` - Indicates how the Gateway Load Balancer handles existing flows when a target is deregistered. The possible values are ``rebalance`` and ``no_rebalance`` . The default is ``no_rebalance`` . The two attributes ( ``target_failover.on_deregistration`` and ``target_failover.on_unhealthy`` ) can't be set independently. The value you set for both attributes must be the same. - ``target_failover.on_unhealthy`` - Indicates how the Gateway Load Balancer handles existing flows when a target is unhealthy. The possible values are ``rebalance`` and ``no_rebalance`` . The default is ``no_rebalance`` . The two attributes ( ``target_failover.on_deregistration`` and ``target_failover.on_unhealthy`` ) cannot be set independently. The value you set for both attributes must be the same.
8883
8883
  :param value: The value of the attribute.
8884
8884
 
8885
8885
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-targetgroup-targetgroupattribute.html
@@ -8941,9 +8941,10 @@ class CfnTargetGroup(
8941
8941
 
8942
8942
  The following attributes are supported only by Network Load Balancers:
8943
8943
 
8944
- - ``deregistration_delay.connection_termination.enabled`` - Indicates whether the load balancer terminates connections at the end of the deregistration timeout. The value is ``true`` or ``false`` . The default is ``false`` .
8944
+ - ``deregistration_delay.connection_termination.enabled`` - Indicates whether the load balancer terminates connections at the end of the deregistration timeout. The value is ``true`` or ``false`` . For new UDP/TCP_UDP target groups the default is ``true`` . Otherwise, the default is ``false`` .
8945
8945
  - ``preserve_client_ip.enabled`` - Indicates whether client IP preservation is enabled. The value is ``true`` or ``false`` . The default is disabled if the target group type is IP address and the target group protocol is TCP or TLS. Otherwise, the default is enabled. Client IP preservation cannot be disabled for UDP and TCP_UDP target groups.
8946
8946
  - ``proxy_protocol_v2.enabled`` - Indicates whether Proxy Protocol version 2 is enabled. The value is ``true`` or ``false`` . The default is ``false`` .
8947
+ - ``target_health_state.unhealthy.connection_termination.enabled`` - Indicates whether the load balancer terminates connections to unhealthy targets. The value is ``true`` or ``false`` . The default is ``true`` .
8947
8948
 
8948
8949
  The following attributes are supported only by Gateway Load Balancers:
8949
8950
 
@@ -224,7 +224,7 @@ to the target.
224
224
  ```python
225
225
  import aws_cdk.aws_ec2 as ec2
226
226
  import aws_cdk.aws_ecs as ecs
227
- import aws_cdk.aws_batch_alpha as batch
227
+ import aws_cdk.aws_batch as batch
228
228
  from aws_cdk.aws_ecs import ContainerImage
229
229
 
230
230
  # vpc: ec2.Vpc
@@ -1080,7 +1080,7 @@ class BatchJob(
1080
1080
 
1081
1081
  import aws_cdk.aws_ec2 as ec2
1082
1082
  import aws_cdk.aws_ecs as ecs
1083
- import aws_cdk.aws_batch_alpha as batch
1083
+ import aws_cdk.aws_batch as batch
1084
1084
  from aws_cdk.aws_ecs import ContainerImage
1085
1085
 
1086
1086
  # vpc: ec2.Vpc
@@ -3242,7 +3242,7 @@ class BatchJobProps(TargetBaseProps):
3242
3242
 
3243
3243
  import aws_cdk.aws_ec2 as ec2
3244
3244
  import aws_cdk.aws_ecs as ecs
3245
- import aws_cdk.aws_batch_alpha as batch
3245
+ import aws_cdk.aws_batch as batch
3246
3246
  from aws_cdk.aws_ecs import ContainerImage
3247
3247
 
3248
3248
  # vpc: ec2.Vpc
@@ -13452,16 +13452,18 @@ class User(
13452
13452
  ):
13453
13453
  '''Define a new IAM user.
13454
13454
 
13455
- :exampleMetadata: lit=aws-iam/test/example.attaching.lit.ts infused
13455
+ :exampleMetadata: infused
13456
13456
 
13457
13457
  Example::
13458
13458
 
13459
- user = User(self, "MyUser", password=SecretValue.plain_text("1234"))
13460
- group = Group(self, "MyGroup")
13459
+ # definition: sfn.IChainable
13460
+ user = iam.User(self, "MyUser")
13461
+ state_machine = sfn.StateMachine(self, "StateMachine",
13462
+ definition_body=sfn.DefinitionBody.from_chainable(definition)
13463
+ )
13461
13464
 
13462
- policy = Policy(self, "MyPolicy")
13463
- policy.attach_to_user(user)
13464
- group.attach_inline_policy(policy)
13465
+ # give user permission to send task success to the state machine
13466
+ state_machine.grant(user, "states:SendTaskSuccess")
13465
13467
  '''
13466
13468
 
13467
13469
  def __init__(
@@ -133,14 +133,14 @@ class CfnMonitor(
133
133
  :param id: Construct identifier for this resource (unique in its scope).
134
134
  :param monitor_name: The name of the monitor. A monitor name can contain only alphanumeric characters, dashes (-), periods (.), and underscores (_).
135
135
  :param health_events_config:
136
- :param internet_measurements_log_delivery:
136
+ :param internet_measurements_log_delivery: Publish internet measurements for a monitor for all city-networks (up to the 500,000 service limit) to another location, such as an Amazon S3 bucket. Measurements are also published to Amazon CloudWatch Logs for the first 500 (by traffic volume) city-networks (client locations and ASNs, typically internet service providers or ISPs).
137
137
  :param max_city_networks_to_monitor: The maximum number of city-networks to monitor for your resources. A city-network is the location (city) where clients access your application resources from and the network, such as an internet service provider, that clients access the resources through. For more information, see `Choosing a city-network maximum value <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/IMCityNetworksMaximum.html>`_ in *Using Amazon CloudWatch Internet Monitor* .
138
138
  :param resources: The resources that have been added for the monitor, listed by their Amazon Resource Names (ARNs).
139
139
  :param resources_to_add: The resources to include in a monitor, which you provide as a set of Amazon Resource Names (ARNs). Resources can be Amazon Virtual Private Cloud VPCs, Network Load Balancers (NLBs), Amazon CloudFront distributions, or Amazon WorkSpaces directories. You can add a combination of VPCs and CloudFront distributions, or you can add WorkSpaces directories, or you can add NLBs. You can't add NLBs or WorkSpaces directories together with any other resources. .. epigraph:: If you add only VPC resources, at least one VPC must have an Internet Gateway attached to it, to make sure that it has internet connectivity.
140
140
  :param resources_to_remove: The resources to remove from a monitor, which you provide as a set of Amazon Resource Names (ARNs).
141
141
  :param status: The status of a monitor. The accepted values that you can specify for ``Status`` are ``ACTIVE`` and ``INACTIVE`` .
142
142
  :param tags: The tags for a monitor, listed as a set of *key:value* pairs.
143
- :param traffic_percentage_to_monitor:
143
+ :param traffic_percentage_to_monitor: The percentage of the internet-facing traffic for your application that you want to monitor. You can also, optionally, set a limit for the number of city-networks (client locations and ASNs, typically internet service providers) that Internet Monitor will monitor traffic for. The city-networks maximum limit caps the number of city-networks that Internet Monitor monitors for your application, regardless of the percentage of traffic that you choose to monitor.
144
144
  '''
145
145
  if __debug__:
146
146
  type_hints = typing.get_type_hints(_typecheckingstub__b49625d902a7236b204a8a96b68b35647ded5da14fa0241503fe8aed7ec47718)
@@ -284,6 +284,7 @@ class CfnMonitor(
284
284
  def internet_measurements_log_delivery(
285
285
  self,
286
286
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnMonitor.InternetMeasurementsLogDeliveryProperty"]]:
287
+ '''Publish internet measurements for a monitor for all city-networks (up to the 500,000 service limit) to another location, such as an Amazon S3 bucket.'''
287
288
  return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnMonitor.InternetMeasurementsLogDeliveryProperty"]], jsii.get(self, "internetMeasurementsLogDelivery"))
288
289
 
289
290
  @internet_measurements_log_delivery.setter
@@ -383,6 +384,7 @@ class CfnMonitor(
383
384
  @builtins.property
384
385
  @jsii.member(jsii_name="trafficPercentageToMonitor")
385
386
  def traffic_percentage_to_monitor(self) -> typing.Optional[jsii.Number]:
387
+ '''The percentage of the internet-facing traffic for your application that you want to monitor.'''
386
388
  return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "trafficPercentageToMonitor"))
387
389
 
388
390
  @traffic_percentage_to_monitor.setter
@@ -414,11 +416,16 @@ class CfnMonitor(
414
416
  performance_local_health_events_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnMonitor.LocalHealthEventsConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
415
417
  performance_score_threshold: typing.Optional[jsii.Number] = None,
416
418
  ) -> None:
417
- '''
418
- :param availability_local_health_events_config:
419
- :param availability_score_threshold:
420
- :param performance_local_health_events_config:
421
- :param performance_score_threshold:
419
+ '''Define the health event threshold percentages for the performance score and availability score for your application's monitor.
420
+
421
+ Amazon CloudWatch Internet Monitor creates a health event when there's an internet issue that affects your application end users where a health score percentage is at or below a set threshold.
422
+
423
+ If you don't set a health event threshold, the default value is 95%.
424
+
425
+ :param availability_local_health_events_config: The configuration that determines the threshold and other conditions for when Internet Monitor creates a health event for a local availability issue.
426
+ :param availability_score_threshold: The health event threshold percentage set for availability scores. When the overall availability score is at or below this percentage, Internet Monitor creates a health event.
427
+ :param performance_local_health_events_config: The configuration that determines the threshold and other conditions for when Internet Monitor creates a health event for a local performance issue.
428
+ :param performance_score_threshold: The health event threshold percentage set for performance scores. When the overall performance score is at or below this percentage, Internet Monitor creates a health event.
422
429
 
423
430
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-internetmonitor-monitor-healtheventsconfig.html
424
431
  :exampleMetadata: fixture=_generated
@@ -464,7 +471,8 @@ class CfnMonitor(
464
471
  def availability_local_health_events_config(
465
472
  self,
466
473
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnMonitor.LocalHealthEventsConfigProperty"]]:
467
- '''
474
+ '''The configuration that determines the threshold and other conditions for when Internet Monitor creates a health event for a local availability issue.
475
+
468
476
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-internetmonitor-monitor-healtheventsconfig.html#cfn-internetmonitor-monitor-healtheventsconfig-availabilitylocalhealtheventsconfig
469
477
  '''
470
478
  result = self._values.get("availability_local_health_events_config")
@@ -472,7 +480,10 @@ class CfnMonitor(
472
480
 
473
481
  @builtins.property
474
482
  def availability_score_threshold(self) -> typing.Optional[jsii.Number]:
475
- '''
483
+ '''The health event threshold percentage set for availability scores.
484
+
485
+ When the overall availability score is at or below this percentage, Internet Monitor creates a health event.
486
+
476
487
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-internetmonitor-monitor-healtheventsconfig.html#cfn-internetmonitor-monitor-healtheventsconfig-availabilityscorethreshold
477
488
  '''
478
489
  result = self._values.get("availability_score_threshold")
@@ -482,7 +493,8 @@ class CfnMonitor(
482
493
  def performance_local_health_events_config(
483
494
  self,
484
495
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnMonitor.LocalHealthEventsConfigProperty"]]:
485
- '''
496
+ '''The configuration that determines the threshold and other conditions for when Internet Monitor creates a health event for a local performance issue.
497
+
486
498
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-internetmonitor-monitor-healtheventsconfig.html#cfn-internetmonitor-monitor-healtheventsconfig-performancelocalhealtheventsconfig
487
499
  '''
488
500
  result = self._values.get("performance_local_health_events_config")
@@ -490,7 +502,10 @@ class CfnMonitor(
490
502
 
491
503
  @builtins.property
492
504
  def performance_score_threshold(self) -> typing.Optional[jsii.Number]:
493
- '''
505
+ '''The health event threshold percentage set for performance scores.
506
+
507
+ When the overall performance score is at or below this percentage, Internet Monitor creates a health event.
508
+
494
509
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-internetmonitor-monitor-healtheventsconfig.html#cfn-internetmonitor-monitor-healtheventsconfig-performancescorethreshold
495
510
  '''
496
511
  result = self._values.get("performance_score_threshold")
@@ -520,7 +535,7 @@ class CfnMonitor(
520
535
  ) -> None:
521
536
  '''Publish internet measurements to an Amazon S3 bucket in addition to CloudWatch Logs.
522
537
 
523
- :param s3_config: The Amazon S3 bucket where you publish internet measurements in addition to CloudWatch Logs.
538
+ :param s3_config: The configuration for publishing Amazon CloudWatch Internet Monitor internet measurements to Amazon S3.
524
539
 
525
540
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-internetmonitor-monitor-internetmeasurementslogdelivery.html
526
541
  :exampleMetadata: fixture=_generated
@@ -550,7 +565,7 @@ class CfnMonitor(
550
565
  def s3_config(
551
566
  self,
552
567
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnMonitor.S3ConfigProperty"]]:
553
- '''The Amazon S3 bucket where you publish internet measurements in addition to CloudWatch Logs.
568
+ '''The configuration for publishing Amazon CloudWatch Internet Monitor internet measurements to Amazon S3.
554
569
 
555
570
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-internetmonitor-monitor-internetmeasurementslogdelivery.html#cfn-internetmonitor-monitor-internetmeasurementslogdelivery-s3config
556
571
  '''
@@ -585,10 +600,17 @@ class CfnMonitor(
585
600
  min_traffic_impact: typing.Optional[jsii.Number] = None,
586
601
  status: typing.Optional[builtins.str] = None,
587
602
  ) -> None:
588
- '''
589
- :param health_score_threshold:
590
- :param min_traffic_impact:
591
- :param status:
603
+ '''Configuration information that determines the threshold and other conditions for when Internet Monitor creates a health event for a local performance or availability issue, when scores cross a threshold for one or more city-networks.
604
+
605
+ Defines the percentages, for performance scores or availability scores, that are the local thresholds for when Amazon CloudWatch Internet Monitor creates a health event. Also defines whether a local threshold is enabled or disabled, and the minimum percentage of overall traffic that must be impacted by an issue before Internet Monitor creates an event when a threshold is crossed for a local health score.
606
+
607
+ If you don't set a local health event threshold, the default value is 60%.
608
+
609
+ For more information, see `Change health event thresholds <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-IM-overview.html#IMUpdateThresholdFromOverview>`_ in the Internet Monitor section of the *Amazon CloudWatch User Guide* .
610
+
611
+ :param health_score_threshold: The health event threshold percentage set for a local health score.
612
+ :param min_traffic_impact: The minimum percentage of overall traffic for an application that must be impacted by an issue before Internet Monitor creates an event when a threshold is crossed for a local health score. If you don't set a minimum traffic impact threshold, the default value is 0.01%.
613
+ :param status: The status of whether Internet Monitor creates a health event based on a threshold percentage set for a local health score. The status can be ``ENABLED`` or ``DISABLED`` .
592
614
 
593
615
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-internetmonitor-monitor-localhealtheventsconfig.html
594
616
  :exampleMetadata: fixture=_generated
@@ -620,7 +642,8 @@ class CfnMonitor(
620
642
 
621
643
  @builtins.property
622
644
  def health_score_threshold(self) -> typing.Optional[jsii.Number]:
623
- '''
645
+ '''The health event threshold percentage set for a local health score.
646
+
624
647
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-internetmonitor-monitor-localhealtheventsconfig.html#cfn-internetmonitor-monitor-localhealtheventsconfig-healthscorethreshold
625
648
  '''
626
649
  result = self._values.get("health_score_threshold")
@@ -628,7 +651,10 @@ class CfnMonitor(
628
651
 
629
652
  @builtins.property
630
653
  def min_traffic_impact(self) -> typing.Optional[jsii.Number]:
631
- '''
654
+ '''The minimum percentage of overall traffic for an application that must be impacted by an issue before Internet Monitor creates an event when a threshold is crossed for a local health score.
655
+
656
+ If you don't set a minimum traffic impact threshold, the default value is 0.01%.
657
+
632
658
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-internetmonitor-monitor-localhealtheventsconfig.html#cfn-internetmonitor-monitor-localhealtheventsconfig-mintrafficimpact
633
659
  '''
634
660
  result = self._values.get("min_traffic_impact")
@@ -636,7 +662,10 @@ class CfnMonitor(
636
662
 
637
663
  @builtins.property
638
664
  def status(self) -> typing.Optional[builtins.str]:
639
- '''
665
+ '''The status of whether Internet Monitor creates a health event based on a threshold percentage set for a local health score.
666
+
667
+ The status can be ``ENABLED`` or ``DISABLED`` .
668
+
640
669
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-internetmonitor-monitor-localhealtheventsconfig.html#cfn-internetmonitor-monitor-localhealtheventsconfig-status
641
670
  '''
642
671
  result = self._values.get("status")
@@ -670,13 +699,15 @@ class CfnMonitor(
670
699
  bucket_prefix: typing.Optional[builtins.str] = None,
671
700
  log_delivery_status: typing.Optional[builtins.str] = None,
672
701
  ) -> None:
673
- '''Configuration information for other locations that you choose to publish Amazon CloudWatch Internet Monitor internet measurements to, such as Amazon S3.
702
+ '''The configuration for publishing Amazon CloudWatch Internet Monitor internet measurements to Amazon S3.
703
+
704
+ The configuration includes the bucket name and (optionally) bucket prefix for the S3 bucket to store the measurements, and the delivery status. The delivery status is ``ENABLED`` if you choose to deliver internet measurements to S3 logs, and ``DISABLED`` otherwise.
674
705
 
675
706
  The measurements are also published to Amazon CloudWatch Logs.
676
707
 
677
- :param bucket_name: The Amazon S3 bucket name.
678
- :param bucket_prefix: The Amazon S3 bucket prefix.
679
- :param log_delivery_status: The status of publishing Internet Monitor internet measurements to an Amazon S3 bucket.
708
+ :param bucket_name: The Amazon S3 bucket name for internet measurements publishing.
709
+ :param bucket_prefix: An optional Amazon S3 bucket prefix for internet measurements publishing.
710
+ :param log_delivery_status: The status of publishing Internet Monitor internet measurements to an Amazon S3 bucket. The delivery status is ``ENABLED`` if you choose to deliver internet measurements to an S3 bucket, and ``DISABLED`` otherwise.
680
711
 
681
712
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-internetmonitor-monitor-s3config.html
682
713
  :exampleMetadata: fixture=_generated
@@ -708,7 +739,7 @@ class CfnMonitor(
708
739
 
709
740
  @builtins.property
710
741
  def bucket_name(self) -> typing.Optional[builtins.str]:
711
- '''The Amazon S3 bucket name.
742
+ '''The Amazon S3 bucket name for internet measurements publishing.
712
743
 
713
744
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-internetmonitor-monitor-s3config.html#cfn-internetmonitor-monitor-s3config-bucketname
714
745
  '''
@@ -717,7 +748,7 @@ class CfnMonitor(
717
748
 
718
749
  @builtins.property
719
750
  def bucket_prefix(self) -> typing.Optional[builtins.str]:
720
- '''The Amazon S3 bucket prefix.
751
+ '''An optional Amazon S3 bucket prefix for internet measurements publishing.
721
752
 
722
753
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-internetmonitor-monitor-s3config.html#cfn-internetmonitor-monitor-s3config-bucketprefix
723
754
  '''
@@ -728,6 +759,8 @@ class CfnMonitor(
728
759
  def log_delivery_status(self) -> typing.Optional[builtins.str]:
729
760
  '''The status of publishing Internet Monitor internet measurements to an Amazon S3 bucket.
730
761
 
762
+ The delivery status is ``ENABLED`` if you choose to deliver internet measurements to an S3 bucket, and ``DISABLED`` otherwise.
763
+
731
764
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-internetmonitor-monitor-s3config.html#cfn-internetmonitor-monitor-s3config-logdeliverystatus
732
765
  '''
733
766
  result = self._values.get("log_delivery_status")
@@ -780,14 +813,14 @@ class CfnMonitorProps:
780
813
 
781
814
  :param monitor_name: The name of the monitor. A monitor name can contain only alphanumeric characters, dashes (-), periods (.), and underscores (_).
782
815
  :param health_events_config:
783
- :param internet_measurements_log_delivery:
816
+ :param internet_measurements_log_delivery: Publish internet measurements for a monitor for all city-networks (up to the 500,000 service limit) to another location, such as an Amazon S3 bucket. Measurements are also published to Amazon CloudWatch Logs for the first 500 (by traffic volume) city-networks (client locations and ASNs, typically internet service providers or ISPs).
784
817
  :param max_city_networks_to_monitor: The maximum number of city-networks to monitor for your resources. A city-network is the location (city) where clients access your application resources from and the network, such as an internet service provider, that clients access the resources through. For more information, see `Choosing a city-network maximum value <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/IMCityNetworksMaximum.html>`_ in *Using Amazon CloudWatch Internet Monitor* .
785
818
  :param resources: The resources that have been added for the monitor, listed by their Amazon Resource Names (ARNs).
786
819
  :param resources_to_add: The resources to include in a monitor, which you provide as a set of Amazon Resource Names (ARNs). Resources can be Amazon Virtual Private Cloud VPCs, Network Load Balancers (NLBs), Amazon CloudFront distributions, or Amazon WorkSpaces directories. You can add a combination of VPCs and CloudFront distributions, or you can add WorkSpaces directories, or you can add NLBs. You can't add NLBs or WorkSpaces directories together with any other resources. .. epigraph:: If you add only VPC resources, at least one VPC must have an Internet Gateway attached to it, to make sure that it has internet connectivity.
787
820
  :param resources_to_remove: The resources to remove from a monitor, which you provide as a set of Amazon Resource Names (ARNs).
788
821
  :param status: The status of a monitor. The accepted values that you can specify for ``Status`` are ``ACTIVE`` and ``INACTIVE`` .
789
822
  :param tags: The tags for a monitor, listed as a set of *key:value* pairs.
790
- :param traffic_percentage_to_monitor:
823
+ :param traffic_percentage_to_monitor: The percentage of the internet-facing traffic for your application that you want to monitor. You can also, optionally, set a limit for the number of city-networks (client locations and ASNs, typically internet service providers) that Internet Monitor will monitor traffic for. The city-networks maximum limit caps the number of city-networks that Internet Monitor monitors for your application, regardless of the percentage of traffic that you choose to monitor.
791
824
 
792
825
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-internetmonitor-monitor.html
793
826
  :exampleMetadata: fixture=_generated
@@ -895,7 +928,10 @@ class CfnMonitorProps:
895
928
  def internet_measurements_log_delivery(
896
929
  self,
897
930
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnMonitor.InternetMeasurementsLogDeliveryProperty]]:
898
- '''
931
+ '''Publish internet measurements for a monitor for all city-networks (up to the 500,000 service limit) to another location, such as an Amazon S3 bucket.
932
+
933
+ Measurements are also published to Amazon CloudWatch Logs for the first 500 (by traffic volume) city-networks (client locations and ASNs, typically internet service providers or ISPs).
934
+
899
935
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-internetmonitor-monitor.html#cfn-internetmonitor-monitor-internetmeasurementslogdelivery
900
936
  '''
901
937
  result = self._values.get("internet_measurements_log_delivery")
@@ -970,7 +1006,10 @@ class CfnMonitorProps:
970
1006
 
971
1007
  @builtins.property
972
1008
  def traffic_percentage_to_monitor(self) -> typing.Optional[jsii.Number]:
973
- '''
1009
+ '''The percentage of the internet-facing traffic for your application that you want to monitor.
1010
+
1011
+ You can also, optionally, set a limit for the number of city-networks (client locations and ASNs, typically internet service providers) that Internet Monitor will monitor traffic for. The city-networks maximum limit caps the number of city-networks that Internet Monitor monitors for your application, regardless of the percentage of traffic that you choose to monitor.
1012
+
974
1013
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-internetmonitor-monitor.html#cfn-internetmonitor-monitor-trafficpercentagetomonitor
975
1014
  '''
976
1015
  result = self._values.get("traffic_percentage_to_monitor")
@@ -3425,8 +3425,7 @@ class CfnServiceProfile(
3425
3425
  @builtins.property
3426
3426
  @jsii.member(jsii_name="attrLoRaWanPrAllowed")
3427
3427
  def attr_lo_ra_wan_pr_allowed(self) -> _IResolvable_da3f097b:
3428
- '''The PRAllowed value that describes whether passive roaming is allowed.
3429
-
3428
+ '''
3430
3429
  :cloudformationAttribute: LoRaWAN.PrAllowed
3431
3430
  '''
3432
3431
  return typing.cast(_IResolvable_da3f097b, jsii.get(self, "attrLoRaWanPrAllowed"))
@@ -3434,8 +3433,7 @@ class CfnServiceProfile(
3434
3433
  @builtins.property
3435
3434
  @jsii.member(jsii_name="attrLoRaWanRaAllowed")
3436
3435
  def attr_lo_ra_wan_ra_allowed(self) -> _IResolvable_da3f097b:
3437
- '''The RAAllowed value that describes whether roaming activation is allowed.
3438
-
3436
+ '''
3439
3437
  :cloudformationAttribute: LoRaWAN.RaAllowed
3440
3438
  '''
3441
3439
  return typing.cast(_IResolvable_da3f097b, jsii.get(self, "attrLoRaWanRaAllowed"))
@@ -517,7 +517,7 @@ granting permissions to other AWS accounts or organizations.
517
517
  ```python
518
518
  layer = lambda_.LayerVersion(stack, "MyLayer",
519
519
  code=lambda_.Code.from_asset(path.join(__dirname, "layer-code")),
520
- compatible_runtimes=[lambda_.Runtime.NODEJS_16_X],
520
+ compatible_runtimes=[lambda_.Runtime.NODEJS_LATEST],
521
521
  license="Apache-2.0",
522
522
  description="A layer to test the L2 construct"
523
523
  )
@@ -531,7 +531,7 @@ layer.add_permission("remote-account-grant", account_id=aws_account_id)
531
531
  lambda_.Function(stack, "MyLayeredLambda",
532
532
  code=lambda_.InlineCode("foo"),
533
533
  handler="index.handler",
534
- runtime=lambda_.Runtime.NODEJS_16_X,
534
+ runtime=lambda_.Runtime.NODEJS_LATEST,
535
535
  layers=[layer]
536
536
  )
537
537
  ```
@@ -996,7 +996,7 @@ class TestStack(cdk.Stack):
996
996
  fn = lambda_.Function(self, "MyLambda",
997
997
  code=lambda_.InlineCode("exports.handler = async () => { console.log('hello world'); };"),
998
998
  handler="index.handler",
999
- runtime=lambda_.Runtime.NODEJS_16_X
999
+ runtime=lambda_.Runtime.NODEJS_LATEST
1000
1000
  )
1001
1001
 
1002
1002
  version = fn.current_version
@@ -16599,7 +16599,7 @@ class InlineCode(
16599
16599
 
16600
16600
  layer = lambda_.LayerVersion(stack, "MyLayer",
16601
16601
  code=lambda_.Code.from_asset(path.join(__dirname, "layer-code")),
16602
- compatible_runtimes=[lambda_.Runtime.NODEJS_16_X],
16602
+ compatible_runtimes=[lambda_.Runtime.NODEJS_LATEST],
16603
16603
  license="Apache-2.0",
16604
16604
  description="A layer to test the L2 construct"
16605
16605
  )
@@ -16613,7 +16613,7 @@ class InlineCode(
16613
16613
  lambda_.Function(stack, "MyLayeredLambda",
16614
16614
  code=lambda_.InlineCode("foo"),
16615
16615
  handler="index.handler",
16616
- runtime=lambda_.Runtime.NODEJS_16_X,
16616
+ runtime=lambda_.Runtime.NODEJS_LATEST,
16617
16617
  layers=[layer]
16618
16618
  )
16619
16619
  '''
@@ -17258,7 +17258,7 @@ class LayerVersionPermission:
17258
17258
 
17259
17259
  layer = lambda_.LayerVersion(stack, "MyLayer",
17260
17260
  code=lambda_.Code.from_asset(path.join(__dirname, "layer-code")),
17261
- compatible_runtimes=[lambda_.Runtime.NODEJS_16_X],
17261
+ compatible_runtimes=[lambda_.Runtime.NODEJS_LATEST],
17262
17262
  license="Apache-2.0",
17263
17263
  description="A layer to test the L2 construct"
17264
17264
  )
@@ -17272,7 +17272,7 @@ class LayerVersionPermission:
17272
17272
  lambda_.Function(stack, "MyLayeredLambda",
17273
17273
  code=lambda_.InlineCode("foo"),
17274
17274
  handler="index.handler",
17275
- runtime=lambda_.Runtime.NODEJS_16_X,
17275
+ runtime=lambda_.Runtime.NODEJS_LATEST,
17276
17276
  layers=[layer]
17277
17277
  )
17278
17278
  '''
@@ -21346,7 +21346,7 @@ class CfnParametersCode(
21346
21346
  lambda_.Function(lambda_stack, "Lambda",
21347
21347
  code=lambda_code,
21348
21348
  handler="index.handler",
21349
- runtime=lambda_.Runtime.NODEJS_16_X
21349
+ runtime=lambda_.Runtime.NODEJS_LATEST
21350
21350
  )
21351
21351
  # other resources that your Lambda needs, added to the lambdaStack...
21352
21352
 
@@ -162,7 +162,7 @@ This can be configured by specifying `bundling.externalModules`:
162
162
  ```python
163
163
  nodejs.NodejsFunction(self, "my-handler",
164
164
  bundling=nodejs.BundlingOptions(
165
- external_modules=["aws-sdk", "cool-module"
165
+ external_modules=["@aws-sdk/*", "cool-module"
166
166
  ]
167
167
  )
168
168
  )
@@ -1362,7 +1362,7 @@ class CfnNode(
1362
1362
  '''
1363
1363
  :param scope: Scope in which this resource is defined.
1364
1364
  :param id: Construct identifier for this resource (unique in its scope).
1365
- :param network_id: The unique identifier of the network for the node. Ethereum public networks have the following ``NetworkId`` s: - ``n-ethereum-mainnet`` - ``n-ethereum-goerli`` - ``n-ethereum-rinkeby``
1365
+ :param network_id: The unique identifier of the network for the node. Ethereum public networks have the following ``NetworkId`` s: - ``n-ethereum-mainnet`` - ``n-ethereum-goerli``
1366
1366
  :param node_configuration: Configuration properties of a peer node.
1367
1367
  :param member_id: The unique identifier of the member to which the node belongs. Applies only to Hyperledger Fabric.
1368
1368
  '''
@@ -1591,7 +1591,7 @@ class CfnNodeProps:
1591
1591
  ) -> None:
1592
1592
  '''Properties for defining a ``CfnNode``.
1593
1593
 
1594
- :param network_id: The unique identifier of the network for the node. Ethereum public networks have the following ``NetworkId`` s: - ``n-ethereum-mainnet`` - ``n-ethereum-goerli`` - ``n-ethereum-rinkeby``
1594
+ :param network_id: The unique identifier of the network for the node. Ethereum public networks have the following ``NetworkId`` s: - ``n-ethereum-mainnet`` - ``n-ethereum-goerli``
1595
1595
  :param node_configuration: Configuration properties of a peer node.
1596
1596
  :param member_id: The unique identifier of the member to which the node belongs. Applies only to Hyperledger Fabric.
1597
1597
 
@@ -1635,7 +1635,6 @@ class CfnNodeProps:
1635
1635
 
1636
1636
  - ``n-ethereum-mainnet``
1637
1637
  - ``n-ethereum-goerli``
1638
- - ``n-ethereum-rinkeby``
1639
1638
 
1640
1639
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-managedblockchain-node.html#cfn-managedblockchain-node-networkid
1641
1640
  '''