aws-cdk-lib 2.194.0__py3-none-any.whl → 2.196.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 (108) hide show
  1. aws_cdk/__init__.py +435 -20
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.194.0.jsii.tgz → aws-cdk-lib@2.196.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_acmpca/__init__.py +1 -1
  5. aws_cdk/aws_amazonmq/__init__.py +2 -2
  6. aws_cdk/aws_apigateway/__init__.py +208 -70
  7. aws_cdk/aws_apigatewayv2/__init__.py +155 -24
  8. aws_cdk/aws_appconfig/__init__.py +24 -0
  9. aws_cdk/aws_applicationautoscaling/__init__.py +6 -0
  10. aws_cdk/aws_appmesh/__init__.py +42 -0
  11. aws_cdk/aws_appsync/__init__.py +92 -20
  12. aws_cdk/aws_autoscaling/__init__.py +24 -0
  13. aws_cdk/aws_backup/__init__.py +53 -14
  14. aws_cdk/aws_batch/__init__.py +72 -0
  15. aws_cdk/aws_bedrock/__init__.py +1201 -18
  16. aws_cdk/aws_budgets/__init__.py +569 -0
  17. aws_cdk/aws_certificatemanager/__init__.py +21 -0
  18. aws_cdk/aws_chatbot/__init__.py +6 -0
  19. aws_cdk/aws_cloudfront/__init__.py +277 -120
  20. aws_cdk/aws_cloudfront/experimental/__init__.py +6 -0
  21. aws_cdk/aws_cloudtrail/__init__.py +6 -0
  22. aws_cdk/aws_cloudwatch/__init__.py +18 -0
  23. aws_cdk/aws_cloudwatch_actions/__init__.py +75 -1
  24. aws_cdk/aws_codebuild/__init__.py +48 -0
  25. aws_cdk/aws_codecommit/__init__.py +6 -0
  26. aws_cdk/aws_codedeploy/__init__.py +63 -0
  27. aws_cdk/aws_codeguruprofiler/__init__.py +6 -0
  28. aws_cdk/aws_codepipeline/__init__.py +114 -0
  29. aws_cdk/aws_codepipeline_actions/__init__.py +4 -4
  30. aws_cdk/aws_codestarnotifications/__init__.py +6 -0
  31. aws_cdk/aws_cognito/__init__.py +215 -10
  32. aws_cdk/aws_cognito_identitypool/__init__.py +6 -0
  33. aws_cdk/aws_config/__init__.py +36 -0
  34. aws_cdk/aws_datazone/__init__.py +1013 -100
  35. aws_cdk/aws_docdb/__init__.py +27 -3
  36. aws_cdk/aws_dsql/__init__.py +29 -12
  37. aws_cdk/aws_dynamodb/__init__.py +25 -11
  38. aws_cdk/aws_ec2/__init__.py +408 -23
  39. aws_cdk/aws_ecr/__init__.py +22 -14
  40. aws_cdk/aws_ecr_assets/__init__.py +6 -0
  41. aws_cdk/aws_ecs/__init__.py +116 -34
  42. aws_cdk/aws_ecs_patterns/__init__.py +58 -0
  43. aws_cdk/aws_efs/__init__.py +12 -0
  44. aws_cdk/aws_eks/__init__.py +42 -0
  45. aws_cdk/aws_elasticloadbalancing/__init__.py +6 -0
  46. aws_cdk/aws_elasticloadbalancingv2/__init__.py +112 -9
  47. aws_cdk/aws_elasticsearch/__init__.py +9 -0
  48. aws_cdk/aws_events/__init__.py +36 -0
  49. aws_cdk/aws_events_targets/__init__.py +10 -10
  50. aws_cdk/aws_fsx/__init__.py +8 -3
  51. aws_cdk/aws_globalaccelerator/__init__.py +18 -0
  52. aws_cdk/aws_iam/__init__.py +66 -0
  53. aws_cdk/aws_imagebuilder/__init__.py +181 -26
  54. aws_cdk/aws_inspector/__init__.py +6 -0
  55. aws_cdk/aws_kinesis/__init__.py +19 -1
  56. aws_cdk/aws_kinesisanalytics/__init__.py +7 -7
  57. aws_cdk/aws_kinesisanalyticsv2/__init__.py +7 -7
  58. aws_cdk/aws_kinesisfirehose/__init__.py +6 -0
  59. aws_cdk/aws_kms/__init__.py +16 -4
  60. aws_cdk/aws_lambda/__init__.py +76 -6
  61. aws_cdk/aws_lambda_nodejs/__init__.py +6 -0
  62. aws_cdk/aws_logs/__init__.py +155 -12
  63. aws_cdk/aws_medialive/__init__.py +4 -6
  64. aws_cdk/aws_mediatailor/__init__.py +115 -0
  65. aws_cdk/aws_oam/__init__.py +43 -10
  66. aws_cdk/aws_opensearchservice/__init__.py +12 -0
  67. aws_cdk/aws_qbusiness/__init__.py +2 -2
  68. aws_cdk/aws_quicksight/__init__.py +22 -22
  69. aws_cdk/aws_rds/__init__.py +347 -36
  70. aws_cdk/aws_redshiftserverless/__init__.py +7 -7
  71. aws_cdk/aws_route53/__init__.py +735 -33
  72. aws_cdk/aws_route53_targets/__init__.py +62 -1
  73. aws_cdk/aws_route53profiles/__init__.py +1 -1
  74. aws_cdk/aws_s3/__init__.py +37 -10
  75. aws_cdk/aws_s3_deployment/__init__.py +6 -0
  76. aws_cdk/aws_s3_notifications/__init__.py +5 -5
  77. aws_cdk/aws_sagemaker/__init__.py +452 -8
  78. aws_cdk/aws_scheduler/__init__.py +12 -0
  79. aws_cdk/aws_secretsmanager/__init__.py +24 -0
  80. aws_cdk/aws_servicecatalog/__init__.py +24 -0
  81. aws_cdk/aws_servicediscovery/__init__.py +48 -0
  82. aws_cdk/aws_ses/__init__.py +133 -33
  83. aws_cdk/aws_signer/__init__.py +6 -0
  84. aws_cdk/aws_sns/__init__.py +18 -0
  85. aws_cdk/aws_sns_subscriptions/__init__.py +6 -0
  86. aws_cdk/aws_sqs/__init__.py +12 -0
  87. aws_cdk/aws_ssm/__init__.py +12 -0
  88. aws_cdk/aws_ssmcontacts/__init__.py +53 -2
  89. aws_cdk/aws_ssmguiconnect/__init__.py +544 -0
  90. aws_cdk/aws_stepfunctions/__init__.py +153 -7
  91. aws_cdk/aws_stepfunctions_tasks/__init__.py +46 -10
  92. aws_cdk/aws_synthetics/__init__.py +32 -0
  93. aws_cdk/aws_verifiedpermissions/__init__.py +168 -3
  94. aws_cdk/aws_vpclattice/__init__.py +3 -1
  95. aws_cdk/aws_wisdom/__init__.py +6 -4
  96. aws_cdk/cloud_assembly_schema/__init__.py +7 -1
  97. aws_cdk/custom_resources/__init__.py +18 -0
  98. aws_cdk/cx_api/__init__.py +33 -0
  99. aws_cdk/lambda_layer_awscli/__init__.py +6 -0
  100. aws_cdk/lambda_layer_node_proxy_agent/__init__.py +6 -0
  101. aws_cdk/pipelines/__init__.py +10 -10
  102. aws_cdk/triggers/__init__.py +6 -0
  103. {aws_cdk_lib-2.194.0.dist-info → aws_cdk_lib-2.196.0.dist-info}/METADATA +84 -6
  104. {aws_cdk_lib-2.194.0.dist-info → aws_cdk_lib-2.196.0.dist-info}/RECORD +108 -107
  105. {aws_cdk_lib-2.194.0.dist-info → aws_cdk_lib-2.196.0.dist-info}/LICENSE +0 -0
  106. {aws_cdk_lib-2.194.0.dist-info → aws_cdk_lib-2.196.0.dist-info}/NOTICE +0 -0
  107. {aws_cdk_lib-2.194.0.dist-info → aws_cdk_lib-2.196.0.dist-info}/WHEEL +0 -0
  108. {aws_cdk_lib-2.194.0.dist-info → aws_cdk_lib-2.196.0.dist-info}/top_level.txt +0 -0
@@ -1254,9 +1254,7 @@ class CfnRegistryScanningConfiguration(
1254
1254
  metaclass=jsii.JSIIMeta,
1255
1255
  jsii_type="aws-cdk-lib.aws_ecr.CfnRegistryScanningConfiguration",
1256
1256
  ):
1257
- '''The AWS::ECR::RegistryScanningConfiguration controls the scanning configuration for an Amazon Elastic Container Registry (Amazon Private ECR).
1258
-
1259
- For more information, see https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning.html
1257
+ '''The scanning configuration for a private registry.
1260
1258
 
1261
1259
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-registryscanningconfiguration.html
1262
1260
  :cloudformationResource: AWS::ECR::RegistryScanningConfiguration
@@ -1291,7 +1289,7 @@ class CfnRegistryScanningConfiguration(
1291
1289
  '''
1292
1290
  :param scope: Scope in which this resource is defined.
1293
1291
  :param id: Construct identifier for this resource (unique in its scope).
1294
- :param rules: The scanning rules associated with the registry. A registry scanning configuration may contain a maximum of 2 rules.
1292
+ :param rules: The scanning rules associated with the registry.
1295
1293
  :param scan_type: The type of scanning configured for the registry.
1296
1294
  '''
1297
1295
  if __debug__:
@@ -1335,7 +1333,7 @@ class CfnRegistryScanningConfiguration(
1335
1333
  @builtins.property
1336
1334
  @jsii.member(jsii_name="attrRegistryId")
1337
1335
  def attr_registry_id(self) -> builtins.str:
1338
- '''The registry id.
1336
+ '''The account ID of the destination registry.
1339
1337
 
1340
1338
  :cloudformationAttribute: RegistryId
1341
1339
  '''
@@ -1384,7 +1382,9 @@ class CfnRegistryScanningConfiguration(
1384
1382
  )
1385
1383
  class RepositoryFilterProperty:
1386
1384
  def __init__(self, *, filter: builtins.str, filter_type: builtins.str) -> None:
1387
- '''The details of a scanning repository filter.
1385
+ '''The filter settings used with image replication.
1386
+
1387
+ Specifying a repository filter to a replication rule provides a method for controlling which repositories in a private registry are replicated. If no filters are added, the contents of all repositories are replicated.
1388
1388
 
1389
1389
  :param filter: The filter to use when scanning.
1390
1390
  :param filter_type: The type associated with the filter.
@@ -1458,10 +1458,10 @@ class CfnRegistryScanningConfiguration(
1458
1458
  repository_filters: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnRegistryScanningConfiguration.RepositoryFilterProperty", typing.Dict[builtins.str, typing.Any]]]]],
1459
1459
  scan_frequency: builtins.str,
1460
1460
  ) -> None:
1461
- '''A rule representing the details of a scanning configuration.
1461
+ '''The scanning rules associated with the registry.
1462
1462
 
1463
- :param repository_filters: The repository filters associated with the scanning configuration for a private registry.
1464
- :param scan_frequency: The frequency that scans are performed.
1463
+ :param repository_filters: The details of a scanning repository filter. For more information on how to use filters, see `Using filters <https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning.html#image-scanning-filters>`_ in the *Amazon Elastic Container Registry User Guide* .
1464
+ :param scan_frequency: The frequency that scans are performed at for a private registry. When the ``ENHANCED`` scan type is specified, the supported scan frequencies are ``CONTINUOUS_SCAN`` and ``SCAN_ON_PUSH`` . When the ``BASIC`` scan type is specified, the ``SCAN_ON_PUSH`` scan frequency is supported. If scan on push is not specified, then the ``MANUAL`` scan frequency is set by default.
1465
1465
 
1466
1466
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-registryscanningconfiguration-scanningrule.html
1467
1467
  :exampleMetadata: fixture=_generated
@@ -1493,7 +1493,9 @@ class CfnRegistryScanningConfiguration(
1493
1493
  def repository_filters(
1494
1494
  self,
1495
1495
  ) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnRegistryScanningConfiguration.RepositoryFilterProperty"]]]:
1496
- '''The repository filters associated with the scanning configuration for a private registry.
1496
+ '''The details of a scanning repository filter.
1497
+
1498
+ For more information on how to use filters, see `Using filters <https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning.html#image-scanning-filters>`_ in the *Amazon Elastic Container Registry User Guide* .
1497
1499
 
1498
1500
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-registryscanningconfiguration-scanningrule.html#cfn-ecr-registryscanningconfiguration-scanningrule-repositoryfilters
1499
1501
  '''
@@ -1503,7 +1505,9 @@ class CfnRegistryScanningConfiguration(
1503
1505
 
1504
1506
  @builtins.property
1505
1507
  def scan_frequency(self) -> builtins.str:
1506
- '''The frequency that scans are performed.
1508
+ '''The frequency that scans are performed at for a private registry.
1509
+
1510
+ When the ``ENHANCED`` scan type is specified, the supported scan frequencies are ``CONTINUOUS_SCAN`` and ``SCAN_ON_PUSH`` . When the ``BASIC`` scan type is specified, the ``SCAN_ON_PUSH`` scan frequency is supported. If scan on push is not specified, then the ``MANUAL`` scan frequency is set by default.
1507
1511
 
1508
1512
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-registryscanningconfiguration-scanningrule.html#cfn-ecr-registryscanningconfiguration-scanningrule-scanfrequency
1509
1513
  '''
@@ -1537,7 +1541,7 @@ class CfnRegistryScanningConfigurationProps:
1537
1541
  ) -> None:
1538
1542
  '''Properties for defining a ``CfnRegistryScanningConfiguration``.
1539
1543
 
1540
- :param rules: The scanning rules associated with the registry. A registry scanning configuration may contain a maximum of 2 rules.
1544
+ :param rules: The scanning rules associated with the registry.
1541
1545
  :param scan_type: The type of scanning configured for the registry.
1542
1546
 
1543
1547
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-registryscanningconfiguration.html
@@ -1575,8 +1579,6 @@ class CfnRegistryScanningConfigurationProps:
1575
1579
  ) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnRegistryScanningConfiguration.ScanningRuleProperty]]]:
1576
1580
  '''The scanning rules associated with the registry.
1577
1581
 
1578
- A registry scanning configuration may contain a maximum of 2 rules.
1579
-
1580
1582
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-registryscanningconfiguration.html#cfn-ecr-registryscanningconfiguration-rules
1581
1583
  '''
1582
1584
  result = self._values.get("rules")
@@ -5532,6 +5534,12 @@ class Repository(
5532
5534
  check_type(argname="argument statement", value=statement, expected_type=type_hints["statement"])
5533
5535
  return typing.cast(_AddToResourcePolicyResult_1d0a53ad, jsii.invoke(self, "addToResourcePolicy", [statement]))
5534
5536
 
5537
+ @jsii.python.classproperty
5538
+ @jsii.member(jsii_name="PROPERTY_INJECTION_ID")
5539
+ def PROPERTY_INJECTION_ID(cls) -> builtins.str:
5540
+ '''Uniquely identifies this class.'''
5541
+ return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
5542
+
5535
5543
  @builtins.property
5536
5544
  @jsii.member(jsii_name="repositoryArn")
5537
5545
  def repository_arn(self) -> builtins.str:
@@ -487,6 +487,12 @@ class DockerImageAsset(
487
487
  check_type(argname="argument resource_property", value=resource_property, expected_type=type_hints["resource_property"])
488
488
  return typing.cast(None, jsii.invoke(self, "addResourceMetadata", [resource, resource_property]))
489
489
 
490
+ @jsii.python.classproperty
491
+ @jsii.member(jsii_name="PROPERTY_INJECTION_ID")
492
+ def PROPERTY_INJECTION_ID(cls) -> builtins.str:
493
+ '''Uniquely identifies this class.'''
494
+ return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
495
+
490
496
  @builtins.property
491
497
  @jsii.member(jsii_name="assetHash")
492
498
  def asset_hash(self) -> builtins.str:
@@ -3611,6 +3611,12 @@ class AsgCapacityProvider(
3611
3611
 
3612
3612
  jsii.create(self.__class__, self, [scope, id, props])
3613
3613
 
3614
+ @jsii.python.classproperty
3615
+ @jsii.member(jsii_name="PROPERTY_INJECTION_ID")
3616
+ def PROPERTY_INJECTION_ID(cls) -> builtins.str:
3617
+ '''Uniquely identifies this class.'''
3618
+ return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
3619
+
3614
3620
  @builtins.property
3615
3621
  @jsii.member(jsii_name="autoScalingGroup")
3616
3622
  def auto_scaling_group(self) -> _AutoScalingGroup_c547a7b9:
@@ -8626,6 +8632,7 @@ class CfnService(
8626
8632
  )]
8627
8633
  )],
8628
8634
  throughput=123,
8635
+ volume_initialization_rate=123,
8629
8636
  volume_type="volumeType"
8630
8637
  )
8631
8638
  )],
@@ -11142,6 +11149,7 @@ class CfnService(
11142
11149
  "snapshot_id": "snapshotId",
11143
11150
  "tag_specifications": "tagSpecifications",
11144
11151
  "throughput": "throughput",
11152
+ "volume_initialization_rate": "volumeInitializationRate",
11145
11153
  "volume_type": "volumeType",
11146
11154
  },
11147
11155
  )
@@ -11158,6 +11166,7 @@ class CfnService(
11158
11166
  snapshot_id: typing.Optional[builtins.str] = None,
11159
11167
  tag_specifications: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnService.EBSTagSpecificationProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
11160
11168
  throughput: typing.Optional[jsii.Number] = None,
11169
+ volume_initialization_rate: typing.Optional[jsii.Number] = None,
11161
11170
  volume_type: typing.Optional[builtins.str] = None,
11162
11171
  ) -> None:
11163
11172
  '''The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf.
@@ -11175,6 +11184,7 @@ class CfnService(
11175
11184
  :param snapshot_id: The snapshot that Amazon ECS uses to create the volume. You must specify either a snapshot ID or a volume size. This parameter maps 1:1 with the ``SnapshotId`` parameter of the `CreateVolume API <https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html>`_ in the *Amazon EC2 API Reference* .
11176
11185
  :param tag_specifications: The tags to apply to the volume. Amazon ECS applies service-managed tags by default. This parameter maps 1:1 with the ``TagSpecifications.N`` parameter of the `CreateVolume API <https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html>`_ in the *Amazon EC2 API Reference* .
11177
11186
  :param throughput: The throughput to provision for a volume, in MiB/s, with a maximum of 1,000 MiB/s. This parameter maps 1:1 with the ``Throughput`` parameter of the `CreateVolume API <https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html>`_ in the *Amazon EC2 API Reference* . .. epigraph:: This parameter is only supported for the ``gp3`` volume type.
11187
+ :param volume_initialization_rate:
11178
11188
  :param volume_type: The volume type. This parameter maps 1:1 with the ``VolumeType`` parameter of the `CreateVolume API <https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html>`_ in the *Amazon EC2 API Reference* . For more information, see `Amazon EBS volume types <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-volume-types.html>`_ in the *Amazon EC2 User Guide* . The following are the supported volume types. - General Purpose SSD: ``gp2`` | ``gp3`` - Provisioned IOPS SSD: ``io1`` | ``io2`` - Throughput Optimized HDD: ``st1`` - Cold HDD: ``sc1`` - Magnetic: ``standard`` .. epigraph:: The magnetic volume type is not supported on Fargate.
11179
11189
 
11180
11190
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-servicemanagedebsvolumeconfiguration.html
@@ -11207,6 +11217,7 @@ class CfnService(
11207
11217
  )]
11208
11218
  )],
11209
11219
  throughput=123,
11220
+ volume_initialization_rate=123,
11210
11221
  volume_type="volumeType"
11211
11222
  )
11212
11223
  '''
@@ -11221,6 +11232,7 @@ class CfnService(
11221
11232
  check_type(argname="argument snapshot_id", value=snapshot_id, expected_type=type_hints["snapshot_id"])
11222
11233
  check_type(argname="argument tag_specifications", value=tag_specifications, expected_type=type_hints["tag_specifications"])
11223
11234
  check_type(argname="argument throughput", value=throughput, expected_type=type_hints["throughput"])
11235
+ check_type(argname="argument volume_initialization_rate", value=volume_initialization_rate, expected_type=type_hints["volume_initialization_rate"])
11224
11236
  check_type(argname="argument volume_type", value=volume_type, expected_type=type_hints["volume_type"])
11225
11237
  self._values: typing.Dict[builtins.str, typing.Any] = {
11226
11238
  "role_arn": role_arn,
@@ -11241,6 +11253,8 @@ class CfnService(
11241
11253
  self._values["tag_specifications"] = tag_specifications
11242
11254
  if throughput is not None:
11243
11255
  self._values["throughput"] = throughput
11256
+ if volume_initialization_rate is not None:
11257
+ self._values["volume_initialization_rate"] = volume_initialization_rate
11244
11258
  if volume_type is not None:
11245
11259
  self._values["volume_type"] = volume_type
11246
11260
 
@@ -11375,6 +11389,14 @@ class CfnService(
11375
11389
  result = self._values.get("throughput")
11376
11390
  return typing.cast(typing.Optional[jsii.Number], result)
11377
11391
 
11392
+ @builtins.property
11393
+ def volume_initialization_rate(self) -> typing.Optional[jsii.Number]:
11394
+ '''
11395
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-servicemanagedebsvolumeconfiguration.html#cfn-ecs-service-servicemanagedebsvolumeconfiguration-volumeinitializationrate
11396
+ '''
11397
+ result = self._values.get("volume_initialization_rate")
11398
+ return typing.cast(typing.Optional[jsii.Number], result)
11399
+
11378
11400
  @builtins.property
11379
11401
  def volume_type(self) -> typing.Optional[builtins.str]:
11380
11402
  '''The volume type.
@@ -11579,6 +11601,7 @@ class CfnService(
11579
11601
  )]
11580
11602
  )],
11581
11603
  throughput=123,
11604
+ volume_initialization_rate=123,
11582
11605
  volume_type="volumeType"
11583
11606
  )
11584
11607
  )
@@ -12044,6 +12067,7 @@ class CfnServiceProps:
12044
12067
  )]
12045
12068
  )],
12046
12069
  throughput=123,
12070
+ volume_initialization_rate=123,
12047
12071
  volume_type="volumeType"
12048
12072
  )
12049
12073
  )],
@@ -12781,7 +12805,7 @@ class CfnTaskDefinition(
12781
12805
  :param scope: Scope in which this resource is defined.
12782
12806
  :param id: Construct identifier for this resource (unique in its scope).
12783
12807
  :param container_definitions: A list of container definitions in JSON format that describe the different containers that make up your task. For more information about container definition parameters and defaults, see `Amazon ECS Task Definitions <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html>`_ in the *Amazon Elastic Container Service Developer Guide* .
12784
- :param cpu: The number of ``cpu`` units used by the task. If you use the EC2 launch type, this field is optional. Any value can be used. If you use the Fargate launch type, this field is required. You must use one of the following values. The value that you choose determines your range of valid values for the ``memory`` parameter. If you're using the EC2 launch type or the external launch type, this field is optional. Supported values are between ``128`` CPU units ( ``0.125`` vCPUs) and ``196608`` CPU units ( ``192`` vCPUs). The CPU units cannot be less than 1 vCPU when you use Windows containers on Fargate. - 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: 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB) - 4096 (4 vCPU) - Available ``memory`` values: 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB) - 8192 (8 vCPU) - Available ``memory`` values: 16 GB and 60 GB in 4 GB increments This option requires Linux platform ``1.4.0`` or later. - 16384 (16vCPU) - Available ``memory`` values: 32GB and 120 GB in 8 GB increments This option requires Linux platform ``1.4.0`` or later.
12808
+ :param cpu: The number of ``cpu`` units used by the task. If you use the EC2 launch type, this field is optional. Any value can be used. If you use the Fargate launch type, this field is required. You must use one of the following values. The value that you choose determines your range of valid values for the ``memory`` parameter. If you're using the EC2 launch type or the external launch type, this field is optional. Supported values are between ``128`` CPU units ( ``0.125`` vCPUs) and ``196608`` CPU units ( ``192`` vCPUs). This field is required for Fargate. For information about the valid values, see `Task size <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#task_size>`_ in the *Amazon Elastic Container Service Developer Guide* .
12785
12809
  :param enable_fault_injection: Enables fault injection and allows for fault injection requests to be accepted from the task's containers. The default value is ``false`` .
12786
12810
  :param ephemeral_storage: The ephemeral storage settings to use for tasks run with the task definition.
12787
12811
  :param execution_role_arn: The Amazon Resource Name (ARN) of the task execution role that grants the Amazon ECS container agent permission to make AWS API calls on your behalf. For informationabout the required IAM roles for Amazon ECS, see `IAM roles for Amazon ECS <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/security-ecs-iam-role-overview.html>`_ in the *Amazon Elastic Container Service Developer Guide* .
@@ -17624,7 +17648,7 @@ class CfnTaskDefinitionProps:
17624
17648
  '''Properties for defining a ``CfnTaskDefinition``.
17625
17649
 
17626
17650
  :param container_definitions: A list of container definitions in JSON format that describe the different containers that make up your task. For more information about container definition parameters and defaults, see `Amazon ECS Task Definitions <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html>`_ in the *Amazon Elastic Container Service Developer Guide* .
17627
- :param cpu: The number of ``cpu`` units used by the task. If you use the EC2 launch type, this field is optional. Any value can be used. If you use the Fargate launch type, this field is required. You must use one of the following values. The value that you choose determines your range of valid values for the ``memory`` parameter. If you're using the EC2 launch type or the external launch type, this field is optional. Supported values are between ``128`` CPU units ( ``0.125`` vCPUs) and ``196608`` CPU units ( ``192`` vCPUs). The CPU units cannot be less than 1 vCPU when you use Windows containers on Fargate. - 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: 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB) - 4096 (4 vCPU) - Available ``memory`` values: 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB) - 8192 (8 vCPU) - Available ``memory`` values: 16 GB and 60 GB in 4 GB increments This option requires Linux platform ``1.4.0`` or later. - 16384 (16vCPU) - Available ``memory`` values: 32GB and 120 GB in 8 GB increments This option requires Linux platform ``1.4.0`` or later.
17651
+ :param cpu: The number of ``cpu`` units used by the task. If you use the EC2 launch type, this field is optional. Any value can be used. If you use the Fargate launch type, this field is required. You must use one of the following values. The value that you choose determines your range of valid values for the ``memory`` parameter. If you're using the EC2 launch type or the external launch type, this field is optional. Supported values are between ``128`` CPU units ( ``0.125`` vCPUs) and ``196608`` CPU units ( ``192`` vCPUs). This field is required for Fargate. For information about the valid values, see `Task size <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#task_size>`_ in the *Amazon Elastic Container Service Developer Guide* .
17628
17652
  :param enable_fault_injection: Enables fault injection and allows for fault injection requests to be accepted from the task's containers. The default value is ``false`` .
17629
17653
  :param ephemeral_storage: The ephemeral storage settings to use for tasks run with the task definition.
17630
17654
  :param execution_role_arn: The Amazon Resource Name (ARN) of the task execution role that grants the Amazon ECS container agent permission to make AWS API calls on your behalf. For informationabout the required IAM roles for Amazon ECS, see `IAM roles for Amazon ECS <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/security-ecs-iam-role-overview.html>`_ in the *Amazon Elastic Container Service Developer Guide* .
@@ -17948,20 +17972,9 @@ class CfnTaskDefinitionProps:
17948
17972
 
17949
17973
  If you use the EC2 launch type, this field is optional. Any value can be used. If you use the Fargate launch type, this field is required. You must use one of the following values. The value that you choose determines your range of valid values for the ``memory`` parameter.
17950
17974
 
17951
- If you're using the EC2 launch type or the external launch type, this field is optional. Supported values are between ``128`` CPU units ( ``0.125`` vCPUs) and ``196608`` CPU units ( ``192`` vCPUs). The CPU units cannot be less than 1 vCPU when you use Windows containers on Fargate.
17975
+ If you're using the EC2 launch type or the external launch type, this field is optional. Supported values are between ``128`` CPU units ( ``0.125`` vCPUs) and ``196608`` CPU units ( ``192`` vCPUs).
17952
17976
 
17953
- - 256 (.25 vCPU) - Available ``memory`` values: 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB)
17954
- - 512 (.5 vCPU) - Available ``memory`` values: 1024 (1 GB), 2048 (2 GB), 3072 (3 GB), 4096 (4 GB)
17955
- - 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)
17956
- - 2048 (2 vCPU) - Available ``memory`` values: 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB)
17957
- - 4096 (4 vCPU) - Available ``memory`` values: 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB)
17958
- - 8192 (8 vCPU) - Available ``memory`` values: 16 GB and 60 GB in 4 GB increments
17959
-
17960
- This option requires Linux platform ``1.4.0`` or later.
17961
-
17962
- - 16384 (16vCPU) - Available ``memory`` values: 32GB and 120 GB in 8 GB increments
17963
-
17964
- This option requires Linux platform ``1.4.0`` or later.
17977
+ This field is required for Fargate. For information about the valid values, see `Task size <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#task_size>`_ in the *Amazon Elastic Container Service Developer Guide* .
17965
17978
 
17966
17979
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-cpu
17967
17980
  '''
@@ -20930,6 +20943,12 @@ class ContainerDefinition(
20930
20943
  def CONTAINER_PORT_USE_RANGE(cls) -> jsii.Number:
20931
20944
  return typing.cast(jsii.Number, jsii.sget(cls, "CONTAINER_PORT_USE_RANGE"))
20932
20945
 
20946
+ @jsii.python.classproperty
20947
+ @jsii.member(jsii_name="PROPERTY_INJECTION_ID")
20948
+ def PROPERTY_INJECTION_ID(cls) -> builtins.str:
20949
+ '''Uniquely identifies this class.'''
20950
+ return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
20951
+
20933
20952
  @builtins.property
20934
20953
  @jsii.member(jsii_name="containerDependencies")
20935
20954
  def container_dependencies(self) -> typing.List["ContainerDependency"]:
@@ -22705,24 +22724,32 @@ class ContainerImage(
22705
22724
 
22706
22725
  Example::
22707
22726
 
22708
- # my_file_system: efs.IFileSystem
22709
- # my_job_role: iam.Role
22727
+ # vpc: ec2.Vpc
22710
22728
 
22711
- my_file_system.grant_read(my_job_role)
22712
22729
 
22713
- job_defn = batch.EcsJobDefinition(self, "JobDefn",
22714
- container=batch.EcsEc2ContainerDefinition(self, "containerDefn",
22715
- image=ecs.ContainerImage.from_registry("public.ecr.aws/amazonlinux/amazonlinux:latest"),
22716
- memory=cdk.Size.mebibytes(2048),
22717
- cpu=256,
22718
- volumes=[batch.EcsVolume.efs(
22719
- name="myVolume",
22720
- file_system=my_file_system,
22721
- container_path="/Volumes/myVolume",
22722
- use_job_role=True
22723
- )],
22724
- job_role=my_job_role
22730
+ cluster = ecs.Cluster(self, "FargateCPCluster",
22731
+ vpc=vpc,
22732
+ enable_fargate_capacity_providers=True
22733
+ )
22734
+
22735
+ task_definition = ecs.FargateTaskDefinition(self, "TaskDef")
22736
+
22737
+ task_definition.add_container("web",
22738
+ image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample")
22739
+ )
22740
+
22741
+ ecs.FargateService(self, "FargateService",
22742
+ cluster=cluster,
22743
+ task_definition=task_definition,
22744
+ min_healthy_percent=100,
22745
+ capacity_provider_strategies=[ecs.CapacityProviderStrategy(
22746
+ capacity_provider="FARGATE_SPOT",
22747
+ weight=2
22748
+ ), ecs.CapacityProviderStrategy(
22749
+ capacity_provider="FARGATE",
22750
+ weight=1
22725
22751
  )
22752
+ ]
22726
22753
  )
22727
22754
  '''
22728
22755
 
@@ -28553,6 +28580,12 @@ class FirelensLogRouter(
28553
28580
  check_type(argname="argument _task_definition", value=_task_definition, expected_type=type_hints["_task_definition"])
28554
28581
  return typing.cast(CfnTaskDefinition.ContainerDefinitionProperty, jsii.invoke(self, "renderContainerDefinition", [_task_definition]))
28555
28582
 
28583
+ @jsii.python.classproperty
28584
+ @jsii.member(jsii_name="PROPERTY_INJECTION_ID")
28585
+ def PROPERTY_INJECTION_ID(cls) -> builtins.str:
28586
+ '''Uniquely identifies this class.'''
28587
+ return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
28588
+
28556
28589
  @builtins.property
28557
28590
  @jsii.member(jsii_name="firelensConfig")
28558
28591
  def firelens_config(self) -> FirelensConfig:
@@ -37092,8 +37125,8 @@ class TagParameterContainerImage(
37092
37125
  # This is the Stack containing a simple ECS Service that uses the provided ContainerImage.
37093
37126
  #
37094
37127
  class EcsAppStack(cdk.Stack):
37095
- def __init__(self, scope, id, *, image, description=None, env=None, stackName=None, tags=None, notificationArns=None, synthesizer=None, terminationProtection=None, analyticsReporting=None, crossRegionReferences=None, permissionsBoundary=None, suppressTemplateIndentation=None):
37096
- super().__init__(scope, id, image=image, description=description, env=env, stackName=stackName, tags=tags, notificationArns=notificationArns, synthesizer=synthesizer, terminationProtection=terminationProtection, analyticsReporting=analyticsReporting, crossRegionReferences=crossRegionReferences, permissionsBoundary=permissionsBoundary, suppressTemplateIndentation=suppressTemplateIndentation)
37128
+ def __init__(self, scope, id, *, image, description=None, env=None, stackName=None, tags=None, notificationArns=None, synthesizer=None, terminationProtection=None, analyticsReporting=None, crossRegionReferences=None, permissionsBoundary=None, suppressTemplateIndentation=None, propertyInjectors=None):
37129
+ super().__init__(scope, id, image=image, description=description, env=env, stackName=stackName, tags=tags, notificationArns=notificationArns, synthesizer=synthesizer, terminationProtection=terminationProtection, analyticsReporting=analyticsReporting, crossRegionReferences=crossRegionReferences, permissionsBoundary=permissionsBoundary, suppressTemplateIndentation=suppressTemplateIndentation, propertyInjectors=propertyInjectors)
37097
37130
 
37098
37131
  task_definition = ecs.TaskDefinition(self, "TaskDefinition",
37099
37132
  compatibility=ecs.Compatibility.FARGATE,
@@ -37117,8 +37150,8 @@ class TagParameterContainerImage(
37117
37150
  #
37118
37151
  class PipelineStack(cdk.Stack):
37119
37152
 
37120
- def __init__(self, scope, id, *, description=None, env=None, stackName=None, tags=None, notificationArns=None, synthesizer=None, terminationProtection=None, analyticsReporting=None, crossRegionReferences=None, permissionsBoundary=None, suppressTemplateIndentation=None):
37121
- super().__init__(scope, id, description=description, env=env, stackName=stackName, tags=tags, notificationArns=notificationArns, synthesizer=synthesizer, terminationProtection=terminationProtection, analyticsReporting=analyticsReporting, crossRegionReferences=crossRegionReferences, permissionsBoundary=permissionsBoundary, suppressTemplateIndentation=suppressTemplateIndentation)
37153
+ def __init__(self, scope, id, *, description=None, env=None, stackName=None, tags=None, notificationArns=None, synthesizer=None, terminationProtection=None, analyticsReporting=None, crossRegionReferences=None, permissionsBoundary=None, suppressTemplateIndentation=None, propertyInjectors=None):
37154
+ super().__init__(scope, id, description=description, env=env, stackName=stackName, tags=tags, notificationArns=notificationArns, synthesizer=synthesizer, terminationProtection=terminationProtection, analyticsReporting=analyticsReporting, crossRegionReferences=crossRegionReferences, permissionsBoundary=permissionsBoundary, suppressTemplateIndentation=suppressTemplateIndentation, propertyInjectors=propertyInjectors)
37122
37155
 
37123
37156
  # ********* ECS part ****************
37124
37157
 
@@ -37872,6 +37905,12 @@ class TaskDefinition(
37872
37905
  '''Creates the task execution IAM role if it doesn't already exist.'''
37873
37906
  return typing.cast(_IRole_235f5d8e, jsii.invoke(self, "obtainExecutionRole", []))
37874
37907
 
37908
+ @jsii.python.classproperty
37909
+ @jsii.member(jsii_name="PROPERTY_INJECTION_ID")
37910
+ def PROPERTY_INJECTION_ID(cls) -> builtins.str:
37911
+ '''Uniquely identifies this class.'''
37912
+ return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
37913
+
37875
37914
  @builtins.property
37876
37915
  @jsii.member(jsii_name="compatibility")
37877
37916
  def compatibility(self) -> Compatibility:
@@ -40315,6 +40354,12 @@ class Cluster(
40315
40354
 
40316
40355
  return typing.cast(_Metric_e396a4dc, jsii.invoke(self, "metricMemoryUtilization", [props]))
40317
40356
 
40357
+ @jsii.python.classproperty
40358
+ @jsii.member(jsii_name="PROPERTY_INJECTION_ID")
40359
+ def PROPERTY_INJECTION_ID(cls) -> builtins.str:
40360
+ '''Uniquely identifies this class.'''
40361
+ return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
40362
+
40318
40363
  @builtins.property
40319
40364
  @jsii.member(jsii_name="capacityProviderNames")
40320
40365
  def capacity_provider_names(self) -> typing.List[builtins.str]:
@@ -41932,6 +41977,12 @@ class Ec2Service(
41932
41977
  check_type(argname="argument load_balancer", value=load_balancer, expected_type=type_hints["load_balancer"])
41933
41978
  return typing.cast(None, jsii.invoke(self, "attachToClassicLB", [load_balancer]))
41934
41979
 
41980
+ @jsii.python.classproperty
41981
+ @jsii.member(jsii_name="PROPERTY_INJECTION_ID")
41982
+ def PROPERTY_INJECTION_ID(cls) -> builtins.str:
41983
+ '''Uniquely identifies this class.'''
41984
+ return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
41985
+
41935
41986
 
41936
41987
  @jsii.implements(IEc2TaskDefinition)
41937
41988
  class Ec2TaskDefinition(
@@ -42204,6 +42255,12 @@ class Ec2TaskDefinition(
42204
42255
 
42205
42256
  return typing.cast(ContainerDefinition, jsii.invoke(self, "addContainer", [id, props]))
42206
42257
 
42258
+ @jsii.python.classproperty
42259
+ @jsii.member(jsii_name="PROPERTY_INJECTION_ID")
42260
+ def PROPERTY_INJECTION_ID(cls) -> builtins.str:
42261
+ '''Uniquely identifies this class.'''
42262
+ return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
42263
+
42207
42264
 
42208
42265
  @jsii.implements(IExternalService)
42209
42266
  class ExternalService(
@@ -42507,6 +42564,12 @@ class ExternalService(
42507
42564
  check_type(argname="argument _targets", value=_targets, expected_type=typing.Tuple[type_hints["_targets"], ...]) # pyright: ignore [reportGeneralTypeIssues]
42508
42565
  return typing.cast(None, jsii.invoke(self, "registerLoadBalancerTargets", [*_targets]))
42509
42566
 
42567
+ @jsii.python.classproperty
42568
+ @jsii.member(jsii_name="PROPERTY_INJECTION_ID")
42569
+ def PROPERTY_INJECTION_ID(cls) -> builtins.str:
42570
+ '''Uniquely identifies this class.'''
42571
+ return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
42572
+
42510
42573
 
42511
42574
  @jsii.implements(IExternalTaskDefinition)
42512
42575
  class ExternalTaskDefinition(
@@ -42644,6 +42707,12 @@ class ExternalTaskDefinition(
42644
42707
 
42645
42708
  return typing.cast(None, jsii.invoke(self, "addInferenceAccelerator", [_inference_accelerator]))
42646
42709
 
42710
+ @jsii.python.classproperty
42711
+ @jsii.member(jsii_name="PROPERTY_INJECTION_ID")
42712
+ def PROPERTY_INJECTION_ID(cls) -> builtins.str:
42713
+ '''Uniquely identifies this class.'''
42714
+ return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
42715
+
42647
42716
 
42648
42717
  @jsii.implements(IFargateService)
42649
42718
  class FargateService(
@@ -42848,6 +42917,12 @@ class FargateService(
42848
42917
  check_type(argname="argument load_balancer", value=load_balancer, expected_type=type_hints["load_balancer"])
42849
42918
  return typing.cast(None, jsii.invoke(self, "attachToClassicLB", [load_balancer]))
42850
42919
 
42920
+ @jsii.python.classproperty
42921
+ @jsii.member(jsii_name="PROPERTY_INJECTION_ID")
42922
+ def PROPERTY_INJECTION_ID(cls) -> builtins.str:
42923
+ '''Uniquely identifies this class.'''
42924
+ return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
42925
+
42851
42926
 
42852
42927
  @jsii.implements(IFargateTaskDefinition)
42853
42928
  class FargateTaskDefinition(
@@ -42999,6 +43074,12 @@ class FargateTaskDefinition(
42999
43074
 
43000
43075
  return typing.cast(IFargateTaskDefinition, jsii.sinvoke(cls, "fromFargateTaskDefinitionAttributes", [scope, id, attrs]))
43001
43076
 
43077
+ @jsii.python.classproperty
43078
+ @jsii.member(jsii_name="PROPERTY_INJECTION_ID")
43079
+ def PROPERTY_INJECTION_ID(cls) -> builtins.str:
43080
+ '''Uniquely identifies this class.'''
43081
+ return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
43082
+
43002
43083
  @builtins.property
43003
43084
  @jsii.member(jsii_name="cpu")
43004
43085
  def cpu(self) -> jsii.Number:
@@ -44207,6 +44288,7 @@ def _typecheckingstub__dfccfa8c4140c61b1030fe8ed564cee115f38fe8144d5ff6ac1654634
44207
44288
  snapshot_id: typing.Optional[builtins.str] = None,
44208
44289
  tag_specifications: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnService.EBSTagSpecificationProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
44209
44290
  throughput: typing.Optional[jsii.Number] = None,
44291
+ volume_initialization_rate: typing.Optional[jsii.Number] = None,
44210
44292
  volume_type: typing.Optional[builtins.str] = None,
44211
44293
  ) -> None:
44212
44294
  """Type checking stubs"""