aws-cdk-lib 2.138.0__py3-none-any.whl → 2.139.1__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.138.0.jsii.tgz → aws-cdk-lib@2.139.1.jsii.tgz} +0 -0
- aws_cdk/aws_apigateway/__init__.py +29 -16
- aws_cdk/aws_appconfig/__init__.py +289 -44
- aws_cdk/aws_appintegrations/__init__.py +55 -6
- aws_cdk/aws_autoscaling/__init__.py +62 -60
- aws_cdk/aws_backup/__init__.py +34 -42
- aws_cdk/aws_batch/__init__.py +9 -3
- aws_cdk/aws_bedrock/__init__.py +4144 -0
- aws_cdk/aws_cloudwatch/__init__.py +120 -0
- aws_cdk/aws_datazone/__init__.py +22 -0
- aws_cdk/aws_dms/__init__.py +2 -4
- aws_cdk/aws_ec2/__init__.py +123 -84
- aws_cdk/aws_ecr/__init__.py +630 -0
- aws_cdk/aws_ecs/__init__.py +121 -19
- aws_cdk/aws_efs/__init__.py +592 -0
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +23 -8
- aws_cdk/aws_events_targets/__init__.py +17 -4
- aws_cdk/aws_kms/__init__.py +44 -0
- aws_cdk/aws_lambda/__init__.py +9 -0
- aws_cdk/aws_oam/__init__.py +204 -0
- aws_cdk/aws_rds/__init__.py +15 -11
- aws_cdk/aws_redshiftserverless/__init__.py +157 -0
- aws_cdk/aws_securitylake/__init__.py +160 -105
- aws_cdk/aws_ses_actions/__init__.py +155 -0
- aws_cdk/aws_ssm/__init__.py +5 -2
- aws_cdk/aws_timestream/__init__.py +1045 -0
- aws_cdk/aws_transfer/__init__.py +15 -6
- aws_cdk/aws_wisdom/__init__.py +2 -2
- aws_cdk/custom_resources/__init__.py +440 -0
- aws_cdk/cx_api/__init__.py +17 -0
- {aws_cdk_lib-2.138.0.dist-info → aws_cdk_lib-2.139.1.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.138.0.dist-info → aws_cdk_lib-2.139.1.dist-info}/RECORD +37 -37
- {aws_cdk_lib-2.138.0.dist-info → aws_cdk_lib-2.139.1.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.138.0.dist-info → aws_cdk_lib-2.139.1.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.138.0.dist-info → aws_cdk_lib-2.139.1.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.138.0.dist-info → aws_cdk_lib-2.139.1.dist-info}/top_level.txt +0 -0
aws_cdk/aws_ecs/__init__.py
CHANGED
|
@@ -374,6 +374,23 @@ fargate_task_definition = ecs.FargateTaskDefinition(self, "TaskDef",
|
|
|
374
374
|
)
|
|
375
375
|
```
|
|
376
376
|
|
|
377
|
+
To specify the process namespace to use for the containers in the task, use the `pidMode` property:
|
|
378
|
+
|
|
379
|
+
```python
|
|
380
|
+
fargate_task_definition = ecs.FargateTaskDefinition(self, "TaskDef",
|
|
381
|
+
runtime_platform=ecs.RuntimePlatform(
|
|
382
|
+
operating_system_family=ecs.OperatingSystemFamily.LINUX,
|
|
383
|
+
cpu_architecture=ecs.CpuArchitecture.ARM64
|
|
384
|
+
),
|
|
385
|
+
memory_limit_mi_b=512,
|
|
386
|
+
cpu=256,
|
|
387
|
+
pid_mode=ecs.PidMode.HOST
|
|
388
|
+
)
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
**Note:** `pidMode` is only supported for tasks that are hosted on AWS Fargate if the tasks are using platform version 1.4.0
|
|
392
|
+
or later (Linux). This isn't supported for Windows containers on Fargate.
|
|
393
|
+
|
|
377
394
|
To add containers to a task definition, call `addContainer()`:
|
|
378
395
|
|
|
379
396
|
```python
|
|
@@ -613,6 +630,25 @@ task_definition.add_container("container",
|
|
|
613
630
|
)
|
|
614
631
|
```
|
|
615
632
|
|
|
633
|
+
## Docker labels
|
|
634
|
+
|
|
635
|
+
You can add labels to the container with the `dockerLabels` property or with the `addDockerLabel` method:
|
|
636
|
+
|
|
637
|
+
```python
|
|
638
|
+
# task_definition: ecs.TaskDefinition
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
container = task_definition.add_container("cont",
|
|
642
|
+
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample"),
|
|
643
|
+
memory_limit_mi_b=1024,
|
|
644
|
+
docker_labels={
|
|
645
|
+
"foo": "bar"
|
|
646
|
+
}
|
|
647
|
+
)
|
|
648
|
+
|
|
649
|
+
container.add_docker_label("label", "value")
|
|
650
|
+
```
|
|
651
|
+
|
|
616
652
|
### Using Windows containers on Fargate
|
|
617
653
|
|
|
618
654
|
AWS Fargate supports Amazon ECS Windows containers. For more details, please see this [blog post](https://aws.amazon.com/tw/blogs/containers/running-windows-containers-with-amazon-ecs-on-aws-fargate/)
|
|
@@ -19340,6 +19376,19 @@ class ContainerDefinition(
|
|
|
19340
19376
|
check_type(argname="argument container_dependencies", value=container_dependencies, expected_type=typing.Tuple[type_hints["container_dependencies"], ...]) # pyright: ignore [reportGeneralTypeIssues]
|
|
19341
19377
|
return typing.cast(None, jsii.invoke(self, "addContainerDependencies", [*container_dependencies]))
|
|
19342
19378
|
|
|
19379
|
+
@jsii.member(jsii_name="addDockerLabel")
|
|
19380
|
+
def add_docker_label(self, name: builtins.str, value: builtins.str) -> None:
|
|
19381
|
+
'''This method adds a Docker label to the container.
|
|
19382
|
+
|
|
19383
|
+
:param name: -
|
|
19384
|
+
:param value: -
|
|
19385
|
+
'''
|
|
19386
|
+
if __debug__:
|
|
19387
|
+
type_hints = typing.get_type_hints(_typecheckingstub__de228f279641285922f39a7d85fc376918c045b328369fc61474e4677857075b)
|
|
19388
|
+
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
19389
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
19390
|
+
return typing.cast(None, jsii.invoke(self, "addDockerLabel", [name, value]))
|
|
19391
|
+
|
|
19343
19392
|
@jsii.member(jsii_name="addEnvironment")
|
|
19344
19393
|
def add_environment(self, name: builtins.str, value: builtins.str) -> None:
|
|
19345
19394
|
'''This method adds an environment variable to the container.
|
|
@@ -23314,7 +23363,7 @@ class Ec2TaskDefinitionProps(CommonTaskDefinitionProps):
|
|
|
23314
23363
|
:param inference_accelerators: The inference accelerators to use for the containers in the task. Not supported in Fargate. Default: - No inference accelerators.
|
|
23315
23364
|
:param ipc_mode: The IPC resource namespace to use for the containers in the task. Not supported in Fargate and Windows containers. Default: - IpcMode used by the task is not specified
|
|
23316
23365
|
:param network_mode: The Docker networking mode to use for the containers in the task. The valid values are NONE, BRIDGE, AWS_VPC, and HOST. Default: - NetworkMode.BRIDGE for EC2 tasks, AWS_VPC for Fargate tasks.
|
|
23317
|
-
:param pid_mode: The process namespace to use for the containers in the task. Not supported in
|
|
23366
|
+
:param pid_mode: The process namespace to use for the containers in the task. Not supported in Windows containers. Default: - PidMode used by the task is not specified
|
|
23318
23367
|
:param placement_constraints: An array of placement constraint objects to use for the task. You can specify a maximum of 10 constraints per task (this limit includes constraints in the task definition and those specified at run time). Default: - No placement constraints.
|
|
23319
23368
|
|
|
23320
23369
|
:exampleMetadata: infused
|
|
@@ -23456,7 +23505,7 @@ class Ec2TaskDefinitionProps(CommonTaskDefinitionProps):
|
|
|
23456
23505
|
def pid_mode(self) -> typing.Optional["PidMode"]:
|
|
23457
23506
|
'''The process namespace to use for the containers in the task.
|
|
23458
23507
|
|
|
23459
|
-
Not supported in
|
|
23508
|
+
Not supported in Windows containers.
|
|
23460
23509
|
|
|
23461
23510
|
:default: - PidMode used by the task is not specified
|
|
23462
23511
|
'''
|
|
@@ -25980,6 +26029,7 @@ class FargateTaskDefinitionAttributes(CommonTaskDefinitionAttributes):
|
|
|
25980
26029
|
"cpu": "cpu",
|
|
25981
26030
|
"ephemeral_storage_gib": "ephemeralStorageGiB",
|
|
25982
26031
|
"memory_limit_mib": "memoryLimitMiB",
|
|
26032
|
+
"pid_mode": "pidMode",
|
|
25983
26033
|
"runtime_platform": "runtimePlatform",
|
|
25984
26034
|
},
|
|
25985
26035
|
)
|
|
@@ -25995,6 +26045,7 @@ class FargateTaskDefinitionProps(CommonTaskDefinitionProps):
|
|
|
25995
26045
|
cpu: typing.Optional[jsii.Number] = None,
|
|
25996
26046
|
ephemeral_storage_gib: typing.Optional[jsii.Number] = None,
|
|
25997
26047
|
memory_limit_mib: typing.Optional[jsii.Number] = None,
|
|
26048
|
+
pid_mode: typing.Optional["PidMode"] = None,
|
|
25998
26049
|
runtime_platform: typing.Optional[typing.Union["RuntimePlatform", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
25999
26050
|
) -> None:
|
|
26000
26051
|
'''The properties for a task definition.
|
|
@@ -26007,26 +26058,21 @@ class FargateTaskDefinitionProps(CommonTaskDefinitionProps):
|
|
|
26007
26058
|
:param cpu: The number of cpu units used by the task. For tasks using the Fargate launch type, this field is required and you must use one of the following values, which determines your range of valid values for the memory parameter: 256 (.25 vCPU) - Available memory values: 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) 512 (.5 vCPU) - Available memory values: 1024 (1 GB), 2048 (2 GB), 3072 (3 GB), 4096 (4 GB) 1024 (1 vCPU) - Available memory values: 2048 (2 GB), 3072 (3 GB), 4096 (4 GB), 5120 (5 GB), 6144 (6 GB), 7168 (7 GB), 8192 (8 GB) 2048 (2 vCPU) - Available memory values: Between 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB) 4096 (4 vCPU) - Available memory values: Between 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB) 8192 (8 vCPU) - Available memory values: Between 16384 (16 GB) and 61440 (60 GB) in increments of 4096 (4 GB) 16384 (16 vCPU) - Available memory values: Between 32768 (32 GB) and 122880 (120 GB) in increments of 8192 (8 GB) Default: 256
|
|
26008
26059
|
:param ephemeral_storage_gib: The amount (in GiB) of ephemeral storage to be allocated to the task. The maximum supported value is 200 GiB. NOTE: This parameter is only supported for tasks hosted on AWS Fargate using platform version 1.4.0 or later. Default: 20
|
|
26009
26060
|
:param memory_limit_mib: The amount (in MiB) of memory used by the task. For tasks using the Fargate launch type, this field is required and you must use one of the following values, which determines your range of valid values for the cpu parameter: 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) - Available cpu values: 256 (.25 vCPU) 1024 (1 GB), 2048 (2 GB), 3072 (3 GB), 4096 (4 GB) - Available cpu values: 512 (.5 vCPU) 2048 (2 GB), 3072 (3 GB), 4096 (4 GB), 5120 (5 GB), 6144 (6 GB), 7168 (7 GB), 8192 (8 GB) - Available cpu values: 1024 (1 vCPU) Between 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB) - Available cpu values: 2048 (2 vCPU) Between 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB) - Available cpu values: 4096 (4 vCPU) Between 16384 (16 GB) and 61440 (60 GB) in increments of 4096 (4 GB) - Available cpu values: 8192 (8 vCPU) Between 32768 (32 GB) and 122880 (120 GB) in increments of 8192 (8 GB) - Available cpu values: 16384 (16 vCPU) Default: 512
|
|
26061
|
+
:param pid_mode: The process namespace to use for the containers in the task. Only supported for tasks that are hosted on AWS Fargate if the tasks are using platform version 1.4.0 or later (Linux). Not supported in Windows containers. Default: - PidMode used by the task is not specified
|
|
26010
26062
|
:param runtime_platform: The operating system that your task definitions are running on. A runtimePlatform is supported only for tasks using the Fargate launch type. Default: - Undefined.
|
|
26011
26063
|
|
|
26012
26064
|
:exampleMetadata: infused
|
|
26013
26065
|
|
|
26014
26066
|
Example::
|
|
26015
26067
|
|
|
26016
|
-
|
|
26017
|
-
task_definition = ecs.FargateTaskDefinition(self, "TaskDef",
|
|
26068
|
+
fargate_task_definition = ecs.FargateTaskDefinition(self, "TaskDef",
|
|
26018
26069
|
runtime_platform=ecs.RuntimePlatform(
|
|
26019
|
-
operating_system_family=ecs.OperatingSystemFamily.
|
|
26020
|
-
cpu_architecture=ecs.CpuArchitecture.
|
|
26070
|
+
operating_system_family=ecs.OperatingSystemFamily.LINUX,
|
|
26071
|
+
cpu_architecture=ecs.CpuArchitecture.ARM64
|
|
26021
26072
|
),
|
|
26022
|
-
|
|
26023
|
-
|
|
26024
|
-
|
|
26025
|
-
|
|
26026
|
-
task_definition.add_container("windowsservercore",
|
|
26027
|
-
logging=ecs.LogDriver.aws_logs(stream_prefix="win-iis-on-fargate"),
|
|
26028
|
-
port_mappings=[ecs.PortMapping(container_port=80)],
|
|
26029
|
-
image=ecs.ContainerImage.from_registry("mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019")
|
|
26073
|
+
memory_limit_mi_b=512,
|
|
26074
|
+
cpu=256,
|
|
26075
|
+
pid_mode=ecs.PidMode.HOST
|
|
26030
26076
|
)
|
|
26031
26077
|
'''
|
|
26032
26078
|
if isinstance(runtime_platform, dict):
|
|
@@ -26041,6 +26087,7 @@ class FargateTaskDefinitionProps(CommonTaskDefinitionProps):
|
|
|
26041
26087
|
check_type(argname="argument cpu", value=cpu, expected_type=type_hints["cpu"])
|
|
26042
26088
|
check_type(argname="argument ephemeral_storage_gib", value=ephemeral_storage_gib, expected_type=type_hints["ephemeral_storage_gib"])
|
|
26043
26089
|
check_type(argname="argument memory_limit_mib", value=memory_limit_mib, expected_type=type_hints["memory_limit_mib"])
|
|
26090
|
+
check_type(argname="argument pid_mode", value=pid_mode, expected_type=type_hints["pid_mode"])
|
|
26044
26091
|
check_type(argname="argument runtime_platform", value=runtime_platform, expected_type=type_hints["runtime_platform"])
|
|
26045
26092
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
26046
26093
|
if execution_role is not None:
|
|
@@ -26059,6 +26106,8 @@ class FargateTaskDefinitionProps(CommonTaskDefinitionProps):
|
|
|
26059
26106
|
self._values["ephemeral_storage_gib"] = ephemeral_storage_gib
|
|
26060
26107
|
if memory_limit_mib is not None:
|
|
26061
26108
|
self._values["memory_limit_mib"] = memory_limit_mib
|
|
26109
|
+
if pid_mode is not None:
|
|
26110
|
+
self._values["pid_mode"] = pid_mode
|
|
26062
26111
|
if runtime_platform is not None:
|
|
26063
26112
|
self._values["runtime_platform"] = runtime_platform
|
|
26064
26113
|
|
|
@@ -26180,6 +26229,19 @@ class FargateTaskDefinitionProps(CommonTaskDefinitionProps):
|
|
|
26180
26229
|
result = self._values.get("memory_limit_mib")
|
|
26181
26230
|
return typing.cast(typing.Optional[jsii.Number], result)
|
|
26182
26231
|
|
|
26232
|
+
@builtins.property
|
|
26233
|
+
def pid_mode(self) -> typing.Optional["PidMode"]:
|
|
26234
|
+
'''The process namespace to use for the containers in the task.
|
|
26235
|
+
|
|
26236
|
+
Only supported for tasks that are hosted on AWS Fargate if the tasks
|
|
26237
|
+
are using platform version 1.4.0 or later (Linux).
|
|
26238
|
+
Not supported in Windows containers.
|
|
26239
|
+
|
|
26240
|
+
:default: - PidMode used by the task is not specified
|
|
26241
|
+
'''
|
|
26242
|
+
result = self._values.get("pid_mode")
|
|
26243
|
+
return typing.cast(typing.Optional["PidMode"], result)
|
|
26244
|
+
|
|
26183
26245
|
@builtins.property
|
|
26184
26246
|
def runtime_platform(self) -> typing.Optional["RuntimePlatform"]:
|
|
26185
26247
|
'''The operating system that your task definitions are running on.
|
|
@@ -31347,7 +31409,22 @@ class OperatingSystemFamily(
|
|
|
31347
31409
|
|
|
31348
31410
|
@jsii.enum(jsii_type="aws-cdk-lib.aws_ecs.PidMode")
|
|
31349
31411
|
class PidMode(enum.Enum):
|
|
31350
|
-
'''The process namespace to use for the containers in the task.
|
|
31412
|
+
'''The process namespace to use for the containers in the task.
|
|
31413
|
+
|
|
31414
|
+
:exampleMetadata: infused
|
|
31415
|
+
|
|
31416
|
+
Example::
|
|
31417
|
+
|
|
31418
|
+
fargate_task_definition = ecs.FargateTaskDefinition(self, "TaskDef",
|
|
31419
|
+
runtime_platform=ecs.RuntimePlatform(
|
|
31420
|
+
operating_system_family=ecs.OperatingSystemFamily.LINUX,
|
|
31421
|
+
cpu_architecture=ecs.CpuArchitecture.ARM64
|
|
31422
|
+
),
|
|
31423
|
+
memory_limit_mi_b=512,
|
|
31424
|
+
cpu=256,
|
|
31425
|
+
pid_mode=ecs.PidMode.HOST
|
|
31426
|
+
)
|
|
31427
|
+
'''
|
|
31351
31428
|
|
|
31352
31429
|
HOST = "HOST"
|
|
31353
31430
|
'''If host is specified, then all containers within the tasks that specified the host PID mode on the same container instance share the same process namespace with the host Amazon EC2 instance.'''
|
|
@@ -35115,7 +35192,7 @@ class TaskDefinition(
|
|
|
35115
35192
|
:param ipc_mode: The IPC resource namespace to use for the containers in the task. Not supported in Fargate and Windows containers. Default: - IpcMode used by the task is not specified
|
|
35116
35193
|
:param memory_mib: The amount (in MiB) of memory used by the task. If using the EC2 launch type, this field is optional and any value can be used. If using the Fargate launch type, this field is required and you must use one of the following values, which determines your range of valid values for the cpu parameter: 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) - Available cpu values: 256 (.25 vCPU) 1024 (1 GB), 2048 (2 GB), 3072 (3 GB), 4096 (4 GB) - Available cpu values: 512 (.5 vCPU) 2048 (2 GB), 3072 (3 GB), 4096 (4 GB), 5120 (5 GB), 6144 (6 GB), 7168 (7 GB), 8192 (8 GB) - Available cpu values: 1024 (1 vCPU) Between 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB) - Available cpu values: 2048 (2 vCPU) Between 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB) - Available cpu values: 4096 (4 vCPU) Between 16384 (16 GB) and 61440 (60 GB) in increments of 4096 (4 GB) - Available cpu values: 8192 (8 vCPU) Between 32768 (32 GB) and 122880 (120 GB) in increments of 8192 (8 GB) - Available cpu values: 16384 (16 vCPU) Default: - Memory used by task is not specified.
|
|
35117
35194
|
:param network_mode: The networking mode to use for the containers in the task. On Fargate, the only supported networking mode is AwsVpc. Default: - NetworkMode.Bridge for EC2 & External tasks, AwsVpc for Fargate tasks.
|
|
35118
|
-
:param pid_mode: The process namespace to use for the containers in the task.
|
|
35195
|
+
:param pid_mode: The process namespace to use for the containers in the task. Only supported for tasks that are hosted on AWS Fargate if the tasks are using platform version 1.4.0 or later (Linux). Not supported in Windows containers. Default: - PidMode used by the task is not specified
|
|
35119
35196
|
:param placement_constraints: The placement constraints to use for tasks in the service. You can specify a maximum of 10 constraints per task (this limit includes constraints in the task definition and those specified at run time). Not supported in Fargate. Default: - No placement constraints.
|
|
35120
35197
|
:param runtime_platform: The operating system that your task definitions are running on. A runtimePlatform is supported only for tasks using the Fargate launch type. Default: - Undefined.
|
|
35121
35198
|
:param execution_role: The name of the IAM task execution role that grants the ECS agent permission to call AWS APIs on your behalf. The role will be used to retrieve container images from ECR and create CloudWatch log groups. Default: - An execution role will be automatically created if you use ECR images in your task definition.
|
|
@@ -35685,6 +35762,17 @@ class TaskDefinition(
|
|
|
35685
35762
|
'''Execution role for this task definition.'''
|
|
35686
35763
|
return typing.cast(typing.Optional[_IRole_235f5d8e], jsii.get(self, "executionRole"))
|
|
35687
35764
|
|
|
35765
|
+
@builtins.property
|
|
35766
|
+
@jsii.member(jsii_name="pidMode")
|
|
35767
|
+
def pid_mode(self) -> typing.Optional[PidMode]:
|
|
35768
|
+
'''The process namespace to use for the containers in the task.
|
|
35769
|
+
|
|
35770
|
+
Only supported for tasks that are hosted on AWS Fargate if the tasks
|
|
35771
|
+
are using platform version 1.4.0 or later (Linux).
|
|
35772
|
+
Not supported in Windows containers.
|
|
35773
|
+
'''
|
|
35774
|
+
return typing.cast(typing.Optional[PidMode], jsii.get(self, "pidMode"))
|
|
35775
|
+
|
|
35688
35776
|
@builtins.property
|
|
35689
35777
|
@jsii.member(jsii_name="referencesSecretJsonField")
|
|
35690
35778
|
def references_secret_json_field(self) -> typing.Optional[builtins.bool]:
|
|
@@ -35891,7 +35979,7 @@ class TaskDefinitionProps(CommonTaskDefinitionProps):
|
|
|
35891
35979
|
:param ipc_mode: The IPC resource namespace to use for the containers in the task. Not supported in Fargate and Windows containers. Default: - IpcMode used by the task is not specified
|
|
35892
35980
|
:param memory_mib: The amount (in MiB) of memory used by the task. If using the EC2 launch type, this field is optional and any value can be used. If using the Fargate launch type, this field is required and you must use one of the following values, which determines your range of valid values for the cpu parameter: 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) - Available cpu values: 256 (.25 vCPU) 1024 (1 GB), 2048 (2 GB), 3072 (3 GB), 4096 (4 GB) - Available cpu values: 512 (.5 vCPU) 2048 (2 GB), 3072 (3 GB), 4096 (4 GB), 5120 (5 GB), 6144 (6 GB), 7168 (7 GB), 8192 (8 GB) - Available cpu values: 1024 (1 vCPU) Between 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB) - Available cpu values: 2048 (2 vCPU) Between 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB) - Available cpu values: 4096 (4 vCPU) Between 16384 (16 GB) and 61440 (60 GB) in increments of 4096 (4 GB) - Available cpu values: 8192 (8 vCPU) Between 32768 (32 GB) and 122880 (120 GB) in increments of 8192 (8 GB) - Available cpu values: 16384 (16 vCPU) Default: - Memory used by task is not specified.
|
|
35893
35981
|
:param network_mode: The networking mode to use for the containers in the task. On Fargate, the only supported networking mode is AwsVpc. Default: - NetworkMode.Bridge for EC2 & External tasks, AwsVpc for Fargate tasks.
|
|
35894
|
-
:param pid_mode: The process namespace to use for the containers in the task.
|
|
35982
|
+
:param pid_mode: The process namespace to use for the containers in the task. Only supported for tasks that are hosted on AWS Fargate if the tasks are using platform version 1.4.0 or later (Linux). Not supported in Windows containers. Default: - PidMode used by the task is not specified
|
|
35895
35983
|
:param placement_constraints: The placement constraints to use for tasks in the service. You can specify a maximum of 10 constraints per task (this limit includes constraints in the task definition and those specified at run time). Not supported in Fargate. Default: - No placement constraints.
|
|
35896
35984
|
:param runtime_platform: The operating system that your task definitions are running on. A runtimePlatform is supported only for tasks using the Fargate launch type. Default: - Undefined.
|
|
35897
35985
|
|
|
@@ -36143,7 +36231,9 @@ class TaskDefinitionProps(CommonTaskDefinitionProps):
|
|
|
36143
36231
|
def pid_mode(self) -> typing.Optional[PidMode]:
|
|
36144
36232
|
'''The process namespace to use for the containers in the task.
|
|
36145
36233
|
|
|
36146
|
-
|
|
36234
|
+
Only supported for tasks that are hosted on AWS Fargate if the tasks
|
|
36235
|
+
are using platform version 1.4.0 or later (Linux).
|
|
36236
|
+
Not supported in Windows containers.
|
|
36147
36237
|
|
|
36148
36238
|
:default: - PidMode used by the task is not specified
|
|
36149
36239
|
'''
|
|
@@ -39539,7 +39629,7 @@ class Ec2TaskDefinition(
|
|
|
39539
39629
|
:param inference_accelerators: The inference accelerators to use for the containers in the task. Not supported in Fargate. Default: - No inference accelerators.
|
|
39540
39630
|
:param ipc_mode: The IPC resource namespace to use for the containers in the task. Not supported in Fargate and Windows containers. Default: - IpcMode used by the task is not specified
|
|
39541
39631
|
:param network_mode: The Docker networking mode to use for the containers in the task. The valid values are NONE, BRIDGE, AWS_VPC, and HOST. Default: - NetworkMode.BRIDGE for EC2 tasks, AWS_VPC for Fargate tasks.
|
|
39542
|
-
:param pid_mode: The process namespace to use for the containers in the task. Not supported in
|
|
39632
|
+
:param pid_mode: The process namespace to use for the containers in the task. Not supported in Windows containers. Default: - PidMode used by the task is not specified
|
|
39543
39633
|
:param placement_constraints: An array of placement constraint objects to use for the task. You can specify a maximum of 10 constraints per task (this limit includes constraints in the task definition and those specified at run time). Default: - No placement constraints.
|
|
39544
39634
|
:param execution_role: The name of the IAM task execution role that grants the ECS agent permission to call AWS APIs on your behalf. The role will be used to retrieve container images from ECR and create CloudWatch log groups. Default: - An execution role will be automatically created if you use ECR images in your task definition.
|
|
39545
39635
|
:param family: The name of a family that this task definition is registered to. A family groups multiple versions of a task definition. Default: - Automatically generated name.
|
|
@@ -40403,6 +40493,7 @@ class FargateTaskDefinition(
|
|
|
40403
40493
|
cpu: typing.Optional[jsii.Number] = None,
|
|
40404
40494
|
ephemeral_storage_gib: typing.Optional[jsii.Number] = None,
|
|
40405
40495
|
memory_limit_mib: typing.Optional[jsii.Number] = None,
|
|
40496
|
+
pid_mode: typing.Optional[PidMode] = None,
|
|
40406
40497
|
runtime_platform: typing.Optional[typing.Union[RuntimePlatform, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
40407
40498
|
execution_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
40408
40499
|
family: typing.Optional[builtins.str] = None,
|
|
@@ -40417,6 +40508,7 @@ class FargateTaskDefinition(
|
|
|
40417
40508
|
:param cpu: The number of cpu units used by the task. For tasks using the Fargate launch type, this field is required and you must use one of the following values, which determines your range of valid values for the memory parameter: 256 (.25 vCPU) - Available memory values: 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) 512 (.5 vCPU) - Available memory values: 1024 (1 GB), 2048 (2 GB), 3072 (3 GB), 4096 (4 GB) 1024 (1 vCPU) - Available memory values: 2048 (2 GB), 3072 (3 GB), 4096 (4 GB), 5120 (5 GB), 6144 (6 GB), 7168 (7 GB), 8192 (8 GB) 2048 (2 vCPU) - Available memory values: Between 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB) 4096 (4 vCPU) - Available memory values: Between 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB) 8192 (8 vCPU) - Available memory values: Between 16384 (16 GB) and 61440 (60 GB) in increments of 4096 (4 GB) 16384 (16 vCPU) - Available memory values: Between 32768 (32 GB) and 122880 (120 GB) in increments of 8192 (8 GB) Default: 256
|
|
40418
40509
|
:param ephemeral_storage_gib: The amount (in GiB) of ephemeral storage to be allocated to the task. The maximum supported value is 200 GiB. NOTE: This parameter is only supported for tasks hosted on AWS Fargate using platform version 1.4.0 or later. Default: 20
|
|
40419
40510
|
:param memory_limit_mib: The amount (in MiB) of memory used by the task. For tasks using the Fargate launch type, this field is required and you must use one of the following values, which determines your range of valid values for the cpu parameter: 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) - Available cpu values: 256 (.25 vCPU) 1024 (1 GB), 2048 (2 GB), 3072 (3 GB), 4096 (4 GB) - Available cpu values: 512 (.5 vCPU) 2048 (2 GB), 3072 (3 GB), 4096 (4 GB), 5120 (5 GB), 6144 (6 GB), 7168 (7 GB), 8192 (8 GB) - Available cpu values: 1024 (1 vCPU) Between 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB) - Available cpu values: 2048 (2 vCPU) Between 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB) - Available cpu values: 4096 (4 vCPU) Between 16384 (16 GB) and 61440 (60 GB) in increments of 4096 (4 GB) - Available cpu values: 8192 (8 vCPU) Between 32768 (32 GB) and 122880 (120 GB) in increments of 8192 (8 GB) - Available cpu values: 16384 (16 vCPU) Default: 512
|
|
40511
|
+
:param pid_mode: The process namespace to use for the containers in the task. Only supported for tasks that are hosted on AWS Fargate if the tasks are using platform version 1.4.0 or later (Linux). Not supported in Windows containers. Default: - PidMode used by the task is not specified
|
|
40420
40512
|
:param runtime_platform: The operating system that your task definitions are running on. A runtimePlatform is supported only for tasks using the Fargate launch type. Default: - Undefined.
|
|
40421
40513
|
:param execution_role: The name of the IAM task execution role that grants the ECS agent permission to call AWS APIs on your behalf. The role will be used to retrieve container images from ECR and create CloudWatch log groups. Default: - An execution role will be automatically created if you use ECR images in your task definition.
|
|
40422
40514
|
:param family: The name of a family that this task definition is registered to. A family groups multiple versions of a task definition. Default: - Automatically generated name.
|
|
@@ -40432,6 +40524,7 @@ class FargateTaskDefinition(
|
|
|
40432
40524
|
cpu=cpu,
|
|
40433
40525
|
ephemeral_storage_gib=ephemeral_storage_gib,
|
|
40434
40526
|
memory_limit_mib=memory_limit_mib,
|
|
40527
|
+
pid_mode=pid_mode,
|
|
40435
40528
|
runtime_platform=runtime_platform,
|
|
40436
40529
|
execution_role=execution_role,
|
|
40437
40530
|
family=family,
|
|
@@ -42481,6 +42574,13 @@ def _typecheckingstub__eaae7939e3070d8ba1648d9807145fdc669cf24de157aecd86b7964eb
|
|
|
42481
42574
|
"""Type checking stubs"""
|
|
42482
42575
|
pass
|
|
42483
42576
|
|
|
42577
|
+
def _typecheckingstub__de228f279641285922f39a7d85fc376918c045b328369fc61474e4677857075b(
|
|
42578
|
+
name: builtins.str,
|
|
42579
|
+
value: builtins.str,
|
|
42580
|
+
) -> None:
|
|
42581
|
+
"""Type checking stubs"""
|
|
42582
|
+
pass
|
|
42583
|
+
|
|
42484
42584
|
def _typecheckingstub__bd4e688cf16aa827db1051180c9efb1f81ef776616c928afb625422d094bcca6(
|
|
42485
42585
|
name: builtins.str,
|
|
42486
42586
|
value: builtins.str,
|
|
@@ -43163,6 +43263,7 @@ def _typecheckingstub__da4d0b48fbacde979163c93d7fd8d5697220f750806124aabb65f0c3d
|
|
|
43163
43263
|
cpu: typing.Optional[jsii.Number] = None,
|
|
43164
43264
|
ephemeral_storage_gib: typing.Optional[jsii.Number] = None,
|
|
43165
43265
|
memory_limit_mib: typing.Optional[jsii.Number] = None,
|
|
43266
|
+
pid_mode: typing.Optional[PidMode] = None,
|
|
43166
43267
|
runtime_platform: typing.Optional[typing.Union[RuntimePlatform, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
43167
43268
|
) -> None:
|
|
43168
43269
|
"""Type checking stubs"""
|
|
@@ -44898,6 +44999,7 @@ def _typecheckingstub__d6eac52d828f2df0ab5e16014f889cf23534875319ae4b479cd554d53
|
|
|
44898
44999
|
cpu: typing.Optional[jsii.Number] = None,
|
|
44899
45000
|
ephemeral_storage_gib: typing.Optional[jsii.Number] = None,
|
|
44900
45001
|
memory_limit_mib: typing.Optional[jsii.Number] = None,
|
|
45002
|
+
pid_mode: typing.Optional[PidMode] = None,
|
|
44901
45003
|
runtime_platform: typing.Optional[typing.Union[RuntimePlatform, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
44902
45004
|
execution_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
44903
45005
|
family: typing.Optional[builtins.str] = None,
|