aws-cdk-lib 2.189.0__py3-none-any.whl → 2.190.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.

Files changed (53) hide show
  1. aws_cdk/__init__.py +16 -2
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.189.0.jsii.tgz → aws-cdk-lib@2.190.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_acmpca/__init__.py +6 -6
  5. aws_cdk/aws_apigatewayv2/__init__.py +374 -6
  6. aws_cdk/aws_applicationautoscaling/__init__.py +16 -10
  7. aws_cdk/aws_applicationsignals/__init__.py +204 -31
  8. aws_cdk/aws_backup/__init__.py +0 -41
  9. aws_cdk/aws_batch/__init__.py +215 -0
  10. aws_cdk/aws_bedrock/__init__.py +287 -0
  11. aws_cdk/aws_cleanrooms/__init__.py +1392 -78
  12. aws_cdk/aws_cloudfront/__init__.py +1 -0
  13. aws_cdk/aws_cloudtrail/__init__.py +24 -26
  14. aws_cdk/aws_codebuild/__init__.py +59 -7
  15. aws_cdk/aws_dms/__init__.py +43 -0
  16. aws_cdk/aws_ec2/__init__.py +364 -30
  17. aws_cdk/aws_ecs/__init__.py +36 -5
  18. aws_cdk/aws_eks/__init__.py +2 -100
  19. aws_cdk/aws_elasticache/__init__.py +6 -11
  20. aws_cdk/aws_elasticloadbalancingv2/__init__.py +341 -0
  21. aws_cdk/aws_events/__init__.py +67 -13
  22. aws_cdk/aws_fsx/__init__.py +9 -21
  23. aws_cdk/aws_iam/__init__.py +1 -1
  24. aws_cdk/aws_iot/__init__.py +6 -6
  25. aws_cdk/aws_kafkaconnect/__init__.py +2 -2
  26. aws_cdk/aws_kinesis/__init__.py +44 -0
  27. aws_cdk/aws_lex/__init__.py +615 -39
  28. aws_cdk/aws_location/__init__.py +4 -4
  29. aws_cdk/aws_macie/__init__.py +14 -3
  30. aws_cdk/aws_memorydb/__init__.py +87 -0
  31. aws_cdk/aws_msk/__init__.py +226 -127
  32. aws_cdk/aws_neptune/__init__.py +0 -8
  33. aws_cdk/aws_opensearchservice/__init__.py +64 -56
  34. aws_cdk/aws_paymentcryptography/__init__.py +41 -0
  35. aws_cdk/aws_qbusiness/__init__.py +175 -3
  36. aws_cdk/aws_quicksight/__init__.py +393 -0
  37. aws_cdk/aws_rds/__init__.py +113 -120
  38. aws_cdk/aws_redshiftserverless/__init__.py +4 -14
  39. aws_cdk/aws_route53resolver/__init__.py +60 -9
  40. aws_cdk/aws_s3/__init__.py +34 -1
  41. aws_cdk/aws_s3_deployment/__init__.py +202 -5
  42. aws_cdk/aws_sagemaker/__init__.py +40 -40
  43. aws_cdk/aws_ssmquicksetup/__init__.py +3 -3
  44. aws_cdk/aws_stepfunctions/__init__.py +720 -45
  45. aws_cdk/aws_transfer/__init__.py +55 -2
  46. aws_cdk/custom_resources/__init__.py +5 -5
  47. aws_cdk/pipelines/__init__.py +1 -2
  48. {aws_cdk_lib-2.189.0.dist-info → aws_cdk_lib-2.190.0.dist-info}/METADATA +1 -1
  49. {aws_cdk_lib-2.189.0.dist-info → aws_cdk_lib-2.190.0.dist-info}/RECORD +53 -53
  50. {aws_cdk_lib-2.189.0.dist-info → aws_cdk_lib-2.190.0.dist-info}/LICENSE +0 -0
  51. {aws_cdk_lib-2.189.0.dist-info → aws_cdk_lib-2.190.0.dist-info}/NOTICE +0 -0
  52. {aws_cdk_lib-2.189.0.dist-info → aws_cdk_lib-2.190.0.dist-info}/WHEEL +0 -0
  53. {aws_cdk_lib-2.189.0.dist-info → aws_cdk_lib-2.190.0.dist-info}/top_level.txt +0 -0
@@ -3514,6 +3514,7 @@ class CfnJobDefinition(
3514
3514
  name_mapping={
3515
3515
  "image": "image",
3516
3516
  "command": "command",
3517
+ "enable_execute_command": "enableExecuteCommand",
3517
3518
  "environment": "environment",
3518
3519
  "ephemeral_storage": "ephemeralStorage",
3519
3520
  "execution_role_arn": "executionRoleArn",
@@ -3543,6 +3544,7 @@ class CfnJobDefinition(
3543
3544
  *,
3544
3545
  image: builtins.str,
3545
3546
  command: typing.Optional[typing.Sequence[builtins.str]] = None,
3547
+ enable_execute_command: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
3546
3548
  environment: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnJobDefinition.EnvironmentProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
3547
3549
  ephemeral_storage: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnJobDefinition.EphemeralStorageProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
3548
3550
  execution_role_arn: typing.Optional[builtins.str] = None,
@@ -3571,6 +3573,7 @@ class CfnJobDefinition(
3571
3573
 
3572
3574
  :param image: Required. The image used to start a container. This string is passed directly to the Docker daemon. Images in the Docker Hub registry are available by default. Other repositories are specified with ``*repository-url* / *image* : *tag*`` . It can be 255 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), underscores (_), colons (:), periods (.), forward slashes (/), and number signs (#). This parameter maps to ``Image`` in the `Create a container <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container>`_ section of the `Docker Remote API <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/>`_ and the ``IMAGE`` parameter of `docker run <https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/>`_ . .. epigraph:: Docker image architecture must match the processor architecture of the compute resources that they're scheduled on. For example, ARM-based Docker images can only run on ARM-based compute resources. - Images in Amazon ECR Public repositories use the full ``registry/repository[:tag]`` or ``registry/repository[@digest]`` naming conventions. For example, ``public.ecr.aws/ *registry_alias* / *my-web-app* : *latest*`` . - Images in Amazon ECR repositories use the full registry and repository URI (for example, ``123456789012.dkr.ecr.<region-name>.amazonaws.com/<repository-name>`` ). - Images in official repositories on Docker Hub use a single name (for example, ``ubuntu`` or ``mongo`` ). - Images in other repositories on Docker Hub are qualified with an organization name (for example, ``amazon/amazon-ecs-agent`` ). - Images in other online repositories are qualified further by a domain name (for example, ``quay.io/assemblyline/ubuntu`` ).
3573
3575
  :param command: The command that's passed to the container. This parameter maps to ``Cmd`` in the `Create a container <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container>`_ section of the `Docker Remote API <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/>`_ and the ``COMMAND`` parameter to `docker run <https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/>`_ . For more information, see `https://docs.docker.com/engine/reference/builder/#cmd <https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/builder/#cmd>`_ .
3576
+ :param enable_execute_command:
3574
3577
  :param environment: The environment variables to pass to a container. This parameter maps to ``Env`` in the `Create a container <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container>`_ section of the `Docker Remote API <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/>`_ and the ``--env`` option to `docker run <https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/>`_ . .. epigraph:: We don't recommend using plaintext environment variables for sensitive information, such as credential data. > Environment variables cannot start with " ``AWS_BATCH`` ". This naming convention is reserved for variables that AWS Batch sets.
3575
3578
  :param ephemeral_storage: The amount of ephemeral storage to allocate for the task. This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on AWS Fargate .
3576
3579
  :param execution_role_arn: The Amazon Resource Name (ARN) of the execution role that AWS Batch can assume. For jobs that run on Fargate resources, you must provide an execution role. For more information, see `AWS Batch execution IAM role <https://docs.aws.amazon.com/batch/latest/userguide/execution-IAM-role.html>`_ in the *AWS Batch User Guide* .
@@ -3609,6 +3612,7 @@ class CfnJobDefinition(
3609
3612
 
3610
3613
  # the properties below are optional
3611
3614
  command=["command"],
3615
+ enable_execute_command=False,
3612
3616
  environment=[batch.CfnJobDefinition.EnvironmentProperty(
3613
3617
  name="name",
3614
3618
  value="value"
@@ -3707,6 +3711,7 @@ class CfnJobDefinition(
3707
3711
  type_hints = typing.get_type_hints(_typecheckingstub__09b3c38642739790560033cae597f009c106d353ddc5faf85f6a7bf4891ac4d1)
3708
3712
  check_type(argname="argument image", value=image, expected_type=type_hints["image"])
3709
3713
  check_type(argname="argument command", value=command, expected_type=type_hints["command"])
3714
+ check_type(argname="argument enable_execute_command", value=enable_execute_command, expected_type=type_hints["enable_execute_command"])
3710
3715
  check_type(argname="argument environment", value=environment, expected_type=type_hints["environment"])
3711
3716
  check_type(argname="argument ephemeral_storage", value=ephemeral_storage, expected_type=type_hints["ephemeral_storage"])
3712
3717
  check_type(argname="argument execution_role_arn", value=execution_role_arn, expected_type=type_hints["execution_role_arn"])
@@ -3733,6 +3738,8 @@ class CfnJobDefinition(
3733
3738
  }
3734
3739
  if command is not None:
3735
3740
  self._values["command"] = command
3741
+ if enable_execute_command is not None:
3742
+ self._values["enable_execute_command"] = enable_execute_command
3736
3743
  if environment is not None:
3737
3744
  self._values["environment"] = environment
3738
3745
  if ephemeral_storage is not None:
@@ -3808,6 +3815,16 @@ class CfnJobDefinition(
3808
3815
  result = self._values.get("command")
3809
3816
  return typing.cast(typing.Optional[typing.List[builtins.str]], result)
3810
3817
 
3818
+ @builtins.property
3819
+ def enable_execute_command(
3820
+ self,
3821
+ ) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
3822
+ '''
3823
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-containerproperties.html#cfn-batch-jobdefinition-containerproperties-enableexecutecommand
3824
+ '''
3825
+ result = self._values.get("enable_execute_command")
3826
+ return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
3827
+
3811
3828
  @builtins.property
3812
3829
  def environment(
3813
3830
  self,
@@ -4227,6 +4244,14 @@ class CfnJobDefinition(
4227
4244
  value="value"
4228
4245
  )],
4229
4246
  essential=False,
4247
+ firelens_configuration=batch.CfnJobDefinition.FirelensConfigurationProperty(
4248
+ type="type",
4249
+
4250
+ # the properties below are optional
4251
+ options={
4252
+ "options_key": "options"
4253
+ }
4254
+ ),
4230
4255
  linux_parameters=batch.CfnJobDefinition.LinuxParametersProperty(
4231
4256
  devices=[batch.CfnJobDefinition.DeviceProperty(
4232
4257
  container_path="containerPath",
@@ -4281,6 +4306,7 @@ class CfnJobDefinition(
4281
4306
  )],
4282
4307
  user="user"
4283
4308
  )],
4309
+ enable_execute_command=False,
4284
4310
  ephemeral_storage=batch.CfnJobDefinition.EphemeralStorageProperty(
4285
4311
  size_in_gi_b=123
4286
4312
  ),
@@ -4356,6 +4382,7 @@ class CfnJobDefinition(
4356
4382
  jsii_struct_bases=[],
4357
4383
  name_mapping={
4358
4384
  "containers": "containers",
4385
+ "enable_execute_command": "enableExecuteCommand",
4359
4386
  "ephemeral_storage": "ephemeralStorage",
4360
4387
  "execution_role_arn": "executionRoleArn",
4361
4388
  "ipc_mode": "ipcMode",
@@ -4372,6 +4399,7 @@ class CfnJobDefinition(
4372
4399
  self,
4373
4400
  *,
4374
4401
  containers: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnJobDefinition.TaskContainerPropertiesProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
4402
+ enable_execute_command: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
4375
4403
  ephemeral_storage: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnJobDefinition.EphemeralStorageProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
4376
4404
  execution_role_arn: typing.Optional[builtins.str] = None,
4377
4405
  ipc_mode: typing.Optional[builtins.str] = None,
@@ -4387,6 +4415,7 @@ class CfnJobDefinition(
4387
4415
  You can specify which Docker images to use, the required resources, and other configurations related to launching the task definition through an Amazon ECS service or task.
4388
4416
 
4389
4417
  :param containers: This object is a list of containers.
4418
+ :param enable_execute_command:
4390
4419
  :param ephemeral_storage: The amount of ephemeral storage to allocate for the task. This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on AWS Fargate .
4391
4420
  :param execution_role_arn: The Amazon Resource Name (ARN) of the execution role that AWS Batch can assume. For jobs that run on Fargate resources, you must provide an execution role. For more information, see `AWS Batch execution IAM role <https://docs.aws.amazon.com/batch/latest/userguide/execution-IAM-role.html>`_ in the *AWS Batch User Guide* .
4392
4421
  :param ipc_mode: The IPC resource namespace to use for the containers in the task. The valid values are ``host`` , ``task`` , or ``none`` . If ``host`` is specified, all containers within the tasks that specified the ``host`` IPC mode on the same container instance share the same IPC resources with the host Amazon EC2 instance. If ``task`` is specified, all containers within the specified ``task`` share the same IPC resources. If ``none`` is specified, the IPC resources within the containers of a task are private, and are not shared with other containers in a task or on the container instance. If no value is specified, then the IPC resource namespace sharing depends on the Docker daemon setting on the container instance. For more information, see `IPC settings <https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#ipc-settings---ipc>`_ in the Docker run reference.
@@ -4423,6 +4452,14 @@ class CfnJobDefinition(
4423
4452
  value="value"
4424
4453
  )],
4425
4454
  essential=False,
4455
+ firelens_configuration=batch.CfnJobDefinition.FirelensConfigurationProperty(
4456
+ type="type",
4457
+
4458
+ # the properties below are optional
4459
+ options={
4460
+ "options_key": "options"
4461
+ }
4462
+ ),
4426
4463
  linux_parameters=batch.CfnJobDefinition.LinuxParametersProperty(
4427
4464
  devices=[batch.CfnJobDefinition.DeviceProperty(
4428
4465
  container_path="containerPath",
@@ -4477,6 +4514,7 @@ class CfnJobDefinition(
4477
4514
  )],
4478
4515
  user="user"
4479
4516
  )],
4517
+ enable_execute_command=False,
4480
4518
  ephemeral_storage=batch.CfnJobDefinition.EphemeralStorageProperty(
4481
4519
  size_in_gi_b=123
4482
4520
  ),
@@ -4515,6 +4553,7 @@ class CfnJobDefinition(
4515
4553
  if __debug__:
4516
4554
  type_hints = typing.get_type_hints(_typecheckingstub__8e8c39be2b840a158045732ea20d964bf03d380304bbcd66936cb862e6cc2a8e)
4517
4555
  check_type(argname="argument containers", value=containers, expected_type=type_hints["containers"])
4556
+ check_type(argname="argument enable_execute_command", value=enable_execute_command, expected_type=type_hints["enable_execute_command"])
4518
4557
  check_type(argname="argument ephemeral_storage", value=ephemeral_storage, expected_type=type_hints["ephemeral_storage"])
4519
4558
  check_type(argname="argument execution_role_arn", value=execution_role_arn, expected_type=type_hints["execution_role_arn"])
4520
4559
  check_type(argname="argument ipc_mode", value=ipc_mode, expected_type=type_hints["ipc_mode"])
@@ -4527,6 +4566,8 @@ class CfnJobDefinition(
4527
4566
  self._values: typing.Dict[builtins.str, typing.Any] = {}
4528
4567
  if containers is not None:
4529
4568
  self._values["containers"] = containers
4569
+ if enable_execute_command is not None:
4570
+ self._values["enable_execute_command"] = enable_execute_command
4530
4571
  if ephemeral_storage is not None:
4531
4572
  self._values["ephemeral_storage"] = ephemeral_storage
4532
4573
  if execution_role_arn is not None:
@@ -4557,6 +4598,16 @@ class CfnJobDefinition(
4557
4598
  result = self._values.get("containers")
4558
4599
  return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnJobDefinition.TaskContainerPropertiesProperty"]]]], result)
4559
4600
 
4601
+ @builtins.property
4602
+ def enable_execute_command(
4603
+ self,
4604
+ ) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
4605
+ '''
4606
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-ecstaskproperties.html#cfn-batch-jobdefinition-ecstaskproperties-enableexecutecommand
4607
+ '''
4608
+ result = self._values.get("enable_execute_command")
4609
+ return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
4610
+
4560
4611
  @builtins.property
4561
4612
  def ephemeral_storage(
4562
4613
  self,
@@ -6088,6 +6139,80 @@ class CfnJobDefinition(
6088
6139
  k + "=" + repr(v) for k, v in self._values.items()
6089
6140
  )
6090
6141
 
6142
+ @jsii.data_type(
6143
+ jsii_type="aws-cdk-lib.aws_batch.CfnJobDefinition.FirelensConfigurationProperty",
6144
+ jsii_struct_bases=[],
6145
+ name_mapping={"type": "type", "options": "options"},
6146
+ )
6147
+ class FirelensConfigurationProperty:
6148
+ def __init__(
6149
+ self,
6150
+ *,
6151
+ type: builtins.str,
6152
+ options: typing.Optional[typing.Union[typing.Mapping[builtins.str, builtins.str], _IResolvable_da3f097b]] = None,
6153
+ ) -> None:
6154
+ '''
6155
+ :param type:
6156
+ :param options:
6157
+
6158
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-firelensconfiguration.html
6159
+ :exampleMetadata: fixture=_generated
6160
+
6161
+ Example::
6162
+
6163
+ # The code below shows an example of how to instantiate this type.
6164
+ # The values are placeholders you should change.
6165
+ from aws_cdk import aws_batch as batch
6166
+
6167
+ firelens_configuration_property = batch.CfnJobDefinition.FirelensConfigurationProperty(
6168
+ type="type",
6169
+
6170
+ # the properties below are optional
6171
+ options={
6172
+ "options_key": "options"
6173
+ }
6174
+ )
6175
+ '''
6176
+ if __debug__:
6177
+ type_hints = typing.get_type_hints(_typecheckingstub__012b674cbcf1ea538c209d328bedd805776a59df4892337af673d8b565f4f57d)
6178
+ check_type(argname="argument type", value=type, expected_type=type_hints["type"])
6179
+ check_type(argname="argument options", value=options, expected_type=type_hints["options"])
6180
+ self._values: typing.Dict[builtins.str, typing.Any] = {
6181
+ "type": type,
6182
+ }
6183
+ if options is not None:
6184
+ self._values["options"] = options
6185
+
6186
+ @builtins.property
6187
+ def type(self) -> builtins.str:
6188
+ '''
6189
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-firelensconfiguration.html#cfn-batch-jobdefinition-firelensconfiguration-type
6190
+ '''
6191
+ result = self._values.get("type")
6192
+ assert result is not None, "Required property 'type' is missing"
6193
+ return typing.cast(builtins.str, result)
6194
+
6195
+ @builtins.property
6196
+ def options(
6197
+ self,
6198
+ ) -> typing.Optional[typing.Union[typing.Mapping[builtins.str, builtins.str], _IResolvable_da3f097b]]:
6199
+ '''
6200
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-firelensconfiguration.html#cfn-batch-jobdefinition-firelensconfiguration-options
6201
+ '''
6202
+ result = self._values.get("options")
6203
+ return typing.cast(typing.Optional[typing.Union[typing.Mapping[builtins.str, builtins.str], _IResolvable_da3f097b]], result)
6204
+
6205
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
6206
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
6207
+
6208
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
6209
+ return not (rhs == self)
6210
+
6211
+ def __repr__(self) -> str:
6212
+ return "FirelensConfigurationProperty(%s)" % ", ".join(
6213
+ k + "=" + repr(v) for k, v in self._values.items()
6214
+ )
6215
+
6091
6216
  @jsii.data_type(
6092
6217
  jsii_type="aws-cdk-lib.aws_batch.CfnJobDefinition.HostPathProperty",
6093
6218
  jsii_struct_bases=[],
@@ -6846,6 +6971,14 @@ class CfnJobDefinition(
6846
6971
  value="value"
6847
6972
  )],
6848
6973
  essential=False,
6974
+ firelens_configuration=batch.CfnJobDefinition.FirelensConfigurationProperty(
6975
+ type="type",
6976
+
6977
+ # the properties below are optional
6978
+ options={
6979
+ "options_key": "options"
6980
+ }
6981
+ ),
6849
6982
  linux_parameters=batch.CfnJobDefinition.LinuxParametersProperty(
6850
6983
  devices=[batch.CfnJobDefinition.DeviceProperty(
6851
6984
  container_path="containerPath",
@@ -6900,6 +7033,7 @@ class CfnJobDefinition(
6900
7033
  )],
6901
7034
  user="user"
6902
7035
  )],
7036
+ enable_execute_command=False,
6903
7037
  execution_role_arn="executionRoleArn",
6904
7038
  ipc_mode="ipcMode",
6905
7039
  pid_mode="pidMode",
@@ -6964,6 +7098,7 @@ class CfnJobDefinition(
6964
7098
  jsii_struct_bases=[],
6965
7099
  name_mapping={
6966
7100
  "containers": "containers",
7101
+ "enable_execute_command": "enableExecuteCommand",
6967
7102
  "execution_role_arn": "executionRoleArn",
6968
7103
  "ipc_mode": "ipcMode",
6969
7104
  "pid_mode": "pidMode",
@@ -6976,6 +7111,7 @@ class CfnJobDefinition(
6976
7111
  self,
6977
7112
  *,
6978
7113
  containers: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnJobDefinition.TaskContainerPropertiesProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
7114
+ enable_execute_command: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
6979
7115
  execution_role_arn: typing.Optional[builtins.str] = None,
6980
7116
  ipc_mode: typing.Optional[builtins.str] = None,
6981
7117
  pid_mode: typing.Optional[builtins.str] = None,
@@ -6987,6 +7123,7 @@ class CfnJobDefinition(
6987
7123
  You can specify which Docker images to use, the required resources, and other configurations related to launching the task definition through an Amazon ECS service or task.
6988
7124
 
6989
7125
  :param containers: This object is a list of containers.
7126
+ :param enable_execute_command:
6990
7127
  :param execution_role_arn: The Amazon Resource Name (ARN) of the execution role that AWS Batch can assume. For jobs that run on Fargate resources, you must provide an execution role. For more information, see `AWS Batch execution IAM role <https://docs.aws.amazon.com/batch/latest/userguide/execution-IAM-role.html>`_ in the *AWS Batch User Guide* .
6991
7128
  :param ipc_mode: The IPC resource namespace to use for the containers in the task. The valid values are ``host`` , ``task`` , or ``none`` . If ``host`` is specified, all containers within the tasks that specified the ``host`` IPC mode on the same container instance share the same IPC resources with the host Amazon EC2 instance. If ``task`` is specified, all containers within the specified ``task`` share the same IPC resources. If ``none`` is specified, the IPC resources within the containers of a task are private, and are not shared with other containers in a task or on the container instance. If no value is specified, then the IPC resource namespace sharing depends on the Docker daemon setting on the container instance. For more information, see `IPC settings <https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#ipc-settings---ipc>`_ in the Docker run reference.
6992
7129
  :param pid_mode: The process namespace to use for the containers in the task. The valid values are ``host`` or ``task`` . For example, monitoring sidecars might need ``pidMode`` to access information about other containers running in the same task. If ``host`` is specified, all containers within the tasks that specified the ``host`` PID mode on the same container instance share the process namespace with the host Amazon EC2 instance. If ``task`` is specified, all containers within the specified task share the same process namespace. If no value is specified, the default is a private namespace for each container. For more information, see `PID settings <https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#pid-settings---pid>`_ in the Docker run reference.
@@ -7019,6 +7156,14 @@ class CfnJobDefinition(
7019
7156
  value="value"
7020
7157
  )],
7021
7158
  essential=False,
7159
+ firelens_configuration=batch.CfnJobDefinition.FirelensConfigurationProperty(
7160
+ type="type",
7161
+
7162
+ # the properties below are optional
7163
+ options={
7164
+ "options_key": "options"
7165
+ }
7166
+ ),
7022
7167
  linux_parameters=batch.CfnJobDefinition.LinuxParametersProperty(
7023
7168
  devices=[batch.CfnJobDefinition.DeviceProperty(
7024
7169
  container_path="containerPath",
@@ -7073,6 +7218,7 @@ class CfnJobDefinition(
7073
7218
  )],
7074
7219
  user="user"
7075
7220
  )],
7221
+ enable_execute_command=False,
7076
7222
  execution_role_arn="executionRoleArn",
7077
7223
  ipc_mode="ipcMode",
7078
7224
  pid_mode="pidMode",
@@ -7100,6 +7246,7 @@ class CfnJobDefinition(
7100
7246
  if __debug__:
7101
7247
  type_hints = typing.get_type_hints(_typecheckingstub__cb3ca5619c68fc8ff93d966eb183ea114ed6764e99467d7b283af54300b4b5ca)
7102
7248
  check_type(argname="argument containers", value=containers, expected_type=type_hints["containers"])
7249
+ check_type(argname="argument enable_execute_command", value=enable_execute_command, expected_type=type_hints["enable_execute_command"])
7103
7250
  check_type(argname="argument execution_role_arn", value=execution_role_arn, expected_type=type_hints["execution_role_arn"])
7104
7251
  check_type(argname="argument ipc_mode", value=ipc_mode, expected_type=type_hints["ipc_mode"])
7105
7252
  check_type(argname="argument pid_mode", value=pid_mode, expected_type=type_hints["pid_mode"])
@@ -7108,6 +7255,8 @@ class CfnJobDefinition(
7108
7255
  self._values: typing.Dict[builtins.str, typing.Any] = {}
7109
7256
  if containers is not None:
7110
7257
  self._values["containers"] = containers
7258
+ if enable_execute_command is not None:
7259
+ self._values["enable_execute_command"] = enable_execute_command
7111
7260
  if execution_role_arn is not None:
7112
7261
  self._values["execution_role_arn"] = execution_role_arn
7113
7262
  if ipc_mode is not None:
@@ -7130,6 +7279,16 @@ class CfnJobDefinition(
7130
7279
  result = self._values.get("containers")
7131
7280
  return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnJobDefinition.TaskContainerPropertiesProperty"]]]], result)
7132
7281
 
7282
+ @builtins.property
7283
+ def enable_execute_command(
7284
+ self,
7285
+ ) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
7286
+ '''
7287
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-multinodeecstaskproperties.html#cfn-batch-jobdefinition-multinodeecstaskproperties-enableexecutecommand
7288
+ '''
7289
+ result = self._values.get("enable_execute_command")
7290
+ return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
7291
+
7133
7292
  @builtins.property
7134
7293
  def execution_role_arn(self) -> typing.Optional[builtins.str]:
7135
7294
  '''The Amazon Resource Name (ARN) of the execution role that AWS Batch can assume.
@@ -7329,6 +7488,7 @@ class CfnJobDefinition(
7329
7488
 
7330
7489
  # the properties below are optional
7331
7490
  command=["command"],
7491
+ enable_execute_command=False,
7332
7492
  environment=[batch.CfnJobDefinition.EnvironmentProperty(
7333
7493
  name="name",
7334
7494
  value="value"
@@ -7438,6 +7598,14 @@ class CfnJobDefinition(
7438
7598
  value="value"
7439
7599
  )],
7440
7600
  essential=False,
7601
+ firelens_configuration=batch.CfnJobDefinition.FirelensConfigurationProperty(
7602
+ type="type",
7603
+
7604
+ # the properties below are optional
7605
+ options={
7606
+ "options_key": "options"
7607
+ }
7608
+ ),
7441
7609
  linux_parameters=batch.CfnJobDefinition.LinuxParametersProperty(
7442
7610
  devices=[batch.CfnJobDefinition.DeviceProperty(
7443
7611
  container_path="containerPath",
@@ -7492,6 +7660,7 @@ class CfnJobDefinition(
7492
7660
  )],
7493
7661
  user="user"
7494
7662
  )],
7663
+ enable_execute_command=False,
7495
7664
  execution_role_arn="executionRoleArn",
7496
7665
  ipc_mode="ipcMode",
7497
7666
  pid_mode="pidMode",
@@ -7742,6 +7911,7 @@ class CfnJobDefinition(
7742
7911
 
7743
7912
  # the properties below are optional
7744
7913
  command=["command"],
7914
+ enable_execute_command=False,
7745
7915
  environment=[batch.CfnJobDefinition.EnvironmentProperty(
7746
7916
  name="name",
7747
7917
  value="value"
@@ -7851,6 +8021,14 @@ class CfnJobDefinition(
7851
8021
  value="value"
7852
8022
  )],
7853
8023
  essential=False,
8024
+ firelens_configuration=batch.CfnJobDefinition.FirelensConfigurationProperty(
8025
+ type="type",
8026
+
8027
+ # the properties below are optional
8028
+ options={
8029
+ "options_key": "options"
8030
+ }
8031
+ ),
7854
8032
  linux_parameters=batch.CfnJobDefinition.LinuxParametersProperty(
7855
8033
  devices=[batch.CfnJobDefinition.DeviceProperty(
7856
8034
  container_path="containerPath",
@@ -7905,6 +8083,7 @@ class CfnJobDefinition(
7905
8083
  )],
7906
8084
  user="user"
7907
8085
  )],
8086
+ enable_execute_command=False,
7908
8087
  execution_role_arn="executionRoleArn",
7909
8088
  ipc_mode="ipcMode",
7910
8089
  pid_mode="pidMode",
@@ -9129,6 +9308,7 @@ class CfnJobDefinition(
9129
9308
  "depends_on": "dependsOn",
9130
9309
  "environment": "environment",
9131
9310
  "essential": "essential",
9311
+ "firelens_configuration": "firelensConfiguration",
9132
9312
  "linux_parameters": "linuxParameters",
9133
9313
  "log_configuration": "logConfiguration",
9134
9314
  "mount_points": "mountPoints",
@@ -9151,6 +9331,7 @@ class CfnJobDefinition(
9151
9331
  depends_on: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnJobDefinition.TaskContainerDependencyProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
9152
9332
  environment: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnJobDefinition.EnvironmentProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
9153
9333
  essential: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
9334
+ firelens_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnJobDefinition.FirelensConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
9154
9335
  linux_parameters: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnJobDefinition.LinuxParametersProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
9155
9336
  log_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnJobDefinition.LogConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
9156
9337
  mount_points: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnJobDefinition.MountPointProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
@@ -9172,6 +9353,7 @@ class CfnJobDefinition(
9172
9353
  :param depends_on: A list of containers that this container depends on.
9173
9354
  :param environment: The environment variables to pass to a container. This parameter maps to Env in the `Create a container <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container>`_ section of the `Docker Remote API <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/>`_ and the ``--env`` parameter to `docker run <https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/>`_ . .. epigraph:: We don't recommend using plaintext environment variables for sensitive information, such as credential data. > Environment variables cannot start with ``AWS_BATCH`` . This naming convention is reserved for variables that AWS Batch sets.
9174
9355
  :param essential: If the essential parameter of a container is marked as ``true`` , and that container fails or stops for any reason, all other containers that are part of the task are stopped. If the ``essential`` parameter of a container is marked as false, its failure doesn't affect the rest of the containers in a task. If this parameter is omitted, a container is assumed to be essential. All jobs must have at least one essential container. If you have an application that's composed of multiple containers, group containers that are used for a common purpose into components, and separate the different components into multiple task definitions. For more information, see `Application Architecture <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/application_architecture.html>`_ in the *Amazon Elastic Container Service Developer Guide* .
9356
+ :param firelens_configuration:
9175
9357
  :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>`_ .
9176
9358
  :param log_configuration: The log configuration specification for the container. This parameter maps to ``LogConfig`` in the `Create a container <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate>`_ section of the `Docker Remote API <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/>`_ and the ``--log-driver`` option to `docker run <https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration>`_ . By default, containers use the same logging driver that the Docker daemon uses. However the container can use a different logging driver than the Docker daemon by specifying a log driver with this parameter in the container definition. To use a different logging driver for a container, the log system must be configured properly on the container instance (or on a different log server for remote logging options). For more information about the options for different supported log drivers, see `Configure logging drivers <https://docs.aws.amazon.com/https://docs.docker.com/engine/admin/logging/overview/>`_ in the *Docker documentation* . .. epigraph:: Amazon ECS currently supports a subset of the logging drivers available to the Docker daemon (shown in the ``LogConfiguration`` data type). Additional log drivers may be available in future releases of the Amazon ECS container agent. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version ``--format '{{.Server.APIVersion}}'`` .. epigraph:: The Amazon ECS container agent running on a container instance must register the logging drivers available on that instance with the ``ECS_AVAILABLE_LOGGING_DRIVERS`` environment variable before containers placed on that instance can use these log configuration options. For more information, see `Amazon ECS container agent configuration <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html>`_ in the *Amazon Elastic Container Service Developer Guide* .
9177
9359
  :param mount_points: The mount points for data volumes in your container. This parameter maps to ``Volumes`` in the `Create a container <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate>`_ section of the `Docker Remote API <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/>`_ and the `--volume <https://docs.aws.amazon.com/>`_ option to `docker run <https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration>`_ . Windows containers can mount whole directories on the same drive as ``$env:ProgramData`` . Windows containers can't mount directories on a different drive, and mount point can't be across drives.
@@ -9209,6 +9391,14 @@ class CfnJobDefinition(
9209
9391
  value="value"
9210
9392
  )],
9211
9393
  essential=False,
9394
+ firelens_configuration=batch.CfnJobDefinition.FirelensConfigurationProperty(
9395
+ type="type",
9396
+
9397
+ # the properties below are optional
9398
+ options={
9399
+ "options_key": "options"
9400
+ }
9401
+ ),
9212
9402
  linux_parameters=batch.CfnJobDefinition.LinuxParametersProperty(
9213
9403
  devices=[batch.CfnJobDefinition.DeviceProperty(
9214
9404
  container_path="containerPath",
@@ -9271,6 +9461,7 @@ class CfnJobDefinition(
9271
9461
  check_type(argname="argument depends_on", value=depends_on, expected_type=type_hints["depends_on"])
9272
9462
  check_type(argname="argument environment", value=environment, expected_type=type_hints["environment"])
9273
9463
  check_type(argname="argument essential", value=essential, expected_type=type_hints["essential"])
9464
+ check_type(argname="argument firelens_configuration", value=firelens_configuration, expected_type=type_hints["firelens_configuration"])
9274
9465
  check_type(argname="argument linux_parameters", value=linux_parameters, expected_type=type_hints["linux_parameters"])
9275
9466
  check_type(argname="argument log_configuration", value=log_configuration, expected_type=type_hints["log_configuration"])
9276
9467
  check_type(argname="argument mount_points", value=mount_points, expected_type=type_hints["mount_points"])
@@ -9293,6 +9484,8 @@ class CfnJobDefinition(
9293
9484
  self._values["environment"] = environment
9294
9485
  if essential is not None:
9295
9486
  self._values["essential"] = essential
9487
+ if firelens_configuration is not None:
9488
+ self._values["firelens_configuration"] = firelens_configuration
9296
9489
  if linux_parameters is not None:
9297
9490
  self._values["linux_parameters"] = linux_parameters
9298
9491
  if log_configuration is not None:
@@ -9381,6 +9574,16 @@ class CfnJobDefinition(
9381
9574
  result = self._values.get("essential")
9382
9575
  return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
9383
9576
 
9577
+ @builtins.property
9578
+ def firelens_configuration(
9579
+ self,
9580
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnJobDefinition.FirelensConfigurationProperty"]]:
9581
+ '''
9582
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-taskcontainerproperties.html#cfn-batch-jobdefinition-taskcontainerproperties-firelensconfiguration
9583
+ '''
9584
+ result = self._values.get("firelens_configuration")
9585
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnJobDefinition.FirelensConfigurationProperty"]], result)
9586
+
9384
9587
  @builtins.property
9385
9588
  def linux_parameters(
9386
9589
  self,
@@ -24998,6 +25201,7 @@ def _typecheckingstub__09b3c38642739790560033cae597f009c106d353ddc5faf85f6a7bf48
24998
25201
  *,
24999
25202
  image: builtins.str,
25000
25203
  command: typing.Optional[typing.Sequence[builtins.str]] = None,
25204
+ enable_execute_command: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
25001
25205
  environment: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.EnvironmentProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
25002
25206
  ephemeral_storage: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.EphemeralStorageProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
25003
25207
  execution_role_arn: typing.Optional[builtins.str] = None,
@@ -25042,6 +25246,7 @@ def _typecheckingstub__6153a950309796a66c44ef3a234e02ed7ff91444107709427ae345e4f
25042
25246
  def _typecheckingstub__8e8c39be2b840a158045732ea20d964bf03d380304bbcd66936cb862e6cc2a8e(
25043
25247
  *,
25044
25248
  containers: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.TaskContainerPropertiesProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
25249
+ enable_execute_command: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
25045
25250
  ephemeral_storage: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.EphemeralStorageProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
25046
25251
  execution_role_arn: typing.Optional[builtins.str] = None,
25047
25252
  ipc_mode: typing.Optional[builtins.str] = None,
@@ -25173,6 +25378,14 @@ def _typecheckingstub__2b088f865053d4cfdc2700de70d732a768d630a892a20da6fda19303d
25173
25378
  """Type checking stubs"""
25174
25379
  pass
25175
25380
 
25381
+ def _typecheckingstub__012b674cbcf1ea538c209d328bedd805776a59df4892337af673d8b565f4f57d(
25382
+ *,
25383
+ type: builtins.str,
25384
+ options: typing.Optional[typing.Union[typing.Mapping[builtins.str, builtins.str], _IResolvable_da3f097b]] = None,
25385
+ ) -> None:
25386
+ """Type checking stubs"""
25387
+ pass
25388
+
25176
25389
  def _typecheckingstub__2bf55e035d36507c507c0ff620eda0a3096496a2cd5226656fc5e4af46e1b9ac(
25177
25390
  *,
25178
25391
  path: typing.Optional[builtins.str] = None,
@@ -25250,6 +25463,7 @@ def _typecheckingstub__9a2309f896452e04abc96277b3c04ead84cbae39e501242083e44da7e
25250
25463
  def _typecheckingstub__cb3ca5619c68fc8ff93d966eb183ea114ed6764e99467d7b283af54300b4b5ca(
25251
25464
  *,
25252
25465
  containers: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.TaskContainerPropertiesProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
25466
+ enable_execute_command: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
25253
25467
  execution_role_arn: typing.Optional[builtins.str] = None,
25254
25468
  ipc_mode: typing.Optional[builtins.str] = None,
25255
25469
  pid_mode: typing.Optional[builtins.str] = None,
@@ -25376,6 +25590,7 @@ def _typecheckingstub__4946f5f042ef067bff74424b1b71c92ab13e52a7f47a4271e02811052
25376
25590
  depends_on: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.TaskContainerDependencyProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
25377
25591
  environment: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.EnvironmentProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
25378
25592
  essential: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
25593
+ firelens_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.FirelensConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
25379
25594
  linux_parameters: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.LinuxParametersProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
25380
25595
  log_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.LogConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
25381
25596
  mount_points: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.MountPointProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,