aws-cdk-lib 2.161.0__py3-none-any.whl → 2.162.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.
Files changed (45) hide show
  1. aws_cdk/__init__.py +64 -10
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.161.0.jsii.tgz → aws-cdk-lib@2.162.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_apigatewayv2/__init__.py +16 -7
  5. aws_cdk/aws_apigatewayv2_authorizers/__init__.py +94 -0
  6. aws_cdk/aws_appsync/__init__.py +35 -0
  7. aws_cdk/aws_b2bi/__init__.py +18 -21
  8. aws_cdk/aws_cloudformation/__init__.py +59 -5
  9. aws_cdk/aws_cloudfront/__init__.py +4 -4
  10. aws_cdk/aws_codebuild/__init__.py +6 -6
  11. aws_cdk/aws_codepipeline/__init__.py +1 -1
  12. aws_cdk/aws_codepipeline_actions/__init__.py +1 -1
  13. aws_cdk/aws_dynamodb/__init__.py +1 -1
  14. aws_cdk/aws_ec2/__init__.py +13 -3
  15. aws_cdk/aws_ecs/__init__.py +122 -29
  16. aws_cdk/aws_eks/__init__.py +62 -51
  17. aws_cdk/aws_elasticloadbalancingv2/__init__.py +139 -25
  18. aws_cdk/aws_emr/__init__.py +2182 -2129
  19. aws_cdk/aws_glue/__init__.py +9 -6
  20. aws_cdk/aws_iam/__init__.py +26 -4
  21. aws_cdk/aws_iot/__init__.py +190 -0
  22. aws_cdk/aws_iotsitewise/__init__.py +3 -1
  23. aws_cdk/aws_lambda/__init__.py +7 -1
  24. aws_cdk/aws_lambda_event_sources/__init__.py +2 -2
  25. aws_cdk/aws_logs/__init__.py +6 -6
  26. aws_cdk/aws_quicksight/__init__.py +32 -19
  27. aws_cdk/aws_rds/__init__.py +62 -30
  28. aws_cdk/aws_route53/__init__.py +5 -1
  29. aws_cdk/aws_route53resolver/__init__.py +17 -3
  30. aws_cdk/aws_s3/__init__.py +47 -25
  31. aws_cdk/aws_s3_assets/__init__.py +2 -2
  32. aws_cdk/aws_s3_notifications/__init__.py +1 -1
  33. aws_cdk/aws_servicecatalog/__init__.py +2 -2
  34. aws_cdk/aws_servicediscovery/__init__.py +8 -8
  35. aws_cdk/aws_sqs/__init__.py +12 -10
  36. aws_cdk/aws_stepfunctions_tasks/__init__.py +20 -20
  37. aws_cdk/cloudformation_include/__init__.py +4 -4
  38. aws_cdk/custom_resources/__init__.py +1 -1
  39. aws_cdk/pipelines/__init__.py +1 -1
  40. {aws_cdk_lib-2.161.0.dist-info → aws_cdk_lib-2.162.0.dist-info}/METADATA +4 -4
  41. {aws_cdk_lib-2.161.0.dist-info → aws_cdk_lib-2.162.0.dist-info}/RECORD +45 -45
  42. {aws_cdk_lib-2.161.0.dist-info → aws_cdk_lib-2.162.0.dist-info}/LICENSE +0 -0
  43. {aws_cdk_lib-2.161.0.dist-info → aws_cdk_lib-2.162.0.dist-info}/NOTICE +0 -0
  44. {aws_cdk_lib-2.161.0.dist-info → aws_cdk_lib-2.162.0.dist-info}/WHEEL +0 -0
  45. {aws_cdk_lib-2.161.0.dist-info → aws_cdk_lib-2.162.0.dist-info}/top_level.txt +0 -0
@@ -416,6 +416,24 @@ lb = elbv2.NetworkLoadBalancer(self, "LB",
416
416
  )
417
417
  ```
418
418
 
419
+ ### Network Load Balancer Listener attributes
420
+
421
+ You can modify attributes of Network Load Balancer Listener:
422
+
423
+ ```python
424
+ # lb: elbv2.NetworkLoadBalancer
425
+ # group: elbv2.NetworkTargetGroup
426
+
427
+
428
+ listener = lb.add_listener("Listener",
429
+ port=80,
430
+ default_action=elbv2.NetworkListenerAction.forward([group]),
431
+
432
+ # The tcp idle timeout value. The valid range is 60-6000 seconds. The default is 350 seconds.
433
+ tcp_idle_timeout=Duration.seconds(100)
434
+ )
435
+ ```
436
+
419
437
  ## Targets and Target Groups
420
438
 
421
439
  Application and Network Load Balancers organize load balancing targets in Target
@@ -3076,6 +3094,7 @@ class BaseLoadBalancerProps:
3076
3094
  "default_target_groups": "defaultTargetGroups",
3077
3095
  "protocol": "protocol",
3078
3096
  "ssl_policy": "sslPolicy",
3097
+ "tcp_idle_timeout": "tcpIdleTimeout",
3079
3098
  },
3080
3099
  )
3081
3100
  class BaseNetworkListenerProps:
@@ -3089,6 +3108,7 @@ class BaseNetworkListenerProps:
3089
3108
  default_target_groups: typing.Optional[typing.Sequence["INetworkTargetGroup"]] = None,
3090
3109
  protocol: typing.Optional["Protocol"] = None,
3091
3110
  ssl_policy: typing.Optional["SslPolicy"] = None,
3111
+ tcp_idle_timeout: typing.Optional[_Duration_4839e8c3] = None,
3092
3112
  ) -> None:
3093
3113
  '''Basic properties for a Network Listener.
3094
3114
 
@@ -3099,31 +3119,36 @@ class BaseNetworkListenerProps:
3099
3119
  :param default_target_groups: Default target groups to load balance to. All target groups will be load balanced to with equal weight and without stickiness. For a more complex configuration than that, use either ``defaultAction`` or ``addAction()``. Cannot be specified together with ``defaultAction``. Default: - None.
3100
3120
  :param protocol: Protocol for listener, expects TCP, TLS, UDP, or TCP_UDP. Default: - TLS if certificates are provided. TCP otherwise.
3101
3121
  :param ssl_policy: SSL Policy. Default: - Current predefined security policy.
3122
+ :param tcp_idle_timeout: The load balancer TCP idle timeout. Default: Duration.seconds(350)
3102
3123
 
3103
3124
  :exampleMetadata: infused
3104
3125
 
3105
3126
  Example::
3106
3127
 
3107
- import aws_cdk.aws_elasticloadbalancing as elb
3108
- import aws_cdk.aws_elasticloadbalancingv2 as elb2
3109
-
3110
- # clb: elb.LoadBalancer
3111
- # alb: elb2.ApplicationLoadBalancer
3112
- # nlb: elb2.NetworkLoadBalancer
3128
+ # vpc: ec2.Vpc
3129
+ # asg: autoscaling.AutoScalingGroup
3130
+ # sg1: ec2.ISecurityGroup
3131
+ # sg2: ec2.ISecurityGroup
3113
3132
 
3114
3133
 
3115
- alb_listener = alb.add_listener("ALBListener", port=80)
3116
- alb_target_group = alb_listener.add_targets("ALBFleet", port=80)
3134
+ # Create the load balancer in a VPC. 'internetFacing' is 'false'
3135
+ # by default, which creates an internal load balancer.
3136
+ lb = elbv2.NetworkLoadBalancer(self, "LB",
3137
+ vpc=vpc,
3138
+ internet_facing=True,
3139
+ security_groups=[sg1]
3140
+ )
3141
+ lb.add_security_group(sg2)
3117
3142
 
3118
- nlb_listener = nlb.add_listener("NLBListener", port=80)
3119
- nlb_target_group = nlb_listener.add_targets("NLBFleet", port=80)
3143
+ # Add a listener on a particular port.
3144
+ listener = lb.add_listener("Listener",
3145
+ port=443
3146
+ )
3120
3147
 
3121
- deployment_group = codedeploy.ServerDeploymentGroup(self, "DeploymentGroup",
3122
- load_balancers=[
3123
- codedeploy.LoadBalancer.classic(clb),
3124
- codedeploy.LoadBalancer.application(alb_target_group),
3125
- codedeploy.LoadBalancer.network(nlb_target_group)
3126
- ]
3148
+ # Add targets on a particular port.
3149
+ listener.add_targets("AppFleet",
3150
+ port=443,
3151
+ targets=[asg]
3127
3152
  )
3128
3153
  '''
3129
3154
  if __debug__:
@@ -3135,6 +3160,7 @@ class BaseNetworkListenerProps:
3135
3160
  check_type(argname="argument default_target_groups", value=default_target_groups, expected_type=type_hints["default_target_groups"])
3136
3161
  check_type(argname="argument protocol", value=protocol, expected_type=type_hints["protocol"])
3137
3162
  check_type(argname="argument ssl_policy", value=ssl_policy, expected_type=type_hints["ssl_policy"])
3163
+ check_type(argname="argument tcp_idle_timeout", value=tcp_idle_timeout, expected_type=type_hints["tcp_idle_timeout"])
3138
3164
  self._values: typing.Dict[builtins.str, typing.Any] = {
3139
3165
  "port": port,
3140
3166
  }
@@ -3150,6 +3176,8 @@ class BaseNetworkListenerProps:
3150
3176
  self._values["protocol"] = protocol
3151
3177
  if ssl_policy is not None:
3152
3178
  self._values["ssl_policy"] = ssl_policy
3179
+ if tcp_idle_timeout is not None:
3180
+ self._values["tcp_idle_timeout"] = tcp_idle_timeout
3153
3181
 
3154
3182
  @builtins.property
3155
3183
  def port(self) -> jsii.Number:
@@ -3232,6 +3260,15 @@ class BaseNetworkListenerProps:
3232
3260
  result = self._values.get("ssl_policy")
3233
3261
  return typing.cast(typing.Optional["SslPolicy"], result)
3234
3262
 
3263
+ @builtins.property
3264
+ def tcp_idle_timeout(self) -> typing.Optional[_Duration_4839e8c3]:
3265
+ '''The load balancer TCP idle timeout.
3266
+
3267
+ :default: Duration.seconds(350)
3268
+ '''
3269
+ result = self._values.get("tcp_idle_timeout")
3270
+ return typing.cast(typing.Optional[_Duration_4839e8c3], result)
3271
+
3235
3272
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
3236
3273
  return isinstance(rhs, self.__class__) and rhs._values == self._values
3237
3274
 
@@ -14026,6 +14063,7 @@ class INetworkLoadBalancer(
14026
14063
  default_target_groups: typing.Optional[typing.Sequence["INetworkTargetGroup"]] = None,
14027
14064
  protocol: typing.Optional["Protocol"] = None,
14028
14065
  ssl_policy: typing.Optional["SslPolicy"] = None,
14066
+ tcp_idle_timeout: typing.Optional[_Duration_4839e8c3] = None,
14029
14067
  ) -> "NetworkListener":
14030
14068
  '''Add a listener to this load balancer.
14031
14069
 
@@ -14037,6 +14075,7 @@ class INetworkLoadBalancer(
14037
14075
  :param default_target_groups: Default target groups to load balance to. All target groups will be load balanced to with equal weight and without stickiness. For a more complex configuration than that, use either ``defaultAction`` or ``addAction()``. Cannot be specified together with ``defaultAction``. Default: - None.
14038
14076
  :param protocol: Protocol for listener, expects TCP, TLS, UDP, or TCP_UDP. Default: - TLS if certificates are provided. TCP otherwise.
14039
14077
  :param ssl_policy: SSL Policy. Default: - Current predefined security policy.
14078
+ :param tcp_idle_timeout: The load balancer TCP idle timeout. Default: Duration.seconds(350)
14040
14079
 
14041
14080
  :return: The newly created listener
14042
14081
  '''
@@ -14102,6 +14141,7 @@ class _INetworkLoadBalancerProxy(
14102
14141
  default_target_groups: typing.Optional[typing.Sequence["INetworkTargetGroup"]] = None,
14103
14142
  protocol: typing.Optional["Protocol"] = None,
14104
14143
  ssl_policy: typing.Optional["SslPolicy"] = None,
14144
+ tcp_idle_timeout: typing.Optional[_Duration_4839e8c3] = None,
14105
14145
  ) -> "NetworkListener":
14106
14146
  '''Add a listener to this load balancer.
14107
14147
 
@@ -14113,6 +14153,7 @@ class _INetworkLoadBalancerProxy(
14113
14153
  :param default_target_groups: Default target groups to load balance to. All target groups will be load balanced to with equal weight and without stickiness. For a more complex configuration than that, use either ``defaultAction`` or ``addAction()``. Cannot be specified together with ``defaultAction``. Default: - None.
14114
14154
  :param protocol: Protocol for listener, expects TCP, TLS, UDP, or TCP_UDP. Default: - TLS if certificates are provided. TCP otherwise.
14115
14155
  :param ssl_policy: SSL Policy. Default: - Current predefined security policy.
14156
+ :param tcp_idle_timeout: The load balancer TCP idle timeout. Default: Duration.seconds(350)
14116
14157
 
14117
14158
  :return: The newly created listener
14118
14159
  '''
@@ -14127,6 +14168,7 @@ class _INetworkLoadBalancerProxy(
14127
14168
  default_target_groups=default_target_groups,
14128
14169
  protocol=protocol,
14129
14170
  ssl_policy=ssl_policy,
14171
+ tcp_idle_timeout=tcp_idle_timeout,
14130
14172
  )
14131
14173
 
14132
14174
  return typing.cast("NetworkListener", jsii.invoke(self, "addListener", [id, props]))
@@ -15953,19 +15995,20 @@ class NetworkListenerAction(
15953
15995
  If an action supports chaining, the next action can be indicated
15954
15996
  by passing it in the ``next`` property.
15955
15997
 
15956
- :exampleMetadata: fixture=_generated
15998
+ :exampleMetadata: infused
15957
15999
 
15958
16000
  Example::
15959
16001
 
15960
- # The code below shows an example of how to instantiate this type.
15961
- # The values are placeholders you should change.
15962
- import aws_cdk as cdk
15963
- from aws_cdk import aws_elasticloadbalancingv2 as elbv2
16002
+ # lb: elbv2.NetworkLoadBalancer
16003
+ # group: elbv2.NetworkTargetGroup
15964
16004
 
15965
- # network_target_group: elbv2.NetworkTargetGroup
15966
16005
 
15967
- network_listener_action = elbv2.NetworkListenerAction.forward([network_target_group],
15968
- stickiness_duration=cdk.Duration.minutes(30)
16006
+ listener = lb.add_listener("Listener",
16007
+ port=80,
16008
+ default_action=elbv2.NetworkListenerAction.forward([group]),
16009
+
16010
+ # The tcp idle timeout value. The valid range is 60-6000 seconds. The default is 350 seconds.
16011
+ tcp_idle_timeout=Duration.seconds(100)
15969
16012
  )
15970
16013
  '''
15971
16014
 
@@ -16197,6 +16240,7 @@ class NetworkListenerLookupOptions(BaseListenerLookupOptions):
16197
16240
  "default_target_groups": "defaultTargetGroups",
16198
16241
  "protocol": "protocol",
16199
16242
  "ssl_policy": "sslPolicy",
16243
+ "tcp_idle_timeout": "tcpIdleTimeout",
16200
16244
  "load_balancer": "loadBalancer",
16201
16245
  },
16202
16246
  )
@@ -16211,6 +16255,7 @@ class NetworkListenerProps(BaseNetworkListenerProps):
16211
16255
  default_target_groups: typing.Optional[typing.Sequence["INetworkTargetGroup"]] = None,
16212
16256
  protocol: typing.Optional["Protocol"] = None,
16213
16257
  ssl_policy: typing.Optional["SslPolicy"] = None,
16258
+ tcp_idle_timeout: typing.Optional[_Duration_4839e8c3] = None,
16214
16259
  load_balancer: INetworkLoadBalancer,
16215
16260
  ) -> None:
16216
16261
  '''Properties for a Network Listener attached to a Load Balancer.
@@ -16222,6 +16267,7 @@ class NetworkListenerProps(BaseNetworkListenerProps):
16222
16267
  :param default_target_groups: Default target groups to load balance to. All target groups will be load balanced to with equal weight and without stickiness. For a more complex configuration than that, use either ``defaultAction`` or ``addAction()``. Cannot be specified together with ``defaultAction``. Default: - None.
16223
16268
  :param protocol: Protocol for listener, expects TCP, TLS, UDP, or TCP_UDP. Default: - TLS if certificates are provided. TCP otherwise.
16224
16269
  :param ssl_policy: SSL Policy. Default: - Current predefined security policy.
16270
+ :param tcp_idle_timeout: The load balancer TCP idle timeout. Default: Duration.seconds(350)
16225
16271
  :param load_balancer: The load balancer to attach this listener to.
16226
16272
 
16227
16273
  :exampleMetadata: fixture=_generated
@@ -16230,6 +16276,7 @@ class NetworkListenerProps(BaseNetworkListenerProps):
16230
16276
 
16231
16277
  # The code below shows an example of how to instantiate this type.
16232
16278
  # The values are placeholders you should change.
16279
+ import aws_cdk as cdk
16233
16280
  from aws_cdk import aws_elasticloadbalancingv2 as elbv2
16234
16281
 
16235
16282
  # listener_certificate: elbv2.ListenerCertificate
@@ -16247,7 +16294,8 @@ class NetworkListenerProps(BaseNetworkListenerProps):
16247
16294
  default_action=network_listener_action,
16248
16295
  default_target_groups=[network_target_group],
16249
16296
  protocol=elbv2.Protocol.HTTP,
16250
- ssl_policy=elbv2.SslPolicy.RECOMMENDED_TLS
16297
+ ssl_policy=elbv2.SslPolicy.RECOMMENDED_TLS,
16298
+ tcp_idle_timeout=cdk.Duration.minutes(30)
16251
16299
  )
16252
16300
  '''
16253
16301
  if __debug__:
@@ -16259,6 +16307,7 @@ class NetworkListenerProps(BaseNetworkListenerProps):
16259
16307
  check_type(argname="argument default_target_groups", value=default_target_groups, expected_type=type_hints["default_target_groups"])
16260
16308
  check_type(argname="argument protocol", value=protocol, expected_type=type_hints["protocol"])
16261
16309
  check_type(argname="argument ssl_policy", value=ssl_policy, expected_type=type_hints["ssl_policy"])
16310
+ check_type(argname="argument tcp_idle_timeout", value=tcp_idle_timeout, expected_type=type_hints["tcp_idle_timeout"])
16262
16311
  check_type(argname="argument load_balancer", value=load_balancer, expected_type=type_hints["load_balancer"])
16263
16312
  self._values: typing.Dict[builtins.str, typing.Any] = {
16264
16313
  "port": port,
@@ -16276,6 +16325,8 @@ class NetworkListenerProps(BaseNetworkListenerProps):
16276
16325
  self._values["protocol"] = protocol
16277
16326
  if ssl_policy is not None:
16278
16327
  self._values["ssl_policy"] = ssl_policy
16328
+ if tcp_idle_timeout is not None:
16329
+ self._values["tcp_idle_timeout"] = tcp_idle_timeout
16279
16330
 
16280
16331
  @builtins.property
16281
16332
  def port(self) -> jsii.Number:
@@ -16358,6 +16409,15 @@ class NetworkListenerProps(BaseNetworkListenerProps):
16358
16409
  result = self._values.get("ssl_policy")
16359
16410
  return typing.cast(typing.Optional["SslPolicy"], result)
16360
16411
 
16412
+ @builtins.property
16413
+ def tcp_idle_timeout(self) -> typing.Optional[_Duration_4839e8c3]:
16414
+ '''The load balancer TCP idle timeout.
16415
+
16416
+ :default: Duration.seconds(350)
16417
+ '''
16418
+ result = self._values.get("tcp_idle_timeout")
16419
+ return typing.cast(typing.Optional[_Duration_4839e8c3], result)
16420
+
16361
16421
  @builtins.property
16362
16422
  def load_balancer(self) -> INetworkLoadBalancer:
16363
16423
  '''The load balancer to attach this listener to.'''
@@ -16532,6 +16592,7 @@ class NetworkLoadBalancer(
16532
16592
  default_target_groups: typing.Optional[typing.Sequence["INetworkTargetGroup"]] = None,
16533
16593
  protocol: typing.Optional["Protocol"] = None,
16534
16594
  ssl_policy: typing.Optional["SslPolicy"] = None,
16595
+ tcp_idle_timeout: typing.Optional[_Duration_4839e8c3] = None,
16535
16596
  ) -> "NetworkListener":
16536
16597
  '''Add a listener to this load balancer.
16537
16598
 
@@ -16543,6 +16604,7 @@ class NetworkLoadBalancer(
16543
16604
  :param default_target_groups: Default target groups to load balance to. All target groups will be load balanced to with equal weight and without stickiness. For a more complex configuration than that, use either ``defaultAction`` or ``addAction()``. Cannot be specified together with ``defaultAction``. Default: - None.
16544
16605
  :param protocol: Protocol for listener, expects TCP, TLS, UDP, or TCP_UDP. Default: - TLS if certificates are provided. TCP otherwise.
16545
16606
  :param ssl_policy: SSL Policy. Default: - Current predefined security policy.
16607
+ :param tcp_idle_timeout: The load balancer TCP idle timeout. Default: Duration.seconds(350)
16546
16608
 
16547
16609
  :return: The newly created listener
16548
16610
  '''
@@ -16557,6 +16619,7 @@ class NetworkLoadBalancer(
16557
16619
  default_target_groups=default_target_groups,
16558
16620
  protocol=protocol,
16559
16621
  ssl_policy=ssl_policy,
16622
+ tcp_idle_timeout=tcp_idle_timeout,
16560
16623
  )
16561
16624
 
16562
16625
  return typing.cast("NetworkListener", jsii.invoke(self, "addListener", [id, props]))
@@ -20988,6 +21051,36 @@ class BaseListener(
20988
21051
  check_type(argname="argument additional_props", value=additional_props, expected_type=type_hints["additional_props"])
20989
21052
  jsii.create(self.__class__, self, [scope, id, additional_props])
20990
21053
 
21054
+ @jsii.member(jsii_name="removeAttribute")
21055
+ def remove_attribute(self, key: builtins.str) -> None:
21056
+ '''Remove an attribute from the listener.
21057
+
21058
+ :param key: -
21059
+ '''
21060
+ if __debug__:
21061
+ type_hints = typing.get_type_hints(_typecheckingstub__c50cdcdb39546c11e1129be3e435478ae3110391c8b527b7e659324c42ebeae6)
21062
+ check_type(argname="argument key", value=key, expected_type=type_hints["key"])
21063
+ return typing.cast(None, jsii.invoke(self, "removeAttribute", [key]))
21064
+
21065
+ @jsii.member(jsii_name="setAttribute")
21066
+ def set_attribute(
21067
+ self,
21068
+ key: builtins.str,
21069
+ value: typing.Optional[builtins.str] = None,
21070
+ ) -> None:
21071
+ '''Set a non-standard attribute on the listener.
21072
+
21073
+ :param key: -
21074
+ :param value: -
21075
+
21076
+ :see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-listenerattribute.html
21077
+ '''
21078
+ if __debug__:
21079
+ type_hints = typing.get_type_hints(_typecheckingstub__42b74f8396752d37baeef333f99c80d4ed81c443c6410c4f4002f7a35e29fdc6)
21080
+ check_type(argname="argument key", value=key, expected_type=type_hints["key"])
21081
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
21082
+ return typing.cast(None, jsii.invoke(self, "setAttribute", [key, value]))
21083
+
20991
21084
  @jsii.member(jsii_name="validateListener")
20992
21085
  def _validate_listener(self) -> typing.List[builtins.str]:
20993
21086
  '''Validate this listener.'''
@@ -21748,6 +21841,7 @@ class NetworkListener(
21748
21841
  default_target_groups: typing.Optional[typing.Sequence[INetworkTargetGroup]] = None,
21749
21842
  protocol: typing.Optional[Protocol] = None,
21750
21843
  ssl_policy: typing.Optional[SslPolicy] = None,
21844
+ tcp_idle_timeout: typing.Optional[_Duration_4839e8c3] = None,
21751
21845
  ) -> None:
21752
21846
  '''
21753
21847
  :param scope: -
@@ -21760,6 +21854,7 @@ class NetworkListener(
21760
21854
  :param default_target_groups: Default target groups to load balance to. All target groups will be load balanced to with equal weight and without stickiness. For a more complex configuration than that, use either ``defaultAction`` or ``addAction()``. Cannot be specified together with ``defaultAction``. Default: - None.
21761
21855
  :param protocol: Protocol for listener, expects TCP, TLS, UDP, or TCP_UDP. Default: - TLS if certificates are provided. TCP otherwise.
21762
21856
  :param ssl_policy: SSL Policy. Default: - Current predefined security policy.
21857
+ :param tcp_idle_timeout: The load balancer TCP idle timeout. Default: Duration.seconds(350)
21763
21858
  '''
21764
21859
  if __debug__:
21765
21860
  type_hints = typing.get_type_hints(_typecheckingstub__cac0b8bab6f5e8734bcf3c5bf0647c916d90f092956b733c3913017a1cc4c8c8)
@@ -21774,6 +21869,7 @@ class NetworkListener(
21774
21869
  default_target_groups=default_target_groups,
21775
21870
  protocol=protocol,
21776
21871
  ssl_policy=ssl_policy,
21872
+ tcp_idle_timeout=tcp_idle_timeout,
21777
21873
  )
21778
21874
 
21779
21875
  jsii.create(self.__class__, self, [scope, id, props])
@@ -24894,6 +24990,7 @@ def _typecheckingstub__a385469057e83b68d89a4be7454c5a114db610783f984a1d85c9d4b71
24894
24990
  default_target_groups: typing.Optional[typing.Sequence[INetworkTargetGroup]] = None,
24895
24991
  protocol: typing.Optional[Protocol] = None,
24896
24992
  ssl_policy: typing.Optional[SslPolicy] = None,
24993
+ tcp_idle_timeout: typing.Optional[_Duration_4839e8c3] = None,
24897
24994
  ) -> None:
24898
24995
  """Type checking stubs"""
24899
24996
  pass
@@ -25962,6 +26059,7 @@ def _typecheckingstub__f31e236fbcfbdcbd2f2735523996b00775cf0ec61e4f5c56362cc6947
25962
26059
  default_target_groups: typing.Optional[typing.Sequence[INetworkTargetGroup]] = None,
25963
26060
  protocol: typing.Optional[Protocol] = None,
25964
26061
  ssl_policy: typing.Optional[SslPolicy] = None,
26062
+ tcp_idle_timeout: typing.Optional[_Duration_4839e8c3] = None,
25965
26063
  ) -> None:
25966
26064
  """Type checking stubs"""
25967
26065
  pass
@@ -26182,6 +26280,7 @@ def _typecheckingstub__b9de84d3c251bc8c169b44e63c24a91fe9722b0e26642417a58f3f27d
26182
26280
  default_target_groups: typing.Optional[typing.Sequence[INetworkTargetGroup]] = None,
26183
26281
  protocol: typing.Optional[Protocol] = None,
26184
26282
  ssl_policy: typing.Optional[SslPolicy] = None,
26283
+ tcp_idle_timeout: typing.Optional[_Duration_4839e8c3] = None,
26185
26284
  load_balancer: INetworkLoadBalancer,
26186
26285
  ) -> None:
26187
26286
  """Type checking stubs"""
@@ -26239,6 +26338,7 @@ def _typecheckingstub__d4ebcfe1ae99726fbce8c195c9275af3be58b68db2286da916071da8a
26239
26338
  default_target_groups: typing.Optional[typing.Sequence[INetworkTargetGroup]] = None,
26240
26339
  protocol: typing.Optional[Protocol] = None,
26241
26340
  ssl_policy: typing.Optional[SslPolicy] = None,
26341
+ tcp_idle_timeout: typing.Optional[_Duration_4839e8c3] = None,
26242
26342
  ) -> None:
26243
26343
  """Type checking stubs"""
26244
26344
  pass
@@ -26584,6 +26684,19 @@ def _typecheckingstub__129019265615450bb18b1d54a4cbac59e8aa311742b971671f0b94701
26584
26684
  """Type checking stubs"""
26585
26685
  pass
26586
26686
 
26687
+ def _typecheckingstub__c50cdcdb39546c11e1129be3e435478ae3110391c8b527b7e659324c42ebeae6(
26688
+ key: builtins.str,
26689
+ ) -> None:
26690
+ """Type checking stubs"""
26691
+ pass
26692
+
26693
+ def _typecheckingstub__42b74f8396752d37baeef333f99c80d4ed81c443c6410c4f4002f7a35e29fdc6(
26694
+ key: builtins.str,
26695
+ value: typing.Optional[builtins.str] = None,
26696
+ ) -> None:
26697
+ """Type checking stubs"""
26698
+ pass
26699
+
26587
26700
  def _typecheckingstub__078c8c060ef52d807e9a62da847c7c1f9a2fb0a3f7bf8900246c80b1d9ff0a2e(
26588
26701
  id: builtins.str,
26589
26702
  *,
@@ -26699,6 +26812,7 @@ def _typecheckingstub__cac0b8bab6f5e8734bcf3c5bf0647c916d90f092956b733c3913017a1
26699
26812
  default_target_groups: typing.Optional[typing.Sequence[INetworkTargetGroup]] = None,
26700
26813
  protocol: typing.Optional[Protocol] = None,
26701
26814
  ssl_policy: typing.Optional[SslPolicy] = None,
26815
+ tcp_idle_timeout: typing.Optional[_Duration_4839e8c3] = None,
26702
26816
  ) -> None:
26703
26817
  """Type checking stubs"""
26704
26818
  pass