aws-cdk-lib 2.142.1__py3-none-any.whl → 2.143.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/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.142.1.jsii.tgz → aws-cdk-lib@2.143.0.jsii.tgz} +0 -0
- aws_cdk/aws_amplify/__init__.py +12 -5
- aws_cdk/aws_backup/__init__.py +3 -3
- aws_cdk/aws_batch/__init__.py +237 -0
- aws_cdk/aws_bedrock/__init__.py +700 -16
- aws_cdk/aws_budgets/__init__.py +282 -3
- aws_cdk/aws_cloudtrail/__init__.py +12 -2
- aws_cdk/aws_codebuild/__init__.py +44 -0
- aws_cdk/aws_codepipeline/__init__.py +91 -4
- aws_cdk/aws_cognito/__init__.py +75 -0
- aws_cdk/aws_datazone/__init__.py +1743 -448
- aws_cdk/aws_dynamodb/__init__.py +60 -25
- aws_cdk/aws_ec2/__init__.py +112 -39
- aws_cdk/aws_ecs/__init__.py +3 -3
- aws_cdk/aws_ecs_patterns/__init__.py +106 -0
- aws_cdk/aws_eks/__init__.py +13 -10
- aws_cdk/aws_elasticache/__init__.py +9 -0
- aws_cdk/aws_events/__init__.py +219 -14
- aws_cdk/aws_events_targets/__init__.py +140 -3
- aws_cdk/aws_fms/__init__.py +42 -43
- aws_cdk/aws_fsx/__init__.py +3 -3
- aws_cdk/aws_identitystore/__init__.py +11 -11
- aws_cdk/aws_lambda/__init__.py +45 -0
- aws_cdk/aws_lambda_nodejs/__init__.py +16 -6
- aws_cdk/aws_lightsail/__init__.py +9 -0
- aws_cdk/aws_location/__init__.py +8 -4
- aws_cdk/aws_mediaconnect/__init__.py +1789 -39
- aws_cdk/aws_mediatailor/__init__.py +21 -1
- aws_cdk/aws_mwaa/__init__.py +82 -0
- aws_cdk/aws_neptune/__init__.py +374 -0
- aws_cdk/aws_personalize/__init__.py +9 -3
- aws_cdk/aws_pipes/__init__.py +7 -7
- aws_cdk/aws_quicksight/__init__.py +684 -156
- aws_cdk/aws_rds/__init__.py +88 -24
- aws_cdk/aws_redshift/__init__.py +0 -46
- aws_cdk/aws_route53resolver/__init__.py +23 -0
- aws_cdk/aws_s3/__init__.py +4 -4
- aws_cdk/aws_sagemaker/__init__.py +185 -4
- aws_cdk/aws_securityhub/__init__.py +387 -1
- aws_cdk/aws_ssm/__init__.py +14 -6
- aws_cdk/aws_sso/__init__.py +1243 -34
- aws_cdk/cx_api/__init__.py +16 -0
- {aws_cdk_lib-2.142.1.dist-info → aws_cdk_lib-2.143.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.142.1.dist-info → aws_cdk_lib-2.143.0.dist-info}/RECORD +49 -49
- {aws_cdk_lib-2.142.1.dist-info → aws_cdk_lib-2.143.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.142.1.dist-info → aws_cdk_lib-2.143.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.142.1.dist-info → aws_cdk_lib-2.143.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.142.1.dist-info → aws_cdk_lib-2.143.0.dist-info}/top_level.txt +0 -0
|
@@ -1087,6 +1087,35 @@ queue_processing_fargate_service = ecs_patterns.NetworkLoadBalancedFargateServic
|
|
|
1087
1087
|
security_groups=[security_group]
|
|
1088
1088
|
)
|
|
1089
1089
|
```
|
|
1090
|
+
|
|
1091
|
+
### Use dualstack NLB
|
|
1092
|
+
|
|
1093
|
+
```python
|
|
1094
|
+
import aws_cdk.aws_elasticloadbalancingv2 as elbv2
|
|
1095
|
+
|
|
1096
|
+
|
|
1097
|
+
# The VPC and subnet must have associated IPv6 CIDR blocks.
|
|
1098
|
+
vpc = ec2.Vpc(self, "Vpc",
|
|
1099
|
+
ip_protocol=ec2.IpProtocol.DUAL_STACK
|
|
1100
|
+
)
|
|
1101
|
+
cluster = ecs.Cluster(self, "EcsCluster", vpc=vpc)
|
|
1102
|
+
|
|
1103
|
+
network_loadbalanced_fargate_service = ecs_patterns.NetworkLoadBalancedFargateService(self, "NlbFargateService",
|
|
1104
|
+
cluster=cluster,
|
|
1105
|
+
task_image_options=ecsPatterns.NetworkLoadBalancedTaskImageOptions(
|
|
1106
|
+
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample")
|
|
1107
|
+
),
|
|
1108
|
+
ip_address_type=elbv2.IpAddressType.DUAL_STACK
|
|
1109
|
+
)
|
|
1110
|
+
|
|
1111
|
+
network_loadbalanced_ec2_service = ecs_patterns.NetworkLoadBalancedEc2Service(self, "NlbEc2Service",
|
|
1112
|
+
cluster=cluster,
|
|
1113
|
+
task_image_options=ecsPatterns.NetworkLoadBalancedTaskImageOptions(
|
|
1114
|
+
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample")
|
|
1115
|
+
),
|
|
1116
|
+
ip_address_type=elbv2.IpAddressType.DUAL_STACK
|
|
1117
|
+
)
|
|
1118
|
+
```
|
|
1090
1119
|
'''
|
|
1091
1120
|
from pkgutil import extend_path
|
|
1092
1121
|
__path__ = extend_path(__path__, __name__)
|
|
@@ -1150,6 +1179,7 @@ from ..aws_elasticloadbalancingv2 import (
|
|
|
1150
1179
|
ApplicationTargetGroup as _ApplicationTargetGroup_906fe365,
|
|
1151
1180
|
IApplicationLoadBalancer as _IApplicationLoadBalancer_4cbd50ab,
|
|
1152
1181
|
INetworkLoadBalancer as _INetworkLoadBalancer_96e17101,
|
|
1182
|
+
IpAddressType as _IpAddressType_c43b240e,
|
|
1153
1183
|
NetworkListener as _NetworkListener_539c17bf,
|
|
1154
1184
|
NetworkLoadBalancer as _NetworkLoadBalancer_de7c0323,
|
|
1155
1185
|
NetworkTargetGroup as _NetworkTargetGroup_e772364a,
|
|
@@ -3869,6 +3899,7 @@ class NetworkLoadBalancedServiceBase(
|
|
|
3869
3899
|
enable_ecs_managed_tags: typing.Optional[builtins.bool] = None,
|
|
3870
3900
|
enable_execute_command: typing.Optional[builtins.bool] = None,
|
|
3871
3901
|
health_check_grace_period: typing.Optional[_Duration_4839e8c3] = None,
|
|
3902
|
+
ip_address_type: typing.Optional[_IpAddressType_c43b240e] = None,
|
|
3872
3903
|
listener_port: typing.Optional[jsii.Number] = None,
|
|
3873
3904
|
load_balancer: typing.Optional[_INetworkLoadBalancer_96e17101] = None,
|
|
3874
3905
|
max_healthy_percent: typing.Optional[jsii.Number] = None,
|
|
@@ -3895,6 +3926,7 @@ class NetworkLoadBalancedServiceBase(
|
|
|
3895
3926
|
:param enable_ecs_managed_tags: Specifies whether to enable Amazon ECS managed tags for the tasks within the service. For more information, see `Tagging Your Amazon ECS Resources <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html>`_ Default: false
|
|
3896
3927
|
:param enable_execute_command: Whether ECS Exec should be enabled. Default: - false
|
|
3897
3928
|
:param health_check_grace_period: The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing target health checks after a task has first started. Default: - defaults to 60 seconds if at least one load balancer is in-use and it is not already set
|
|
3929
|
+
:param ip_address_type: The type of IP addresses to use. If you want to add a UDP or TCP_UDP listener to the load balancer, you must choose IPv4. Default: IpAddressType.IPV4
|
|
3898
3930
|
:param listener_port: Listener port of the network load balancer that will serve traffic to the service. Default: 80
|
|
3899
3931
|
:param load_balancer: The network load balancer that will serve traffic to the service. If the load balancer has been imported, the vpc attribute must be specified in the call to fromNetworkLoadBalancerAttributes(). [disable-awslint:ref-via-interface] Default: - a new load balancer will be created.
|
|
3900
3932
|
:param max_healthy_percent: The maximum number of tasks, specified as a percentage of the Amazon ECS service's DesiredCount value, that can run in a service during a deployment. Default: - 100 if daemon, otherwise 200
|
|
@@ -3922,6 +3954,7 @@ class NetworkLoadBalancedServiceBase(
|
|
|
3922
3954
|
enable_ecs_managed_tags=enable_ecs_managed_tags,
|
|
3923
3955
|
enable_execute_command=enable_execute_command,
|
|
3924
3956
|
health_check_grace_period=health_check_grace_period,
|
|
3957
|
+
ip_address_type=ip_address_type,
|
|
3925
3958
|
listener_port=listener_port,
|
|
3926
3959
|
load_balancer=load_balancer,
|
|
3927
3960
|
max_healthy_percent=max_healthy_percent,
|
|
@@ -4031,6 +4064,7 @@ typing.cast(typing.Any, NetworkLoadBalancedServiceBase).__jsii_proxy_class__ = l
|
|
|
4031
4064
|
"enable_ecs_managed_tags": "enableECSManagedTags",
|
|
4032
4065
|
"enable_execute_command": "enableExecuteCommand",
|
|
4033
4066
|
"health_check_grace_period": "healthCheckGracePeriod",
|
|
4067
|
+
"ip_address_type": "ipAddressType",
|
|
4034
4068
|
"listener_port": "listenerPort",
|
|
4035
4069
|
"load_balancer": "loadBalancer",
|
|
4036
4070
|
"max_healthy_percent": "maxHealthyPercent",
|
|
@@ -4058,6 +4092,7 @@ class NetworkLoadBalancedServiceBaseProps:
|
|
|
4058
4092
|
enable_ecs_managed_tags: typing.Optional[builtins.bool] = None,
|
|
4059
4093
|
enable_execute_command: typing.Optional[builtins.bool] = None,
|
|
4060
4094
|
health_check_grace_period: typing.Optional[_Duration_4839e8c3] = None,
|
|
4095
|
+
ip_address_type: typing.Optional[_IpAddressType_c43b240e] = None,
|
|
4061
4096
|
listener_port: typing.Optional[jsii.Number] = None,
|
|
4062
4097
|
load_balancer: typing.Optional[_INetworkLoadBalancer_96e17101] = None,
|
|
4063
4098
|
max_healthy_percent: typing.Optional[jsii.Number] = None,
|
|
@@ -4082,6 +4117,7 @@ class NetworkLoadBalancedServiceBaseProps:
|
|
|
4082
4117
|
:param enable_ecs_managed_tags: Specifies whether to enable Amazon ECS managed tags for the tasks within the service. For more information, see `Tagging Your Amazon ECS Resources <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html>`_ Default: false
|
|
4083
4118
|
:param enable_execute_command: Whether ECS Exec should be enabled. Default: - false
|
|
4084
4119
|
:param health_check_grace_period: The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing target health checks after a task has first started. Default: - defaults to 60 seconds if at least one load balancer is in-use and it is not already set
|
|
4120
|
+
:param ip_address_type: The type of IP addresses to use. If you want to add a UDP or TCP_UDP listener to the load balancer, you must choose IPv4. Default: IpAddressType.IPV4
|
|
4085
4121
|
:param listener_port: Listener port of the network load balancer that will serve traffic to the service. Default: 80
|
|
4086
4122
|
:param load_balancer: The network load balancer that will serve traffic to the service. If the load balancer has been imported, the vpc attribute must be specified in the call to fromNetworkLoadBalancerAttributes(). [disable-awslint:ref-via-interface] Default: - a new load balancer will be created.
|
|
4087
4123
|
:param max_healthy_percent: The maximum number of tasks, specified as a percentage of the Amazon ECS service's DesiredCount value, that can run in a service during a deployment. Default: - 100 if daemon, otherwise 200
|
|
@@ -4150,6 +4186,7 @@ class NetworkLoadBalancedServiceBaseProps:
|
|
|
4150
4186
|
enable_eCSManaged_tags=False,
|
|
4151
4187
|
enable_execute_command=False,
|
|
4152
4188
|
health_check_grace_period=cdk.Duration.minutes(30),
|
|
4189
|
+
ip_address_type=elbv2.IpAddressType.IPV4,
|
|
4153
4190
|
listener_port=123,
|
|
4154
4191
|
load_balancer=network_load_balancer,
|
|
4155
4192
|
max_healthy_percent=123,
|
|
@@ -4203,6 +4240,7 @@ class NetworkLoadBalancedServiceBaseProps:
|
|
|
4203
4240
|
check_type(argname="argument enable_ecs_managed_tags", value=enable_ecs_managed_tags, expected_type=type_hints["enable_ecs_managed_tags"])
|
|
4204
4241
|
check_type(argname="argument enable_execute_command", value=enable_execute_command, expected_type=type_hints["enable_execute_command"])
|
|
4205
4242
|
check_type(argname="argument health_check_grace_period", value=health_check_grace_period, expected_type=type_hints["health_check_grace_period"])
|
|
4243
|
+
check_type(argname="argument ip_address_type", value=ip_address_type, expected_type=type_hints["ip_address_type"])
|
|
4206
4244
|
check_type(argname="argument listener_port", value=listener_port, expected_type=type_hints["listener_port"])
|
|
4207
4245
|
check_type(argname="argument load_balancer", value=load_balancer, expected_type=type_hints["load_balancer"])
|
|
4208
4246
|
check_type(argname="argument max_healthy_percent", value=max_healthy_percent, expected_type=type_hints["max_healthy_percent"])
|
|
@@ -4236,6 +4274,8 @@ class NetworkLoadBalancedServiceBaseProps:
|
|
|
4236
4274
|
self._values["enable_execute_command"] = enable_execute_command
|
|
4237
4275
|
if health_check_grace_period is not None:
|
|
4238
4276
|
self._values["health_check_grace_period"] = health_check_grace_period
|
|
4277
|
+
if ip_address_type is not None:
|
|
4278
|
+
self._values["ip_address_type"] = ip_address_type
|
|
4239
4279
|
if listener_port is not None:
|
|
4240
4280
|
self._values["listener_port"] = listener_port
|
|
4241
4281
|
if load_balancer is not None:
|
|
@@ -4374,6 +4414,20 @@ class NetworkLoadBalancedServiceBaseProps:
|
|
|
4374
4414
|
result = self._values.get("health_check_grace_period")
|
|
4375
4415
|
return typing.cast(typing.Optional[_Duration_4839e8c3], result)
|
|
4376
4416
|
|
|
4417
|
+
@builtins.property
|
|
4418
|
+
def ip_address_type(self) -> typing.Optional[_IpAddressType_c43b240e]:
|
|
4419
|
+
'''The type of IP addresses to use.
|
|
4420
|
+
|
|
4421
|
+
If you want to add a UDP or TCP_UDP listener to the load balancer,
|
|
4422
|
+
you must choose IPv4.
|
|
4423
|
+
|
|
4424
|
+
:default: IpAddressType.IPV4
|
|
4425
|
+
|
|
4426
|
+
:see: https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-ip-address-type.html
|
|
4427
|
+
'''
|
|
4428
|
+
result = self._values.get("ip_address_type")
|
|
4429
|
+
return typing.cast(typing.Optional[_IpAddressType_c43b240e], result)
|
|
4430
|
+
|
|
4377
4431
|
@builtins.property
|
|
4378
4432
|
def listener_port(self) -> typing.Optional[jsii.Number]:
|
|
4379
4433
|
'''Listener port of the network load balancer that will serve traffic to the service.
|
|
@@ -10197,6 +10251,7 @@ class NetworkLoadBalancedEc2Service(
|
|
|
10197
10251
|
enable_ecs_managed_tags: typing.Optional[builtins.bool] = None,
|
|
10198
10252
|
enable_execute_command: typing.Optional[builtins.bool] = None,
|
|
10199
10253
|
health_check_grace_period: typing.Optional[_Duration_4839e8c3] = None,
|
|
10254
|
+
ip_address_type: typing.Optional[_IpAddressType_c43b240e] = None,
|
|
10200
10255
|
listener_port: typing.Optional[jsii.Number] = None,
|
|
10201
10256
|
load_balancer: typing.Optional[_INetworkLoadBalancer_96e17101] = None,
|
|
10202
10257
|
max_healthy_percent: typing.Optional[jsii.Number] = None,
|
|
@@ -10229,6 +10284,7 @@ class NetworkLoadBalancedEc2Service(
|
|
|
10229
10284
|
:param enable_ecs_managed_tags: Specifies whether to enable Amazon ECS managed tags for the tasks within the service. For more information, see `Tagging Your Amazon ECS Resources <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html>`_ Default: false
|
|
10230
10285
|
:param enable_execute_command: Whether ECS Exec should be enabled. Default: - false
|
|
10231
10286
|
:param health_check_grace_period: The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing target health checks after a task has first started. Default: - defaults to 60 seconds if at least one load balancer is in-use and it is not already set
|
|
10287
|
+
:param ip_address_type: The type of IP addresses to use. If you want to add a UDP or TCP_UDP listener to the load balancer, you must choose IPv4. Default: IpAddressType.IPV4
|
|
10232
10288
|
:param listener_port: Listener port of the network load balancer that will serve traffic to the service. Default: 80
|
|
10233
10289
|
:param load_balancer: The network load balancer that will serve traffic to the service. If the load balancer has been imported, the vpc attribute must be specified in the call to fromNetworkLoadBalancerAttributes(). [disable-awslint:ref-via-interface] Default: - a new load balancer will be created.
|
|
10234
10290
|
:param max_healthy_percent: The maximum number of tasks, specified as a percentage of the Amazon ECS service's DesiredCount value, that can run in a service during a deployment. Default: - 100 if daemon, otherwise 200
|
|
@@ -10262,6 +10318,7 @@ class NetworkLoadBalancedEc2Service(
|
|
|
10262
10318
|
enable_ecs_managed_tags=enable_ecs_managed_tags,
|
|
10263
10319
|
enable_execute_command=enable_execute_command,
|
|
10264
10320
|
health_check_grace_period=health_check_grace_period,
|
|
10321
|
+
ip_address_type=ip_address_type,
|
|
10265
10322
|
listener_port=listener_port,
|
|
10266
10323
|
load_balancer=load_balancer,
|
|
10267
10324
|
max_healthy_percent=max_healthy_percent,
|
|
@@ -10304,6 +10361,7 @@ class NetworkLoadBalancedEc2Service(
|
|
|
10304
10361
|
"enable_ecs_managed_tags": "enableECSManagedTags",
|
|
10305
10362
|
"enable_execute_command": "enableExecuteCommand",
|
|
10306
10363
|
"health_check_grace_period": "healthCheckGracePeriod",
|
|
10364
|
+
"ip_address_type": "ipAddressType",
|
|
10307
10365
|
"listener_port": "listenerPort",
|
|
10308
10366
|
"load_balancer": "loadBalancer",
|
|
10309
10367
|
"max_healthy_percent": "maxHealthyPercent",
|
|
@@ -10337,6 +10395,7 @@ class NetworkLoadBalancedEc2ServiceProps(NetworkLoadBalancedServiceBaseProps):
|
|
|
10337
10395
|
enable_ecs_managed_tags: typing.Optional[builtins.bool] = None,
|
|
10338
10396
|
enable_execute_command: typing.Optional[builtins.bool] = None,
|
|
10339
10397
|
health_check_grace_period: typing.Optional[_Duration_4839e8c3] = None,
|
|
10398
|
+
ip_address_type: typing.Optional[_IpAddressType_c43b240e] = None,
|
|
10340
10399
|
listener_port: typing.Optional[jsii.Number] = None,
|
|
10341
10400
|
load_balancer: typing.Optional[_INetworkLoadBalancer_96e17101] = None,
|
|
10342
10401
|
max_healthy_percent: typing.Optional[jsii.Number] = None,
|
|
@@ -10367,6 +10426,7 @@ class NetworkLoadBalancedEc2ServiceProps(NetworkLoadBalancedServiceBaseProps):
|
|
|
10367
10426
|
:param enable_ecs_managed_tags: Specifies whether to enable Amazon ECS managed tags for the tasks within the service. For more information, see `Tagging Your Amazon ECS Resources <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html>`_ Default: false
|
|
10368
10427
|
:param enable_execute_command: Whether ECS Exec should be enabled. Default: - false
|
|
10369
10428
|
:param health_check_grace_period: The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing target health checks after a task has first started. Default: - defaults to 60 seconds if at least one load balancer is in-use and it is not already set
|
|
10429
|
+
:param ip_address_type: The type of IP addresses to use. If you want to add a UDP or TCP_UDP listener to the load balancer, you must choose IPv4. Default: IpAddressType.IPV4
|
|
10370
10430
|
:param listener_port: Listener port of the network load balancer that will serve traffic to the service. Default: 80
|
|
10371
10431
|
:param load_balancer: The network load balancer that will serve traffic to the service. If the load balancer has been imported, the vpc attribute must be specified in the call to fromNetworkLoadBalancerAttributes(). [disable-awslint:ref-via-interface] Default: - a new load balancer will be created.
|
|
10372
10432
|
:param max_healthy_percent: The maximum number of tasks, specified as a percentage of the Amazon ECS service's DesiredCount value, that can run in a service during a deployment. Default: - 100 if daemon, otherwise 200
|
|
@@ -10424,6 +10484,7 @@ class NetworkLoadBalancedEc2ServiceProps(NetworkLoadBalancedServiceBaseProps):
|
|
|
10424
10484
|
check_type(argname="argument enable_ecs_managed_tags", value=enable_ecs_managed_tags, expected_type=type_hints["enable_ecs_managed_tags"])
|
|
10425
10485
|
check_type(argname="argument enable_execute_command", value=enable_execute_command, expected_type=type_hints["enable_execute_command"])
|
|
10426
10486
|
check_type(argname="argument health_check_grace_period", value=health_check_grace_period, expected_type=type_hints["health_check_grace_period"])
|
|
10487
|
+
check_type(argname="argument ip_address_type", value=ip_address_type, expected_type=type_hints["ip_address_type"])
|
|
10427
10488
|
check_type(argname="argument listener_port", value=listener_port, expected_type=type_hints["listener_port"])
|
|
10428
10489
|
check_type(argname="argument load_balancer", value=load_balancer, expected_type=type_hints["load_balancer"])
|
|
10429
10490
|
check_type(argname="argument max_healthy_percent", value=max_healthy_percent, expected_type=type_hints["max_healthy_percent"])
|
|
@@ -10463,6 +10524,8 @@ class NetworkLoadBalancedEc2ServiceProps(NetworkLoadBalancedServiceBaseProps):
|
|
|
10463
10524
|
self._values["enable_execute_command"] = enable_execute_command
|
|
10464
10525
|
if health_check_grace_period is not None:
|
|
10465
10526
|
self._values["health_check_grace_period"] = health_check_grace_period
|
|
10527
|
+
if ip_address_type is not None:
|
|
10528
|
+
self._values["ip_address_type"] = ip_address_type
|
|
10466
10529
|
if listener_port is not None:
|
|
10467
10530
|
self._values["listener_port"] = listener_port
|
|
10468
10531
|
if load_balancer is not None:
|
|
@@ -10613,6 +10676,20 @@ class NetworkLoadBalancedEc2ServiceProps(NetworkLoadBalancedServiceBaseProps):
|
|
|
10613
10676
|
result = self._values.get("health_check_grace_period")
|
|
10614
10677
|
return typing.cast(typing.Optional[_Duration_4839e8c3], result)
|
|
10615
10678
|
|
|
10679
|
+
@builtins.property
|
|
10680
|
+
def ip_address_type(self) -> typing.Optional[_IpAddressType_c43b240e]:
|
|
10681
|
+
'''The type of IP addresses to use.
|
|
10682
|
+
|
|
10683
|
+
If you want to add a UDP or TCP_UDP listener to the load balancer,
|
|
10684
|
+
you must choose IPv4.
|
|
10685
|
+
|
|
10686
|
+
:default: IpAddressType.IPV4
|
|
10687
|
+
|
|
10688
|
+
:see: https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-ip-address-type.html
|
|
10689
|
+
'''
|
|
10690
|
+
result = self._values.get("ip_address_type")
|
|
10691
|
+
return typing.cast(typing.Optional[_IpAddressType_c43b240e], result)
|
|
10692
|
+
|
|
10616
10693
|
@builtins.property
|
|
10617
10694
|
def listener_port(self) -> typing.Optional[jsii.Number]:
|
|
10618
10695
|
'''Listener port of the network load balancer that will serve traffic to the service.
|
|
@@ -10865,6 +10942,7 @@ class NetworkLoadBalancedFargateService(
|
|
|
10865
10942
|
enable_ecs_managed_tags: typing.Optional[builtins.bool] = None,
|
|
10866
10943
|
enable_execute_command: typing.Optional[builtins.bool] = None,
|
|
10867
10944
|
health_check_grace_period: typing.Optional[_Duration_4839e8c3] = None,
|
|
10945
|
+
ip_address_type: typing.Optional[_IpAddressType_c43b240e] = None,
|
|
10868
10946
|
listener_port: typing.Optional[jsii.Number] = None,
|
|
10869
10947
|
load_balancer: typing.Optional[_INetworkLoadBalancer_96e17101] = None,
|
|
10870
10948
|
max_healthy_percent: typing.Optional[jsii.Number] = None,
|
|
@@ -10900,6 +10978,7 @@ class NetworkLoadBalancedFargateService(
|
|
|
10900
10978
|
:param enable_ecs_managed_tags: Specifies whether to enable Amazon ECS managed tags for the tasks within the service. For more information, see `Tagging Your Amazon ECS Resources <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html>`_ Default: false
|
|
10901
10979
|
:param enable_execute_command: Whether ECS Exec should be enabled. Default: - false
|
|
10902
10980
|
:param health_check_grace_period: The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing target health checks after a task has first started. Default: - defaults to 60 seconds if at least one load balancer is in-use and it is not already set
|
|
10981
|
+
:param ip_address_type: The type of IP addresses to use. If you want to add a UDP or TCP_UDP listener to the load balancer, you must choose IPv4. Default: IpAddressType.IPV4
|
|
10903
10982
|
:param listener_port: Listener port of the network load balancer that will serve traffic to the service. Default: 80
|
|
10904
10983
|
:param load_balancer: The network load balancer that will serve traffic to the service. If the load balancer has been imported, the vpc attribute must be specified in the call to fromNetworkLoadBalancerAttributes(). [disable-awslint:ref-via-interface] Default: - a new load balancer will be created.
|
|
10905
10984
|
:param max_healthy_percent: The maximum number of tasks, specified as a percentage of the Amazon ECS service's DesiredCount value, that can run in a service during a deployment. Default: - 100 if daemon, otherwise 200
|
|
@@ -10936,6 +11015,7 @@ class NetworkLoadBalancedFargateService(
|
|
|
10936
11015
|
enable_ecs_managed_tags=enable_ecs_managed_tags,
|
|
10937
11016
|
enable_execute_command=enable_execute_command,
|
|
10938
11017
|
health_check_grace_period=health_check_grace_period,
|
|
11018
|
+
ip_address_type=ip_address_type,
|
|
10939
11019
|
listener_port=listener_port,
|
|
10940
11020
|
load_balancer=load_balancer,
|
|
10941
11021
|
max_healthy_percent=max_healthy_percent,
|
|
@@ -10989,6 +11069,7 @@ class NetworkLoadBalancedFargateService(
|
|
|
10989
11069
|
"enable_ecs_managed_tags": "enableECSManagedTags",
|
|
10990
11070
|
"enable_execute_command": "enableExecuteCommand",
|
|
10991
11071
|
"health_check_grace_period": "healthCheckGracePeriod",
|
|
11072
|
+
"ip_address_type": "ipAddressType",
|
|
10992
11073
|
"listener_port": "listenerPort",
|
|
10993
11074
|
"load_balancer": "loadBalancer",
|
|
10994
11075
|
"max_healthy_percent": "maxHealthyPercent",
|
|
@@ -11028,6 +11109,7 @@ class NetworkLoadBalancedFargateServiceProps(
|
|
|
11028
11109
|
enable_ecs_managed_tags: typing.Optional[builtins.bool] = None,
|
|
11029
11110
|
enable_execute_command: typing.Optional[builtins.bool] = None,
|
|
11030
11111
|
health_check_grace_period: typing.Optional[_Duration_4839e8c3] = None,
|
|
11112
|
+
ip_address_type: typing.Optional[_IpAddressType_c43b240e] = None,
|
|
11031
11113
|
listener_port: typing.Optional[jsii.Number] = None,
|
|
11032
11114
|
load_balancer: typing.Optional[_INetworkLoadBalancer_96e17101] = None,
|
|
11033
11115
|
max_healthy_percent: typing.Optional[jsii.Number] = None,
|
|
@@ -11061,6 +11143,7 @@ class NetworkLoadBalancedFargateServiceProps(
|
|
|
11061
11143
|
:param enable_ecs_managed_tags: Specifies whether to enable Amazon ECS managed tags for the tasks within the service. For more information, see `Tagging Your Amazon ECS Resources <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html>`_ Default: false
|
|
11062
11144
|
:param enable_execute_command: Whether ECS Exec should be enabled. Default: - false
|
|
11063
11145
|
:param health_check_grace_period: The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing target health checks after a task has first started. Default: - defaults to 60 seconds if at least one load balancer is in-use and it is not already set
|
|
11146
|
+
:param ip_address_type: The type of IP addresses to use. If you want to add a UDP or TCP_UDP listener to the load balancer, you must choose IPv4. Default: IpAddressType.IPV4
|
|
11064
11147
|
:param listener_port: Listener port of the network load balancer that will serve traffic to the service. Default: 80
|
|
11065
11148
|
:param load_balancer: The network load balancer that will serve traffic to the service. If the load balancer has been imported, the vpc attribute must be specified in the call to fromNetworkLoadBalancerAttributes(). [disable-awslint:ref-via-interface] Default: - a new load balancer will be created.
|
|
11066
11149
|
:param max_healthy_percent: The maximum number of tasks, specified as a percentage of the Amazon ECS service's DesiredCount value, that can run in a service during a deployment. Default: - 100 if daemon, otherwise 200
|
|
@@ -11122,6 +11205,7 @@ class NetworkLoadBalancedFargateServiceProps(
|
|
|
11122
11205
|
check_type(argname="argument enable_ecs_managed_tags", value=enable_ecs_managed_tags, expected_type=type_hints["enable_ecs_managed_tags"])
|
|
11123
11206
|
check_type(argname="argument enable_execute_command", value=enable_execute_command, expected_type=type_hints["enable_execute_command"])
|
|
11124
11207
|
check_type(argname="argument health_check_grace_period", value=health_check_grace_period, expected_type=type_hints["health_check_grace_period"])
|
|
11208
|
+
check_type(argname="argument ip_address_type", value=ip_address_type, expected_type=type_hints["ip_address_type"])
|
|
11125
11209
|
check_type(argname="argument listener_port", value=listener_port, expected_type=type_hints["listener_port"])
|
|
11126
11210
|
check_type(argname="argument load_balancer", value=load_balancer, expected_type=type_hints["load_balancer"])
|
|
11127
11211
|
check_type(argname="argument max_healthy_percent", value=max_healthy_percent, expected_type=type_hints["max_healthy_percent"])
|
|
@@ -11164,6 +11248,8 @@ class NetworkLoadBalancedFargateServiceProps(
|
|
|
11164
11248
|
self._values["enable_execute_command"] = enable_execute_command
|
|
11165
11249
|
if health_check_grace_period is not None:
|
|
11166
11250
|
self._values["health_check_grace_period"] = health_check_grace_period
|
|
11251
|
+
if ip_address_type is not None:
|
|
11252
|
+
self._values["ip_address_type"] = ip_address_type
|
|
11167
11253
|
if listener_port is not None:
|
|
11168
11254
|
self._values["listener_port"] = listener_port
|
|
11169
11255
|
if load_balancer is not None:
|
|
@@ -11320,6 +11406,20 @@ class NetworkLoadBalancedFargateServiceProps(
|
|
|
11320
11406
|
result = self._values.get("health_check_grace_period")
|
|
11321
11407
|
return typing.cast(typing.Optional[_Duration_4839e8c3], result)
|
|
11322
11408
|
|
|
11409
|
+
@builtins.property
|
|
11410
|
+
def ip_address_type(self) -> typing.Optional[_IpAddressType_c43b240e]:
|
|
11411
|
+
'''The type of IP addresses to use.
|
|
11412
|
+
|
|
11413
|
+
If you want to add a UDP or TCP_UDP listener to the load balancer,
|
|
11414
|
+
you must choose IPv4.
|
|
11415
|
+
|
|
11416
|
+
:default: IpAddressType.IPV4
|
|
11417
|
+
|
|
11418
|
+
:see: https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-ip-address-type.html
|
|
11419
|
+
'''
|
|
11420
|
+
result = self._values.get("ip_address_type")
|
|
11421
|
+
return typing.cast(typing.Optional[_IpAddressType_c43b240e], result)
|
|
11422
|
+
|
|
11323
11423
|
@builtins.property
|
|
11324
11424
|
def listener_port(self) -> typing.Optional[jsii.Number]:
|
|
11325
11425
|
'''Listener port of the network load balancer that will serve traffic to the service.
|
|
@@ -16125,6 +16225,7 @@ def _typecheckingstub__12b53d0ee1ed0e067bd3d89a143b1004884a752670676417fa81284f7
|
|
|
16125
16225
|
enable_ecs_managed_tags: typing.Optional[builtins.bool] = None,
|
|
16126
16226
|
enable_execute_command: typing.Optional[builtins.bool] = None,
|
|
16127
16227
|
health_check_grace_period: typing.Optional[_Duration_4839e8c3] = None,
|
|
16228
|
+
ip_address_type: typing.Optional[_IpAddressType_c43b240e] = None,
|
|
16128
16229
|
listener_port: typing.Optional[jsii.Number] = None,
|
|
16129
16230
|
load_balancer: typing.Optional[_INetworkLoadBalancer_96e17101] = None,
|
|
16130
16231
|
max_healthy_percent: typing.Optional[jsii.Number] = None,
|
|
@@ -16171,6 +16272,7 @@ def _typecheckingstub__b8c23351e0c4b39637462c662d702bdc3b000214d7335a22d67c31895
|
|
|
16171
16272
|
enable_ecs_managed_tags: typing.Optional[builtins.bool] = None,
|
|
16172
16273
|
enable_execute_command: typing.Optional[builtins.bool] = None,
|
|
16173
16274
|
health_check_grace_period: typing.Optional[_Duration_4839e8c3] = None,
|
|
16275
|
+
ip_address_type: typing.Optional[_IpAddressType_c43b240e] = None,
|
|
16174
16276
|
listener_port: typing.Optional[jsii.Number] = None,
|
|
16175
16277
|
load_balancer: typing.Optional[_INetworkLoadBalancer_96e17101] = None,
|
|
16176
16278
|
max_healthy_percent: typing.Optional[jsii.Number] = None,
|
|
@@ -16792,6 +16894,7 @@ def _typecheckingstub__25a24a1cd170ed236f46460373e5ad18864ab4b8845363c5e05a08cd3
|
|
|
16792
16894
|
enable_ecs_managed_tags: typing.Optional[builtins.bool] = None,
|
|
16793
16895
|
enable_execute_command: typing.Optional[builtins.bool] = None,
|
|
16794
16896
|
health_check_grace_period: typing.Optional[_Duration_4839e8c3] = None,
|
|
16897
|
+
ip_address_type: typing.Optional[_IpAddressType_c43b240e] = None,
|
|
16795
16898
|
listener_port: typing.Optional[jsii.Number] = None,
|
|
16796
16899
|
load_balancer: typing.Optional[_INetworkLoadBalancer_96e17101] = None,
|
|
16797
16900
|
max_healthy_percent: typing.Optional[jsii.Number] = None,
|
|
@@ -16819,6 +16922,7 @@ def _typecheckingstub__b000aecf519f70fc3affe03da9de2d9fb2bdfca5ee4102634f4e17198
|
|
|
16819
16922
|
enable_ecs_managed_tags: typing.Optional[builtins.bool] = None,
|
|
16820
16923
|
enable_execute_command: typing.Optional[builtins.bool] = None,
|
|
16821
16924
|
health_check_grace_period: typing.Optional[_Duration_4839e8c3] = None,
|
|
16925
|
+
ip_address_type: typing.Optional[_IpAddressType_c43b240e] = None,
|
|
16822
16926
|
listener_port: typing.Optional[jsii.Number] = None,
|
|
16823
16927
|
load_balancer: typing.Optional[_INetworkLoadBalancer_96e17101] = None,
|
|
16824
16928
|
max_healthy_percent: typing.Optional[jsii.Number] = None,
|
|
@@ -16857,6 +16961,7 @@ def _typecheckingstub__633773eb8c5e71fd9d413b4600a4460d67ddbbf4f0d1ad414b05ab210
|
|
|
16857
16961
|
enable_ecs_managed_tags: typing.Optional[builtins.bool] = None,
|
|
16858
16962
|
enable_execute_command: typing.Optional[builtins.bool] = None,
|
|
16859
16963
|
health_check_grace_period: typing.Optional[_Duration_4839e8c3] = None,
|
|
16964
|
+
ip_address_type: typing.Optional[_IpAddressType_c43b240e] = None,
|
|
16860
16965
|
listener_port: typing.Optional[jsii.Number] = None,
|
|
16861
16966
|
load_balancer: typing.Optional[_INetworkLoadBalancer_96e17101] = None,
|
|
16862
16967
|
max_healthy_percent: typing.Optional[jsii.Number] = None,
|
|
@@ -16890,6 +16995,7 @@ def _typecheckingstub__883e3ba9ce3759b7fedc824d271d29edacc0ccdd564e943054039dc84
|
|
|
16890
16995
|
enable_ecs_managed_tags: typing.Optional[builtins.bool] = None,
|
|
16891
16996
|
enable_execute_command: typing.Optional[builtins.bool] = None,
|
|
16892
16997
|
health_check_grace_period: typing.Optional[_Duration_4839e8c3] = None,
|
|
16998
|
+
ip_address_type: typing.Optional[_IpAddressType_c43b240e] = None,
|
|
16893
16999
|
listener_port: typing.Optional[jsii.Number] = None,
|
|
16894
17000
|
load_balancer: typing.Optional[_INetworkLoadBalancer_96e17101] = None,
|
|
16895
17001
|
max_healthy_percent: typing.Optional[jsii.Number] = None,
|
aws_cdk/aws_eks/__init__.py
CHANGED
|
@@ -408,7 +408,8 @@ cluster = eks.Cluster(self, "cluster-to-rename",
|
|
|
408
408
|
|
|
409
409
|
# allow the cluster admin role to delete the cluster 'foo'
|
|
410
410
|
cluster.admin_role.add_to_policy(iam.PolicyStatement(
|
|
411
|
-
actions=["eks:DeleteCluster"
|
|
411
|
+
actions=["eks:DeleteCluster", "eks:DescribeCluster"
|
|
412
|
+
],
|
|
412
413
|
resources=[
|
|
413
414
|
Stack.of(self).format_arn(service="eks", resource="cluster", resource_name="foo")
|
|
414
415
|
]
|
|
@@ -15118,16 +15119,18 @@ class Cluster(
|
|
|
15118
15119
|
|
|
15119
15120
|
Example::
|
|
15120
15121
|
|
|
15121
|
-
|
|
15122
|
-
|
|
15123
|
-
|
|
15124
|
-
|
|
15125
|
-
version=eks.KubernetesVersion.
|
|
15122
|
+
import aws_cdk.aws_eks as eks
|
|
15123
|
+
|
|
15124
|
+
|
|
15125
|
+
my_eks_cluster = eks.Cluster(self, "my sample cluster",
|
|
15126
|
+
version=eks.KubernetesVersion.V1_18,
|
|
15127
|
+
cluster_name="myEksCluster"
|
|
15126
15128
|
)
|
|
15127
|
-
|
|
15128
|
-
|
|
15129
|
-
|
|
15130
|
-
|
|
15129
|
+
|
|
15130
|
+
tasks.EksCall(self, "Call a EKS Endpoint",
|
|
15131
|
+
cluster=my_eks_cluster,
|
|
15132
|
+
http_method=tasks.HttpMethods.GET,
|
|
15133
|
+
http_path="/api/v1/namespaces/default/pods"
|
|
15131
15134
|
)
|
|
15132
15135
|
'''
|
|
15133
15136
|
|
|
@@ -2449,6 +2449,15 @@ class CfnParameterGroup(
|
|
|
2449
2449
|
'''The CloudFormation resource type name for this resource class.'''
|
|
2450
2450
|
return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
|
|
2451
2451
|
|
|
2452
|
+
@builtins.property
|
|
2453
|
+
@jsii.member(jsii_name="attrCacheParameterGroupName")
|
|
2454
|
+
def attr_cache_parameter_group_name(self) -> builtins.str:
|
|
2455
|
+
'''A user-specified name for the cache parameter group.
|
|
2456
|
+
|
|
2457
|
+
:cloudformationAttribute: CacheParameterGroupName
|
|
2458
|
+
'''
|
|
2459
|
+
return typing.cast(builtins.str, jsii.get(self, "attrCacheParameterGroupName"))
|
|
2460
|
+
|
|
2452
2461
|
@builtins.property
|
|
2453
2462
|
@jsii.member(jsii_name="attrId")
|
|
2454
2463
|
def attr_id(self) -> builtins.str:
|