aws-cdk-lib 2.149.0__py3-none-any.whl → 2.151.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 +6 -16
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.149.0.jsii.tgz → aws-cdk-lib@2.151.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigatewayv2/__init__.py +94 -21
- aws_cdk/aws_appconfig/__init__.py +3 -3
- aws_cdk/aws_backup/__init__.py +3 -3
- aws_cdk/aws_bedrock/__init__.py +58 -46
- aws_cdk/aws_cleanrooms/__init__.py +5 -5
- aws_cdk/aws_cloudformation/__init__.py +4 -8
- aws_cdk/aws_cloudfront/__init__.py +102 -32
- aws_cdk/aws_cloudtrail/__init__.py +34 -558
- aws_cdk/aws_cloudwatch/__init__.py +1 -1
- aws_cdk/aws_codepipeline/__init__.py +11 -5
- aws_cdk/aws_cognito/__init__.py +1 -2
- aws_cdk/aws_ec2/__init__.py +263 -7
- aws_cdk/aws_ecs/__init__.py +16 -10
- aws_cdk/aws_eks/__init__.py +26 -20
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +106 -11
- aws_cdk/aws_emr/__init__.py +18 -20
- aws_cdk/aws_entityresolution/__init__.py +27 -21
- aws_cdk/aws_events/__init__.py +83 -16
- aws_cdk/aws_fsx/__init__.py +25 -23
- aws_cdk/aws_glue/__init__.py +3 -3
- aws_cdk/aws_guardduty/__init__.py +6 -4
- aws_cdk/aws_iam/__init__.py +19 -29
- aws_cdk/aws_iotsitewise/__init__.py +8 -8
- aws_cdk/aws_lambda/__init__.py +21 -2
- aws_cdk/aws_logs/__init__.py +9 -0
- aws_cdk/aws_mwaa/__init__.py +3 -3
- aws_cdk/aws_pipes/__init__.py +2 -2
- aws_cdk/aws_qbusiness/__init__.py +21 -7
- aws_cdk/aws_rds/__init__.py +252 -206
- aws_cdk/aws_s3/__init__.py +8 -2
- aws_cdk/aws_sagemaker/__init__.py +10 -10
- aws_cdk/aws_ses/__init__.py +3 -3
- aws_cdk/aws_sns/__init__.py +5 -2
- aws_cdk/aws_stepfunctions/__init__.py +5 -2
- aws_cdk/aws_stepfunctions_tasks/__init__.py +23 -8
- aws_cdk/aws_synthetics/__init__.py +174 -22
- aws_cdk/custom_resources/__init__.py +91 -23
- aws_cdk/pipelines/__init__.py +1 -1
- aws_cdk/region_info/__init__.py +32 -12
- {aws_cdk_lib-2.149.0.dist-info → aws_cdk_lib-2.151.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.149.0.dist-info → aws_cdk_lib-2.151.0.dist-info}/RECORD +48 -48
- {aws_cdk_lib-2.149.0.dist-info → aws_cdk_lib-2.151.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.149.0.dist-info → aws_cdk_lib-2.151.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.149.0.dist-info → aws_cdk_lib-2.151.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.149.0.dist-info → aws_cdk_lib-2.151.0.dist-info}/top_level.txt +0 -0
|
@@ -470,6 +470,27 @@ tg = elbv2.ApplicationTargetGroup(self, "TG",
|
|
|
470
470
|
)
|
|
471
471
|
```
|
|
472
472
|
|
|
473
|
+
### Weighted random routing algorithms and automatic target weights for your Application Load Balancer
|
|
474
|
+
|
|
475
|
+
You can use the `weighted_random` routing algorithms by setting the `loadBalancingAlgorithmType` property.
|
|
476
|
+
|
|
477
|
+
When using this algorithm, Automatic Target Weights (ATW) anomaly mitigation can be used by setting `enableAnomalyMitigation` to `true`.
|
|
478
|
+
|
|
479
|
+
Also you can't use this algorithm with slow start mode.
|
|
480
|
+
|
|
481
|
+
For more information, see [Routing algorithms](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-target-groups.html#modify-routing-algorithm) and [Automatic Target Weights (ATW)](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-target-groups.html#automatic-target-weights).
|
|
482
|
+
|
|
483
|
+
```python
|
|
484
|
+
# vpc: ec2.Vpc
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
tg = elbv2.ApplicationTargetGroup(self, "TargetGroup",
|
|
488
|
+
vpc=vpc,
|
|
489
|
+
load_balancing_algorithm_type=elbv2.TargetGroupLoadBalancingAlgorithmType.WEIGHTED_RANDOM,
|
|
490
|
+
enable_anomaly_mitigation=True
|
|
491
|
+
)
|
|
492
|
+
```
|
|
493
|
+
|
|
473
494
|
## Using Lambda Targets
|
|
474
495
|
|
|
475
496
|
To use a Lambda Function as a target, use the integration class in the
|
|
@@ -9281,7 +9302,7 @@ class CfnTargetGroup(
|
|
|
9281
9302
|
) -> None:
|
|
9282
9303
|
'''Specifies a target group attribute.
|
|
9283
9304
|
|
|
9284
|
-
: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 ``
|
|
9305
|
+
: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 ``1`` . - ``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`` , ``least_outstanding_requests`` , or ``weighted_random`` . The default is ``round_robin`` . - ``load_balancing.algorithm.anomaly_mitigation`` - Only available when ``load_balancing.algorithm.type`` is ``weighted_random`` . Indicates whether anomaly mitigation is enabled. The value is ``on`` or ``off`` . The default is ``off`` . - ``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`` . - ``target_health_state.unhealthy.draining_interval_seconds`` - The amount of time for Elastic Load Balancing to wait before changing the state of an unhealthy target from ``unhealthy.draining`` to ``unhealthy`` . The range is 0-360000 seconds. The default value is 0 seconds. Note: This attribute can only be configured when ``target_health_state.unhealthy.connection_termination.enabled`` 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.
|
|
9285
9306
|
:param value: The value of the attribute.
|
|
9286
9307
|
|
|
9287
9308
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-targetgroup-targetgroupattribute.html
|
|
@@ -9324,7 +9345,7 @@ class CfnTargetGroup(
|
|
|
9324
9345
|
The following attributes are supported by Application Load Balancers and Network Load Balancers:
|
|
9325
9346
|
|
|
9326
9347
|
- ``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`` .
|
|
9327
|
-
- ``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 ``
|
|
9348
|
+
- ``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 ``1`` .
|
|
9328
9349
|
- ``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`` .
|
|
9329
9350
|
- ``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.
|
|
9330
9351
|
- ``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`` .
|
|
@@ -11038,6 +11059,14 @@ class HttpCodeElb(enum.Enum):
|
|
|
11038
11059
|
'''
|
|
11039
11060
|
ELB_5XX_COUNT = "ELB_5XX_COUNT"
|
|
11040
11061
|
'''The number of HTTP 5XX server error codes that originate from the load balancer.'''
|
|
11062
|
+
ELB_500_COUNT = "ELB_500_COUNT"
|
|
11063
|
+
'''The number of HTTP 500 server error codes that originate from the load balancer.'''
|
|
11064
|
+
ELB_502_COUNT = "ELB_502_COUNT"
|
|
11065
|
+
'''The number of HTTP 502 server error codes that originate from the load balancer.'''
|
|
11066
|
+
ELB_503_COUNT = "ELB_503_COUNT"
|
|
11067
|
+
'''The number of HTTP 503 server error codes that originate from the load balancer.'''
|
|
11068
|
+
ELB_504_COUNT = "ELB_504_COUNT"
|
|
11069
|
+
'''The number of HTTP 504 server error codes that originate from the load balancer.'''
|
|
11041
11070
|
|
|
11042
11071
|
|
|
11043
11072
|
@jsii.enum(jsii_type="aws-cdk-lib.aws_elasticloadbalancingv2.HttpCodeTarget")
|
|
@@ -18041,12 +18070,28 @@ typing.cast(typing.Any, TargetGroupBase).__jsii_proxy_class__ = lambda : _Target
|
|
|
18041
18070
|
jsii_type="aws-cdk-lib.aws_elasticloadbalancingv2.TargetGroupLoadBalancingAlgorithmType"
|
|
18042
18071
|
)
|
|
18043
18072
|
class TargetGroupLoadBalancingAlgorithmType(enum.Enum):
|
|
18044
|
-
'''Load balancing algorithmm type for target groups.
|
|
18073
|
+
'''Load balancing algorithmm type for target groups.
|
|
18074
|
+
|
|
18075
|
+
:exampleMetadata: infused
|
|
18076
|
+
|
|
18077
|
+
Example::
|
|
18078
|
+
|
|
18079
|
+
# vpc: ec2.Vpc
|
|
18080
|
+
|
|
18081
|
+
|
|
18082
|
+
tg = elbv2.ApplicationTargetGroup(self, "TargetGroup",
|
|
18083
|
+
vpc=vpc,
|
|
18084
|
+
load_balancing_algorithm_type=elbv2.TargetGroupLoadBalancingAlgorithmType.WEIGHTED_RANDOM,
|
|
18085
|
+
enable_anomaly_mitigation=True
|
|
18086
|
+
)
|
|
18087
|
+
'''
|
|
18045
18088
|
|
|
18046
18089
|
ROUND_ROBIN = "ROUND_ROBIN"
|
|
18047
18090
|
'''round_robin.'''
|
|
18048
18091
|
LEAST_OUTSTANDING_REQUESTS = "LEAST_OUTSTANDING_REQUESTS"
|
|
18049
18092
|
'''least_outstanding_requests.'''
|
|
18093
|
+
WEIGHTED_RANDOM = "WEIGHTED_RANDOM"
|
|
18094
|
+
'''weighted_random.'''
|
|
18050
18095
|
|
|
18051
18096
|
|
|
18052
18097
|
@jsii.enum(jsii_type="aws-cdk-lib.aws_elasticloadbalancingv2.TargetType")
|
|
@@ -18463,6 +18508,7 @@ class AddApplicationTargetGroupsProps(AddRuleProps):
|
|
|
18463
18508
|
"conditions": "conditions",
|
|
18464
18509
|
"priority": "priority",
|
|
18465
18510
|
"deregistration_delay": "deregistrationDelay",
|
|
18511
|
+
"enable_anomaly_mitigation": "enableAnomalyMitigation",
|
|
18466
18512
|
"health_check": "healthCheck",
|
|
18467
18513
|
"load_balancing_algorithm_type": "loadBalancingAlgorithmType",
|
|
18468
18514
|
"port": "port",
|
|
@@ -18482,6 +18528,7 @@ class AddApplicationTargetsProps(AddRuleProps):
|
|
|
18482
18528
|
conditions: typing.Optional[typing.Sequence[ListenerCondition]] = None,
|
|
18483
18529
|
priority: typing.Optional[jsii.Number] = None,
|
|
18484
18530
|
deregistration_delay: typing.Optional[_Duration_4839e8c3] = None,
|
|
18531
|
+
enable_anomaly_mitigation: typing.Optional[builtins.bool] = None,
|
|
18485
18532
|
health_check: typing.Optional[typing.Union[HealthCheck, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
18486
18533
|
load_balancing_algorithm_type: typing.Optional[TargetGroupLoadBalancingAlgorithmType] = None,
|
|
18487
18534
|
port: typing.Optional[jsii.Number] = None,
|
|
@@ -18498,6 +18545,7 @@ class AddApplicationTargetsProps(AddRuleProps):
|
|
|
18498
18545
|
:param conditions: Rule applies if matches the conditions. Default: - No conditions.
|
|
18499
18546
|
:param priority: Priority of this target group. The rule with the lowest priority will be used for every request. If priority is not given, these target groups will be added as defaults, and must not have conditions. Priorities must be unique. Default: Target groups are used as defaults
|
|
18500
18547
|
:param deregistration_delay: The amount of time for Elastic Load Balancing to wait before deregistering a target. The range is 0-3600 seconds. Default: Duration.minutes(5)
|
|
18548
|
+
:param enable_anomaly_mitigation: Indicates whether anomaly mitigation is enabled. Only available when ``loadBalancingAlgorithmType`` is ``TargetGroupLoadBalancingAlgorithmType.WEIGHTED_RANDOM`` Default: false
|
|
18501
18549
|
:param health_check: Health check configuration. Default: - The default value for each property in this configuration varies depending on the target.
|
|
18502
18550
|
:param load_balancing_algorithm_type: The load balancing algorithm to select targets for routing requests. Default: round_robin.
|
|
18503
18551
|
:param port: The port on which the listener listens for requests. Default: Determined from protocol if known
|
|
@@ -18550,6 +18598,7 @@ class AddApplicationTargetsProps(AddRuleProps):
|
|
|
18550
18598
|
check_type(argname="argument conditions", value=conditions, expected_type=type_hints["conditions"])
|
|
18551
18599
|
check_type(argname="argument priority", value=priority, expected_type=type_hints["priority"])
|
|
18552
18600
|
check_type(argname="argument deregistration_delay", value=deregistration_delay, expected_type=type_hints["deregistration_delay"])
|
|
18601
|
+
check_type(argname="argument enable_anomaly_mitigation", value=enable_anomaly_mitigation, expected_type=type_hints["enable_anomaly_mitigation"])
|
|
18553
18602
|
check_type(argname="argument health_check", value=health_check, expected_type=type_hints["health_check"])
|
|
18554
18603
|
check_type(argname="argument load_balancing_algorithm_type", value=load_balancing_algorithm_type, expected_type=type_hints["load_balancing_algorithm_type"])
|
|
18555
18604
|
check_type(argname="argument port", value=port, expected_type=type_hints["port"])
|
|
@@ -18567,6 +18616,8 @@ class AddApplicationTargetsProps(AddRuleProps):
|
|
|
18567
18616
|
self._values["priority"] = priority
|
|
18568
18617
|
if deregistration_delay is not None:
|
|
18569
18618
|
self._values["deregistration_delay"] = deregistration_delay
|
|
18619
|
+
if enable_anomaly_mitigation is not None:
|
|
18620
|
+
self._values["enable_anomaly_mitigation"] = enable_anomaly_mitigation
|
|
18570
18621
|
if health_check is not None:
|
|
18571
18622
|
self._values["health_check"] = health_check
|
|
18572
18623
|
if load_balancing_algorithm_type is not None:
|
|
@@ -18625,6 +18676,19 @@ class AddApplicationTargetsProps(AddRuleProps):
|
|
|
18625
18676
|
result = self._values.get("deregistration_delay")
|
|
18626
18677
|
return typing.cast(typing.Optional[_Duration_4839e8c3], result)
|
|
18627
18678
|
|
|
18679
|
+
@builtins.property
|
|
18680
|
+
def enable_anomaly_mitigation(self) -> typing.Optional[builtins.bool]:
|
|
18681
|
+
'''Indicates whether anomaly mitigation is enabled.
|
|
18682
|
+
|
|
18683
|
+
Only available when ``loadBalancingAlgorithmType`` is ``TargetGroupLoadBalancingAlgorithmType.WEIGHTED_RANDOM``
|
|
18684
|
+
|
|
18685
|
+
:default: false
|
|
18686
|
+
|
|
18687
|
+
:see: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-target-groups.html#automatic-target-weights
|
|
18688
|
+
'''
|
|
18689
|
+
result = self._values.get("enable_anomaly_mitigation")
|
|
18690
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
18691
|
+
|
|
18628
18692
|
@builtins.property
|
|
18629
18693
|
def health_check(self) -> typing.Optional[HealthCheck]:
|
|
18630
18694
|
'''Health check configuration.
|
|
@@ -19646,6 +19710,7 @@ class ApplicationLoadBalancerProps(BaseLoadBalancerProps):
|
|
|
19646
19710
|
"target_group_name": "targetGroupName",
|
|
19647
19711
|
"target_type": "targetType",
|
|
19648
19712
|
"vpc": "vpc",
|
|
19713
|
+
"enable_anomaly_mitigation": "enableAnomalyMitigation",
|
|
19649
19714
|
"load_balancing_algorithm_type": "loadBalancingAlgorithmType",
|
|
19650
19715
|
"port": "port",
|
|
19651
19716
|
"protocol": "protocol",
|
|
@@ -19665,6 +19730,7 @@ class ApplicationTargetGroupProps(BaseTargetGroupProps):
|
|
|
19665
19730
|
target_group_name: typing.Optional[builtins.str] = None,
|
|
19666
19731
|
target_type: typing.Optional[TargetType] = None,
|
|
19667
19732
|
vpc: typing.Optional[_IVpc_f30d5663] = None,
|
|
19733
|
+
enable_anomaly_mitigation: typing.Optional[builtins.bool] = None,
|
|
19668
19734
|
load_balancing_algorithm_type: typing.Optional[TargetGroupLoadBalancingAlgorithmType] = None,
|
|
19669
19735
|
port: typing.Optional[jsii.Number] = None,
|
|
19670
19736
|
protocol: typing.Optional[ApplicationProtocol] = None,
|
|
@@ -19681,6 +19747,7 @@ class ApplicationTargetGroupProps(BaseTargetGroupProps):
|
|
|
19681
19747
|
:param target_group_name: The name of the target group. This name must be unique per region per account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen. Default: - Automatically generated.
|
|
19682
19748
|
:param target_type: The type of targets registered to this TargetGroup, either IP or Instance. All targets registered into the group must be of this type. If you register targets to the TargetGroup in the CDK app, the TargetType is determined automatically. Default: - Determined automatically.
|
|
19683
19749
|
:param vpc: The virtual private cloud (VPC). only if ``TargetType`` is ``Ip`` or ``InstanceId`` Default: - undefined
|
|
19750
|
+
:param enable_anomaly_mitigation: Indicates whether anomaly mitigation is enabled. Only available when ``loadBalancingAlgorithmType`` is ``TargetGroupLoadBalancingAlgorithmType.WEIGHTED_RANDOM`` Default: false
|
|
19684
19751
|
:param load_balancing_algorithm_type: The load balancing algorithm to select targets for routing requests. Default: TargetGroupLoadBalancingAlgorithmType.ROUND_ROBIN
|
|
19685
19752
|
:param port: The port on which the target receives traffic. This is not applicable for Lambda targets. Default: - Determined from protocol if known
|
|
19686
19753
|
:param protocol: The protocol used for communication with the target. This is not applicable for Lambda targets. Default: - Determined from port if known
|
|
@@ -19697,15 +19764,11 @@ class ApplicationTargetGroupProps(BaseTargetGroupProps):
|
|
|
19697
19764
|
# vpc: ec2.Vpc
|
|
19698
19765
|
|
|
19699
19766
|
|
|
19767
|
+
# Target group with slow start mode enabled
|
|
19700
19768
|
tg = elbv2.ApplicationTargetGroup(self, "TG",
|
|
19701
|
-
target_type=elbv2.TargetType.
|
|
19702
|
-
|
|
19703
|
-
|
|
19704
|
-
protocol_version=elbv2.ApplicationProtocolVersion.GRPC,
|
|
19705
|
-
health_check=elbv2.HealthCheck(
|
|
19706
|
-
enabled=True,
|
|
19707
|
-
healthy_grpc_codes="0-99"
|
|
19708
|
-
),
|
|
19769
|
+
target_type=elbv2.TargetType.INSTANCE,
|
|
19770
|
+
slow_start=Duration.seconds(60),
|
|
19771
|
+
port=80,
|
|
19709
19772
|
vpc=vpc
|
|
19710
19773
|
)
|
|
19711
19774
|
'''
|
|
@@ -19718,6 +19781,7 @@ class ApplicationTargetGroupProps(BaseTargetGroupProps):
|
|
|
19718
19781
|
check_type(argname="argument target_group_name", value=target_group_name, expected_type=type_hints["target_group_name"])
|
|
19719
19782
|
check_type(argname="argument target_type", value=target_type, expected_type=type_hints["target_type"])
|
|
19720
19783
|
check_type(argname="argument vpc", value=vpc, expected_type=type_hints["vpc"])
|
|
19784
|
+
check_type(argname="argument enable_anomaly_mitigation", value=enable_anomaly_mitigation, expected_type=type_hints["enable_anomaly_mitigation"])
|
|
19721
19785
|
check_type(argname="argument load_balancing_algorithm_type", value=load_balancing_algorithm_type, expected_type=type_hints["load_balancing_algorithm_type"])
|
|
19722
19786
|
check_type(argname="argument port", value=port, expected_type=type_hints["port"])
|
|
19723
19787
|
check_type(argname="argument protocol", value=protocol, expected_type=type_hints["protocol"])
|
|
@@ -19737,6 +19801,8 @@ class ApplicationTargetGroupProps(BaseTargetGroupProps):
|
|
|
19737
19801
|
self._values["target_type"] = target_type
|
|
19738
19802
|
if vpc is not None:
|
|
19739
19803
|
self._values["vpc"] = vpc
|
|
19804
|
+
if enable_anomaly_mitigation is not None:
|
|
19805
|
+
self._values["enable_anomaly_mitigation"] = enable_anomaly_mitigation
|
|
19740
19806
|
if load_balancing_algorithm_type is not None:
|
|
19741
19807
|
self._values["load_balancing_algorithm_type"] = load_balancing_algorithm_type
|
|
19742
19808
|
if port is not None:
|
|
@@ -19813,6 +19879,19 @@ class ApplicationTargetGroupProps(BaseTargetGroupProps):
|
|
|
19813
19879
|
result = self._values.get("vpc")
|
|
19814
19880
|
return typing.cast(typing.Optional[_IVpc_f30d5663], result)
|
|
19815
19881
|
|
|
19882
|
+
@builtins.property
|
|
19883
|
+
def enable_anomaly_mitigation(self) -> typing.Optional[builtins.bool]:
|
|
19884
|
+
'''Indicates whether anomaly mitigation is enabled.
|
|
19885
|
+
|
|
19886
|
+
Only available when ``loadBalancingAlgorithmType`` is ``TargetGroupLoadBalancingAlgorithmType.WEIGHTED_RANDOM``
|
|
19887
|
+
|
|
19888
|
+
:default: false
|
|
19889
|
+
|
|
19890
|
+
:see: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-target-groups.html#automatic-target-weights
|
|
19891
|
+
'''
|
|
19892
|
+
result = self._values.get("enable_anomaly_mitigation")
|
|
19893
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
19894
|
+
|
|
19816
19895
|
@builtins.property
|
|
19817
19896
|
def load_balancing_algorithm_type(
|
|
19818
19897
|
self,
|
|
@@ -20053,6 +20132,7 @@ class IApplicationListener(
|
|
|
20053
20132
|
id: builtins.str,
|
|
20054
20133
|
*,
|
|
20055
20134
|
deregistration_delay: typing.Optional[_Duration_4839e8c3] = None,
|
|
20135
|
+
enable_anomaly_mitigation: typing.Optional[builtins.bool] = None,
|
|
20056
20136
|
health_check: typing.Optional[typing.Union[HealthCheck, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
20057
20137
|
load_balancing_algorithm_type: typing.Optional[TargetGroupLoadBalancingAlgorithmType] = None,
|
|
20058
20138
|
port: typing.Optional[jsii.Number] = None,
|
|
@@ -20076,6 +20156,7 @@ class IApplicationListener(
|
|
|
20076
20156
|
|
|
20077
20157
|
:param id: -
|
|
20078
20158
|
:param deregistration_delay: The amount of time for Elastic Load Balancing to wait before deregistering a target. The range is 0-3600 seconds. Default: Duration.minutes(5)
|
|
20159
|
+
:param enable_anomaly_mitigation: Indicates whether anomaly mitigation is enabled. Only available when ``loadBalancingAlgorithmType`` is ``TargetGroupLoadBalancingAlgorithmType.WEIGHTED_RANDOM`` Default: false
|
|
20079
20160
|
:param health_check: Health check configuration. Default: - The default value for each property in this configuration varies depending on the target.
|
|
20080
20161
|
:param load_balancing_algorithm_type: The load balancing algorithm to select targets for routing requests. Default: round_robin.
|
|
20081
20162
|
:param port: The port on which the listener listens for requests. Default: Determined from protocol if known
|
|
@@ -20208,6 +20289,7 @@ class _IApplicationListenerProxy(
|
|
|
20208
20289
|
id: builtins.str,
|
|
20209
20290
|
*,
|
|
20210
20291
|
deregistration_delay: typing.Optional[_Duration_4839e8c3] = None,
|
|
20292
|
+
enable_anomaly_mitigation: typing.Optional[builtins.bool] = None,
|
|
20211
20293
|
health_check: typing.Optional[typing.Union[HealthCheck, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
20212
20294
|
load_balancing_algorithm_type: typing.Optional[TargetGroupLoadBalancingAlgorithmType] = None,
|
|
20213
20295
|
port: typing.Optional[jsii.Number] = None,
|
|
@@ -20231,6 +20313,7 @@ class _IApplicationListenerProxy(
|
|
|
20231
20313
|
|
|
20232
20314
|
:param id: -
|
|
20233
20315
|
:param deregistration_delay: The amount of time for Elastic Load Balancing to wait before deregistering a target. The range is 0-3600 seconds. Default: Duration.minutes(5)
|
|
20316
|
+
:param enable_anomaly_mitigation: Indicates whether anomaly mitigation is enabled. Only available when ``loadBalancingAlgorithmType`` is ``TargetGroupLoadBalancingAlgorithmType.WEIGHTED_RANDOM`` Default: false
|
|
20234
20317
|
:param health_check: Health check configuration. Default: - The default value for each property in this configuration varies depending on the target.
|
|
20235
20318
|
:param load_balancing_algorithm_type: The load balancing algorithm to select targets for routing requests. Default: round_robin.
|
|
20236
20319
|
:param port: The port on which the listener listens for requests. Default: Determined from protocol if known
|
|
@@ -20251,6 +20334,7 @@ class _IApplicationListenerProxy(
|
|
|
20251
20334
|
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
20252
20335
|
props = AddApplicationTargetsProps(
|
|
20253
20336
|
deregistration_delay=deregistration_delay,
|
|
20337
|
+
enable_anomaly_mitigation=enable_anomaly_mitigation,
|
|
20254
20338
|
health_check=health_check,
|
|
20255
20339
|
load_balancing_algorithm_type=load_balancing_algorithm_type,
|
|
20256
20340
|
port=port,
|
|
@@ -21395,6 +21479,7 @@ class ApplicationListener(
|
|
|
21395
21479
|
id: builtins.str,
|
|
21396
21480
|
*,
|
|
21397
21481
|
deregistration_delay: typing.Optional[_Duration_4839e8c3] = None,
|
|
21482
|
+
enable_anomaly_mitigation: typing.Optional[builtins.bool] = None,
|
|
21398
21483
|
health_check: typing.Optional[typing.Union[HealthCheck, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
21399
21484
|
load_balancing_algorithm_type: typing.Optional[TargetGroupLoadBalancingAlgorithmType] = None,
|
|
21400
21485
|
port: typing.Optional[jsii.Number] = None,
|
|
@@ -21421,6 +21506,7 @@ class ApplicationListener(
|
|
|
21421
21506
|
|
|
21422
21507
|
:param id: -
|
|
21423
21508
|
:param deregistration_delay: The amount of time for Elastic Load Balancing to wait before deregistering a target. The range is 0-3600 seconds. Default: Duration.minutes(5)
|
|
21509
|
+
:param enable_anomaly_mitigation: Indicates whether anomaly mitigation is enabled. Only available when ``loadBalancingAlgorithmType`` is ``TargetGroupLoadBalancingAlgorithmType.WEIGHTED_RANDOM`` Default: false
|
|
21424
21510
|
:param health_check: Health check configuration. Default: - The default value for each property in this configuration varies depending on the target.
|
|
21425
21511
|
:param load_balancing_algorithm_type: The load balancing algorithm to select targets for routing requests. Default: round_robin.
|
|
21426
21512
|
:param port: The port on which the listener listens for requests. Default: Determined from protocol if known
|
|
@@ -21441,6 +21527,7 @@ class ApplicationListener(
|
|
|
21441
21527
|
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
21442
21528
|
props = AddApplicationTargetsProps(
|
|
21443
21529
|
deregistration_delay=deregistration_delay,
|
|
21530
|
+
enable_anomaly_mitigation=enable_anomaly_mitigation,
|
|
21444
21531
|
health_check=health_check,
|
|
21445
21532
|
load_balancing_algorithm_type=load_balancing_algorithm_type,
|
|
21446
21533
|
port=port,
|
|
@@ -22858,6 +22945,7 @@ class ApplicationTargetGroup(
|
|
|
22858
22945
|
scope: _constructs_77d1e7e8.Construct,
|
|
22859
22946
|
id: builtins.str,
|
|
22860
22947
|
*,
|
|
22948
|
+
enable_anomaly_mitigation: typing.Optional[builtins.bool] = None,
|
|
22861
22949
|
load_balancing_algorithm_type: typing.Optional[TargetGroupLoadBalancingAlgorithmType] = None,
|
|
22862
22950
|
port: typing.Optional[jsii.Number] = None,
|
|
22863
22951
|
protocol: typing.Optional[ApplicationProtocol] = None,
|
|
@@ -22875,6 +22963,7 @@ class ApplicationTargetGroup(
|
|
|
22875
22963
|
'''
|
|
22876
22964
|
:param scope: -
|
|
22877
22965
|
:param id: -
|
|
22966
|
+
:param enable_anomaly_mitigation: Indicates whether anomaly mitigation is enabled. Only available when ``loadBalancingAlgorithmType`` is ``TargetGroupLoadBalancingAlgorithmType.WEIGHTED_RANDOM`` Default: false
|
|
22878
22967
|
:param load_balancing_algorithm_type: The load balancing algorithm to select targets for routing requests. Default: TargetGroupLoadBalancingAlgorithmType.ROUND_ROBIN
|
|
22879
22968
|
:param port: The port on which the target receives traffic. This is not applicable for Lambda targets. Default: - Determined from protocol if known
|
|
22880
22969
|
:param protocol: The protocol used for communication with the target. This is not applicable for Lambda targets. Default: - Determined from port if known
|
|
@@ -22894,6 +22983,7 @@ class ApplicationTargetGroup(
|
|
|
22894
22983
|
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
22895
22984
|
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
22896
22985
|
props = ApplicationTargetGroupProps(
|
|
22986
|
+
enable_anomaly_mitigation=enable_anomaly_mitigation,
|
|
22897
22987
|
load_balancing_algorithm_type=load_balancing_algorithm_type,
|
|
22898
22988
|
port=port,
|
|
22899
22989
|
protocol=protocol,
|
|
@@ -25288,6 +25378,7 @@ def _typecheckingstub__b26d56d500bb67c9d6ae66f1cb40dc7e2f3a670459278ff6a96edc676
|
|
|
25288
25378
|
conditions: typing.Optional[typing.Sequence[ListenerCondition]] = None,
|
|
25289
25379
|
priority: typing.Optional[jsii.Number] = None,
|
|
25290
25380
|
deregistration_delay: typing.Optional[_Duration_4839e8c3] = None,
|
|
25381
|
+
enable_anomaly_mitigation: typing.Optional[builtins.bool] = None,
|
|
25291
25382
|
health_check: typing.Optional[typing.Union[HealthCheck, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
25292
25383
|
load_balancing_algorithm_type: typing.Optional[TargetGroupLoadBalancingAlgorithmType] = None,
|
|
25293
25384
|
port: typing.Optional[jsii.Number] = None,
|
|
@@ -25378,6 +25469,7 @@ def _typecheckingstub__0fbf37aa0a91cb985ce7a336a6188364cc38400538c1653e53453287c
|
|
|
25378
25469
|
target_group_name: typing.Optional[builtins.str] = None,
|
|
25379
25470
|
target_type: typing.Optional[TargetType] = None,
|
|
25380
25471
|
vpc: typing.Optional[_IVpc_f30d5663] = None,
|
|
25472
|
+
enable_anomaly_mitigation: typing.Optional[builtins.bool] = None,
|
|
25381
25473
|
load_balancing_algorithm_type: typing.Optional[TargetGroupLoadBalancingAlgorithmType] = None,
|
|
25382
25474
|
port: typing.Optional[jsii.Number] = None,
|
|
25383
25475
|
protocol: typing.Optional[ApplicationProtocol] = None,
|
|
@@ -25430,6 +25522,7 @@ def _typecheckingstub__84e790e0e8140f8df376ccc9404001adf95dc62c6408367a7fb37a7ac
|
|
|
25430
25522
|
id: builtins.str,
|
|
25431
25523
|
*,
|
|
25432
25524
|
deregistration_delay: typing.Optional[_Duration_4839e8c3] = None,
|
|
25525
|
+
enable_anomaly_mitigation: typing.Optional[builtins.bool] = None,
|
|
25433
25526
|
health_check: typing.Optional[typing.Union[HealthCheck, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
25434
25527
|
load_balancing_algorithm_type: typing.Optional[TargetGroupLoadBalancingAlgorithmType] = None,
|
|
25435
25528
|
port: typing.Optional[jsii.Number] = None,
|
|
@@ -25685,6 +25778,7 @@ def _typecheckingstub__024551e53e2a61ea5cc079e4909fa79f39b1b922c5d0ab7d4adfe8153
|
|
|
25685
25778
|
id: builtins.str,
|
|
25686
25779
|
*,
|
|
25687
25780
|
deregistration_delay: typing.Optional[_Duration_4839e8c3] = None,
|
|
25781
|
+
enable_anomaly_mitigation: typing.Optional[builtins.bool] = None,
|
|
25688
25782
|
health_check: typing.Optional[typing.Union[HealthCheck, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
25689
25783
|
load_balancing_algorithm_type: typing.Optional[TargetGroupLoadBalancingAlgorithmType] = None,
|
|
25690
25784
|
port: typing.Optional[jsii.Number] = None,
|
|
@@ -25835,6 +25929,7 @@ def _typecheckingstub__e179515c9d6138007cc1b74835b75f10a179c1f5ef977cbe4188c778c
|
|
|
25835
25929
|
scope: _constructs_77d1e7e8.Construct,
|
|
25836
25930
|
id: builtins.str,
|
|
25837
25931
|
*,
|
|
25932
|
+
enable_anomaly_mitigation: typing.Optional[builtins.bool] = None,
|
|
25838
25933
|
load_balancing_algorithm_type: typing.Optional[TargetGroupLoadBalancingAlgorithmType] = None,
|
|
25839
25934
|
port: typing.Optional[jsii.Number] = None,
|
|
25840
25935
|
protocol: typing.Optional[ApplicationProtocol] = None,
|
aws_cdk/aws_emr/__init__.py
CHANGED
|
@@ -612,7 +612,7 @@ class CfnCluster(
|
|
|
612
612
|
:param additional_info: A JSON string for selecting additional features.
|
|
613
613
|
:param applications: The applications to install on this cluster, for example, Spark, Flink, Oozie, Zeppelin, and so on.
|
|
614
614
|
:param auto_scaling_role: An IAM role for automatic scaling policies. The default role is ``EMR_AutoScaling_DefaultRole`` . The IAM role provides permissions that the automatic scaling feature requires to launch and terminate Amazon EC2 instances in an instance group.
|
|
615
|
-
:param auto_termination_policy: An auto-termination policy defines the amount of idle time in seconds after which a cluster automatically terminates. For alternative cluster termination options, see `Control cluster termination <https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html>`_
|
|
615
|
+
:param auto_termination_policy: An auto-termination policy for an Amazon EMR cluster. An auto-termination policy defines the amount of idle time in seconds after which a cluster automatically terminates. For alternative cluster termination options, see `Control cluster termination <https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html>`_ .
|
|
616
616
|
:param bootstrap_actions: A list of bootstrap actions to run before Hadoop starts on the cluster nodes.
|
|
617
617
|
:param configurations: Applies only to Amazon EMR releases 4.x and later. The list of configurations that are supplied to the Amazon EMR cluster.
|
|
618
618
|
:param custom_ami_id: Available only in Amazon EMR releases 5.7.0 and later. The ID of a custom Amazon EBS-backed Linux AMI if the cluster uses a custom AMI.
|
|
@@ -834,7 +834,7 @@ class CfnCluster(
|
|
|
834
834
|
def auto_termination_policy(
|
|
835
835
|
self,
|
|
836
836
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCluster.AutoTerminationPolicyProperty"]]:
|
|
837
|
-
'''An auto-termination policy
|
|
837
|
+
'''An auto-termination policy for an Amazon EMR cluster.'''
|
|
838
838
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCluster.AutoTerminationPolicyProperty"]], jsii.get(self, "autoTerminationPolicy"))
|
|
839
839
|
|
|
840
840
|
@auto_termination_policy.setter
|
|
@@ -5277,7 +5277,7 @@ class CfnClusterProps:
|
|
|
5277
5277
|
:param additional_info: A JSON string for selecting additional features.
|
|
5278
5278
|
:param applications: The applications to install on this cluster, for example, Spark, Flink, Oozie, Zeppelin, and so on.
|
|
5279
5279
|
:param auto_scaling_role: An IAM role for automatic scaling policies. The default role is ``EMR_AutoScaling_DefaultRole`` . The IAM role provides permissions that the automatic scaling feature requires to launch and terminate Amazon EC2 instances in an instance group.
|
|
5280
|
-
:param auto_termination_policy: An auto-termination policy defines the amount of idle time in seconds after which a cluster automatically terminates. For alternative cluster termination options, see `Control cluster termination <https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html>`_
|
|
5280
|
+
:param auto_termination_policy: An auto-termination policy for an Amazon EMR cluster. An auto-termination policy defines the amount of idle time in seconds after which a cluster automatically terminates. For alternative cluster termination options, see `Control cluster termination <https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html>`_ .
|
|
5281
5281
|
:param bootstrap_actions: A list of bootstrap actions to run before Hadoop starts on the cluster nodes.
|
|
5282
5282
|
:param configurations: Applies only to Amazon EMR releases 4.x and later. The list of configurations that are supplied to the Amazon EMR cluster.
|
|
5283
5283
|
:param custom_ami_id: Available only in Amazon EMR releases 5.7.0 and later. The ID of a custom Amazon EBS-backed Linux AMI if the cluster uses a custom AMI.
|
|
@@ -5961,9 +5961,9 @@ class CfnClusterProps:
|
|
|
5961
5961
|
def auto_termination_policy(
|
|
5962
5962
|
self,
|
|
5963
5963
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnCluster.AutoTerminationPolicyProperty]]:
|
|
5964
|
-
'''An auto-termination policy
|
|
5964
|
+
'''An auto-termination policy for an Amazon EMR cluster.
|
|
5965
5965
|
|
|
5966
|
-
For alternative cluster termination options, see `Control cluster termination <https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html>`_
|
|
5966
|
+
An auto-termination policy defines the amount of idle time in seconds after which a cluster automatically terminates. For alternative cluster termination options, see `Control cluster termination <https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html>`_ .
|
|
5967
5967
|
|
|
5968
5968
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-cluster.html#cfn-emr-cluster-autoterminationpolicy
|
|
5969
5969
|
'''
|
|
@@ -9571,7 +9571,7 @@ class CfnSecurityConfiguration(
|
|
|
9571
9571
|
'''
|
|
9572
9572
|
:param scope: Scope in which this resource is defined.
|
|
9573
9573
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
9574
|
-
:param security_configuration: The security configuration details in JSON format.
|
|
9574
|
+
:param security_configuration: The security configuration details in JSON format. For JSON parameters and examples, see `Use Security Configurations to Set Up Cluster Security <https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-security-configurations.html>`_ in the *Amazon EMR Management Guide* .
|
|
9575
9575
|
:param name: The name of the security configuration.
|
|
9576
9576
|
'''
|
|
9577
9577
|
if __debug__:
|
|
@@ -9660,7 +9660,7 @@ class CfnSecurityConfigurationProps:
|
|
|
9660
9660
|
) -> None:
|
|
9661
9661
|
'''Properties for defining a ``CfnSecurityConfiguration``.
|
|
9662
9662
|
|
|
9663
|
-
:param security_configuration: The security configuration details in JSON format.
|
|
9663
|
+
:param security_configuration: The security configuration details in JSON format. For JSON parameters and examples, see `Use Security Configurations to Set Up Cluster Security <https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-security-configurations.html>`_ in the *Amazon EMR Management Guide* .
|
|
9664
9664
|
:param name: The name of the security configuration.
|
|
9665
9665
|
|
|
9666
9666
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-securityconfiguration.html
|
|
@@ -9743,6 +9743,8 @@ class CfnSecurityConfigurationProps:
|
|
|
9743
9743
|
def security_configuration(self) -> typing.Any:
|
|
9744
9744
|
'''The security configuration details in JSON format.
|
|
9745
9745
|
|
|
9746
|
+
For JSON parameters and examples, see `Use Security Configurations to Set Up Cluster Security <https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-security-configurations.html>`_ in the *Amazon EMR Management Guide* .
|
|
9747
|
+
|
|
9746
9748
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-securityconfiguration.html#cfn-emr-securityconfiguration-securityconfiguration
|
|
9747
9749
|
'''
|
|
9748
9750
|
result = self._values.get("security_configuration")
|
|
@@ -11277,9 +11279,7 @@ class CfnWALWorkspace(
|
|
|
11277
11279
|
metaclass=jsii.JSIIMeta,
|
|
11278
11280
|
jsii_type="aws-cdk-lib.aws_emr.CfnWALWorkspace",
|
|
11279
11281
|
):
|
|
11280
|
-
'''
|
|
11281
|
-
|
|
11282
|
-
All WALs in Amazon EMR WAL are encapsulated by a WAL workspace.
|
|
11282
|
+
'''http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-walworkspace.html.
|
|
11283
11283
|
|
|
11284
11284
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-walworkspace.html
|
|
11285
11285
|
:cloudformationResource: AWS::EMR::WALWorkspace
|
|
@@ -11311,8 +11311,8 @@ class CfnWALWorkspace(
|
|
|
11311
11311
|
'''
|
|
11312
11312
|
:param scope: Scope in which this resource is defined.
|
|
11313
11313
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
11314
|
-
:param tags:
|
|
11315
|
-
:param wal_workspace_name: The name of the
|
|
11314
|
+
:param tags: An array of key-value pairs to apply to this resource.
|
|
11315
|
+
:param wal_workspace_name: The name of the emrwal container.
|
|
11316
11316
|
'''
|
|
11317
11317
|
if __debug__:
|
|
11318
11318
|
type_hints = typing.get_type_hints(_typecheckingstub__1985a11480d9771f4adca96d86b169aa02281678db75bca99cae188da64db2af)
|
|
@@ -11366,7 +11366,7 @@ class CfnWALWorkspace(
|
|
|
11366
11366
|
@builtins.property
|
|
11367
11367
|
@jsii.member(jsii_name="tags")
|
|
11368
11368
|
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
11369
|
-
'''
|
|
11369
|
+
'''An array of key-value pairs to apply to this resource.'''
|
|
11370
11370
|
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], jsii.get(self, "tags"))
|
|
11371
11371
|
|
|
11372
11372
|
@tags.setter
|
|
@@ -11379,7 +11379,7 @@ class CfnWALWorkspace(
|
|
|
11379
11379
|
@builtins.property
|
|
11380
11380
|
@jsii.member(jsii_name="walWorkspaceName")
|
|
11381
11381
|
def wal_workspace_name(self) -> typing.Optional[builtins.str]:
|
|
11382
|
-
'''The name of the
|
|
11382
|
+
'''The name of the emrwal container.'''
|
|
11383
11383
|
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "walWorkspaceName"))
|
|
11384
11384
|
|
|
11385
11385
|
@wal_workspace_name.setter
|
|
@@ -11404,8 +11404,8 @@ class CfnWALWorkspaceProps:
|
|
|
11404
11404
|
) -> None:
|
|
11405
11405
|
'''Properties for defining a ``CfnWALWorkspace``.
|
|
11406
11406
|
|
|
11407
|
-
:param tags:
|
|
11408
|
-
:param wal_workspace_name: The name of the
|
|
11407
|
+
:param tags: An array of key-value pairs to apply to this resource.
|
|
11408
|
+
:param wal_workspace_name: The name of the emrwal container.
|
|
11409
11409
|
|
|
11410
11410
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-walworkspace.html
|
|
11411
11411
|
:exampleMetadata: fixture=_generated
|
|
@@ -11436,9 +11436,7 @@ class CfnWALWorkspaceProps:
|
|
|
11436
11436
|
|
|
11437
11437
|
@builtins.property
|
|
11438
11438
|
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
11439
|
-
'''
|
|
11440
|
-
|
|
11441
|
-
You can add, remove, or list tags from an active workspace, but you can't update tags. Instead, remove the tag and add a new one. For more information, see see `Tag your Amazon EMR WAL workspaces <https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-hbase-wal.html#emr-hbase-wal-tagging>`_ .
|
|
11439
|
+
'''An array of key-value pairs to apply to this resource.
|
|
11442
11440
|
|
|
11443
11441
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-walworkspace.html#cfn-emr-walworkspace-tags
|
|
11444
11442
|
'''
|
|
@@ -11447,7 +11445,7 @@ class CfnWALWorkspaceProps:
|
|
|
11447
11445
|
|
|
11448
11446
|
@builtins.property
|
|
11449
11447
|
def wal_workspace_name(self) -> typing.Optional[builtins.str]:
|
|
11450
|
-
'''The name of the
|
|
11448
|
+
'''The name of the emrwal container.
|
|
11451
11449
|
|
|
11452
11450
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-walworkspace.html#cfn-emr-walworkspace-walworkspacename
|
|
11453
11451
|
'''
|