aws-cdk-lib 2.140.0__py3-none-any.whl → 2.142.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 (49) hide show
  1. aws_cdk/__init__.py +9 -1
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.140.0.jsii.tgz → aws-cdk-lib@2.142.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_appsync/__init__.py +224 -94
  5. aws_cdk/aws_autoscaling/__init__.py +109 -25
  6. aws_cdk/aws_bedrock/__init__.py +51 -41
  7. aws_cdk/aws_cloudfront/__init__.py +34 -78
  8. aws_cdk/aws_cloudtrail/__init__.py +13 -4
  9. aws_cdk/aws_codepipeline/__init__.py +364 -27
  10. aws_cdk/aws_connectcampaigns/__init__.py +2 -2
  11. aws_cdk/aws_datasync/__init__.py +51 -56
  12. aws_cdk/aws_docdb/__init__.py +181 -4
  13. aws_cdk/aws_dynamodb/__init__.py +410 -0
  14. aws_cdk/aws_ec2/__init__.py +91 -42
  15. aws_cdk/aws_ecr/__init__.py +32 -7
  16. aws_cdk/aws_ecs/__init__.py +65 -18
  17. aws_cdk/aws_eks/__init__.py +36 -3
  18. aws_cdk/aws_entityresolution/__init__.py +6 -2
  19. aws_cdk/aws_events/__init__.py +46 -25
  20. aws_cdk/aws_events_targets/__init__.py +341 -0
  21. aws_cdk/aws_fms/__init__.py +7 -7
  22. aws_cdk/aws_gamelift/__init__.py +261 -160
  23. aws_cdk/aws_iam/__init__.py +13 -8
  24. aws_cdk/aws_ivs/__init__.py +1 -3
  25. aws_cdk/aws_kms/__init__.py +11 -5
  26. aws_cdk/aws_lambda_nodejs/__init__.py +3 -0
  27. aws_cdk/aws_location/__init__.py +8 -4
  28. aws_cdk/aws_logs/__init__.py +6 -6
  29. aws_cdk/aws_oam/__init__.py +45 -11
  30. aws_cdk/aws_omics/__init__.py +4 -4
  31. aws_cdk/aws_paymentcryptography/__init__.py +128 -48
  32. aws_cdk/aws_pinpoint/__init__.py +7 -5
  33. aws_cdk/aws_qbusiness/__init__.py +620 -294
  34. aws_cdk/aws_quicksight/__init__.py +103 -40
  35. aws_cdk/aws_rds/__init__.py +80 -16
  36. aws_cdk/aws_route53profiles/__init__.py +49 -49
  37. aws_cdk/aws_s3/__init__.py +9 -2
  38. aws_cdk/aws_sagemaker/__init__.py +30 -30
  39. aws_cdk/aws_servicecatalog/__init__.py +27 -4
  40. aws_cdk/aws_ses/__init__.py +9 -9
  41. aws_cdk/aws_stepfunctions_tasks/__init__.py +7 -6
  42. aws_cdk/aws_transfer/__init__.py +4 -4
  43. aws_cdk/aws_voiceid/__init__.py +2 -2
  44. {aws_cdk_lib-2.140.0.dist-info → aws_cdk_lib-2.142.0.dist-info}/METADATA +10 -2
  45. {aws_cdk_lib-2.140.0.dist-info → aws_cdk_lib-2.142.0.dist-info}/RECORD +49 -49
  46. {aws_cdk_lib-2.140.0.dist-info → aws_cdk_lib-2.142.0.dist-info}/LICENSE +0 -0
  47. {aws_cdk_lib-2.140.0.dist-info → aws_cdk_lib-2.142.0.dist-info}/NOTICE +0 -0
  48. {aws_cdk_lib-2.140.0.dist-info → aws_cdk_lib-2.142.0.dist-info}/WHEEL +0 -0
  49. {aws_cdk_lib-2.140.0.dist-info → aws_cdk_lib-2.142.0.dist-info}/top_level.txt +0 -0
@@ -9389,7 +9389,6 @@ class CfnCustomerGateway(
9389
9389
 
9390
9390
  # the properties below are optional
9391
9391
  bgp_asn=123,
9392
- bgp_asn_extended=123,
9393
9392
  certificate_arn="certificateArn",
9394
9393
  device_name="deviceName",
9395
9394
  tags=[CfnTag(
@@ -9407,7 +9406,6 @@ class CfnCustomerGateway(
9407
9406
  ip_address: builtins.str,
9408
9407
  type: builtins.str,
9409
9408
  bgp_asn: typing.Optional[jsii.Number] = None,
9410
- bgp_asn_extended: typing.Optional[jsii.Number] = None,
9411
9409
  certificate_arn: typing.Optional[builtins.str] = None,
9412
9410
  device_name: typing.Optional[builtins.str] = None,
9413
9411
  tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
@@ -9418,7 +9416,6 @@ class CfnCustomerGateway(
9418
9416
  :param ip_address: IPv4 address for the customer gateway device's outside interface. The address must be static.
9419
9417
  :param type: The type of VPN connection that this customer gateway supports ( ``ipsec.1`` ).
9420
9418
  :param bgp_asn: For devices that support BGP, the customer gateway's BGP ASN. Default: 65000 Default: - 65000
9421
- :param bgp_asn_extended:
9422
9419
  :param certificate_arn: The Amazon Resource Name (ARN) for the customer gateway certificate.
9423
9420
  :param device_name: The name of customer gateway device.
9424
9421
  :param tags: One or more tags for the customer gateway.
@@ -9431,7 +9428,6 @@ class CfnCustomerGateway(
9431
9428
  ip_address=ip_address,
9432
9429
  type=type,
9433
9430
  bgp_asn=bgp_asn,
9434
- bgp_asn_extended=bgp_asn_extended,
9435
9431
  certificate_arn=certificate_arn,
9436
9432
  device_name=device_name,
9437
9433
  tags=tags,
@@ -9528,18 +9524,6 @@ class CfnCustomerGateway(
9528
9524
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
9529
9525
  jsii.set(self, "bgpAsn", value)
9530
9526
 
9531
- @builtins.property
9532
- @jsii.member(jsii_name="bgpAsnExtended")
9533
- def bgp_asn_extended(self) -> typing.Optional[jsii.Number]:
9534
- return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "bgpAsnExtended"))
9535
-
9536
- @bgp_asn_extended.setter
9537
- def bgp_asn_extended(self, value: typing.Optional[jsii.Number]) -> None:
9538
- if __debug__:
9539
- type_hints = typing.get_type_hints(_typecheckingstub__f41644d25c48e5c3c87a361ba478bdb4a18bf473fe1582fa35c6311f6d5284d8)
9540
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
9541
- jsii.set(self, "bgpAsnExtended", value)
9542
-
9543
9527
  @builtins.property
9544
9528
  @jsii.member(jsii_name="certificateArn")
9545
9529
  def certificate_arn(self) -> typing.Optional[builtins.str]:
@@ -9587,7 +9571,6 @@ class CfnCustomerGateway(
9587
9571
  "ip_address": "ipAddress",
9588
9572
  "type": "type",
9589
9573
  "bgp_asn": "bgpAsn",
9590
- "bgp_asn_extended": "bgpAsnExtended",
9591
9574
  "certificate_arn": "certificateArn",
9592
9575
  "device_name": "deviceName",
9593
9576
  "tags": "tags",
@@ -9600,7 +9583,6 @@ class CfnCustomerGatewayProps:
9600
9583
  ip_address: builtins.str,
9601
9584
  type: builtins.str,
9602
9585
  bgp_asn: typing.Optional[jsii.Number] = None,
9603
- bgp_asn_extended: typing.Optional[jsii.Number] = None,
9604
9586
  certificate_arn: typing.Optional[builtins.str] = None,
9605
9587
  device_name: typing.Optional[builtins.str] = None,
9606
9588
  tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
@@ -9610,7 +9592,6 @@ class CfnCustomerGatewayProps:
9610
9592
  :param ip_address: IPv4 address for the customer gateway device's outside interface. The address must be static.
9611
9593
  :param type: The type of VPN connection that this customer gateway supports ( ``ipsec.1`` ).
9612
9594
  :param bgp_asn: For devices that support BGP, the customer gateway's BGP ASN. Default: 65000 Default: - 65000
9613
- :param bgp_asn_extended:
9614
9595
  :param certificate_arn: The Amazon Resource Name (ARN) for the customer gateway certificate.
9615
9596
  :param device_name: The name of customer gateway device.
9616
9597
  :param tags: One or more tags for the customer gateway.
@@ -9630,7 +9611,6 @@ class CfnCustomerGatewayProps:
9630
9611
 
9631
9612
  # the properties below are optional
9632
9613
  bgp_asn=123,
9633
- bgp_asn_extended=123,
9634
9614
  certificate_arn="certificateArn",
9635
9615
  device_name="deviceName",
9636
9616
  tags=[CfnTag(
@@ -9644,7 +9624,6 @@ class CfnCustomerGatewayProps:
9644
9624
  check_type(argname="argument ip_address", value=ip_address, expected_type=type_hints["ip_address"])
9645
9625
  check_type(argname="argument type", value=type, expected_type=type_hints["type"])
9646
9626
  check_type(argname="argument bgp_asn", value=bgp_asn, expected_type=type_hints["bgp_asn"])
9647
- check_type(argname="argument bgp_asn_extended", value=bgp_asn_extended, expected_type=type_hints["bgp_asn_extended"])
9648
9627
  check_type(argname="argument certificate_arn", value=certificate_arn, expected_type=type_hints["certificate_arn"])
9649
9628
  check_type(argname="argument device_name", value=device_name, expected_type=type_hints["device_name"])
9650
9629
  check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
@@ -9654,8 +9633,6 @@ class CfnCustomerGatewayProps:
9654
9633
  }
9655
9634
  if bgp_asn is not None:
9656
9635
  self._values["bgp_asn"] = bgp_asn
9657
- if bgp_asn_extended is not None:
9658
- self._values["bgp_asn_extended"] = bgp_asn_extended
9659
9636
  if certificate_arn is not None:
9660
9637
  self._values["certificate_arn"] = certificate_arn
9661
9638
  if device_name is not None:
@@ -9698,14 +9675,6 @@ class CfnCustomerGatewayProps:
9698
9675
  result = self._values.get("bgp_asn")
9699
9676
  return typing.cast(typing.Optional[jsii.Number], result)
9700
9677
 
9701
- @builtins.property
9702
- def bgp_asn_extended(self) -> typing.Optional[jsii.Number]:
9703
- '''
9704
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-customergateway.html#cfn-ec2-customergateway-bgpasnextended
9705
- '''
9706
- result = self._values.get("bgp_asn_extended")
9707
- return typing.cast(typing.Optional[jsii.Number], result)
9708
-
9709
9678
  @builtins.property
9710
9679
  def certificate_arn(self) -> typing.Optional[builtins.str]:
9711
9680
  '''The Amazon Resource Name (ARN) for the customer gateway certificate.
@@ -19455,6 +19424,15 @@ class CfnInstance(
19455
19424
  '''
19456
19425
  return typing.cast(builtins.str, jsii.get(self, "attrPublicIp"))
19457
19426
 
19427
+ @builtins.property
19428
+ @jsii.member(jsii_name="attrState")
19429
+ def attr_state(self) -> _IResolvable_da3f097b:
19430
+ '''The current state of the instance.
19431
+
19432
+ :cloudformationAttribute: State
19433
+ '''
19434
+ return typing.cast(_IResolvable_da3f097b, jsii.get(self, "attrState"))
19435
+
19458
19436
  @builtins.property
19459
19437
  @jsii.member(jsii_name="attrVpcId")
19460
19438
  def attr_vpc_id(self) -> builtins.str:
@@ -21758,6 +21736,76 @@ class CfnInstance(
21758
21736
  k + "=" + repr(v) for k, v in self._values.items()
21759
21737
  )
21760
21738
 
21739
+ @jsii.data_type(
21740
+ jsii_type="aws-cdk-lib.aws_ec2.CfnInstance.StateProperty",
21741
+ jsii_struct_bases=[],
21742
+ name_mapping={"code": "code", "name": "name"},
21743
+ )
21744
+ class StateProperty:
21745
+ def __init__(
21746
+ self,
21747
+ *,
21748
+ code: typing.Optional[builtins.str] = None,
21749
+ name: typing.Optional[builtins.str] = None,
21750
+ ) -> None:
21751
+ '''The current state of the instance.
21752
+
21753
+ :param code: The state of the instance as a 16-bit unsigned integer.
21754
+ :param name: The current state of the instance.
21755
+
21756
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-state.html
21757
+ :exampleMetadata: fixture=_generated
21758
+
21759
+ Example::
21760
+
21761
+ # The code below shows an example of how to instantiate this type.
21762
+ # The values are placeholders you should change.
21763
+ from aws_cdk import aws_ec2 as ec2
21764
+
21765
+ state_property = ec2.CfnInstance.StateProperty(
21766
+ code="code",
21767
+ name="name"
21768
+ )
21769
+ '''
21770
+ if __debug__:
21771
+ type_hints = typing.get_type_hints(_typecheckingstub__9846fa72cbaae139f4b014952902793cafe1392ee629b0862fc35909f9ec8da2)
21772
+ check_type(argname="argument code", value=code, expected_type=type_hints["code"])
21773
+ check_type(argname="argument name", value=name, expected_type=type_hints["name"])
21774
+ self._values: typing.Dict[builtins.str, typing.Any] = {}
21775
+ if code is not None:
21776
+ self._values["code"] = code
21777
+ if name is not None:
21778
+ self._values["name"] = name
21779
+
21780
+ @builtins.property
21781
+ def code(self) -> typing.Optional[builtins.str]:
21782
+ '''The state of the instance as a 16-bit unsigned integer.
21783
+
21784
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-state.html#cfn-ec2-instance-state-code
21785
+ '''
21786
+ result = self._values.get("code")
21787
+ return typing.cast(typing.Optional[builtins.str], result)
21788
+
21789
+ @builtins.property
21790
+ def name(self) -> typing.Optional[builtins.str]:
21791
+ '''The current state of the instance.
21792
+
21793
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-state.html#cfn-ec2-instance-state-name
21794
+ '''
21795
+ result = self._values.get("name")
21796
+ return typing.cast(typing.Optional[builtins.str], result)
21797
+
21798
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
21799
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
21800
+
21801
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
21802
+ return not (rhs == self)
21803
+
21804
+ def __repr__(self) -> str:
21805
+ return "StateProperty(%s)" % ", ".join(
21806
+ k + "=" + repr(v) for k, v in self._values.items()
21807
+ )
21808
+
21761
21809
  @jsii.data_type(
21762
21810
  jsii_type="aws-cdk-lib.aws_ec2.CfnInstance.VolumeProperty",
21763
21811
  jsii_struct_bases=[],
@@ -27765,7 +27813,7 @@ class CfnLaunchTemplate(
27765
27813
  :param connection_tracking_specification: A connection tracking specification for the network interface.
27766
27814
  :param delete_on_termination: Indicates whether the network interface is deleted when the instance is terminated.
27767
27815
  :param description: A description for the network interface.
27768
- :param device_index: The device index for the network interface attachment.
27816
+ :param device_index: The device index for the network interface attachment. Each network interface requires a device index. If you create a launch template that includes secondary network interfaces but not a primary network interface, then you must add a primary network interface as a launch parameter when you launch an instance from the template.
27769
27817
  :param ena_srd_specification: The ENA Express configuration for the network interface.
27770
27818
  :param groups: The IDs of one or more security groups.
27771
27819
  :param interface_type: The type of network interface. To create an Elastic Fabric Adapter (EFA), specify ``efa`` . For more information, see `Elastic Fabric Adapter <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/efa.html>`_ in the *Amazon Elastic Compute Cloud User Guide* . If you are not creating an EFA, specify ``interface`` or omit this parameter. Valid values: ``interface`` | ``efa``
@@ -27966,6 +28014,8 @@ class CfnLaunchTemplate(
27966
28014
  def device_index(self) -> typing.Optional[jsii.Number]:
27967
28015
  '''The device index for the network interface attachment.
27968
28016
 
28017
+ Each network interface requires a device index. If you create a launch template that includes secondary network interfaces but not a primary network interface, then you must add a primary network interface as a launch parameter when you launch an instance from the template.
28018
+
27969
28019
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-deviceindex
27970
28020
  '''
27971
28021
  result = self._values.get("device_index")
@@ -73537,8 +73587,7 @@ class InstanceType(
73537
73587
  subnet_type=ec2.SubnetType.PUBLIC
73538
73588
  ),
73539
73589
  vpc=vpc,
73540
- removal_policy=RemovalPolicy.SNAPSHOT,
73541
- instance_removal_policy=RemovalPolicy.RETAIN
73590
+ ca_certificate=docdb.CaCertificate.RDS_CA_RSA4096_G1
73542
73591
  )
73543
73592
  '''
73544
73593
 
@@ -95028,7 +95077,6 @@ def _typecheckingstub__16b41182e007e05b84fd0c97afc1e26001e78a56de2eb5b10c9f809de
95028
95077
  ip_address: builtins.str,
95029
95078
  type: builtins.str,
95030
95079
  bgp_asn: typing.Optional[jsii.Number] = None,
95031
- bgp_asn_extended: typing.Optional[jsii.Number] = None,
95032
95080
  certificate_arn: typing.Optional[builtins.str] = None,
95033
95081
  device_name: typing.Optional[builtins.str] = None,
95034
95082
  tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
@@ -95066,12 +95114,6 @@ def _typecheckingstub__84dfb7d1775bd2bb124f990570c9a2ef23fafd01744cfe248fcb36056
95066
95114
  """Type checking stubs"""
95067
95115
  pass
95068
95116
 
95069
- def _typecheckingstub__f41644d25c48e5c3c87a361ba478bdb4a18bf473fe1582fa35c6311f6d5284d8(
95070
- value: typing.Optional[jsii.Number],
95071
- ) -> None:
95072
- """Type checking stubs"""
95073
- pass
95074
-
95075
95117
  def _typecheckingstub__4a4b900e840c5be3a2b16a5177f91335cf813daeca359e549a639cb05a03ac63(
95076
95118
  value: typing.Optional[builtins.str],
95077
95119
  ) -> None:
@@ -95095,7 +95137,6 @@ def _typecheckingstub__b0ef9a2e3e2b6937b21db500a1cd795126e924d9b920931a413ecdb66
95095
95137
  ip_address: builtins.str,
95096
95138
  type: builtins.str,
95097
95139
  bgp_asn: typing.Optional[jsii.Number] = None,
95098
- bgp_asn_extended: typing.Optional[jsii.Number] = None,
95099
95140
  certificate_arn: typing.Optional[builtins.str] = None,
95100
95141
  device_name: typing.Optional[builtins.str] = None,
95101
95142
  tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
@@ -96943,6 +96984,14 @@ def _typecheckingstub__3246e3302ff8df6b195439adc5ead244f95f45eca29b97351de498153
96943
96984
  """Type checking stubs"""
96944
96985
  pass
96945
96986
 
96987
+ def _typecheckingstub__9846fa72cbaae139f4b014952902793cafe1392ee629b0862fc35909f9ec8da2(
96988
+ *,
96989
+ code: typing.Optional[builtins.str] = None,
96990
+ name: typing.Optional[builtins.str] = None,
96991
+ ) -> None:
96992
+ """Type checking stubs"""
96993
+ pass
96994
+
96946
96995
  def _typecheckingstub__b979ff4b2e7bc79429f0409f1fb60a5125a9cda71770a0324082ebc0a6c50756(
96947
96996
  *,
96948
96997
  device: builtins.str,
@@ -219,6 +219,27 @@ repository.add_to_resource_policy(iam.PolicyStatement(
219
219
  principals=[iam.AnyPrincipal()]
220
220
  ))
221
221
  ```
222
+
223
+ ## CloudWatch event rules
224
+
225
+ You can publish repository events to a CloudWatch event rule with `onEvent`:
226
+
227
+ ```python
228
+ import aws_cdk.aws_lambda as lambda_
229
+ from aws_cdk.aws_events_targets import LambdaFunction
230
+
231
+
232
+ repo = ecr.Repository(self, "Repo")
233
+ lambda_handler = lambda_.Function(self, "LambdaFunction",
234
+ runtime=lambda_.Runtime.PYTHON_3_12,
235
+ code=lambda_.Code.from_inline("# dummy func"),
236
+ handler="index.handler"
237
+ )
238
+
239
+ repo.on_event("OnEventTargetLambda",
240
+ target=LambdaFunction(lambda_handler)
241
+ )
242
+ ```
222
243
  '''
223
244
  from pkgutil import extend_path
224
245
  __path__ = extend_path(__path__, __name__)
@@ -4664,15 +4685,19 @@ class Repository(
4664
4685
 
4665
4686
  Example::
4666
4687
 
4667
- import aws_cdk.aws_ecr as ecr
4688
+ import aws_cdk.aws_lambda as lambda_
4689
+ from aws_cdk.aws_events_targets import LambdaFunction
4668
4690
 
4669
4691
 
4670
- apprunner.Service(self, "Service",
4671
- source=apprunner.Source.from_ecr(
4672
- image_configuration=apprunner.ImageConfiguration(port=80),
4673
- repository=ecr.Repository.from_repository_name(self, "NginxRepository", "nginx"),
4674
- tag_or_digest="latest"
4675
- )
4692
+ repo = ecr.Repository(self, "Repo")
4693
+ lambda_handler = lambda_.Function(self, "LambdaFunction",
4694
+ runtime=lambda_.Runtime.PYTHON_3_12,
4695
+ code=lambda_.Code.from_inline("# dummy func"),
4696
+ handler="index.handler"
4697
+ )
4698
+
4699
+ repo.on_event("OnEventTargetLambda",
4700
+ target=LambdaFunction(lambda_handler)
4676
4701
  )
4677
4702
  '''
4678
4703
 
@@ -384,12 +384,13 @@ fargate_task_definition = ecs.FargateTaskDefinition(self, "TaskDef",
384
384
  ),
385
385
  memory_limit_mi_b=512,
386
386
  cpu=256,
387
- pid_mode=ecs.PidMode.HOST
387
+ pid_mode=ecs.PidMode.TASK
388
388
  )
389
389
  ```
390
390
 
391
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.
392
+ or later (Linux). Only the `task` option is supported for Linux containers. `pidMode` isn't supported for Windows containers on Fargate.
393
+ If `pidMode` is specified for a Fargate task, then `runtimePlatform.operatingSystemFamily` must also be specified.
393
394
 
394
395
  To add containers to a task definition, call `addContainer()`:
395
396
 
@@ -1971,6 +1972,7 @@ from ..aws_cloudwatch import (
1971
1972
  from ..aws_ec2 import (
1972
1973
  Connections as _Connections_0f31fce8,
1973
1974
  EbsDeviceVolumeType as _EbsDeviceVolumeType_6792555b,
1975
+ IKeyPair as _IKeyPair_bc344eda,
1974
1976
  IMachineImage as _IMachineImage_0e8bd50b,
1975
1977
  ISecurityGroup as _ISecurityGroup_acf8a799,
1976
1978
  IVpc as _IVpc_f30d5663,
@@ -2174,6 +2176,7 @@ class AddAutoScalingGroupCapacityOptions:
2174
2176
  "ignore_unmodified_size_properties": "ignoreUnmodifiedSizeProperties",
2175
2177
  "instance_monitoring": "instanceMonitoring",
2176
2178
  "key_name": "keyName",
2179
+ "key_pair": "keyPair",
2177
2180
  "max_capacity": "maxCapacity",
2178
2181
  "max_instance_lifetime": "maxInstanceLifetime",
2179
2182
  "min_capacity": "minCapacity",
@@ -2214,6 +2217,7 @@ class AddCapacityOptions(
2214
2217
  ignore_unmodified_size_properties: typing.Optional[builtins.bool] = None,
2215
2218
  instance_monitoring: typing.Optional[_Monitoring_50020f91] = None,
2216
2219
  key_name: typing.Optional[builtins.str] = None,
2220
+ key_pair: typing.Optional[_IKeyPair_bc344eda] = None,
2217
2221
  max_capacity: typing.Optional[jsii.Number] = None,
2218
2222
  max_instance_lifetime: typing.Optional[_Duration_4839e8c3] = None,
2219
2223
  min_capacity: typing.Optional[jsii.Number] = None,
@@ -2247,7 +2251,8 @@ class AddCapacityOptions(
2247
2251
  :param health_check: Configuration for health checks. Default: - HealthCheck.ec2 with no grace period
2248
2252
  :param ignore_unmodified_size_properties: If the ASG has scheduled actions, don't reset unchanged group sizes. Only used if the ASG has scheduled actions (which may scale your ASG up or down regardless of cdk deployments). If true, the size of the group will only be reset if it has been changed in the CDK app. If false, the sizes will always be changed back to what they were in the CDK app on deployment. Default: true
2249
2253
  :param instance_monitoring: Controls whether instances in this group are launched with detailed or basic monitoring. When detailed monitoring is enabled, Amazon CloudWatch generates metrics every minute and your account is charged a fee. When you disable detailed monitoring, CloudWatch generates metrics every 5 minutes. ``launchTemplate`` and ``mixedInstancesPolicy`` must not be specified when this property is specified Default: - Monitoring.DETAILED
2250
- :param key_name: Name of SSH keypair to grant access to instances. ``launchTemplate`` and ``mixedInstancesPolicy`` must not be specified when this property is specified Default: - No SSH access will be possible.
2254
+ :param key_name: (deprecated) Name of SSH keypair to grant access to instances. ``launchTemplate`` and ``mixedInstancesPolicy`` must not be specified when this property is specified You can either specify ``keyPair`` or ``keyName``, not both. Default: - No SSH access will be possible.
2255
+ :param key_pair: The SSH keypair to grant access to the instance. Feature flag ``AUTOSCALING_GENERATE_LAUNCH_TEMPLATE`` must be enabled to use this property. ``launchTemplate`` and ``mixedInstancesPolicy`` must not be specified when this property is specified. You can either specify ``keyPair`` or ``keyName``, not both. Default: - No SSH access will be possible.
2251
2256
  :param max_capacity: Maximum number of instances in the fleet. Default: desiredCapacity
2252
2257
  :param max_instance_lifetime: The maximum amount of time that an instance can be in service. The maximum duration applies to all current and future instances in the group. As an instance approaches its maximum duration, it is terminated and replaced, and cannot be used again. You must specify a value of at least 604,800 seconds (7 days). To clear a previously set value, leave this property undefined. Default: none
2253
2258
  :param min_capacity: Minimum number of instances in the fleet. Default: 1
@@ -2297,6 +2302,7 @@ class AddCapacityOptions(
2297
2302
  check_type(argname="argument ignore_unmodified_size_properties", value=ignore_unmodified_size_properties, expected_type=type_hints["ignore_unmodified_size_properties"])
2298
2303
  check_type(argname="argument instance_monitoring", value=instance_monitoring, expected_type=type_hints["instance_monitoring"])
2299
2304
  check_type(argname="argument key_name", value=key_name, expected_type=type_hints["key_name"])
2305
+ check_type(argname="argument key_pair", value=key_pair, expected_type=type_hints["key_pair"])
2300
2306
  check_type(argname="argument max_capacity", value=max_capacity, expected_type=type_hints["max_capacity"])
2301
2307
  check_type(argname="argument max_instance_lifetime", value=max_instance_lifetime, expected_type=type_hints["max_instance_lifetime"])
2302
2308
  check_type(argname="argument min_capacity", value=min_capacity, expected_type=type_hints["min_capacity"])
@@ -2348,6 +2354,8 @@ class AddCapacityOptions(
2348
2354
  self._values["instance_monitoring"] = instance_monitoring
2349
2355
  if key_name is not None:
2350
2356
  self._values["key_name"] = key_name
2357
+ if key_pair is not None:
2358
+ self._values["key_pair"] = key_pair
2351
2359
  if max_capacity is not None:
2352
2360
  self._values["max_capacity"] = max_capacity
2353
2361
  if max_instance_lifetime is not None:
@@ -2582,15 +2590,36 @@ class AddCapacityOptions(
2582
2590
 
2583
2591
  @builtins.property
2584
2592
  def key_name(self) -> typing.Optional[builtins.str]:
2585
- '''Name of SSH keypair to grant access to instances.
2593
+ '''(deprecated) Name of SSH keypair to grant access to instances.
2586
2594
 
2587
2595
  ``launchTemplate`` and ``mixedInstancesPolicy`` must not be specified when this property is specified
2588
2596
 
2597
+ You can either specify ``keyPair`` or ``keyName``, not both.
2598
+
2589
2599
  :default: - No SSH access will be possible.
2600
+
2601
+ :deprecated: - Use ``keyPair`` instead - https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2-readme.html#using-an-existing-ec2-key-pair
2602
+
2603
+ :stability: deprecated
2590
2604
  '''
2591
2605
  result = self._values.get("key_name")
2592
2606
  return typing.cast(typing.Optional[builtins.str], result)
2593
2607
 
2608
+ @builtins.property
2609
+ def key_pair(self) -> typing.Optional[_IKeyPair_bc344eda]:
2610
+ '''The SSH keypair to grant access to the instance.
2611
+
2612
+ Feature flag ``AUTOSCALING_GENERATE_LAUNCH_TEMPLATE`` must be enabled to use this property.
2613
+
2614
+ ``launchTemplate`` and ``mixedInstancesPolicy`` must not be specified when this property is specified.
2615
+
2616
+ You can either specify ``keyPair`` or ``keyName``, not both.
2617
+
2618
+ :default: - No SSH access will be possible.
2619
+ '''
2620
+ result = self._values.get("key_pair")
2621
+ return typing.cast(typing.Optional[_IKeyPair_bc344eda], result)
2622
+
2594
2623
  @builtins.property
2595
2624
  def max_capacity(self) -> typing.Optional[jsii.Number]:
2596
2625
  '''Maximum number of instances in the fleet.
@@ -26056,7 +26085,7 @@ class FargateTaskDefinitionProps(CommonTaskDefinitionProps):
26056
26085
  :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
26057
26086
  :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
26058
26087
  :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
26059
- :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
26088
+ :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). Only the TASK option is supported for Linux-based Fargate containers. Not supported in Windows containers. If pidMode is specified for a Fargate task, then runtimePlatform.operatingSystemFamily must also be specified. For more information, see `Task Definition Parameters <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#task_definition_pidmode>`_. Default: - PidMode used by the task is not specified
26060
26089
  :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.
26061
26090
 
26062
26091
  :exampleMetadata: infused
@@ -26070,7 +26099,7 @@ class FargateTaskDefinitionProps(CommonTaskDefinitionProps):
26070
26099
  ),
26071
26100
  memory_limit_mi_b=512,
26072
26101
  cpu=256,
26073
- pid_mode=ecs.PidMode.HOST
26102
+ pid_mode=ecs.PidMode.TASK
26074
26103
  )
26075
26104
  '''
26076
26105
  if isinstance(runtime_platform, dict):
@@ -26232,8 +26261,11 @@ class FargateTaskDefinitionProps(CommonTaskDefinitionProps):
26232
26261
  '''The process namespace to use for the containers in the task.
26233
26262
 
26234
26263
  Only supported for tasks that are hosted on AWS Fargate if the tasks
26235
- are using platform version 1.4.0 or later (Linux).
26236
- Not supported in Windows containers.
26264
+ are using platform version 1.4.0 or later (Linux). Only the TASK option
26265
+ is supported for Linux-based Fargate containers. Not supported in
26266
+ Windows containers. If pidMode is specified for a Fargate task, then
26267
+ runtimePlatform.operatingSystemFamily must also be specified. For more
26268
+ information, see `Task Definition Parameters <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#task_definition_pidmode>`_.
26237
26269
 
26238
26270
  :default: - PidMode used by the task is not specified
26239
26271
  '''
@@ -31351,9 +31383,14 @@ class OperatingSystemFamily(
31351
31383
  check_type(argname="argument family", value=family, expected_type=type_hints["family"])
31352
31384
  return typing.cast("OperatingSystemFamily", jsii.sinvoke(cls, "of", [family]))
31353
31385
 
31386
+ @jsii.member(jsii_name="isLinux")
31387
+ def is_linux(self) -> builtins.bool:
31388
+ '''Indicates whether the operating system family is Linux.'''
31389
+ return typing.cast(builtins.bool, jsii.invoke(self, "isLinux", []))
31390
+
31354
31391
  @jsii.member(jsii_name="isWindows")
31355
31392
  def is_windows(self) -> builtins.bool:
31356
- '''Returns true if the operating system family is Windows.'''
31393
+ '''Indicates whether the operating system family is Windows.'''
31357
31394
  return typing.cast(builtins.bool, jsii.invoke(self, "isWindows", []))
31358
31395
 
31359
31396
  @jsii.python.classproperty
@@ -31420,7 +31457,7 @@ class PidMode(enum.Enum):
31420
31457
  ),
31421
31458
  memory_limit_mi_b=512,
31422
31459
  cpu=256,
31423
- pid_mode=ecs.PidMode.HOST
31460
+ pid_mode=ecs.PidMode.TASK
31424
31461
  )
31425
31462
  '''
31426
31463
 
@@ -35190,7 +35227,7 @@ class TaskDefinition(
35190
35227
  :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
35191
35228
  :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.
35192
35229
  :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.
35193
- :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
35230
+ :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). Only the TASK option is supported for Linux-based Fargate containers. Not supported in Windows containers. If pidMode is specified for a Fargate task, then runtimePlatform.operatingSystemFamily must also be specified. For more information, see `Task Definition Parameters <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#task_definition_pidmode>`_. Default: - PidMode used by the task is not specified
35194
35231
  :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.
35195
35232
  :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.
35196
35233
  :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.
@@ -35766,8 +35803,10 @@ class TaskDefinition(
35766
35803
  '''The process namespace to use for the containers in the task.
35767
35804
 
35768
35805
  Only supported for tasks that are hosted on AWS Fargate if the tasks
35769
- are using platform version 1.4.0 or later (Linux).
35770
- Not supported in Windows containers.
35806
+ are using platform version 1.4.0 or later (Linux). Not supported in
35807
+ Windows containers. If pidMode is specified for a Fargate task,
35808
+ then runtimePlatform.operatingSystemFamily must also be specified. For more
35809
+ information, see `Task Definition Parameters <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#task_definition_pidmode>`_.
35771
35810
  '''
35772
35811
  return typing.cast(typing.Optional[PidMode], jsii.get(self, "pidMode"))
35773
35812
 
@@ -35977,7 +36016,7 @@ class TaskDefinitionProps(CommonTaskDefinitionProps):
35977
36016
  :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
35978
36017
  :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.
35979
36018
  :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.
35980
- :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
36019
+ :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). Only the TASK option is supported for Linux-based Fargate containers. Not supported in Windows containers. If pidMode is specified for a Fargate task, then runtimePlatform.operatingSystemFamily must also be specified. For more information, see `Task Definition Parameters <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#task_definition_pidmode>`_. Default: - PidMode used by the task is not specified
35981
36020
  :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.
35982
36021
  :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.
35983
36022
 
@@ -36230,8 +36269,11 @@ class TaskDefinitionProps(CommonTaskDefinitionProps):
36230
36269
  '''The process namespace to use for the containers in the task.
36231
36270
 
36232
36271
  Only supported for tasks that are hosted on AWS Fargate if the tasks
36233
- are using platform version 1.4.0 or later (Linux).
36234
- Not supported in Windows containers.
36272
+ are using platform version 1.4.0 or later (Linux). Only the TASK option
36273
+ is supported for Linux-based Fargate containers. Not supported in Windows
36274
+ containers. If pidMode is specified for a Fargate task, then
36275
+ runtimePlatform.operatingSystemFamily must also be specified. For more
36276
+ information, see `Task Definition Parameters <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#task_definition_pidmode>`_.
36235
36277
 
36236
36278
  :default: - PidMode used by the task is not specified
36237
36279
  '''
@@ -37649,6 +37691,7 @@ class Cluster(
37649
37691
  ignore_unmodified_size_properties: typing.Optional[builtins.bool] = None,
37650
37692
  instance_monitoring: typing.Optional[_Monitoring_50020f91] = None,
37651
37693
  key_name: typing.Optional[builtins.str] = None,
37694
+ key_pair: typing.Optional[_IKeyPair_bc344eda] = None,
37652
37695
  max_capacity: typing.Optional[jsii.Number] = None,
37653
37696
  max_instance_lifetime: typing.Optional[_Duration_4839e8c3] = None,
37654
37697
  min_capacity: typing.Optional[jsii.Number] = None,
@@ -37687,7 +37730,8 @@ class Cluster(
37687
37730
  :param health_check: Configuration for health checks. Default: - HealthCheck.ec2 with no grace period
37688
37731
  :param ignore_unmodified_size_properties: If the ASG has scheduled actions, don't reset unchanged group sizes. Only used if the ASG has scheduled actions (which may scale your ASG up or down regardless of cdk deployments). If true, the size of the group will only be reset if it has been changed in the CDK app. If false, the sizes will always be changed back to what they were in the CDK app on deployment. Default: true
37689
37732
  :param instance_monitoring: Controls whether instances in this group are launched with detailed or basic monitoring. When detailed monitoring is enabled, Amazon CloudWatch generates metrics every minute and your account is charged a fee. When you disable detailed monitoring, CloudWatch generates metrics every 5 minutes. ``launchTemplate`` and ``mixedInstancesPolicy`` must not be specified when this property is specified Default: - Monitoring.DETAILED
37690
- :param key_name: Name of SSH keypair to grant access to instances. ``launchTemplate`` and ``mixedInstancesPolicy`` must not be specified when this property is specified Default: - No SSH access will be possible.
37733
+ :param key_name: (deprecated) Name of SSH keypair to grant access to instances. ``launchTemplate`` and ``mixedInstancesPolicy`` must not be specified when this property is specified You can either specify ``keyPair`` or ``keyName``, not both. Default: - No SSH access will be possible.
37734
+ :param key_pair: The SSH keypair to grant access to the instance. Feature flag ``AUTOSCALING_GENERATE_LAUNCH_TEMPLATE`` must be enabled to use this property. ``launchTemplate`` and ``mixedInstancesPolicy`` must not be specified when this property is specified. You can either specify ``keyPair`` or ``keyName``, not both. Default: - No SSH access will be possible.
37691
37735
  :param max_capacity: Maximum number of instances in the fleet. Default: desiredCapacity
37692
37736
  :param max_instance_lifetime: The maximum amount of time that an instance can be in service. The maximum duration applies to all current and future instances in the group. As an instance approaches its maximum duration, it is terminated and replaced, and cannot be used again. You must specify a value of at least 604,800 seconds (7 days). To clear a previously set value, leave this property undefined. Default: none
37693
37737
  :param min_capacity: Minimum number of instances in the fleet. Default: 1
@@ -37724,6 +37768,7 @@ class Cluster(
37724
37768
  ignore_unmodified_size_properties=ignore_unmodified_size_properties,
37725
37769
  instance_monitoring=instance_monitoring,
37726
37770
  key_name=key_name,
37771
+ key_pair=key_pair,
37727
37772
  max_capacity=max_capacity,
37728
37773
  max_instance_lifetime=max_instance_lifetime,
37729
37774
  min_capacity=min_capacity,
@@ -40506,7 +40551,7 @@ class FargateTaskDefinition(
40506
40551
  :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
40507
40552
  :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
40508
40553
  :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
40509
- :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
40554
+ :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). Only the TASK option is supported for Linux-based Fargate containers. Not supported in Windows containers. If pidMode is specified for a Fargate task, then runtimePlatform.operatingSystemFamily must also be specified. For more information, see `Task Definition Parameters <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#task_definition_pidmode>`_. Default: - PidMode used by the task is not specified
40510
40555
  :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.
40511
40556
  :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.
40512
40557
  :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.
@@ -40839,6 +40884,7 @@ def _typecheckingstub__64f2d9b3495e3be78346f77d5ad90928968c8ce230e670b6279dc67ad
40839
40884
  ignore_unmodified_size_properties: typing.Optional[builtins.bool] = None,
40840
40885
  instance_monitoring: typing.Optional[_Monitoring_50020f91] = None,
40841
40886
  key_name: typing.Optional[builtins.str] = None,
40887
+ key_pair: typing.Optional[_IKeyPair_bc344eda] = None,
40842
40888
  max_capacity: typing.Optional[jsii.Number] = None,
40843
40889
  max_instance_lifetime: typing.Optional[_Duration_4839e8c3] = None,
40844
40890
  min_capacity: typing.Optional[jsii.Number] = None,
@@ -44488,6 +44534,7 @@ def _typecheckingstub__63e98e008463515927d4aee3c938d64639e34ce8a2c09fa766883be6a
44488
44534
  ignore_unmodified_size_properties: typing.Optional[builtins.bool] = None,
44489
44535
  instance_monitoring: typing.Optional[_Monitoring_50020f91] = None,
44490
44536
  key_name: typing.Optional[builtins.str] = None,
44537
+ key_pair: typing.Optional[_IKeyPair_bc344eda] = None,
44491
44538
  max_capacity: typing.Optional[jsii.Number] = None,
44492
44539
  max_instance_lifetime: typing.Optional[_Duration_4839e8c3] = None,
44493
44540
  min_capacity: typing.Optional[jsii.Number] = None,