aws-cdk-lib 2.146.0__py3-none-any.whl → 2.147.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of aws-cdk-lib might be problematic. Click here for more details.
- aws_cdk/__init__.py +10 -11
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.146.0.jsii.tgz → aws-cdk-lib@2.147.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigateway/__init__.py +32 -12
- aws_cdk/aws_apigatewayv2/__init__.py +48 -2
- aws_cdk/aws_apigatewayv2_integrations/__init__.py +142 -4
- aws_cdk/aws_appconfig/__init__.py +8 -4
- aws_cdk/aws_applicationsignals/__init__.py +1766 -0
- aws_cdk/aws_auditmanager/__init__.py +5 -1
- aws_cdk/aws_autoscaling/__init__.py +65 -20
- aws_cdk/aws_batch/__init__.py +215 -0
- aws_cdk/aws_bedrock/__init__.py +272 -103
- aws_cdk/aws_cloudformation/__init__.py +5 -11
- aws_cdk/aws_cloudfront/__init__.py +10 -3
- aws_cdk/aws_cloudtrail/__init__.py +56 -2
- aws_cdk/aws_codebuild/__init__.py +62 -29
- aws_cdk/aws_codepipeline/__init__.py +10 -5
- aws_cdk/aws_datazone/__init__.py +80 -68
- aws_cdk/aws_deadline/__init__.py +603 -17
- aws_cdk/aws_ec2/__init__.py +237 -112
- aws_cdk/aws_ecs/__init__.py +20 -18
- aws_cdk/aws_eks/__init__.py +15 -9
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +11 -5
- aws_cdk/aws_emrserverless/__init__.py +5 -5
- aws_cdk/aws_events/__init__.py +36 -16
- aws_cdk/aws_fsx/__init__.py +126 -21
- aws_cdk/aws_globalaccelerator/__init__.py +2 -1
- aws_cdk/aws_globalaccelerator_endpoints/__init__.py +35 -4
- aws_cdk/aws_glue/__init__.py +26 -0
- aws_cdk/aws_grafana/__init__.py +4 -4
- aws_cdk/aws_groundstation/__init__.py +55 -35
- aws_cdk/aws_guardduty/__init__.py +826 -0
- aws_cdk/aws_iot/__init__.py +3 -3
- aws_cdk/aws_lambda/__init__.py +7 -5
- aws_cdk/aws_lightsail/__init__.py +1 -1
- aws_cdk/aws_location/__init__.py +10 -11
- aws_cdk/aws_mediapackagev2/__init__.py +38 -20
- aws_cdk/aws_mediatailor/__init__.py +2 -2
- aws_cdk/aws_msk/__init__.py +4 -4
- aws_cdk/aws_mwaa/__init__.py +16 -8
- aws_cdk/aws_nimblestudio/__init__.py +9 -9
- aws_cdk/aws_opensearchservice/__init__.py +5 -4
- aws_cdk/aws_opsworks/__init__.py +3 -3
- aws_cdk/aws_osis/__init__.py +33 -4
- aws_cdk/aws_pipes/__init__.py +97 -45
- aws_cdk/aws_quicksight/__init__.py +23 -21
- aws_cdk/aws_rds/__init__.py +43 -11
- aws_cdk/aws_refactorspaces/__init__.py +3 -3
- aws_cdk/aws_rolesanywhere/__init__.py +21 -14
- aws_cdk/aws_sagemaker/__init__.py +5 -2
- aws_cdk/aws_securityhub/__init__.py +163 -78
- aws_cdk/aws_securitylake/__init__.py +7 -5
- aws_cdk/aws_ses/__init__.py +117 -0
- aws_cdk/aws_simspaceweaver/__init__.py +2 -2
- aws_cdk/aws_sns/__init__.py +6 -4
- aws_cdk/aws_sqs/__init__.py +3 -3
- aws_cdk/aws_stepfunctions/__init__.py +51 -28
- aws_cdk/aws_stepfunctions_tasks/__init__.py +56 -2
- aws_cdk/aws_transfer/__init__.py +8 -2
- aws_cdk/aws_wafv2/__init__.py +10 -10
- aws_cdk/aws_workspacesweb/__init__.py +8 -8
- {aws_cdk_lib-2.146.0.dist-info → aws_cdk_lib-2.147.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.146.0.dist-info → aws_cdk_lib-2.147.0.dist-info}/RECORD +67 -66
- {aws_cdk_lib-2.146.0.dist-info → aws_cdk_lib-2.147.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.146.0.dist-info → aws_cdk_lib-2.147.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.146.0.dist-info → aws_cdk_lib-2.147.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.146.0.dist-info → aws_cdk_lib-2.147.0.dist-info}/top_level.txt +0 -0
|
@@ -931,7 +931,7 @@ class CfnAssessment(
|
|
|
931
931
|
'''The ``Scope`` property type specifies the wrapper that contains the AWS accounts and services that are in scope for the assessment.
|
|
932
932
|
|
|
933
933
|
:param aws_accounts: The AWS accounts that are included in the scope of the assessment.
|
|
934
|
-
:param aws_services: The AWS services that are included in the scope of the assessment.
|
|
934
|
+
:param aws_services: The AWS services that are included in the scope of the assessment. .. epigraph:: This API parameter is no longer supported. If you use this parameter to specify one or more AWS services , Audit Manager ignores this input. Instead, the value for ``awsServices`` will show as empty.
|
|
935
935
|
|
|
936
936
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-auditmanager-assessment-scope.html
|
|
937
937
|
:exampleMetadata: fixture=_generated
|
|
@@ -980,6 +980,10 @@ class CfnAssessment(
|
|
|
980
980
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAssessment.AWSServiceProperty"]]]]:
|
|
981
981
|
'''The AWS services that are included in the scope of the assessment.
|
|
982
982
|
|
|
983
|
+
.. epigraph::
|
|
984
|
+
|
|
985
|
+
This API parameter is no longer supported. If you use this parameter to specify one or more AWS services , Audit Manager ignores this input. Instead, the value for ``awsServices`` will show as empty.
|
|
986
|
+
|
|
983
987
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-auditmanager-assessment-scope.html#cfn-auditmanager-assessment-scope-awsservices
|
|
984
988
|
'''
|
|
985
989
|
result = self._values.get("aws_services")
|
|
@@ -8724,7 +8724,7 @@ class CfnScalingPolicy(
|
|
|
8724
8724
|
|
|
8725
8725
|
:param dimensions: The dimensions of the metric. Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.
|
|
8726
8726
|
:param metric_name: The name of the metric. To get the exact metric name, namespace, and dimensions, inspect the `Metric <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_Metric.html>`_ object that is returned by a call to `ListMetrics <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html>`_ .
|
|
8727
|
-
:param metrics:
|
|
8727
|
+
:param metrics: The metrics to include in the target tracking scaling policy, as a metric data query. This can include both raw metric and metric math expressions.
|
|
8728
8728
|
:param namespace: The namespace of the metric.
|
|
8729
8729
|
:param statistic: The statistic of the metric.
|
|
8730
8730
|
:param unit: The unit of the metric. For a complete list of the units that CloudWatch supports, see the `MetricDatum <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html>`_ data type in the *Amazon CloudWatch API Reference* .
|
|
@@ -8823,7 +8823,10 @@ class CfnScalingPolicy(
|
|
|
8823
8823
|
def metrics(
|
|
8824
8824
|
self,
|
|
8825
8825
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnScalingPolicy.TargetTrackingMetricDataQueryProperty"]]]]:
|
|
8826
|
-
'''
|
|
8826
|
+
'''The metrics to include in the target tracking scaling policy, as a metric data query.
|
|
8827
|
+
|
|
8828
|
+
This can include both raw metric and metric math expressions.
|
|
8829
|
+
|
|
8827
8830
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-customizedmetricspecification.html#cfn-autoscaling-scalingpolicy-customizedmetricspecification-metrics
|
|
8828
8831
|
'''
|
|
8829
8832
|
result = self._values.get("metrics")
|
|
@@ -10774,12 +10777,21 @@ class CfnScalingPolicy(
|
|
|
10774
10777
|
metric_stat: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnScalingPolicy.TargetTrackingMetricStatProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10775
10778
|
return_data: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
10776
10779
|
) -> None:
|
|
10777
|
-
'''
|
|
10778
|
-
|
|
10779
|
-
|
|
10780
|
-
|
|
10781
|
-
|
|
10782
|
-
|
|
10780
|
+
'''The metric data to return.
|
|
10781
|
+
|
|
10782
|
+
Also defines whether this call is returning data for one metric only, or whether it is performing a math expression on the values of returned metric statistics to create a new time series. A time series is a series of data points, each of which is associated with a timestamp.
|
|
10783
|
+
|
|
10784
|
+
``TargetTrackingMetricDataQuery`` is used with the `AWS::AutoScaling::ScalingPolicy CustomizedMetricSpecification <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-customizedmetricspecification.html>`_ property type.
|
|
10785
|
+
|
|
10786
|
+
You can call for a single metric or perform math expressions on multiple metrics. Any expressions used in a metric specification must eventually return a single time series.
|
|
10787
|
+
|
|
10788
|
+
For more information, see the `Create a target tracking scaling policy for Amazon EC2 Auto Scaling using metric math <https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-target-tracking-metric-math.html>`_ in the *Amazon EC2 Auto Scaling User Guide* .
|
|
10789
|
+
|
|
10790
|
+
:param id: A short name that identifies the object's results in the response. This name must be unique among all ``TargetTrackingMetricDataQuery`` objects specified for a single scaling policy. If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscores. The first character must be a lowercase letter.
|
|
10791
|
+
:param expression: The math expression to perform on the returned data, if this object is performing a math expression. This expression can use the ``Id`` of the other metrics to refer to those metrics, and can also use the ``Id`` of other expressions to use the result of those expressions. Conditional: Within each ``TargetTrackingMetricDataQuery`` object, you must specify either ``Expression`` or ``MetricStat`` , but not both.
|
|
10792
|
+
:param label: A human-readable label for this metric or expression. This is especially useful if this is a math expression, so that you know what the value represents.
|
|
10793
|
+
:param metric_stat: Information about the metric data to return. Conditional: Within each ``TargetTrackingMetricDataQuery`` object, you must specify either ``Expression`` or ``MetricStat`` , but not both.
|
|
10794
|
+
:param return_data: Indicates whether to return the timestamps and raw data values of this metric. If you use any math expressions, specify ``true`` for this value for only the final math expression that the metric specification is based on. You must specify ``false`` for ``ReturnData`` for all the other metrics and expressions used in the metric specification. If you are only retrieving metrics and not performing any math expressions, do not specify anything for ``ReturnData`` . This sets it to its default ( ``true`` ).
|
|
10783
10795
|
|
|
10784
10796
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingmetricdataquery.html
|
|
10785
10797
|
:exampleMetadata: fixture=_generated
|
|
@@ -10836,7 +10848,10 @@ class CfnScalingPolicy(
|
|
|
10836
10848
|
|
|
10837
10849
|
@builtins.property
|
|
10838
10850
|
def id(self) -> builtins.str:
|
|
10839
|
-
'''
|
|
10851
|
+
'''A short name that identifies the object's results in the response.
|
|
10852
|
+
|
|
10853
|
+
This name must be unique among all ``TargetTrackingMetricDataQuery`` objects specified for a single scaling policy. If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscores. The first character must be a lowercase letter.
|
|
10854
|
+
|
|
10840
10855
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingmetricdataquery.html#cfn-autoscaling-scalingpolicy-targettrackingmetricdataquery-id
|
|
10841
10856
|
'''
|
|
10842
10857
|
result = self._values.get("id")
|
|
@@ -10845,7 +10860,12 @@ class CfnScalingPolicy(
|
|
|
10845
10860
|
|
|
10846
10861
|
@builtins.property
|
|
10847
10862
|
def expression(self) -> typing.Optional[builtins.str]:
|
|
10848
|
-
'''
|
|
10863
|
+
'''The math expression to perform on the returned data, if this object is performing a math expression.
|
|
10864
|
+
|
|
10865
|
+
This expression can use the ``Id`` of the other metrics to refer to those metrics, and can also use the ``Id`` of other expressions to use the result of those expressions.
|
|
10866
|
+
|
|
10867
|
+
Conditional: Within each ``TargetTrackingMetricDataQuery`` object, you must specify either ``Expression`` or ``MetricStat`` , but not both.
|
|
10868
|
+
|
|
10849
10869
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingmetricdataquery.html#cfn-autoscaling-scalingpolicy-targettrackingmetricdataquery-expression
|
|
10850
10870
|
'''
|
|
10851
10871
|
result = self._values.get("expression")
|
|
@@ -10853,7 +10873,10 @@ class CfnScalingPolicy(
|
|
|
10853
10873
|
|
|
10854
10874
|
@builtins.property
|
|
10855
10875
|
def label(self) -> typing.Optional[builtins.str]:
|
|
10856
|
-
'''
|
|
10876
|
+
'''A human-readable label for this metric or expression.
|
|
10877
|
+
|
|
10878
|
+
This is especially useful if this is a math expression, so that you know what the value represents.
|
|
10879
|
+
|
|
10857
10880
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingmetricdataquery.html#cfn-autoscaling-scalingpolicy-targettrackingmetricdataquery-label
|
|
10858
10881
|
'''
|
|
10859
10882
|
result = self._values.get("label")
|
|
@@ -10863,7 +10886,10 @@ class CfnScalingPolicy(
|
|
|
10863
10886
|
def metric_stat(
|
|
10864
10887
|
self,
|
|
10865
10888
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnScalingPolicy.TargetTrackingMetricStatProperty"]]:
|
|
10866
|
-
'''
|
|
10889
|
+
'''Information about the metric data to return.
|
|
10890
|
+
|
|
10891
|
+
Conditional: Within each ``TargetTrackingMetricDataQuery`` object, you must specify either ``Expression`` or ``MetricStat`` , but not both.
|
|
10892
|
+
|
|
10867
10893
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingmetricdataquery.html#cfn-autoscaling-scalingpolicy-targettrackingmetricdataquery-metricstat
|
|
10868
10894
|
'''
|
|
10869
10895
|
result = self._values.get("metric_stat")
|
|
@@ -10873,7 +10899,12 @@ class CfnScalingPolicy(
|
|
|
10873
10899
|
def return_data(
|
|
10874
10900
|
self,
|
|
10875
10901
|
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
10876
|
-
'''
|
|
10902
|
+
'''Indicates whether to return the timestamps and raw data values of this metric.
|
|
10903
|
+
|
|
10904
|
+
If you use any math expressions, specify ``true`` for this value for only the final math expression that the metric specification is based on. You must specify ``false`` for ``ReturnData`` for all the other metrics and expressions used in the metric specification.
|
|
10905
|
+
|
|
10906
|
+
If you are only retrieving metrics and not performing any math expressions, do not specify anything for ``ReturnData`` . This sets it to its default ( ``true`` ).
|
|
10907
|
+
|
|
10877
10908
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingmetricdataquery.html#cfn-autoscaling-scalingpolicy-targettrackingmetricdataquery-returndata
|
|
10878
10909
|
'''
|
|
10879
10910
|
result = self._values.get("return_data")
|
|
@@ -10903,10 +10934,15 @@ class CfnScalingPolicy(
|
|
|
10903
10934
|
stat: builtins.str,
|
|
10904
10935
|
unit: typing.Optional[builtins.str] = None,
|
|
10905
10936
|
) -> None:
|
|
10906
|
-
'''
|
|
10907
|
-
|
|
10908
|
-
|
|
10909
|
-
|
|
10937
|
+
'''``TargetTrackingMetricStat`` is a property of the `AWS::AutoScaling::ScalingPolicy TargetTrackingMetricDataQuery <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingmetricdataquery.html>`_ property type.
|
|
10938
|
+
|
|
10939
|
+
This structure defines the CloudWatch metric to return, along with the statistic and unit.
|
|
10940
|
+
|
|
10941
|
+
For more information about the CloudWatch terminology below, see `Amazon CloudWatch concepts <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html>`_ in the *Amazon CloudWatch User Guide* .
|
|
10942
|
+
|
|
10943
|
+
:param metric: The metric to use.
|
|
10944
|
+
:param stat: The statistic to return. It can include any CloudWatch statistic or extended statistic. For a list of valid values, see the table in `Statistics <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Statistic>`_ in the *Amazon CloudWatch User Guide* . The most commonly used metric for scaling is ``Average`` .
|
|
10945
|
+
:param unit: The unit to use for the returned data points. For a complete list of the units that CloudWatch supports, see the `MetricDatum <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html>`_ data type in the *Amazon CloudWatch API Reference* .
|
|
10910
10946
|
|
|
10911
10947
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingmetricstat.html
|
|
10912
10948
|
:exampleMetadata: fixture=_generated
|
|
@@ -10950,7 +10986,8 @@ class CfnScalingPolicy(
|
|
|
10950
10986
|
def metric(
|
|
10951
10987
|
self,
|
|
10952
10988
|
) -> typing.Union[_IResolvable_da3f097b, "CfnScalingPolicy.MetricProperty"]:
|
|
10953
|
-
'''
|
|
10989
|
+
'''The metric to use.
|
|
10990
|
+
|
|
10954
10991
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingmetricstat.html#cfn-autoscaling-scalingpolicy-targettrackingmetricstat-metric
|
|
10955
10992
|
'''
|
|
10956
10993
|
result = self._values.get("metric")
|
|
@@ -10959,7 +10996,12 @@ class CfnScalingPolicy(
|
|
|
10959
10996
|
|
|
10960
10997
|
@builtins.property
|
|
10961
10998
|
def stat(self) -> builtins.str:
|
|
10962
|
-
'''
|
|
10999
|
+
'''The statistic to return.
|
|
11000
|
+
|
|
11001
|
+
It can include any CloudWatch statistic or extended statistic. For a list of valid values, see the table in `Statistics <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Statistic>`_ in the *Amazon CloudWatch User Guide* .
|
|
11002
|
+
|
|
11003
|
+
The most commonly used metric for scaling is ``Average`` .
|
|
11004
|
+
|
|
10963
11005
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingmetricstat.html#cfn-autoscaling-scalingpolicy-targettrackingmetricstat-stat
|
|
10964
11006
|
'''
|
|
10965
11007
|
result = self._values.get("stat")
|
|
@@ -10968,7 +11010,10 @@ class CfnScalingPolicy(
|
|
|
10968
11010
|
|
|
10969
11011
|
@builtins.property
|
|
10970
11012
|
def unit(self) -> typing.Optional[builtins.str]:
|
|
10971
|
-
'''
|
|
11013
|
+
'''The unit to use for the returned data points.
|
|
11014
|
+
|
|
11015
|
+
For a complete list of the units that CloudWatch supports, see the `MetricDatum <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html>`_ data type in the *Amazon CloudWatch API Reference* .
|
|
11016
|
+
|
|
10972
11017
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingmetricstat.html#cfn-autoscaling-scalingpolicy-targettrackingmetricstat-unit
|
|
10973
11018
|
'''
|
|
10974
11019
|
result = self._values.get("unit")
|
aws_cdk/aws_batch/__init__.py
CHANGED
|
@@ -5931,7 +5931,10 @@ class CfnJobDefinition(
|
|
|
5931
5931
|
# The values are placeholders you should change.
|
|
5932
5932
|
from aws_cdk import aws_batch as batch
|
|
5933
5933
|
|
|
5934
|
+
# labels: Any
|
|
5935
|
+
# limits: Any
|
|
5934
5936
|
# options: Any
|
|
5937
|
+
# requests: Any
|
|
5935
5938
|
|
|
5936
5939
|
node_properties_property = batch.CfnJobDefinition.NodePropertiesProperty(
|
|
5937
5940
|
main_node=123,
|
|
@@ -6142,6 +6145,102 @@ class CfnJobDefinition(
|
|
|
6142
6145
|
)]
|
|
6143
6146
|
)]
|
|
6144
6147
|
),
|
|
6148
|
+
eks_properties=batch.CfnJobDefinition.EksPropertiesProperty(
|
|
6149
|
+
pod_properties=batch.CfnJobDefinition.PodPropertiesProperty(
|
|
6150
|
+
containers=[batch.CfnJobDefinition.EksContainerProperty(
|
|
6151
|
+
image="image",
|
|
6152
|
+
|
|
6153
|
+
# the properties below are optional
|
|
6154
|
+
args=["args"],
|
|
6155
|
+
command=["command"],
|
|
6156
|
+
env=[batch.CfnJobDefinition.EksContainerEnvironmentVariableProperty(
|
|
6157
|
+
name="name",
|
|
6158
|
+
|
|
6159
|
+
# the properties below are optional
|
|
6160
|
+
value="value"
|
|
6161
|
+
)],
|
|
6162
|
+
image_pull_policy="imagePullPolicy",
|
|
6163
|
+
name="name",
|
|
6164
|
+
resources=batch.CfnJobDefinition.ResourcesProperty(
|
|
6165
|
+
limits=limits,
|
|
6166
|
+
requests=requests
|
|
6167
|
+
),
|
|
6168
|
+
security_context=batch.CfnJobDefinition.SecurityContextProperty(
|
|
6169
|
+
allow_privilege_escalation=False,
|
|
6170
|
+
privileged=False,
|
|
6171
|
+
read_only_root_filesystem=False,
|
|
6172
|
+
run_as_group=123,
|
|
6173
|
+
run_as_non_root=False,
|
|
6174
|
+
run_as_user=123
|
|
6175
|
+
),
|
|
6176
|
+
volume_mounts=[batch.CfnJobDefinition.EksContainerVolumeMountProperty(
|
|
6177
|
+
mount_path="mountPath",
|
|
6178
|
+
name="name",
|
|
6179
|
+
read_only=False
|
|
6180
|
+
)]
|
|
6181
|
+
)],
|
|
6182
|
+
dns_policy="dnsPolicy",
|
|
6183
|
+
host_network=False,
|
|
6184
|
+
image_pull_secrets=[batch.CfnJobDefinition.ImagePullSecretProperty(
|
|
6185
|
+
name="name"
|
|
6186
|
+
)],
|
|
6187
|
+
init_containers=[batch.CfnJobDefinition.EksContainerProperty(
|
|
6188
|
+
image="image",
|
|
6189
|
+
|
|
6190
|
+
# the properties below are optional
|
|
6191
|
+
args=["args"],
|
|
6192
|
+
command=["command"],
|
|
6193
|
+
env=[batch.CfnJobDefinition.EksContainerEnvironmentVariableProperty(
|
|
6194
|
+
name="name",
|
|
6195
|
+
|
|
6196
|
+
# the properties below are optional
|
|
6197
|
+
value="value"
|
|
6198
|
+
)],
|
|
6199
|
+
image_pull_policy="imagePullPolicy",
|
|
6200
|
+
name="name",
|
|
6201
|
+
resources=batch.CfnJobDefinition.ResourcesProperty(
|
|
6202
|
+
limits=limits,
|
|
6203
|
+
requests=requests
|
|
6204
|
+
),
|
|
6205
|
+
security_context=batch.CfnJobDefinition.SecurityContextProperty(
|
|
6206
|
+
allow_privilege_escalation=False,
|
|
6207
|
+
privileged=False,
|
|
6208
|
+
read_only_root_filesystem=False,
|
|
6209
|
+
run_as_group=123,
|
|
6210
|
+
run_as_non_root=False,
|
|
6211
|
+
run_as_user=123
|
|
6212
|
+
),
|
|
6213
|
+
volume_mounts=[batch.CfnJobDefinition.EksContainerVolumeMountProperty(
|
|
6214
|
+
mount_path="mountPath",
|
|
6215
|
+
name="name",
|
|
6216
|
+
read_only=False
|
|
6217
|
+
)]
|
|
6218
|
+
)],
|
|
6219
|
+
metadata=batch.CfnJobDefinition.MetadataProperty(
|
|
6220
|
+
labels=labels
|
|
6221
|
+
),
|
|
6222
|
+
service_account_name="serviceAccountName",
|
|
6223
|
+
share_process_namespace=False,
|
|
6224
|
+
volumes=[batch.CfnJobDefinition.EksVolumeProperty(
|
|
6225
|
+
name="name",
|
|
6226
|
+
|
|
6227
|
+
# the properties below are optional
|
|
6228
|
+
empty_dir=batch.CfnJobDefinition.EmptyDirProperty(
|
|
6229
|
+
medium="medium",
|
|
6230
|
+
size_limit="sizeLimit"
|
|
6231
|
+
),
|
|
6232
|
+
host_path=batch.CfnJobDefinition.HostPathProperty(
|
|
6233
|
+
path="path"
|
|
6234
|
+
),
|
|
6235
|
+
secret=batch.CfnJobDefinition.EksSecretProperty(
|
|
6236
|
+
secret_name="secretName",
|
|
6237
|
+
|
|
6238
|
+
# the properties below are optional
|
|
6239
|
+
optional=False
|
|
6240
|
+
)
|
|
6241
|
+
)]
|
|
6242
|
+
)
|
|
6243
|
+
),
|
|
6145
6244
|
instance_types=["instanceTypes"]
|
|
6146
6245
|
)],
|
|
6147
6246
|
num_nodes=123
|
|
@@ -6210,6 +6309,7 @@ class CfnJobDefinition(
|
|
|
6210
6309
|
"target_nodes": "targetNodes",
|
|
6211
6310
|
"container": "container",
|
|
6212
6311
|
"ecs_properties": "ecsProperties",
|
|
6312
|
+
"eks_properties": "eksProperties",
|
|
6213
6313
|
"instance_types": "instanceTypes",
|
|
6214
6314
|
},
|
|
6215
6315
|
)
|
|
@@ -6220,6 +6320,7 @@ class CfnJobDefinition(
|
|
|
6220
6320
|
target_nodes: builtins.str,
|
|
6221
6321
|
container: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnJobDefinition.ContainerPropertiesProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
6222
6322
|
ecs_properties: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnJobDefinition.EcsPropertiesProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
6323
|
+
eks_properties: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnJobDefinition.EksPropertiesProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
6223
6324
|
instance_types: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
6224
6325
|
) -> None:
|
|
6225
6326
|
'''This is an object that represents the properties of the node range for a multi-node parallel job.
|
|
@@ -6227,6 +6328,7 @@ class CfnJobDefinition(
|
|
|
6227
6328
|
:param target_nodes: The range of nodes, using node index values. A range of ``0:3`` indicates nodes with index values of ``0`` through ``3`` . If the starting range value is omitted ( ``:n`` ), then ``0`` is used to start the range. If the ending range value is omitted ( ``n:`` ), then the highest possible node index is used to end the range. Your accumulative node ranges must account for all nodes ( ``0:n`` ). You can nest node ranges (for example, ``0:10`` and ``4:5`` ). In this case, the ``4:5`` range properties override the ``0:10`` properties.
|
|
6228
6329
|
:param container: The container details for the node range.
|
|
6229
6330
|
:param ecs_properties: This is an object that represents the properties of the node range for a multi-node parallel job.
|
|
6331
|
+
:param eks_properties:
|
|
6230
6332
|
:param instance_types: The instance types of the underlying host infrastructure of a multi-node parallel job. .. epigraph:: This parameter isn't applicable to jobs that are running on Fargate resources. In addition, this list object is currently limited to one element.
|
|
6231
6333
|
|
|
6232
6334
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-noderangeproperty.html
|
|
@@ -6238,7 +6340,10 @@ class CfnJobDefinition(
|
|
|
6238
6340
|
# The values are placeholders you should change.
|
|
6239
6341
|
from aws_cdk import aws_batch as batch
|
|
6240
6342
|
|
|
6343
|
+
# labels: Any
|
|
6344
|
+
# limits: Any
|
|
6241
6345
|
# options: Any
|
|
6346
|
+
# requests: Any
|
|
6242
6347
|
|
|
6243
6348
|
node_range_property_property = batch.CfnJobDefinition.NodeRangePropertyProperty(
|
|
6244
6349
|
target_nodes="targetNodes",
|
|
@@ -6447,6 +6552,102 @@ class CfnJobDefinition(
|
|
|
6447
6552
|
)]
|
|
6448
6553
|
)]
|
|
6449
6554
|
),
|
|
6555
|
+
eks_properties=batch.CfnJobDefinition.EksPropertiesProperty(
|
|
6556
|
+
pod_properties=batch.CfnJobDefinition.PodPropertiesProperty(
|
|
6557
|
+
containers=[batch.CfnJobDefinition.EksContainerProperty(
|
|
6558
|
+
image="image",
|
|
6559
|
+
|
|
6560
|
+
# the properties below are optional
|
|
6561
|
+
args=["args"],
|
|
6562
|
+
command=["command"],
|
|
6563
|
+
env=[batch.CfnJobDefinition.EksContainerEnvironmentVariableProperty(
|
|
6564
|
+
name="name",
|
|
6565
|
+
|
|
6566
|
+
# the properties below are optional
|
|
6567
|
+
value="value"
|
|
6568
|
+
)],
|
|
6569
|
+
image_pull_policy="imagePullPolicy",
|
|
6570
|
+
name="name",
|
|
6571
|
+
resources=batch.CfnJobDefinition.ResourcesProperty(
|
|
6572
|
+
limits=limits,
|
|
6573
|
+
requests=requests
|
|
6574
|
+
),
|
|
6575
|
+
security_context=batch.CfnJobDefinition.SecurityContextProperty(
|
|
6576
|
+
allow_privilege_escalation=False,
|
|
6577
|
+
privileged=False,
|
|
6578
|
+
read_only_root_filesystem=False,
|
|
6579
|
+
run_as_group=123,
|
|
6580
|
+
run_as_non_root=False,
|
|
6581
|
+
run_as_user=123
|
|
6582
|
+
),
|
|
6583
|
+
volume_mounts=[batch.CfnJobDefinition.EksContainerVolumeMountProperty(
|
|
6584
|
+
mount_path="mountPath",
|
|
6585
|
+
name="name",
|
|
6586
|
+
read_only=False
|
|
6587
|
+
)]
|
|
6588
|
+
)],
|
|
6589
|
+
dns_policy="dnsPolicy",
|
|
6590
|
+
host_network=False,
|
|
6591
|
+
image_pull_secrets=[batch.CfnJobDefinition.ImagePullSecretProperty(
|
|
6592
|
+
name="name"
|
|
6593
|
+
)],
|
|
6594
|
+
init_containers=[batch.CfnJobDefinition.EksContainerProperty(
|
|
6595
|
+
image="image",
|
|
6596
|
+
|
|
6597
|
+
# the properties below are optional
|
|
6598
|
+
args=["args"],
|
|
6599
|
+
command=["command"],
|
|
6600
|
+
env=[batch.CfnJobDefinition.EksContainerEnvironmentVariableProperty(
|
|
6601
|
+
name="name",
|
|
6602
|
+
|
|
6603
|
+
# the properties below are optional
|
|
6604
|
+
value="value"
|
|
6605
|
+
)],
|
|
6606
|
+
image_pull_policy="imagePullPolicy",
|
|
6607
|
+
name="name",
|
|
6608
|
+
resources=batch.CfnJobDefinition.ResourcesProperty(
|
|
6609
|
+
limits=limits,
|
|
6610
|
+
requests=requests
|
|
6611
|
+
),
|
|
6612
|
+
security_context=batch.CfnJobDefinition.SecurityContextProperty(
|
|
6613
|
+
allow_privilege_escalation=False,
|
|
6614
|
+
privileged=False,
|
|
6615
|
+
read_only_root_filesystem=False,
|
|
6616
|
+
run_as_group=123,
|
|
6617
|
+
run_as_non_root=False,
|
|
6618
|
+
run_as_user=123
|
|
6619
|
+
),
|
|
6620
|
+
volume_mounts=[batch.CfnJobDefinition.EksContainerVolumeMountProperty(
|
|
6621
|
+
mount_path="mountPath",
|
|
6622
|
+
name="name",
|
|
6623
|
+
read_only=False
|
|
6624
|
+
)]
|
|
6625
|
+
)],
|
|
6626
|
+
metadata=batch.CfnJobDefinition.MetadataProperty(
|
|
6627
|
+
labels=labels
|
|
6628
|
+
),
|
|
6629
|
+
service_account_name="serviceAccountName",
|
|
6630
|
+
share_process_namespace=False,
|
|
6631
|
+
volumes=[batch.CfnJobDefinition.EksVolumeProperty(
|
|
6632
|
+
name="name",
|
|
6633
|
+
|
|
6634
|
+
# the properties below are optional
|
|
6635
|
+
empty_dir=batch.CfnJobDefinition.EmptyDirProperty(
|
|
6636
|
+
medium="medium",
|
|
6637
|
+
size_limit="sizeLimit"
|
|
6638
|
+
),
|
|
6639
|
+
host_path=batch.CfnJobDefinition.HostPathProperty(
|
|
6640
|
+
path="path"
|
|
6641
|
+
),
|
|
6642
|
+
secret=batch.CfnJobDefinition.EksSecretProperty(
|
|
6643
|
+
secret_name="secretName",
|
|
6644
|
+
|
|
6645
|
+
# the properties below are optional
|
|
6646
|
+
optional=False
|
|
6647
|
+
)
|
|
6648
|
+
)]
|
|
6649
|
+
)
|
|
6650
|
+
),
|
|
6450
6651
|
instance_types=["instanceTypes"]
|
|
6451
6652
|
)
|
|
6452
6653
|
'''
|
|
@@ -6455,6 +6656,7 @@ class CfnJobDefinition(
|
|
|
6455
6656
|
check_type(argname="argument target_nodes", value=target_nodes, expected_type=type_hints["target_nodes"])
|
|
6456
6657
|
check_type(argname="argument container", value=container, expected_type=type_hints["container"])
|
|
6457
6658
|
check_type(argname="argument ecs_properties", value=ecs_properties, expected_type=type_hints["ecs_properties"])
|
|
6659
|
+
check_type(argname="argument eks_properties", value=eks_properties, expected_type=type_hints["eks_properties"])
|
|
6458
6660
|
check_type(argname="argument instance_types", value=instance_types, expected_type=type_hints["instance_types"])
|
|
6459
6661
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
6460
6662
|
"target_nodes": target_nodes,
|
|
@@ -6463,6 +6665,8 @@ class CfnJobDefinition(
|
|
|
6463
6665
|
self._values["container"] = container
|
|
6464
6666
|
if ecs_properties is not None:
|
|
6465
6667
|
self._values["ecs_properties"] = ecs_properties
|
|
6668
|
+
if eks_properties is not None:
|
|
6669
|
+
self._values["eks_properties"] = eks_properties
|
|
6466
6670
|
if instance_types is not None:
|
|
6467
6671
|
self._values["instance_types"] = instance_types
|
|
6468
6672
|
|
|
@@ -6500,6 +6704,16 @@ class CfnJobDefinition(
|
|
|
6500
6704
|
result = self._values.get("ecs_properties")
|
|
6501
6705
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnJobDefinition.EcsPropertiesProperty"]], result)
|
|
6502
6706
|
|
|
6707
|
+
@builtins.property
|
|
6708
|
+
def eks_properties(
|
|
6709
|
+
self,
|
|
6710
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnJobDefinition.EksPropertiesProperty"]]:
|
|
6711
|
+
'''
|
|
6712
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-noderangeproperty.html#cfn-batch-jobdefinition-noderangeproperty-eksproperties
|
|
6713
|
+
'''
|
|
6714
|
+
result = self._values.get("eks_properties")
|
|
6715
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnJobDefinition.EksPropertiesProperty"]], result)
|
|
6716
|
+
|
|
6503
6717
|
@builtins.property
|
|
6504
6718
|
def instance_types(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
6505
6719
|
'''The instance types of the underlying host infrastructure of a multi-node parallel job.
|
|
@@ -23508,6 +23722,7 @@ def _typecheckingstub__005c21025a81827c3f5ed456b171eb7ffdf652583c7da0ff6ff671864
|
|
|
23508
23722
|
target_nodes: builtins.str,
|
|
23509
23723
|
container: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.ContainerPropertiesProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
23510
23724
|
ecs_properties: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.EcsPropertiesProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
23725
|
+
eks_properties: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.EksPropertiesProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
23511
23726
|
instance_types: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
23512
23727
|
) -> None:
|
|
23513
23728
|
"""Type checking stubs"""
|