aws-cdk-lib 2.117.0__py3-none-any.whl → 2.119.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 +138 -25
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.117.0.jsii.tgz → aws-cdk-lib@2.119.0.jsii.tgz} +0 -0
- aws_cdk/amzn_sdc/__init__.py +496 -0
- aws_cdk/aws_appsync/__init__.py +94 -22
- aws_cdk/aws_autoscaling/__init__.py +139 -74
- aws_cdk/aws_certificatemanager/__init__.py +164 -3
- aws_cdk/aws_cloud9/__init__.py +3 -3
- aws_cdk/aws_cloudfront/__init__.py +853 -38
- aws_cdk/aws_cloudtrail/__init__.py +54 -34
- aws_cdk/aws_cloudwatch_actions/__init__.py +105 -0
- aws_cdk/aws_codebuild/__init__.py +46 -5
- aws_cdk/aws_codecommit/__init__.py +9 -3
- aws_cdk/aws_codepipeline_actions/__init__.py +54 -0
- aws_cdk/aws_codetest/__init__.py +788 -0
- aws_cdk/aws_cognito/__init__.py +104 -0
- aws_cdk/aws_connect/__init__.py +626 -78
- aws_cdk/aws_docdb/__init__.py +442 -0
- aws_cdk/aws_dynamodb/__init__.py +14 -0
- aws_cdk/aws_ec2/__init__.py +372 -44
- aws_cdk/aws_ecs/__init__.py +192 -35
- aws_cdk/aws_emrserverless/__init__.py +20 -13
- aws_cdk/aws_events/__init__.py +90 -1
- aws_cdk/aws_fis/__init__.py +12 -32
- aws_cdk/aws_globalaccelerator/__init__.py +19 -0
- aws_cdk/aws_glue/__init__.py +329 -0
- aws_cdk/aws_iam/__init__.py +50 -24
- aws_cdk/aws_iot/__init__.py +112 -0
- aws_cdk/aws_iotsitewise/__init__.py +4 -4
- aws_cdk/aws_kendra/__init__.py +10 -5
- aws_cdk/aws_kinesisfirehose/__init__.py +111 -0
- aws_cdk/aws_lambda/__init__.py +180 -407
- aws_cdk/aws_location/__init__.py +1132 -17
- aws_cdk/aws_mediatailor/__init__.py +120 -17
- aws_cdk/aws_networkfirewall/__init__.py +2 -2
- aws_cdk/aws_networkmanager/__init__.py +1 -1
- aws_cdk/aws_omics/__init__.py +4 -4
- aws_cdk/aws_opensearchservice/__init__.py +58 -0
- aws_cdk/aws_pinpoint/__init__.py +14 -6
- aws_cdk/aws_pipes/__init__.py +7 -2
- aws_cdk/aws_rds/__init__.py +247 -16
- aws_cdk/aws_redshift/__init__.py +103 -0
- aws_cdk/aws_route53/__init__.py +68 -20
- aws_cdk/aws_s3/__init__.py +2 -4
- aws_cdk/aws_s3objectlambda/__init__.py +2 -2
- aws_cdk/aws_servicecatalogappregistry/__init__.py +3 -3
- aws_cdk/aws_signer/__init__.py +27 -4
- aws_cdk/aws_ssm/__init__.py +76 -13
- aws_cdk/aws_stepfunctions/__init__.py +110 -5
- aws_cdk/aws_stepfunctions_tasks/__init__.py +84 -29
- aws_cdk/pipelines/__init__.py +136 -37
- {aws_cdk_lib-2.117.0.dist-info → aws_cdk_lib-2.119.0.dist-info}/LICENSE +1 -1
- {aws_cdk_lib-2.117.0.dist-info → aws_cdk_lib-2.119.0.dist-info}/METADATA +98 -12
- {aws_cdk_lib-2.117.0.dist-info → aws_cdk_lib-2.119.0.dist-info}/NOTICE +1 -1
- {aws_cdk_lib-2.117.0.dist-info → aws_cdk_lib-2.119.0.dist-info}/RECORD +57 -55
- {aws_cdk_lib-2.117.0.dist-info → aws_cdk_lib-2.119.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.117.0.dist-info → aws_cdk_lib-2.119.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_ecs/__init__.py
CHANGED
|
@@ -207,6 +207,20 @@ task_definition.add_to_task_role_policy(
|
|
|
207
207
|
))
|
|
208
208
|
```
|
|
209
209
|
|
|
210
|
+
To manage task protection settings in an ECS cluster, you can use the `grantTaskProtection` method.
|
|
211
|
+
This method grants the `ecs:UpdateTaskProtection` permission to a specified IAM entity.
|
|
212
|
+
|
|
213
|
+
```python
|
|
214
|
+
# Assume 'cluster' is an instance of ecs.Cluster
|
|
215
|
+
# cluster: ecs.Cluster
|
|
216
|
+
# task_role: iam.Role
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
# Grant ECS Task Protection permissions to the role
|
|
220
|
+
# Now 'taskRole' has the 'ecs:UpdateTaskProtection' permission on all tasks in the cluster
|
|
221
|
+
cluster.grant_task_protection(task_role)
|
|
222
|
+
```
|
|
223
|
+
|
|
210
224
|
### Bottlerocket
|
|
211
225
|
|
|
212
226
|
[Bottlerocket](https://aws.amazon.com/bottlerocket/) is a Linux-based open source operating system that is
|
|
@@ -227,6 +241,20 @@ cluster.add_capacity("bottlerocket-asg",
|
|
|
227
241
|
)
|
|
228
242
|
```
|
|
229
243
|
|
|
244
|
+
You can also specify an NVIDIA-compatible AMI such as in this example:
|
|
245
|
+
|
|
246
|
+
```python
|
|
247
|
+
# cluster: ecs.Cluster
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
cluster.add_capacity("bottlerocket-asg",
|
|
251
|
+
instance_type=ec2.InstanceType("p3.2xlarge"),
|
|
252
|
+
machine_image=ecs.BottleRocketImage(
|
|
253
|
+
variant=ecs.BottlerocketEcsVariant.AWS_ECS_2_NVIDIA
|
|
254
|
+
)
|
|
255
|
+
)
|
|
256
|
+
```
|
|
257
|
+
|
|
230
258
|
### ARM64 (Graviton) Instances
|
|
231
259
|
|
|
232
260
|
To launch instances with ARM64 hardware, you can use the Amazon ECS-optimized
|
|
@@ -465,6 +493,21 @@ task_def = ecs.TaskDefinition(self, "TaskDef",
|
|
|
465
493
|
task_def.grant_run(role)
|
|
466
494
|
```
|
|
467
495
|
|
|
496
|
+
To deploy containerized applications that require the allocation of standard input (stdin) or a terminal (tty), use the `interactive` property.
|
|
497
|
+
|
|
498
|
+
This parameter corresponds to `OpenStdin` in the [Create a container](https://docs.docker.com/engine/api/v1.35/#tag/Container/operation/ContainerCreate) section of the [Docker Remote API](https://docs.docker.com/engine/api/v1.35/)
|
|
499
|
+
and the `--interactive` option to [docker run](https://docs.docker.com/engine/reference/run/#security-configuration).
|
|
500
|
+
|
|
501
|
+
```python
|
|
502
|
+
# task_definition: ecs.TaskDefinition
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
task_definition.add_container("Container",
|
|
506
|
+
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample"),
|
|
507
|
+
interactive=True
|
|
508
|
+
)
|
|
509
|
+
```
|
|
510
|
+
|
|
468
511
|
### Images
|
|
469
512
|
|
|
470
513
|
Images supply the software that runs inside the container. Images can be
|
|
@@ -2001,29 +2044,13 @@ class AddCapacityOptions(
|
|
|
2001
2044
|
|
|
2002
2045
|
Example::
|
|
2003
2046
|
|
|
2004
|
-
#
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
# Create an ECS cluster
|
|
2008
|
-
cluster = ecs.Cluster(self, "Cluster", vpc=vpc)
|
|
2009
|
-
|
|
2010
|
-
# Add capacity to it
|
|
2011
|
-
cluster.add_capacity("DefaultAutoScalingGroupCapacity",
|
|
2012
|
-
instance_type=ec2.InstanceType("t2.xlarge"),
|
|
2013
|
-
desired_capacity=3
|
|
2014
|
-
)
|
|
2015
|
-
|
|
2016
|
-
task_definition = ecs.Ec2TaskDefinition(self, "TaskDef")
|
|
2047
|
+
# cluster: ecs.Cluster
|
|
2017
2048
|
|
|
2018
|
-
task_definition.add_container("DefaultContainer",
|
|
2019
|
-
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample"),
|
|
2020
|
-
memory_limit_mi_b=512
|
|
2021
|
-
)
|
|
2022
2049
|
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2050
|
+
cluster.add_capacity("graviton-cluster",
|
|
2051
|
+
min_capacity=2,
|
|
2052
|
+
instance_type=ec2.InstanceType("c6g.large"),
|
|
2053
|
+
machine_image=ecs.EcsOptimizedImage.amazon_linux2(ecs.AmiHardwareType.ARM)
|
|
2027
2054
|
)
|
|
2028
2055
|
'''
|
|
2029
2056
|
if isinstance(vpc_subnets, dict):
|
|
@@ -5025,7 +5052,7 @@ class BottleRocketImage(
|
|
|
5025
5052
|
|
|
5026
5053
|
:param architecture: The CPU architecture. Default: - x86_64
|
|
5027
5054
|
:param cached_in_context: Whether the AMI ID is cached to be stable between deployments. By default, the newest image is used on each deployment. This will cause instances to be replaced whenever a new version is released, and may cause downtime if there aren't enough running instances in the AutoScalingGroup to reschedule the tasks on. If set to true, the AMI ID will be cached in ``cdk.context.json`` and the same value will be used on future runs. Your instances will not be replaced but your AMI version will grow old over time. To refresh the AMI lookup, you will have to evict the value from the cache using the ``cdk context`` command. See https://docs.aws.amazon.com/cdk/latest/guide/context.html for more information. Can not be set to ``true`` in environment-agnostic stacks. Default: false
|
|
5028
|
-
:param variant: The Amazon ECS variant to use.
|
|
5055
|
+
:param variant: The Amazon ECS variant to use. Default: - BottlerocketEcsVariant.AWS_ECS_1
|
|
5029
5056
|
'''
|
|
5030
5057
|
props = BottleRocketImageProps(
|
|
5031
5058
|
architecture=architecture,
|
|
@@ -5083,21 +5110,20 @@ class BottleRocketImageProps:
|
|
|
5083
5110
|
|
|
5084
5111
|
:param architecture: The CPU architecture. Default: - x86_64
|
|
5085
5112
|
:param cached_in_context: Whether the AMI ID is cached to be stable between deployments. By default, the newest image is used on each deployment. This will cause instances to be replaced whenever a new version is released, and may cause downtime if there aren't enough running instances in the AutoScalingGroup to reschedule the tasks on. If set to true, the AMI ID will be cached in ``cdk.context.json`` and the same value will be used on future runs. Your instances will not be replaced but your AMI version will grow old over time. To refresh the AMI lookup, you will have to evict the value from the cache using the ``cdk context`` command. See https://docs.aws.amazon.com/cdk/latest/guide/context.html for more information. Can not be set to ``true`` in environment-agnostic stacks. Default: false
|
|
5086
|
-
:param variant: The Amazon ECS variant to use.
|
|
5113
|
+
:param variant: The Amazon ECS variant to use. Default: - BottlerocketEcsVariant.AWS_ECS_1
|
|
5087
5114
|
|
|
5088
|
-
:exampleMetadata:
|
|
5115
|
+
:exampleMetadata: infused
|
|
5089
5116
|
|
|
5090
5117
|
Example::
|
|
5091
5118
|
|
|
5092
|
-
#
|
|
5093
|
-
|
|
5094
|
-
from aws_cdk import aws_ec2 as ec2
|
|
5095
|
-
from aws_cdk import aws_ecs as ecs
|
|
5119
|
+
# cluster: ecs.Cluster
|
|
5120
|
+
|
|
5096
5121
|
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5122
|
+
cluster.add_capacity("bottlerocket-asg",
|
|
5123
|
+
instance_type=ec2.InstanceType("p3.2xlarge"),
|
|
5124
|
+
machine_image=ecs.BottleRocketImage(
|
|
5125
|
+
variant=ecs.BottlerocketEcsVariant.AWS_ECS_2_NVIDIA
|
|
5126
|
+
)
|
|
5101
5127
|
)
|
|
5102
5128
|
'''
|
|
5103
5129
|
if __debug__:
|
|
@@ -5149,8 +5175,6 @@ class BottleRocketImageProps:
|
|
|
5149
5175
|
def variant(self) -> typing.Optional["BottlerocketEcsVariant"]:
|
|
5150
5176
|
'''The Amazon ECS variant to use.
|
|
5151
5177
|
|
|
5152
|
-
Only ``aws-ecs-1`` is currently available
|
|
5153
|
-
|
|
5154
5178
|
:default: - BottlerocketEcsVariant.AWS_ECS_1
|
|
5155
5179
|
'''
|
|
5156
5180
|
result = self._values.get("variant")
|
|
@@ -5170,10 +5194,31 @@ class BottleRocketImageProps:
|
|
|
5170
5194
|
|
|
5171
5195
|
@jsii.enum(jsii_type="aws-cdk-lib.aws_ecs.BottlerocketEcsVariant")
|
|
5172
5196
|
class BottlerocketEcsVariant(enum.Enum):
|
|
5173
|
-
'''Amazon ECS variant.
|
|
5197
|
+
'''Amazon ECS variant.
|
|
5198
|
+
|
|
5199
|
+
:exampleMetadata: infused
|
|
5200
|
+
|
|
5201
|
+
Example::
|
|
5202
|
+
|
|
5203
|
+
# cluster: ecs.Cluster
|
|
5204
|
+
|
|
5205
|
+
|
|
5206
|
+
cluster.add_capacity("bottlerocket-asg",
|
|
5207
|
+
instance_type=ec2.InstanceType("p3.2xlarge"),
|
|
5208
|
+
machine_image=ecs.BottleRocketImage(
|
|
5209
|
+
variant=ecs.BottlerocketEcsVariant.AWS_ECS_2_NVIDIA
|
|
5210
|
+
)
|
|
5211
|
+
)
|
|
5212
|
+
'''
|
|
5174
5213
|
|
|
5175
5214
|
AWS_ECS_1 = "AWS_ECS_1"
|
|
5176
5215
|
'''aws-ecs-1 variant.'''
|
|
5216
|
+
AWS_ECS_1_NVIDIA = "AWS_ECS_1_NVIDIA"
|
|
5217
|
+
'''aws-ecs-1-nvidia variant.'''
|
|
5218
|
+
AWS_ECS_2 = "AWS_ECS_2"
|
|
5219
|
+
'''aws-ecs-2 variant.'''
|
|
5220
|
+
AWS_ECS_2_NVIDIA = "AWS_ECS_2_NVIDIA"
|
|
5221
|
+
'''aws-ecs-2-nvidia variant.'''
|
|
5177
5222
|
|
|
5178
5223
|
|
|
5179
5224
|
class BuiltInAttributes(
|
|
@@ -18031,6 +18076,7 @@ class ContainerDefinition(
|
|
|
18031
18076
|
health_check: typing.Optional[typing.Union["HealthCheck", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
18032
18077
|
hostname: typing.Optional[builtins.str] = None,
|
|
18033
18078
|
inference_accelerator_resources: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
18079
|
+
interactive: typing.Optional[builtins.bool] = None,
|
|
18034
18080
|
linux_parameters: typing.Optional["LinuxParameters"] = None,
|
|
18035
18081
|
logging: typing.Optional["LogDriver"] = None,
|
|
18036
18082
|
memory_limit_mib: typing.Optional[jsii.Number] = None,
|
|
@@ -18070,6 +18116,7 @@ class ContainerDefinition(
|
|
|
18070
18116
|
:param health_check: The health check command and associated configuration parameters for the container. Default: - Health check configuration from container.
|
|
18071
18117
|
:param hostname: The hostname to use for your container. Default: - Automatic hostname.
|
|
18072
18118
|
:param inference_accelerator_resources: The inference accelerators referenced by the container. Default: - No inference accelerators assigned.
|
|
18119
|
+
:param interactive: When this parameter is true, you can deploy containerized applications that require stdin or a tty to be allocated. Default: - false
|
|
18073
18120
|
:param linux_parameters: Linux-specific modifications that are applied to the container, such as Linux kernel capabilities. For more information see `KernelCapabilities <https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_KernelCapabilities.html>`_. Default: - No Linux parameters.
|
|
18074
18121
|
:param logging: The log configuration specification for the container. Default: - Containers use the same logging driver that the Docker daemon uses.
|
|
18075
18122
|
:param memory_limit_mib: The amount (in MiB) of memory to present to the container. If your container attempts to exceed the allocated memory, the container is terminated. At least one of memoryLimitMiB and memoryReservationMiB is required for non-Fargate services. Default: - No memory limit.
|
|
@@ -18110,6 +18157,7 @@ class ContainerDefinition(
|
|
|
18110
18157
|
health_check=health_check,
|
|
18111
18158
|
hostname=hostname,
|
|
18112
18159
|
inference_accelerator_resources=inference_accelerator_resources,
|
|
18160
|
+
interactive=interactive,
|
|
18113
18161
|
linux_parameters=linux_parameters,
|
|
18114
18162
|
logging=logging,
|
|
18115
18163
|
memory_limit_mib=memory_limit_mib,
|
|
@@ -18483,6 +18531,7 @@ class ContainerDefinition(
|
|
|
18483
18531
|
"health_check": "healthCheck",
|
|
18484
18532
|
"hostname": "hostname",
|
|
18485
18533
|
"inference_accelerator_resources": "inferenceAcceleratorResources",
|
|
18534
|
+
"interactive": "interactive",
|
|
18486
18535
|
"linux_parameters": "linuxParameters",
|
|
18487
18536
|
"logging": "logging",
|
|
18488
18537
|
"memory_limit_mib": "memoryLimitMiB",
|
|
@@ -18522,6 +18571,7 @@ class ContainerDefinitionOptions:
|
|
|
18522
18571
|
health_check: typing.Optional[typing.Union["HealthCheck", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
18523
18572
|
hostname: typing.Optional[builtins.str] = None,
|
|
18524
18573
|
inference_accelerator_resources: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
18574
|
+
interactive: typing.Optional[builtins.bool] = None,
|
|
18525
18575
|
linux_parameters: typing.Optional["LinuxParameters"] = None,
|
|
18526
18576
|
logging: typing.Optional["LogDriver"] = None,
|
|
18527
18577
|
memory_limit_mib: typing.Optional[jsii.Number] = None,
|
|
@@ -18557,6 +18607,7 @@ class ContainerDefinitionOptions:
|
|
|
18557
18607
|
:param health_check: The health check command and associated configuration parameters for the container. Default: - Health check configuration from container.
|
|
18558
18608
|
:param hostname: The hostname to use for your container. Default: - Automatic hostname.
|
|
18559
18609
|
:param inference_accelerator_resources: The inference accelerators referenced by the container. Default: - No inference accelerators assigned.
|
|
18610
|
+
:param interactive: When this parameter is true, you can deploy containerized applications that require stdin or a tty to be allocated. Default: - false
|
|
18560
18611
|
:param linux_parameters: Linux-specific modifications that are applied to the container, such as Linux kernel capabilities. For more information see `KernelCapabilities <https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_KernelCapabilities.html>`_. Default: - No Linux parameters.
|
|
18561
18612
|
:param logging: The log configuration specification for the container. Default: - Containers use the same logging driver that the Docker daemon uses.
|
|
18562
18613
|
:param memory_limit_mib: The amount (in MiB) of memory to present to the container. If your container attempts to exceed the allocated memory, the container is terminated. At least one of memoryLimitMiB and memoryReservationMiB is required for non-Fargate services. Default: - No memory limit.
|
|
@@ -18627,6 +18678,7 @@ class ContainerDefinitionOptions:
|
|
|
18627
18678
|
check_type(argname="argument health_check", value=health_check, expected_type=type_hints["health_check"])
|
|
18628
18679
|
check_type(argname="argument hostname", value=hostname, expected_type=type_hints["hostname"])
|
|
18629
18680
|
check_type(argname="argument inference_accelerator_resources", value=inference_accelerator_resources, expected_type=type_hints["inference_accelerator_resources"])
|
|
18681
|
+
check_type(argname="argument interactive", value=interactive, expected_type=type_hints["interactive"])
|
|
18630
18682
|
check_type(argname="argument linux_parameters", value=linux_parameters, expected_type=type_hints["linux_parameters"])
|
|
18631
18683
|
check_type(argname="argument logging", value=logging, expected_type=type_hints["logging"])
|
|
18632
18684
|
check_type(argname="argument memory_limit_mib", value=memory_limit_mib, expected_type=type_hints["memory_limit_mib"])
|
|
@@ -18679,6 +18731,8 @@ class ContainerDefinitionOptions:
|
|
|
18679
18731
|
self._values["hostname"] = hostname
|
|
18680
18732
|
if inference_accelerator_resources is not None:
|
|
18681
18733
|
self._values["inference_accelerator_resources"] = inference_accelerator_resources
|
|
18734
|
+
if interactive is not None:
|
|
18735
|
+
self._values["interactive"] = interactive
|
|
18682
18736
|
if linux_parameters is not None:
|
|
18683
18737
|
self._values["linux_parameters"] = linux_parameters
|
|
18684
18738
|
if logging is not None:
|
|
@@ -18899,6 +18953,17 @@ class ContainerDefinitionOptions:
|
|
|
18899
18953
|
result = self._values.get("inference_accelerator_resources")
|
|
18900
18954
|
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
18901
18955
|
|
|
18956
|
+
@builtins.property
|
|
18957
|
+
def interactive(self) -> typing.Optional[builtins.bool]:
|
|
18958
|
+
'''When this parameter is true, you can deploy containerized applications that require stdin or a tty to be allocated.
|
|
18959
|
+
|
|
18960
|
+
:default: - false
|
|
18961
|
+
|
|
18962
|
+
:see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-interactive
|
|
18963
|
+
'''
|
|
18964
|
+
result = self._values.get("interactive")
|
|
18965
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
18966
|
+
|
|
18902
18967
|
@builtins.property
|
|
18903
18968
|
def linux_parameters(self) -> typing.Optional["LinuxParameters"]:
|
|
18904
18969
|
'''Linux-specific modifications that are applied to the container, such as Linux kernel capabilities.
|
|
@@ -19093,6 +19158,7 @@ class ContainerDefinitionOptions:
|
|
|
19093
19158
|
"health_check": "healthCheck",
|
|
19094
19159
|
"hostname": "hostname",
|
|
19095
19160
|
"inference_accelerator_resources": "inferenceAcceleratorResources",
|
|
19161
|
+
"interactive": "interactive",
|
|
19096
19162
|
"linux_parameters": "linuxParameters",
|
|
19097
19163
|
"logging": "logging",
|
|
19098
19164
|
"memory_limit_mib": "memoryLimitMiB",
|
|
@@ -19133,6 +19199,7 @@ class ContainerDefinitionProps(ContainerDefinitionOptions):
|
|
|
19133
19199
|
health_check: typing.Optional[typing.Union["HealthCheck", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
19134
19200
|
hostname: typing.Optional[builtins.str] = None,
|
|
19135
19201
|
inference_accelerator_resources: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
19202
|
+
interactive: typing.Optional[builtins.bool] = None,
|
|
19136
19203
|
linux_parameters: typing.Optional["LinuxParameters"] = None,
|
|
19137
19204
|
logging: typing.Optional["LogDriver"] = None,
|
|
19138
19205
|
memory_limit_mib: typing.Optional[jsii.Number] = None,
|
|
@@ -19170,6 +19237,7 @@ class ContainerDefinitionProps(ContainerDefinitionOptions):
|
|
|
19170
19237
|
:param health_check: The health check command and associated configuration parameters for the container. Default: - Health check configuration from container.
|
|
19171
19238
|
:param hostname: The hostname to use for your container. Default: - Automatic hostname.
|
|
19172
19239
|
:param inference_accelerator_resources: The inference accelerators referenced by the container. Default: - No inference accelerators assigned.
|
|
19240
|
+
:param interactive: When this parameter is true, you can deploy containerized applications that require stdin or a tty to be allocated. Default: - false
|
|
19173
19241
|
:param linux_parameters: Linux-specific modifications that are applied to the container, such as Linux kernel capabilities. For more information see `KernelCapabilities <https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_KernelCapabilities.html>`_. Default: - No Linux parameters.
|
|
19174
19242
|
:param logging: The log configuration specification for the container. Default: - Containers use the same logging driver that the Docker daemon uses.
|
|
19175
19243
|
:param memory_limit_mib: The amount (in MiB) of memory to present to the container. If your container attempts to exceed the allocated memory, the container is terminated. At least one of memoryLimitMiB and memoryReservationMiB is required for non-Fargate services. Default: - No memory limit.
|
|
@@ -19240,6 +19308,7 @@ class ContainerDefinitionProps(ContainerDefinitionOptions):
|
|
|
19240
19308
|
),
|
|
19241
19309
|
hostname="hostname",
|
|
19242
19310
|
inference_accelerator_resources=["inferenceAcceleratorResources"],
|
|
19311
|
+
interactive=False,
|
|
19243
19312
|
linux_parameters=linux_parameters,
|
|
19244
19313
|
logging=log_driver,
|
|
19245
19314
|
memory_limit_mi_b=123,
|
|
@@ -19297,6 +19366,7 @@ class ContainerDefinitionProps(ContainerDefinitionOptions):
|
|
|
19297
19366
|
check_type(argname="argument health_check", value=health_check, expected_type=type_hints["health_check"])
|
|
19298
19367
|
check_type(argname="argument hostname", value=hostname, expected_type=type_hints["hostname"])
|
|
19299
19368
|
check_type(argname="argument inference_accelerator_resources", value=inference_accelerator_resources, expected_type=type_hints["inference_accelerator_resources"])
|
|
19369
|
+
check_type(argname="argument interactive", value=interactive, expected_type=type_hints["interactive"])
|
|
19300
19370
|
check_type(argname="argument linux_parameters", value=linux_parameters, expected_type=type_hints["linux_parameters"])
|
|
19301
19371
|
check_type(argname="argument logging", value=logging, expected_type=type_hints["logging"])
|
|
19302
19372
|
check_type(argname="argument memory_limit_mib", value=memory_limit_mib, expected_type=type_hints["memory_limit_mib"])
|
|
@@ -19351,6 +19421,8 @@ class ContainerDefinitionProps(ContainerDefinitionOptions):
|
|
|
19351
19421
|
self._values["hostname"] = hostname
|
|
19352
19422
|
if inference_accelerator_resources is not None:
|
|
19353
19423
|
self._values["inference_accelerator_resources"] = inference_accelerator_resources
|
|
19424
|
+
if interactive is not None:
|
|
19425
|
+
self._values["interactive"] = interactive
|
|
19354
19426
|
if linux_parameters is not None:
|
|
19355
19427
|
self._values["linux_parameters"] = linux_parameters
|
|
19356
19428
|
if logging is not None:
|
|
@@ -19571,6 +19643,17 @@ class ContainerDefinitionProps(ContainerDefinitionOptions):
|
|
|
19571
19643
|
result = self._values.get("inference_accelerator_resources")
|
|
19572
19644
|
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
19573
19645
|
|
|
19646
|
+
@builtins.property
|
|
19647
|
+
def interactive(self) -> typing.Optional[builtins.bool]:
|
|
19648
|
+
'''When this parameter is true, you can deploy containerized applications that require stdin or a tty to be allocated.
|
|
19649
|
+
|
|
19650
|
+
:default: - false
|
|
19651
|
+
|
|
19652
|
+
:see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-interactive
|
|
19653
|
+
'''
|
|
19654
|
+
result = self._values.get("interactive")
|
|
19655
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
19656
|
+
|
|
19574
19657
|
@builtins.property
|
|
19575
19658
|
def linux_parameters(self) -> typing.Optional["LinuxParameters"]:
|
|
19576
19659
|
'''Linux-specific modifications that are applied to the container, such as Linux kernel capabilities.
|
|
@@ -24643,6 +24726,7 @@ class FirelensLogRouter(
|
|
|
24643
24726
|
),
|
|
24644
24727
|
hostname="hostname",
|
|
24645
24728
|
inference_accelerator_resources=["inferenceAcceleratorResources"],
|
|
24729
|
+
interactive=False,
|
|
24646
24730
|
linux_parameters=linux_parameters,
|
|
24647
24731
|
logging=log_driver,
|
|
24648
24732
|
memory_limit_mi_b=123,
|
|
@@ -24704,6 +24788,7 @@ class FirelensLogRouter(
|
|
|
24704
24788
|
health_check: typing.Optional[typing.Union["HealthCheck", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
24705
24789
|
hostname: typing.Optional[builtins.str] = None,
|
|
24706
24790
|
inference_accelerator_resources: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
24791
|
+
interactive: typing.Optional[builtins.bool] = None,
|
|
24707
24792
|
linux_parameters: typing.Optional["LinuxParameters"] = None,
|
|
24708
24793
|
logging: typing.Optional["LogDriver"] = None,
|
|
24709
24794
|
memory_limit_mib: typing.Optional[jsii.Number] = None,
|
|
@@ -24744,6 +24829,7 @@ class FirelensLogRouter(
|
|
|
24744
24829
|
:param health_check: The health check command and associated configuration parameters for the container. Default: - Health check configuration from container.
|
|
24745
24830
|
:param hostname: The hostname to use for your container. Default: - Automatic hostname.
|
|
24746
24831
|
:param inference_accelerator_resources: The inference accelerators referenced by the container. Default: - No inference accelerators assigned.
|
|
24832
|
+
:param interactive: When this parameter is true, you can deploy containerized applications that require stdin or a tty to be allocated. Default: - false
|
|
24747
24833
|
:param linux_parameters: Linux-specific modifications that are applied to the container, such as Linux kernel capabilities. For more information see `KernelCapabilities <https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_KernelCapabilities.html>`_. Default: - No Linux parameters.
|
|
24748
24834
|
:param logging: The log configuration specification for the container. Default: - Containers use the same logging driver that the Docker daemon uses.
|
|
24749
24835
|
:param memory_limit_mib: The amount (in MiB) of memory to present to the container. If your container attempts to exceed the allocated memory, the container is terminated. At least one of memoryLimitMiB and memoryReservationMiB is required for non-Fargate services. Default: - No memory limit.
|
|
@@ -24785,6 +24871,7 @@ class FirelensLogRouter(
|
|
|
24785
24871
|
health_check=health_check,
|
|
24786
24872
|
hostname=hostname,
|
|
24787
24873
|
inference_accelerator_resources=inference_accelerator_resources,
|
|
24874
|
+
interactive=interactive,
|
|
24788
24875
|
linux_parameters=linux_parameters,
|
|
24789
24876
|
logging=logging,
|
|
24790
24877
|
memory_limit_mib=memory_limit_mib,
|
|
@@ -24847,6 +24934,7 @@ class FirelensLogRouter(
|
|
|
24847
24934
|
"health_check": "healthCheck",
|
|
24848
24935
|
"hostname": "hostname",
|
|
24849
24936
|
"inference_accelerator_resources": "inferenceAcceleratorResources",
|
|
24937
|
+
"interactive": "interactive",
|
|
24850
24938
|
"linux_parameters": "linuxParameters",
|
|
24851
24939
|
"logging": "logging",
|
|
24852
24940
|
"memory_limit_mib": "memoryLimitMiB",
|
|
@@ -24887,6 +24975,7 @@ class FirelensLogRouterDefinitionOptions(ContainerDefinitionOptions):
|
|
|
24887
24975
|
health_check: typing.Optional[typing.Union["HealthCheck", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
24888
24976
|
hostname: typing.Optional[builtins.str] = None,
|
|
24889
24977
|
inference_accelerator_resources: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
24978
|
+
interactive: typing.Optional[builtins.bool] = None,
|
|
24890
24979
|
linux_parameters: typing.Optional["LinuxParameters"] = None,
|
|
24891
24980
|
logging: typing.Optional["LogDriver"] = None,
|
|
24892
24981
|
memory_limit_mib: typing.Optional[jsii.Number] = None,
|
|
@@ -24924,6 +25013,7 @@ class FirelensLogRouterDefinitionOptions(ContainerDefinitionOptions):
|
|
|
24924
25013
|
:param health_check: The health check command and associated configuration parameters for the container. Default: - Health check configuration from container.
|
|
24925
25014
|
:param hostname: The hostname to use for your container. Default: - Automatic hostname.
|
|
24926
25015
|
:param inference_accelerator_resources: The inference accelerators referenced by the container. Default: - No inference accelerators assigned.
|
|
25016
|
+
:param interactive: When this parameter is true, you can deploy containerized applications that require stdin or a tty to be allocated. Default: - false
|
|
24927
25017
|
:param linux_parameters: Linux-specific modifications that are applied to the container, such as Linux kernel capabilities. For more information see `KernelCapabilities <https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_KernelCapabilities.html>`_. Default: - No Linux parameters.
|
|
24928
25018
|
:param logging: The log configuration specification for the container. Default: - Containers use the same logging driver that the Docker daemon uses.
|
|
24929
25019
|
:param memory_limit_mib: The amount (in MiB) of memory to present to the container. If your container attempts to exceed the allocated memory, the container is terminated. At least one of memoryLimitMiB and memoryReservationMiB is required for non-Fargate services. Default: - No memory limit.
|
|
@@ -25002,6 +25092,7 @@ class FirelensLogRouterDefinitionOptions(ContainerDefinitionOptions):
|
|
|
25002
25092
|
),
|
|
25003
25093
|
hostname="hostname",
|
|
25004
25094
|
inference_accelerator_resources=["inferenceAcceleratorResources"],
|
|
25095
|
+
interactive=False,
|
|
25005
25096
|
linux_parameters=linux_parameters,
|
|
25006
25097
|
logging=log_driver,
|
|
25007
25098
|
memory_limit_mi_b=123,
|
|
@@ -25061,6 +25152,7 @@ class FirelensLogRouterDefinitionOptions(ContainerDefinitionOptions):
|
|
|
25061
25152
|
check_type(argname="argument health_check", value=health_check, expected_type=type_hints["health_check"])
|
|
25062
25153
|
check_type(argname="argument hostname", value=hostname, expected_type=type_hints["hostname"])
|
|
25063
25154
|
check_type(argname="argument inference_accelerator_resources", value=inference_accelerator_resources, expected_type=type_hints["inference_accelerator_resources"])
|
|
25155
|
+
check_type(argname="argument interactive", value=interactive, expected_type=type_hints["interactive"])
|
|
25064
25156
|
check_type(argname="argument linux_parameters", value=linux_parameters, expected_type=type_hints["linux_parameters"])
|
|
25065
25157
|
check_type(argname="argument logging", value=logging, expected_type=type_hints["logging"])
|
|
25066
25158
|
check_type(argname="argument memory_limit_mib", value=memory_limit_mib, expected_type=type_hints["memory_limit_mib"])
|
|
@@ -25115,6 +25207,8 @@ class FirelensLogRouterDefinitionOptions(ContainerDefinitionOptions):
|
|
|
25115
25207
|
self._values["hostname"] = hostname
|
|
25116
25208
|
if inference_accelerator_resources is not None:
|
|
25117
25209
|
self._values["inference_accelerator_resources"] = inference_accelerator_resources
|
|
25210
|
+
if interactive is not None:
|
|
25211
|
+
self._values["interactive"] = interactive
|
|
25118
25212
|
if linux_parameters is not None:
|
|
25119
25213
|
self._values["linux_parameters"] = linux_parameters
|
|
25120
25214
|
if logging is not None:
|
|
@@ -25335,6 +25429,17 @@ class FirelensLogRouterDefinitionOptions(ContainerDefinitionOptions):
|
|
|
25335
25429
|
result = self._values.get("inference_accelerator_resources")
|
|
25336
25430
|
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
25337
25431
|
|
|
25432
|
+
@builtins.property
|
|
25433
|
+
def interactive(self) -> typing.Optional[builtins.bool]:
|
|
25434
|
+
'''When this parameter is true, you can deploy containerized applications that require stdin or a tty to be allocated.
|
|
25435
|
+
|
|
25436
|
+
:default: - false
|
|
25437
|
+
|
|
25438
|
+
:see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-interactive
|
|
25439
|
+
'''
|
|
25440
|
+
result = self._values.get("interactive")
|
|
25441
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
25442
|
+
|
|
25338
25443
|
@builtins.property
|
|
25339
25444
|
def linux_parameters(self) -> typing.Optional["LinuxParameters"]:
|
|
25340
25445
|
'''Linux-specific modifications that are applied to the container, such as Linux kernel capabilities.
|
|
@@ -25536,6 +25641,7 @@ class FirelensLogRouterDefinitionOptions(ContainerDefinitionOptions):
|
|
|
25536
25641
|
"health_check": "healthCheck",
|
|
25537
25642
|
"hostname": "hostname",
|
|
25538
25643
|
"inference_accelerator_resources": "inferenceAcceleratorResources",
|
|
25644
|
+
"interactive": "interactive",
|
|
25539
25645
|
"linux_parameters": "linuxParameters",
|
|
25540
25646
|
"logging": "logging",
|
|
25541
25647
|
"memory_limit_mib": "memoryLimitMiB",
|
|
@@ -25577,6 +25683,7 @@ class FirelensLogRouterProps(ContainerDefinitionProps):
|
|
|
25577
25683
|
health_check: typing.Optional[typing.Union["HealthCheck", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
25578
25684
|
hostname: typing.Optional[builtins.str] = None,
|
|
25579
25685
|
inference_accelerator_resources: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
25686
|
+
interactive: typing.Optional[builtins.bool] = None,
|
|
25580
25687
|
linux_parameters: typing.Optional["LinuxParameters"] = None,
|
|
25581
25688
|
logging: typing.Optional["LogDriver"] = None,
|
|
25582
25689
|
memory_limit_mib: typing.Optional[jsii.Number] = None,
|
|
@@ -25615,6 +25722,7 @@ class FirelensLogRouterProps(ContainerDefinitionProps):
|
|
|
25615
25722
|
:param health_check: The health check command and associated configuration parameters for the container. Default: - Health check configuration from container.
|
|
25616
25723
|
:param hostname: The hostname to use for your container. Default: - Automatic hostname.
|
|
25617
25724
|
:param inference_accelerator_resources: The inference accelerators referenced by the container. Default: - No inference accelerators assigned.
|
|
25725
|
+
:param interactive: When this parameter is true, you can deploy containerized applications that require stdin or a tty to be allocated. Default: - false
|
|
25618
25726
|
:param linux_parameters: Linux-specific modifications that are applied to the container, such as Linux kernel capabilities. For more information see `KernelCapabilities <https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_KernelCapabilities.html>`_. Default: - No Linux parameters.
|
|
25619
25727
|
:param logging: The log configuration specification for the container. Default: - Containers use the same logging driver that the Docker daemon uses.
|
|
25620
25728
|
:param memory_limit_mib: The amount (in MiB) of memory to present to the container. If your container attempts to exceed the allocated memory, the container is terminated. At least one of memoryLimitMiB and memoryReservationMiB is required for non-Fargate services. Default: - No memory limit.
|
|
@@ -25696,6 +25804,7 @@ class FirelensLogRouterProps(ContainerDefinitionProps):
|
|
|
25696
25804
|
),
|
|
25697
25805
|
hostname="hostname",
|
|
25698
25806
|
inference_accelerator_resources=["inferenceAcceleratorResources"],
|
|
25807
|
+
interactive=False,
|
|
25699
25808
|
linux_parameters=linux_parameters,
|
|
25700
25809
|
logging=log_driver,
|
|
25701
25810
|
memory_limit_mi_b=123,
|
|
@@ -25755,6 +25864,7 @@ class FirelensLogRouterProps(ContainerDefinitionProps):
|
|
|
25755
25864
|
check_type(argname="argument health_check", value=health_check, expected_type=type_hints["health_check"])
|
|
25756
25865
|
check_type(argname="argument hostname", value=hostname, expected_type=type_hints["hostname"])
|
|
25757
25866
|
check_type(argname="argument inference_accelerator_resources", value=inference_accelerator_resources, expected_type=type_hints["inference_accelerator_resources"])
|
|
25867
|
+
check_type(argname="argument interactive", value=interactive, expected_type=type_hints["interactive"])
|
|
25758
25868
|
check_type(argname="argument linux_parameters", value=linux_parameters, expected_type=type_hints["linux_parameters"])
|
|
25759
25869
|
check_type(argname="argument logging", value=logging, expected_type=type_hints["logging"])
|
|
25760
25870
|
check_type(argname="argument memory_limit_mib", value=memory_limit_mib, expected_type=type_hints["memory_limit_mib"])
|
|
@@ -25811,6 +25921,8 @@ class FirelensLogRouterProps(ContainerDefinitionProps):
|
|
|
25811
25921
|
self._values["hostname"] = hostname
|
|
25812
25922
|
if inference_accelerator_resources is not None:
|
|
25813
25923
|
self._values["inference_accelerator_resources"] = inference_accelerator_resources
|
|
25924
|
+
if interactive is not None:
|
|
25925
|
+
self._values["interactive"] = interactive
|
|
25814
25926
|
if linux_parameters is not None:
|
|
25815
25927
|
self._values["linux_parameters"] = linux_parameters
|
|
25816
25928
|
if logging is not None:
|
|
@@ -26031,6 +26143,17 @@ class FirelensLogRouterProps(ContainerDefinitionProps):
|
|
|
26031
26143
|
result = self._values.get("inference_accelerator_resources")
|
|
26032
26144
|
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
26033
26145
|
|
|
26146
|
+
@builtins.property
|
|
26147
|
+
def interactive(self) -> typing.Optional[builtins.bool]:
|
|
26148
|
+
'''When this parameter is true, you can deploy containerized applications that require stdin or a tty to be allocated.
|
|
26149
|
+
|
|
26150
|
+
:default: - false
|
|
26151
|
+
|
|
26152
|
+
:see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-interactive
|
|
26153
|
+
'''
|
|
26154
|
+
result = self._values.get("interactive")
|
|
26155
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
26156
|
+
|
|
26034
26157
|
@builtins.property
|
|
26035
26158
|
def linux_parameters(self) -> typing.Optional["LinuxParameters"]:
|
|
26036
26159
|
'''Linux-specific modifications that are applied to the container, such as Linux kernel capabilities.
|
|
@@ -32646,6 +32769,7 @@ class TaskDefinition(
|
|
|
32646
32769
|
health_check: typing.Optional[typing.Union[HealthCheck, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
32647
32770
|
hostname: typing.Optional[builtins.str] = None,
|
|
32648
32771
|
inference_accelerator_resources: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
32772
|
+
interactive: typing.Optional[builtins.bool] = None,
|
|
32649
32773
|
linux_parameters: typing.Optional[LinuxParameters] = None,
|
|
32650
32774
|
logging: typing.Optional[LogDriver] = None,
|
|
32651
32775
|
memory_limit_mib: typing.Optional[jsii.Number] = None,
|
|
@@ -32683,6 +32807,7 @@ class TaskDefinition(
|
|
|
32683
32807
|
:param health_check: The health check command and associated configuration parameters for the container. Default: - Health check configuration from container.
|
|
32684
32808
|
:param hostname: The hostname to use for your container. Default: - Automatic hostname.
|
|
32685
32809
|
:param inference_accelerator_resources: The inference accelerators referenced by the container. Default: - No inference accelerators assigned.
|
|
32810
|
+
:param interactive: When this parameter is true, you can deploy containerized applications that require stdin or a tty to be allocated. Default: - false
|
|
32686
32811
|
:param linux_parameters: Linux-specific modifications that are applied to the container, such as Linux kernel capabilities. For more information see `KernelCapabilities <https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_KernelCapabilities.html>`_. Default: - No Linux parameters.
|
|
32687
32812
|
:param logging: The log configuration specification for the container. Default: - Containers use the same logging driver that the Docker daemon uses.
|
|
32688
32813
|
:param memory_limit_mib: The amount (in MiB) of memory to present to the container. If your container attempts to exceed the allocated memory, the container is terminated. At least one of memoryLimitMiB and memoryReservationMiB is required for non-Fargate services. Default: - No memory limit.
|
|
@@ -32721,6 +32846,7 @@ class TaskDefinition(
|
|
|
32721
32846
|
health_check=health_check,
|
|
32722
32847
|
hostname=hostname,
|
|
32723
32848
|
inference_accelerator_resources=inference_accelerator_resources,
|
|
32849
|
+
interactive=interactive,
|
|
32724
32850
|
linux_parameters=linux_parameters,
|
|
32725
32851
|
logging=logging,
|
|
32726
32852
|
memory_limit_mib=memory_limit_mib,
|
|
@@ -32778,6 +32904,7 @@ class TaskDefinition(
|
|
|
32778
32904
|
health_check: typing.Optional[typing.Union[HealthCheck, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
32779
32905
|
hostname: typing.Optional[builtins.str] = None,
|
|
32780
32906
|
inference_accelerator_resources: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
32907
|
+
interactive: typing.Optional[builtins.bool] = None,
|
|
32781
32908
|
linux_parameters: typing.Optional[LinuxParameters] = None,
|
|
32782
32909
|
logging: typing.Optional[LogDriver] = None,
|
|
32783
32910
|
memory_limit_mib: typing.Optional[jsii.Number] = None,
|
|
@@ -32816,6 +32943,7 @@ class TaskDefinition(
|
|
|
32816
32943
|
:param health_check: The health check command and associated configuration parameters for the container. Default: - Health check configuration from container.
|
|
32817
32944
|
:param hostname: The hostname to use for your container. Default: - Automatic hostname.
|
|
32818
32945
|
:param inference_accelerator_resources: The inference accelerators referenced by the container. Default: - No inference accelerators assigned.
|
|
32946
|
+
:param interactive: When this parameter is true, you can deploy containerized applications that require stdin or a tty to be allocated. Default: - false
|
|
32819
32947
|
:param linux_parameters: Linux-specific modifications that are applied to the container, such as Linux kernel capabilities. For more information see `KernelCapabilities <https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_KernelCapabilities.html>`_. Default: - No Linux parameters.
|
|
32820
32948
|
:param logging: The log configuration specification for the container. Default: - Containers use the same logging driver that the Docker daemon uses.
|
|
32821
32949
|
:param memory_limit_mib: The amount (in MiB) of memory to present to the container. If your container attempts to exceed the allocated memory, the container is terminated. At least one of memoryLimitMiB and memoryReservationMiB is required for non-Fargate services. Default: - No memory limit.
|
|
@@ -32855,6 +32983,7 @@ class TaskDefinition(
|
|
|
32855
32983
|
health_check=health_check,
|
|
32856
32984
|
hostname=hostname,
|
|
32857
32985
|
inference_accelerator_resources=inference_accelerator_resources,
|
|
32986
|
+
interactive=interactive,
|
|
32858
32987
|
linux_parameters=linux_parameters,
|
|
32859
32988
|
logging=logging,
|
|
32860
32989
|
memory_limit_mib=memory_limit_mib,
|
|
@@ -35072,6 +35201,20 @@ class Cluster(
|
|
|
35072
35201
|
'''Enable the Fargate capacity providers for this cluster.'''
|
|
35073
35202
|
return typing.cast(None, jsii.invoke(self, "enableFargateCapacityProviders", []))
|
|
35074
35203
|
|
|
35204
|
+
@jsii.member(jsii_name="grantTaskProtection")
|
|
35205
|
+
def grant_task_protection(self, grantee: _IGrantable_71c4f5de) -> _Grant_a7ae64f8:
|
|
35206
|
+
'''Grants an ECS Task Protection API permission to the specified grantee.
|
|
35207
|
+
|
|
35208
|
+
This method provides a streamlined way to assign the 'ecs:UpdateTaskProtection'
|
|
35209
|
+
permission, enabling the grantee to manage task protection in the ECS cluster.
|
|
35210
|
+
|
|
35211
|
+
:param grantee: The entity (e.g., IAM role or user) to grant the permissions to.
|
|
35212
|
+
'''
|
|
35213
|
+
if __debug__:
|
|
35214
|
+
type_hints = typing.get_type_hints(_typecheckingstub__4f92e7b69ee41cf136ff4f9b1ffcc190b3802e99c87300b6f89dbbef324d60f5)
|
|
35215
|
+
check_type(argname="argument grantee", value=grantee, expected_type=type_hints["grantee"])
|
|
35216
|
+
return typing.cast(_Grant_a7ae64f8, jsii.invoke(self, "grantTaskProtection", [grantee]))
|
|
35217
|
+
|
|
35075
35218
|
@jsii.member(jsii_name="metric")
|
|
35076
35219
|
def metric(
|
|
35077
35220
|
self,
|
|
@@ -39576,6 +39719,7 @@ def _typecheckingstub__d8756b492e023ad8d33a399196b15b610f709400ce213e179f17dd1f6
|
|
|
39576
39719
|
health_check: typing.Optional[typing.Union[HealthCheck, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
39577
39720
|
hostname: typing.Optional[builtins.str] = None,
|
|
39578
39721
|
inference_accelerator_resources: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
39722
|
+
interactive: typing.Optional[builtins.bool] = None,
|
|
39579
39723
|
linux_parameters: typing.Optional[LinuxParameters] = None,
|
|
39580
39724
|
logging: typing.Optional[LogDriver] = None,
|
|
39581
39725
|
memory_limit_mib: typing.Optional[jsii.Number] = None,
|
|
@@ -39697,6 +39841,7 @@ def _typecheckingstub__f2e5f24c1574825a81dd77783d48886a430a675a0e04f03559eca98b5
|
|
|
39697
39841
|
health_check: typing.Optional[typing.Union[HealthCheck, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
39698
39842
|
hostname: typing.Optional[builtins.str] = None,
|
|
39699
39843
|
inference_accelerator_resources: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
39844
|
+
interactive: typing.Optional[builtins.bool] = None,
|
|
39700
39845
|
linux_parameters: typing.Optional[LinuxParameters] = None,
|
|
39701
39846
|
logging: typing.Optional[LogDriver] = None,
|
|
39702
39847
|
memory_limit_mib: typing.Optional[jsii.Number] = None,
|
|
@@ -39736,6 +39881,7 @@ def _typecheckingstub__20c974a49c79829fac0811dffaf78c449f92ae136414b96232160d37c
|
|
|
39736
39881
|
health_check: typing.Optional[typing.Union[HealthCheck, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
39737
39882
|
hostname: typing.Optional[builtins.str] = None,
|
|
39738
39883
|
inference_accelerator_resources: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
39884
|
+
interactive: typing.Optional[builtins.bool] = None,
|
|
39739
39885
|
linux_parameters: typing.Optional[LinuxParameters] = None,
|
|
39740
39886
|
logging: typing.Optional[LogDriver] = None,
|
|
39741
39887
|
memory_limit_mib: typing.Optional[jsii.Number] = None,
|
|
@@ -40242,6 +40388,7 @@ def _typecheckingstub__aa1e4969dd0e00a5737510c273aa9546ad4ce7bc5a8a146f2a37666b0
|
|
|
40242
40388
|
health_check: typing.Optional[typing.Union[HealthCheck, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
40243
40389
|
hostname: typing.Optional[builtins.str] = None,
|
|
40244
40390
|
inference_accelerator_resources: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
40391
|
+
interactive: typing.Optional[builtins.bool] = None,
|
|
40245
40392
|
linux_parameters: typing.Optional[LinuxParameters] = None,
|
|
40246
40393
|
logging: typing.Optional[LogDriver] = None,
|
|
40247
40394
|
memory_limit_mib: typing.Optional[jsii.Number] = None,
|
|
@@ -40287,6 +40434,7 @@ def _typecheckingstub__2bb9382e9a7b1b34a020902905c4bf83e2d4970135e7592e5b5a1da62
|
|
|
40287
40434
|
health_check: typing.Optional[typing.Union[HealthCheck, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
40288
40435
|
hostname: typing.Optional[builtins.str] = None,
|
|
40289
40436
|
inference_accelerator_resources: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
40437
|
+
interactive: typing.Optional[builtins.bool] = None,
|
|
40290
40438
|
linux_parameters: typing.Optional[LinuxParameters] = None,
|
|
40291
40439
|
logging: typing.Optional[LogDriver] = None,
|
|
40292
40440
|
memory_limit_mib: typing.Optional[jsii.Number] = None,
|
|
@@ -40327,6 +40475,7 @@ def _typecheckingstub__498b2375cb2035a958edbdd10ad5f4352caa5773be14b63a07c337871
|
|
|
40327
40475
|
health_check: typing.Optional[typing.Union[HealthCheck, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
40328
40476
|
hostname: typing.Optional[builtins.str] = None,
|
|
40329
40477
|
inference_accelerator_resources: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
40478
|
+
interactive: typing.Optional[builtins.bool] = None,
|
|
40330
40479
|
linux_parameters: typing.Optional[LinuxParameters] = None,
|
|
40331
40480
|
logging: typing.Optional[LogDriver] = None,
|
|
40332
40481
|
memory_limit_mib: typing.Optional[jsii.Number] = None,
|
|
@@ -41018,6 +41167,7 @@ def _typecheckingstub__8fe416001b357a118b80b0f9e3432c5bffbeffe29c2f7e67a02e5589c
|
|
|
41018
41167
|
health_check: typing.Optional[typing.Union[HealthCheck, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
41019
41168
|
hostname: typing.Optional[builtins.str] = None,
|
|
41020
41169
|
inference_accelerator_resources: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
41170
|
+
interactive: typing.Optional[builtins.bool] = None,
|
|
41021
41171
|
linux_parameters: typing.Optional[LinuxParameters] = None,
|
|
41022
41172
|
logging: typing.Optional[LogDriver] = None,
|
|
41023
41173
|
memory_limit_mib: typing.Optional[jsii.Number] = None,
|
|
@@ -41065,6 +41215,7 @@ def _typecheckingstub__a448c235107c9543bb055362134e3500d0a20b6f51e433675f952a773
|
|
|
41065
41215
|
health_check: typing.Optional[typing.Union[HealthCheck, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
41066
41216
|
hostname: typing.Optional[builtins.str] = None,
|
|
41067
41217
|
inference_accelerator_resources: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
41218
|
+
interactive: typing.Optional[builtins.bool] = None,
|
|
41068
41219
|
linux_parameters: typing.Optional[LinuxParameters] = None,
|
|
41069
41220
|
logging: typing.Optional[LogDriver] = None,
|
|
41070
41221
|
memory_limit_mib: typing.Optional[jsii.Number] = None,
|
|
@@ -41389,6 +41540,12 @@ def _typecheckingstub__dc82c424ab5a0b25f0e355e707c39f45826ed166c15976f45690abfa1
|
|
|
41389
41540
|
"""Type checking stubs"""
|
|
41390
41541
|
pass
|
|
41391
41542
|
|
|
41543
|
+
def _typecheckingstub__4f92e7b69ee41cf136ff4f9b1ffcc190b3802e99c87300b6f89dbbef324d60f5(
|
|
41544
|
+
grantee: _IGrantable_71c4f5de,
|
|
41545
|
+
) -> None:
|
|
41546
|
+
"""Type checking stubs"""
|
|
41547
|
+
pass
|
|
41548
|
+
|
|
41392
41549
|
def _typecheckingstub__35d18b54e19d86c5562f997d757fcd71f57fa6d194d5ed055020a0ad29b81b04(
|
|
41393
41550
|
metric_name: builtins.str,
|
|
41394
41551
|
*,
|