aws-cdk-lib 2.153.0__py3-none-any.whl → 2.154.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 +157 -215
- aws_cdk/_jsii/__init__.py +2 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.153.0.jsii.tgz → aws-cdk-lib@2.154.0.jsii.tgz} +0 -0
- aws_cdk/alexa_ask/__init__.py +3 -3
- aws_cdk/aws_accessanalyzer/__init__.py +5 -5
- aws_cdk/aws_acmpca/__init__.py +79 -24
- aws_cdk/aws_amazonmq/__init__.py +161 -161
- aws_cdk/aws_amplify/__init__.py +36 -36
- aws_cdk/aws_amplifyuibuilder/__init__.py +32 -32
- aws_cdk/aws_apigateway/__init__.py +122 -122
- aws_cdk/aws_apigatewayv2/__init__.py +135 -121
- aws_cdk/aws_apigatewayv2_integrations/__init__.py +12 -12
- aws_cdk/aws_appconfig/__init__.py +59 -59
- aws_cdk/aws_appflow/__init__.py +20 -20
- aws_cdk/aws_appintegrations/__init__.py +19 -19
- aws_cdk/aws_applicationautoscaling/__init__.py +31 -16
- aws_cdk/aws_applicationinsights/__init__.py +11 -11
- aws_cdk/aws_applicationsignals/__init__.py +5 -5
- aws_cdk/aws_appmesh/__init__.py +35 -35
- aws_cdk/aws_apprunner/__init__.py +25 -25
- aws_cdk/aws_appstream/__init__.py +105 -105
- aws_cdk/aws_appsync/__init__.py +89 -89
- aws_cdk/aws_apptest/__init__.py +25 -25
- aws_cdk/aws_aps/__init__.py +14 -14
- aws_cdk/aws_arczonalshift/__init__.py +200 -3
- aws_cdk/aws_athena/__init__.py +25 -25
- aws_cdk/aws_auditmanager/__init__.py +15 -15
- aws_cdk/aws_autoscaling/__init__.py +84 -84
- aws_cdk/aws_autoscalingplans/__init__.py +2 -2
- aws_cdk/aws_b2bi/__init__.py +24 -24
- aws_cdk/aws_backup/__init__.py +33 -33
- aws_cdk/aws_backupgateway/__init__.py +7 -7
- aws_cdk/aws_batch/__init__.py +289 -35
- aws_cdk/aws_bcmdataexports/__init__.py +2 -2
- aws_cdk/aws_bedrock/__init__.py +13239 -3277
- aws_cdk/aws_billingconductor/__init__.py +28 -28
- aws_cdk/aws_budgets/__init__.py +12 -12
- aws_cdk/aws_cassandra/__init__.py +16 -16
- aws_cdk/aws_ce/__init__.py +17 -17
- aws_cdk/aws_certificatemanager/__init__.py +9 -9
- aws_cdk/aws_chatbot/__init__.py +22 -22
- aws_cdk/aws_cleanrooms/__init__.py +2470 -307
- aws_cdk/aws_cleanroomsml/__init__.py +5 -5
- aws_cdk/aws_cloud9/__init__.py +10 -10
- aws_cdk/aws_cloudformation/__init__.py +94 -69
- aws_cdk/aws_cloudfront/__init__.py +31 -30
- aws_cdk/aws_cloudtrail/__init__.py +46 -44
- aws_cdk/aws_cloudwatch/__init__.py +61 -69
- aws_cdk/aws_codeartifact/__init__.py +19 -19
- aws_cdk/aws_codebuild/__init__.py +60 -68
- aws_cdk/aws_codecommit/__init__.py +10 -6
- aws_cdk/aws_codeconnections/__init__.py +5 -5
- aws_cdk/aws_codedeploy/__init__.py +28 -28
- aws_cdk/aws_codeguruprofiler/__init__.py +5 -5
- aws_cdk/aws_codegurureviewer/__init__.py +6 -6
- aws_cdk/aws_codepipeline/__init__.py +849 -52
- aws_cdk/aws_codepipeline_actions/__init__.py +1 -1
- aws_cdk/aws_codestar/__init__.py +8 -8
- aws_cdk/aws_codestarconnections/__init__.py +17 -17
- aws_cdk/aws_codestarnotifications/__init__.py +10 -10
- aws_cdk/aws_cognito/__init__.py +465 -133
- aws_cdk/aws_comprehend/__init__.py +20 -20
- aws_cdk/aws_config/__init__.py +67 -67
- aws_cdk/aws_connect/__init__.py +139 -137
- aws_cdk/aws_connectcampaigns/__init__.py +5 -5
- aws_cdk/aws_controltower/__init__.py +12 -12
- aws_cdk/aws_cur/__init__.py +12 -12
- aws_cdk/aws_customerprofiles/__init__.py +36 -36
- aws_cdk/aws_databrew/__init__.py +45 -45
- aws_cdk/aws_datapipeline/__init__.py +12 -8
- aws_cdk/aws_datasync/__init__.py +119 -117
- aws_cdk/aws_datazone/__init__.py +63 -63
- aws_cdk/aws_dax/__init__.py +20 -20
- aws_cdk/aws_deadline/__init__.py +221 -292
- aws_cdk/aws_detective/__init__.py +8 -8
- aws_cdk/aws_devicefarm/__init__.py +37 -37
- aws_cdk/aws_devopsguru/__init__.py +2 -2
- aws_cdk/aws_directoryservice/__init__.py +15 -15
- aws_cdk/aws_dlm/__init__.py +12 -12
- aws_cdk/aws_dms/__init__.py +300 -298
- aws_cdk/aws_docdb/__init__.py +49 -49
- aws_cdk/aws_docdbelastic/__init__.py +14 -14
- aws_cdk/aws_dynamodb/__init__.py +371 -37
- aws_cdk/aws_ec2/__init__.py +900 -606
- aws_cdk/aws_ecr/__init__.py +117 -77
- aws_cdk/aws_ecr_assets/__init__.py +4 -4
- aws_cdk/aws_ecs/__init__.py +190 -191
- aws_cdk/aws_ecs_patterns/__init__.py +2 -2
- aws_cdk/aws_efs/__init__.py +22 -22
- aws_cdk/aws_eks/__init__.py +177 -61
- aws_cdk/aws_elasticache/__init__.py +218 -226
- aws_cdk/aws_elasticbeanstalk/__init__.py +25 -25
- aws_cdk/aws_elasticloadbalancing/__init__.py +16 -16
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +1066 -102
- aws_cdk/aws_elasticloadbalancingv2_targets/__init__.py +86 -4
- aws_cdk/aws_elasticsearch/__init__.py +16 -16
- aws_cdk/aws_emr/__init__.py +74 -74
- aws_cdk/aws_emrcontainers/__init__.py +3 -3
- aws_cdk/aws_emrserverless/__init__.py +157 -14
- aws_cdk/aws_entityresolution/__init__.py +613 -35
- aws_cdk/aws_events/__init__.py +42 -42
- aws_cdk/aws_eventschemas/__init__.py +16 -16
- aws_cdk/aws_evidently/__init__.py +38 -38
- aws_cdk/aws_finspace/__init__.py +8 -8
- aws_cdk/aws_fis/__init__.py +12 -12
- aws_cdk/aws_fms/__init__.py +21 -21
- aws_cdk/aws_forecast/__init__.py +18 -11
- aws_cdk/aws_frauddetector/__init__.py +35 -35
- aws_cdk/aws_fsx/__init__.py +35 -35
- aws_cdk/aws_gamelift/__init__.py +103 -103
- aws_cdk/aws_globalaccelerator/__init__.py +46 -24
- aws_cdk/aws_glue/__init__.py +132 -139
- aws_cdk/aws_grafana/__init__.py +17 -17
- aws_cdk/aws_greengrass/__init__.py +48 -48
- aws_cdk/aws_greengrassv2/__init__.py +10 -10
- aws_cdk/aws_groundstation/__init__.py +16 -16
- aws_cdk/aws_guardduty/__init__.py +40 -38
- aws_cdk/aws_healthimaging/__init__.py +3 -3
- aws_cdk/aws_healthlake/__init__.py +6 -6
- aws_cdk/aws_iam/__init__.py +120 -122
- aws_cdk/aws_identitystore/__init__.py +6 -6
- aws_cdk/aws_imagebuilder/__init__.py +92 -92
- aws_cdk/aws_inspector/__init__.py +8 -8
- aws_cdk/aws_inspectorv2/__init__.py +102 -97
- aws_cdk/aws_internetmonitor/__init__.py +12 -12
- aws_cdk/aws_iot/__init__.py +141 -141
- aws_cdk/aws_iot1click/__init__.py +9 -9
- aws_cdk/aws_iotanalytics/__init__.py +21 -21
- aws_cdk/aws_iotcoredeviceadvisor/__init__.py +2 -2
- aws_cdk/aws_iotevents/__init__.py +20 -20
- aws_cdk/aws_iotfleethub/__init__.py +4 -4
- aws_cdk/aws_iotfleetwise/__init__.py +45 -45
- aws_cdk/aws_iotsitewise/__init__.py +40 -40
- aws_cdk/aws_iotthingsgraph/__init__.py +2 -2
- aws_cdk/aws_iottwinmaker/__init__.py +34 -34
- aws_cdk/aws_iotwireless/__init__.py +66 -66
- aws_cdk/aws_ivs/__init__.py +32 -32
- aws_cdk/aws_ivschat/__init__.py +9 -9
- aws_cdk/aws_kafkaconnect/__init__.py +22 -22
- aws_cdk/aws_kendra/__init__.py +28 -28
- aws_cdk/aws_kendraranking/__init__.py +4 -4
- aws_cdk/aws_kinesis/__init__.py +8 -8
- aws_cdk/aws_kinesisanalytics/__init__.py +23 -23
- aws_cdk/aws_kinesisanalyticsv2/__init__.py +15 -15
- aws_cdk/aws_kinesisfirehose/__init__.py +677 -18
- aws_cdk/aws_kinesisvideo/__init__.py +10 -10
- aws_cdk/aws_kms/__init__.py +20 -20
- aws_cdk/aws_lakeformation/__init__.py +36 -36
- aws_cdk/aws_lambda/__init__.py +174 -118
- aws_cdk/aws_launchwizard/__init__.py +508 -0
- aws_cdk/aws_lex/__init__.py +24 -24
- aws_cdk/aws_licensemanager/__init__.py +17 -17
- aws_cdk/aws_lightsail/__init__.py +90 -90
- aws_cdk/aws_location/__init__.py +41 -41
- aws_cdk/aws_logs/__init__.py +50 -50
- aws_cdk/aws_lookoutequipment/__init__.py +9 -9
- aws_cdk/aws_lookoutmetrics/__init__.py +10 -10
- aws_cdk/aws_lookoutvision/__init__.py +1 -1
- aws_cdk/aws_m2/__init__.py +20 -20
- aws_cdk/aws_macie/__init__.py +19 -19
- aws_cdk/aws_managedblockchain/__init__.py +10 -10
- aws_cdk/aws_mediaconnect/__init__.py +114 -77
- aws_cdk/aws_mediaconvert/__init__.py +20 -20
- aws_cdk/aws_medialive/__init__.py +44 -76
- aws_cdk/aws_mediapackage/__init__.py +38 -38
- aws_cdk/aws_mediapackagev2/__init__.py +178 -25
- aws_cdk/aws_mediastore/__init__.py +7 -7
- aws_cdk/aws_mediatailor/__init__.py +40 -40
- aws_cdk/aws_memorydb/__init__.py +41 -41
- aws_cdk/aws_msk/__init__.py +39 -39
- aws_cdk/aws_mwaa/__init__.py +25 -25
- aws_cdk/aws_neptune/__init__.py +55 -55
- aws_cdk/aws_neptunegraph/__init__.py +11 -11
- aws_cdk/aws_networkfirewall/__init__.py +36 -30
- aws_cdk/aws_networkmanager/__init__.py +1062 -91
- aws_cdk/aws_nimblestudio/__init__.py +31 -31
- aws_cdk/aws_oam/__init__.py +8 -8
- aws_cdk/aws_omics/__init__.py +36 -36
- aws_cdk/aws_opensearchserverless/__init__.py +25 -25
- aws_cdk/aws_opensearchservice/__init__.py +20 -20
- aws_cdk/aws_opsworks/__init__.py +87 -87
- aws_cdk/aws_opsworkscm/__init__.py +21 -21
- aws_cdk/aws_organizations/__init__.py +17 -17
- aws_cdk/aws_osis/__init__.py +122 -9
- aws_cdk/aws_panorama/__init__.py +27 -22
- aws_cdk/aws_paymentcryptography/__init__.py +7 -7
- aws_cdk/aws_pcaconnectorad/__init__.py +17 -17
- aws_cdk/aws_personalize/__init__.py +19 -19
- aws_cdk/aws_pinpoint/__init__.py +122 -122
- aws_cdk/aws_pinpointemail/__init__.py +16 -16
- aws_cdk/aws_pipes/__init__.py +14 -16
- aws_cdk/aws_proton/__init__.py +19 -19
- aws_cdk/aws_qbusiness/__init__.py +160 -45
- aws_cdk/aws_qldb/__init__.py +12 -12
- aws_cdk/aws_quicksight/__init__.py +91 -91
- aws_cdk/aws_ram/__init__.py +11 -11
- aws_cdk/aws_rds/__init__.py +365 -259
- aws_cdk/aws_redshift/__init__.py +136 -91
- aws_cdk/aws_redshiftserverless/__init__.py +27 -27
- aws_cdk/aws_refactorspaces/__init__.py +26 -26
- aws_cdk/aws_rekognition/__init__.py +16 -16
- aws_cdk/aws_resiliencehub/__init__.py +15 -15
- aws_cdk/aws_resourceexplorer2/__init__.py +8 -8
- aws_cdk/aws_resourcegroups/__init__.py +6 -6
- aws_cdk/aws_robomaker/__init__.py +25 -25
- aws_cdk/aws_rolesanywhere/__init__.py +67 -19
- aws_cdk/aws_route53/__init__.py +36 -36
- aws_cdk/aws_route53profiles/__init__.py +11 -11
- aws_cdk/aws_route53recoverycontrol/__init__.py +14 -14
- aws_cdk/aws_route53recoveryreadiness/__init__.py +13 -13
- aws_cdk/aws_route53resolver/__init__.py +123 -82
- aws_cdk/aws_rum/__init__.py +6 -6
- aws_cdk/aws_s3/__init__.py +136 -80
- aws_cdk/aws_s3_deployment/__init__.py +30 -24
- aws_cdk/aws_s3_notifications/__init__.py +3 -4
- aws_cdk/aws_s3express/__init__.py +5 -5
- aws_cdk/aws_s3objectlambda/__init__.py +6 -6
- aws_cdk/aws_s3outposts/__init__.py +16 -16
- aws_cdk/aws_sagemaker/__init__.py +2412 -280
- aws_cdk/aws_sam/__init__.py +101 -101
- aws_cdk/aws_scheduler/__init__.py +13 -13
- aws_cdk/aws_sdb/__init__.py +1 -1
- aws_cdk/aws_secretsmanager/__init__.py +20 -19
- aws_cdk/aws_securityhub/__init__.py +70 -57
- aws_cdk/aws_securitylake/__init__.py +341 -16
- aws_cdk/aws_servicecatalog/__init__.py +87 -87
- aws_cdk/aws_servicecatalogappregistry/__init__.py +12 -12
- aws_cdk/aws_servicediscovery/__init__.py +23 -23
- aws_cdk/aws_ses/__init__.py +12038 -5604
- aws_cdk/aws_shield/__init__.py +15 -15
- aws_cdk/aws_signer/__init__.py +9 -9
- aws_cdk/aws_simspaceweaver/__init__.py +5 -5
- aws_cdk/aws_sns/__init__.py +28 -28
- aws_cdk/aws_sqs/__init__.py +20 -20
- aws_cdk/aws_ssm/__init__.py +172 -101
- aws_cdk/aws_ssmcontacts/__init__.py +18 -18
- aws_cdk/aws_ssmincidents/__init__.py +11 -11
- aws_cdk/aws_sso/__init__.py +31 -31
- aws_cdk/aws_stepfunctions/__init__.py +370 -28
- aws_cdk/aws_supportapp/__init__.py +11 -11
- aws_cdk/aws_synthetics/__init__.py +18 -18
- aws_cdk/aws_systemsmanagersap/__init__.py +48 -7
- aws_cdk/aws_timestream/__init__.py +34 -34
- aws_cdk/aws_transfer/__init__.py +57 -57
- aws_cdk/aws_verifiedpermissions/__init__.py +11 -11
- aws_cdk/aws_voiceid/__init__.py +4 -4
- aws_cdk/aws_vpclattice/__init__.py +42 -42
- aws_cdk/aws_waf/__init__.py +17 -17
- aws_cdk/aws_wafregional/__init__.py +28 -28
- aws_cdk/aws_wafv2/__init__.py +39 -39
- aws_cdk/aws_wisdom/__init__.py +16 -16
- aws_cdk/aws_workspaces/__init__.py +18 -18
- aws_cdk/aws_workspacesthinclient/__init__.py +63 -9
- aws_cdk/aws_workspacesweb/__init__.py +87 -46
- aws_cdk/aws_xray/__init__.py +12 -12
- aws_cdk/cloud_assembly_schema/__init__.py +348 -239
- aws_cdk/custom_resources/__init__.py +283 -0
- aws_cdk/cx_api/__init__.py +15 -15
- aws_cdk/pipelines/__init__.py +172 -237
- {aws_cdk_lib-2.153.0.dist-info → aws_cdk_lib-2.154.0.dist-info}/METADATA +3 -2
- aws_cdk_lib-2.154.0.dist-info/RECORD +292 -0
- aws_cdk_lib-2.153.0.dist-info/RECORD +0 -291
- {aws_cdk_lib-2.153.0.dist-info → aws_cdk_lib-2.154.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.153.0.dist-info → aws_cdk_lib-2.154.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.153.0.dist-info → aws_cdk_lib-2.154.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.153.0.dist-info → aws_cdk_lib-2.154.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_batch/__init__.py
CHANGED
|
@@ -112,6 +112,23 @@ compute_env.add_instance_class(ec2.InstanceClass.M4)
|
|
|
112
112
|
compute_env.add_instance_class(ec2.InstanceClass.R4)
|
|
113
113
|
```
|
|
114
114
|
|
|
115
|
+
#### Configure AMIs
|
|
116
|
+
|
|
117
|
+
You can configure Amazon Machine Images (AMIs). This example configures your `ComputeEnvironment` to use Amazon Linux 2023.
|
|
118
|
+
|
|
119
|
+
```python
|
|
120
|
+
# vpc: ec2.IVpc
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
batch.ManagedEc2EcsComputeEnvironment(self, "myEc2ComputeEnv",
|
|
124
|
+
vpc=vpc,
|
|
125
|
+
images=[batch.EcsMachineImage(
|
|
126
|
+
image_type=batch.EcsMachineImageType.ECS_AL2023
|
|
127
|
+
)
|
|
128
|
+
]
|
|
129
|
+
)
|
|
130
|
+
```
|
|
131
|
+
|
|
115
132
|
#### Allocation Strategies
|
|
116
133
|
|
|
117
134
|
| Allocation Strategy | Optimized for | Downsides |
|
|
@@ -1070,7 +1087,7 @@ class CfnComputeEnvironment(
|
|
|
1070
1087
|
if __debug__:
|
|
1071
1088
|
type_hints = typing.get_type_hints(_typecheckingstub__af58b33143bf1d8d98a3c10df145b0898751e739fa8cabe1763160d50bc3d730)
|
|
1072
1089
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1073
|
-
jsii.set(self, "type", value)
|
|
1090
|
+
jsii.set(self, "type", value) # pyright: ignore[reportArgumentType]
|
|
1074
1091
|
|
|
1075
1092
|
@builtins.property
|
|
1076
1093
|
@jsii.member(jsii_name="computeEnvironmentName")
|
|
@@ -1083,7 +1100,7 @@ class CfnComputeEnvironment(
|
|
|
1083
1100
|
if __debug__:
|
|
1084
1101
|
type_hints = typing.get_type_hints(_typecheckingstub__703e5e791be63f407384e398bda6c05261d86a114fb52955ac953213dc086558)
|
|
1085
1102
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1086
|
-
jsii.set(self, "computeEnvironmentName", value)
|
|
1103
|
+
jsii.set(self, "computeEnvironmentName", value) # pyright: ignore[reportArgumentType]
|
|
1087
1104
|
|
|
1088
1105
|
@builtins.property
|
|
1089
1106
|
@jsii.member(jsii_name="computeResources")
|
|
@@ -1101,7 +1118,7 @@ class CfnComputeEnvironment(
|
|
|
1101
1118
|
if __debug__:
|
|
1102
1119
|
type_hints = typing.get_type_hints(_typecheckingstub__aa0f8cbb024617b335ccf7af8884568ad91340203512578a8d682adfdfce5cd9)
|
|
1103
1120
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1104
|
-
jsii.set(self, "computeResources", value)
|
|
1121
|
+
jsii.set(self, "computeResources", value) # pyright: ignore[reportArgumentType]
|
|
1105
1122
|
|
|
1106
1123
|
@builtins.property
|
|
1107
1124
|
@jsii.member(jsii_name="eksConfiguration")
|
|
@@ -1119,7 +1136,7 @@ class CfnComputeEnvironment(
|
|
|
1119
1136
|
if __debug__:
|
|
1120
1137
|
type_hints = typing.get_type_hints(_typecheckingstub__896771848c9977e1ce30b550c3e02c1b1e7e047a645b3eb92c3d6d3bcf2ef1cf)
|
|
1121
1138
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1122
|
-
jsii.set(self, "eksConfiguration", value)
|
|
1139
|
+
jsii.set(self, "eksConfiguration", value) # pyright: ignore[reportArgumentType]
|
|
1123
1140
|
|
|
1124
1141
|
@builtins.property
|
|
1125
1142
|
@jsii.member(jsii_name="replaceComputeEnvironment")
|
|
@@ -1137,7 +1154,7 @@ class CfnComputeEnvironment(
|
|
|
1137
1154
|
if __debug__:
|
|
1138
1155
|
type_hints = typing.get_type_hints(_typecheckingstub__4f7a9dd96ed6e9e51373fc67bf7c1cfa4f89dea1d9ec4216da0ee3a471c21879)
|
|
1139
1156
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1140
|
-
jsii.set(self, "replaceComputeEnvironment", value)
|
|
1157
|
+
jsii.set(self, "replaceComputeEnvironment", value) # pyright: ignore[reportArgumentType]
|
|
1141
1158
|
|
|
1142
1159
|
@builtins.property
|
|
1143
1160
|
@jsii.member(jsii_name="serviceRole")
|
|
@@ -1150,7 +1167,7 @@ class CfnComputeEnvironment(
|
|
|
1150
1167
|
if __debug__:
|
|
1151
1168
|
type_hints = typing.get_type_hints(_typecheckingstub__682bb80f66d8c5016b985338436d49dc6155bd7a11dc1567d1a6478eddb9fc94)
|
|
1152
1169
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1153
|
-
jsii.set(self, "serviceRole", value)
|
|
1170
|
+
jsii.set(self, "serviceRole", value) # pyright: ignore[reportArgumentType]
|
|
1154
1171
|
|
|
1155
1172
|
@builtins.property
|
|
1156
1173
|
@jsii.member(jsii_name="state")
|
|
@@ -1163,7 +1180,7 @@ class CfnComputeEnvironment(
|
|
|
1163
1180
|
if __debug__:
|
|
1164
1181
|
type_hints = typing.get_type_hints(_typecheckingstub__30039c901207ae322b43ee9582a8efa812de586638692e722a62baa18097a10d)
|
|
1165
1182
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1166
|
-
jsii.set(self, "state", value)
|
|
1183
|
+
jsii.set(self, "state", value) # pyright: ignore[reportArgumentType]
|
|
1167
1184
|
|
|
1168
1185
|
@builtins.property
|
|
1169
1186
|
@jsii.member(jsii_name="tagsRaw")
|
|
@@ -1179,7 +1196,7 @@ class CfnComputeEnvironment(
|
|
|
1179
1196
|
if __debug__:
|
|
1180
1197
|
type_hints = typing.get_type_hints(_typecheckingstub__fd461eb02586f268eaf0fc0a27581016dd596744fdebffc9a80af4b63a998bd3)
|
|
1181
1198
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1182
|
-
jsii.set(self, "tagsRaw", value)
|
|
1199
|
+
jsii.set(self, "tagsRaw", value) # pyright: ignore[reportArgumentType]
|
|
1183
1200
|
|
|
1184
1201
|
@builtins.property
|
|
1185
1202
|
@jsii.member(jsii_name="unmanagedvCpus")
|
|
@@ -1192,7 +1209,7 @@ class CfnComputeEnvironment(
|
|
|
1192
1209
|
if __debug__:
|
|
1193
1210
|
type_hints = typing.get_type_hints(_typecheckingstub__e874461559bd593606ec74eed9b2200a045433519c0ec8ec8d62a53f967da17a)
|
|
1194
1211
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1195
|
-
jsii.set(self, "unmanagedvCpus", value)
|
|
1212
|
+
jsii.set(self, "unmanagedvCpus", value) # pyright: ignore[reportArgumentType]
|
|
1196
1213
|
|
|
1197
1214
|
@builtins.property
|
|
1198
1215
|
@jsii.member(jsii_name="updatePolicy")
|
|
@@ -1210,7 +1227,7 @@ class CfnComputeEnvironment(
|
|
|
1210
1227
|
if __debug__:
|
|
1211
1228
|
type_hints = typing.get_type_hints(_typecheckingstub__39e9319d6ed789d3e7f527a145e7be0671311d4703680199b29ca8aef5635e60)
|
|
1212
1229
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1213
|
-
jsii.set(self, "updatePolicy", value)
|
|
1230
|
+
jsii.set(self, "updatePolicy", value) # pyright: ignore[reportArgumentType]
|
|
1214
1231
|
|
|
1215
1232
|
@jsii.data_type(
|
|
1216
1233
|
jsii_type="aws-cdk-lib.aws_batch.CfnComputeEnvironment.ComputeResourcesProperty",
|
|
@@ -2517,7 +2534,7 @@ class CfnJobDefinition(
|
|
|
2517
2534
|
if __debug__:
|
|
2518
2535
|
type_hints = typing.get_type_hints(_typecheckingstub__c96b92c09c064b55548b6669735edc8ffa8187ffae08746200ea2113f36cdcc6)
|
|
2519
2536
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2520
|
-
jsii.set(self, "type", value)
|
|
2537
|
+
jsii.set(self, "type", value) # pyright: ignore[reportArgumentType]
|
|
2521
2538
|
|
|
2522
2539
|
@builtins.property
|
|
2523
2540
|
@jsii.member(jsii_name="containerProperties")
|
|
@@ -2535,7 +2552,7 @@ class CfnJobDefinition(
|
|
|
2535
2552
|
if __debug__:
|
|
2536
2553
|
type_hints = typing.get_type_hints(_typecheckingstub__f69a394e899a3c712c6499f6fcffa98702eb3ab7de5e4489e6e69fb85ae55491)
|
|
2537
2554
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2538
|
-
jsii.set(self, "containerProperties", value)
|
|
2555
|
+
jsii.set(self, "containerProperties", value) # pyright: ignore[reportArgumentType]
|
|
2539
2556
|
|
|
2540
2557
|
@builtins.property
|
|
2541
2558
|
@jsii.member(jsii_name="ecsProperties")
|
|
@@ -2553,7 +2570,7 @@ class CfnJobDefinition(
|
|
|
2553
2570
|
if __debug__:
|
|
2554
2571
|
type_hints = typing.get_type_hints(_typecheckingstub__0f93a9bec3d893845bf7cf59752d55dcec2df30819130514b48897371c2ec224)
|
|
2555
2572
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2556
|
-
jsii.set(self, "ecsProperties", value)
|
|
2573
|
+
jsii.set(self, "ecsProperties", value) # pyright: ignore[reportArgumentType]
|
|
2557
2574
|
|
|
2558
2575
|
@builtins.property
|
|
2559
2576
|
@jsii.member(jsii_name="eksProperties")
|
|
@@ -2571,7 +2588,7 @@ class CfnJobDefinition(
|
|
|
2571
2588
|
if __debug__:
|
|
2572
2589
|
type_hints = typing.get_type_hints(_typecheckingstub__ca04be0ba694eb2f262cad48402ba7bf94953530d02c650e2679b1f91498c346)
|
|
2573
2590
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2574
|
-
jsii.set(self, "eksProperties", value)
|
|
2591
|
+
jsii.set(self, "eksProperties", value) # pyright: ignore[reportArgumentType]
|
|
2575
2592
|
|
|
2576
2593
|
@builtins.property
|
|
2577
2594
|
@jsii.member(jsii_name="jobDefinitionName")
|
|
@@ -2584,7 +2601,7 @@ class CfnJobDefinition(
|
|
|
2584
2601
|
if __debug__:
|
|
2585
2602
|
type_hints = typing.get_type_hints(_typecheckingstub__38f628b65bca30d37b13950af18cab324471321abe3a2e97c363552c0adbe924)
|
|
2586
2603
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2587
|
-
jsii.set(self, "jobDefinitionName", value)
|
|
2604
|
+
jsii.set(self, "jobDefinitionName", value) # pyright: ignore[reportArgumentType]
|
|
2588
2605
|
|
|
2589
2606
|
@builtins.property
|
|
2590
2607
|
@jsii.member(jsii_name="nodeProperties")
|
|
@@ -2602,7 +2619,7 @@ class CfnJobDefinition(
|
|
|
2602
2619
|
if __debug__:
|
|
2603
2620
|
type_hints = typing.get_type_hints(_typecheckingstub__e9d18dd3dda5e5761ec3a8f3c7af96598c179ac9f1bca0af0078b6aee12c880b)
|
|
2604
2621
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2605
|
-
jsii.set(self, "nodeProperties", value)
|
|
2622
|
+
jsii.set(self, "nodeProperties", value) # pyright: ignore[reportArgumentType]
|
|
2606
2623
|
|
|
2607
2624
|
@builtins.property
|
|
2608
2625
|
@jsii.member(jsii_name="parameters")
|
|
@@ -2615,7 +2632,7 @@ class CfnJobDefinition(
|
|
|
2615
2632
|
if __debug__:
|
|
2616
2633
|
type_hints = typing.get_type_hints(_typecheckingstub__0dfa67937c5c5c585d3dedec8653cb0633c802b99afaa23545e8fcc71bf4ef88)
|
|
2617
2634
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2618
|
-
jsii.set(self, "parameters", value)
|
|
2635
|
+
jsii.set(self, "parameters", value) # pyright: ignore[reportArgumentType]
|
|
2619
2636
|
|
|
2620
2637
|
@builtins.property
|
|
2621
2638
|
@jsii.member(jsii_name="platformCapabilities")
|
|
@@ -2631,7 +2648,7 @@ class CfnJobDefinition(
|
|
|
2631
2648
|
if __debug__:
|
|
2632
2649
|
type_hints = typing.get_type_hints(_typecheckingstub__df387fd03e7b9707eac2330bd1c2776f56a71ead17f60e9cc8606c21591b2cca)
|
|
2633
2650
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2634
|
-
jsii.set(self, "platformCapabilities", value)
|
|
2651
|
+
jsii.set(self, "platformCapabilities", value) # pyright: ignore[reportArgumentType]
|
|
2635
2652
|
|
|
2636
2653
|
@builtins.property
|
|
2637
2654
|
@jsii.member(jsii_name="propagateTags")
|
|
@@ -2649,7 +2666,7 @@ class CfnJobDefinition(
|
|
|
2649
2666
|
if __debug__:
|
|
2650
2667
|
type_hints = typing.get_type_hints(_typecheckingstub__269e7fe24ddc93928c4ed8726528871fc789de7275942860c547acd761f99025)
|
|
2651
2668
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2652
|
-
jsii.set(self, "propagateTags", value)
|
|
2669
|
+
jsii.set(self, "propagateTags", value) # pyright: ignore[reportArgumentType]
|
|
2653
2670
|
|
|
2654
2671
|
@builtins.property
|
|
2655
2672
|
@jsii.member(jsii_name="retryStrategy")
|
|
@@ -2667,7 +2684,7 @@ class CfnJobDefinition(
|
|
|
2667
2684
|
if __debug__:
|
|
2668
2685
|
type_hints = typing.get_type_hints(_typecheckingstub__2ac615dba37cd2b5a6e9d6f8cdd4b6beef51ff826d65fe0b5cdc31685de03def)
|
|
2669
2686
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2670
|
-
jsii.set(self, "retryStrategy", value)
|
|
2687
|
+
jsii.set(self, "retryStrategy", value) # pyright: ignore[reportArgumentType]
|
|
2671
2688
|
|
|
2672
2689
|
@builtins.property
|
|
2673
2690
|
@jsii.member(jsii_name="schedulingPriority")
|
|
@@ -2680,7 +2697,7 @@ class CfnJobDefinition(
|
|
|
2680
2697
|
if __debug__:
|
|
2681
2698
|
type_hints = typing.get_type_hints(_typecheckingstub__dba2bfccdff2acf2f90d4e7a4965d8dcb1ae572e2c9cbd92260bf928e42d7e01)
|
|
2682
2699
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2683
|
-
jsii.set(self, "schedulingPriority", value)
|
|
2700
|
+
jsii.set(self, "schedulingPriority", value) # pyright: ignore[reportArgumentType]
|
|
2684
2701
|
|
|
2685
2702
|
@builtins.property
|
|
2686
2703
|
@jsii.member(jsii_name="tagsRaw")
|
|
@@ -2693,7 +2710,7 @@ class CfnJobDefinition(
|
|
|
2693
2710
|
if __debug__:
|
|
2694
2711
|
type_hints = typing.get_type_hints(_typecheckingstub__e523eed1bbd28b55b217e2df4a08d397d7fea1eab9961fca2a86f1f43fb0631f)
|
|
2695
2712
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2696
|
-
jsii.set(self, "tagsRaw", value)
|
|
2713
|
+
jsii.set(self, "tagsRaw", value) # pyright: ignore[reportArgumentType]
|
|
2697
2714
|
|
|
2698
2715
|
@builtins.property
|
|
2699
2716
|
@jsii.member(jsii_name="timeout")
|
|
@@ -2711,7 +2728,7 @@ class CfnJobDefinition(
|
|
|
2711
2728
|
if __debug__:
|
|
2712
2729
|
type_hints = typing.get_type_hints(_typecheckingstub__fa7b04ecd9d9f8e9c609d704cda9a2176a378049913a70b741c06702f6586c79)
|
|
2713
2730
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2714
|
-
jsii.set(self, "timeout", value)
|
|
2731
|
+
jsii.set(self, "timeout", value) # pyright: ignore[reportArgumentType]
|
|
2715
2732
|
|
|
2716
2733
|
@jsii.data_type(
|
|
2717
2734
|
jsii_type="aws-cdk-lib.aws_batch.CfnJobDefinition.AuthorizationConfigProperty",
|
|
@@ -5931,7 +5948,10 @@ class CfnJobDefinition(
|
|
|
5931
5948
|
# The values are placeholders you should change.
|
|
5932
5949
|
from aws_cdk import aws_batch as batch
|
|
5933
5950
|
|
|
5951
|
+
# labels: Any
|
|
5952
|
+
# limits: Any
|
|
5934
5953
|
# options: Any
|
|
5954
|
+
# requests: Any
|
|
5935
5955
|
|
|
5936
5956
|
node_properties_property = batch.CfnJobDefinition.NodePropertiesProperty(
|
|
5937
5957
|
main_node=123,
|
|
@@ -6142,6 +6162,102 @@ class CfnJobDefinition(
|
|
|
6142
6162
|
)]
|
|
6143
6163
|
)]
|
|
6144
6164
|
),
|
|
6165
|
+
eks_properties=batch.CfnJobDefinition.EksPropertiesProperty(
|
|
6166
|
+
pod_properties=batch.CfnJobDefinition.PodPropertiesProperty(
|
|
6167
|
+
containers=[batch.CfnJobDefinition.EksContainerProperty(
|
|
6168
|
+
image="image",
|
|
6169
|
+
|
|
6170
|
+
# the properties below are optional
|
|
6171
|
+
args=["args"],
|
|
6172
|
+
command=["command"],
|
|
6173
|
+
env=[batch.CfnJobDefinition.EksContainerEnvironmentVariableProperty(
|
|
6174
|
+
name="name",
|
|
6175
|
+
|
|
6176
|
+
# the properties below are optional
|
|
6177
|
+
value="value"
|
|
6178
|
+
)],
|
|
6179
|
+
image_pull_policy="imagePullPolicy",
|
|
6180
|
+
name="name",
|
|
6181
|
+
resources=batch.CfnJobDefinition.ResourcesProperty(
|
|
6182
|
+
limits=limits,
|
|
6183
|
+
requests=requests
|
|
6184
|
+
),
|
|
6185
|
+
security_context=batch.CfnJobDefinition.SecurityContextProperty(
|
|
6186
|
+
allow_privilege_escalation=False,
|
|
6187
|
+
privileged=False,
|
|
6188
|
+
read_only_root_filesystem=False,
|
|
6189
|
+
run_as_group=123,
|
|
6190
|
+
run_as_non_root=False,
|
|
6191
|
+
run_as_user=123
|
|
6192
|
+
),
|
|
6193
|
+
volume_mounts=[batch.CfnJobDefinition.EksContainerVolumeMountProperty(
|
|
6194
|
+
mount_path="mountPath",
|
|
6195
|
+
name="name",
|
|
6196
|
+
read_only=False
|
|
6197
|
+
)]
|
|
6198
|
+
)],
|
|
6199
|
+
dns_policy="dnsPolicy",
|
|
6200
|
+
host_network=False,
|
|
6201
|
+
image_pull_secrets=[batch.CfnJobDefinition.ImagePullSecretProperty(
|
|
6202
|
+
name="name"
|
|
6203
|
+
)],
|
|
6204
|
+
init_containers=[batch.CfnJobDefinition.EksContainerProperty(
|
|
6205
|
+
image="image",
|
|
6206
|
+
|
|
6207
|
+
# the properties below are optional
|
|
6208
|
+
args=["args"],
|
|
6209
|
+
command=["command"],
|
|
6210
|
+
env=[batch.CfnJobDefinition.EksContainerEnvironmentVariableProperty(
|
|
6211
|
+
name="name",
|
|
6212
|
+
|
|
6213
|
+
# the properties below are optional
|
|
6214
|
+
value="value"
|
|
6215
|
+
)],
|
|
6216
|
+
image_pull_policy="imagePullPolicy",
|
|
6217
|
+
name="name",
|
|
6218
|
+
resources=batch.CfnJobDefinition.ResourcesProperty(
|
|
6219
|
+
limits=limits,
|
|
6220
|
+
requests=requests
|
|
6221
|
+
),
|
|
6222
|
+
security_context=batch.CfnJobDefinition.SecurityContextProperty(
|
|
6223
|
+
allow_privilege_escalation=False,
|
|
6224
|
+
privileged=False,
|
|
6225
|
+
read_only_root_filesystem=False,
|
|
6226
|
+
run_as_group=123,
|
|
6227
|
+
run_as_non_root=False,
|
|
6228
|
+
run_as_user=123
|
|
6229
|
+
),
|
|
6230
|
+
volume_mounts=[batch.CfnJobDefinition.EksContainerVolumeMountProperty(
|
|
6231
|
+
mount_path="mountPath",
|
|
6232
|
+
name="name",
|
|
6233
|
+
read_only=False
|
|
6234
|
+
)]
|
|
6235
|
+
)],
|
|
6236
|
+
metadata=batch.CfnJobDefinition.MetadataProperty(
|
|
6237
|
+
labels=labels
|
|
6238
|
+
),
|
|
6239
|
+
service_account_name="serviceAccountName",
|
|
6240
|
+
share_process_namespace=False,
|
|
6241
|
+
volumes=[batch.CfnJobDefinition.EksVolumeProperty(
|
|
6242
|
+
name="name",
|
|
6243
|
+
|
|
6244
|
+
# the properties below are optional
|
|
6245
|
+
empty_dir=batch.CfnJobDefinition.EmptyDirProperty(
|
|
6246
|
+
medium="medium",
|
|
6247
|
+
size_limit="sizeLimit"
|
|
6248
|
+
),
|
|
6249
|
+
host_path=batch.CfnJobDefinition.HostPathProperty(
|
|
6250
|
+
path="path"
|
|
6251
|
+
),
|
|
6252
|
+
secret=batch.CfnJobDefinition.EksSecretProperty(
|
|
6253
|
+
secret_name="secretName",
|
|
6254
|
+
|
|
6255
|
+
# the properties below are optional
|
|
6256
|
+
optional=False
|
|
6257
|
+
)
|
|
6258
|
+
)]
|
|
6259
|
+
)
|
|
6260
|
+
),
|
|
6145
6261
|
instance_types=["instanceTypes"]
|
|
6146
6262
|
)],
|
|
6147
6263
|
num_nodes=123
|
|
@@ -6210,6 +6326,7 @@ class CfnJobDefinition(
|
|
|
6210
6326
|
"target_nodes": "targetNodes",
|
|
6211
6327
|
"container": "container",
|
|
6212
6328
|
"ecs_properties": "ecsProperties",
|
|
6329
|
+
"eks_properties": "eksProperties",
|
|
6213
6330
|
"instance_types": "instanceTypes",
|
|
6214
6331
|
},
|
|
6215
6332
|
)
|
|
@@ -6220,6 +6337,7 @@ class CfnJobDefinition(
|
|
|
6220
6337
|
target_nodes: builtins.str,
|
|
6221
6338
|
container: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnJobDefinition.ContainerPropertiesProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
6222
6339
|
ecs_properties: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnJobDefinition.EcsPropertiesProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
6340
|
+
eks_properties: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnJobDefinition.EksPropertiesProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
6223
6341
|
instance_types: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
6224
6342
|
) -> None:
|
|
6225
6343
|
'''This is an object that represents the properties of the node range for a multi-node parallel job.
|
|
@@ -6227,6 +6345,7 @@ class CfnJobDefinition(
|
|
|
6227
6345
|
: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
6346
|
:param container: The container details for the node range.
|
|
6229
6347
|
:param ecs_properties: This is an object that represents the properties of the node range for a multi-node parallel job.
|
|
6348
|
+
:param eks_properties: This is an object that represents the properties of the node range for a multi-node parallel job.
|
|
6230
6349
|
: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
6350
|
|
|
6232
6351
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-noderangeproperty.html
|
|
@@ -6238,7 +6357,10 @@ class CfnJobDefinition(
|
|
|
6238
6357
|
# The values are placeholders you should change.
|
|
6239
6358
|
from aws_cdk import aws_batch as batch
|
|
6240
6359
|
|
|
6360
|
+
# labels: Any
|
|
6361
|
+
# limits: Any
|
|
6241
6362
|
# options: Any
|
|
6363
|
+
# requests: Any
|
|
6242
6364
|
|
|
6243
6365
|
node_range_property_property = batch.CfnJobDefinition.NodeRangePropertyProperty(
|
|
6244
6366
|
target_nodes="targetNodes",
|
|
@@ -6447,6 +6569,102 @@ class CfnJobDefinition(
|
|
|
6447
6569
|
)]
|
|
6448
6570
|
)]
|
|
6449
6571
|
),
|
|
6572
|
+
eks_properties=batch.CfnJobDefinition.EksPropertiesProperty(
|
|
6573
|
+
pod_properties=batch.CfnJobDefinition.PodPropertiesProperty(
|
|
6574
|
+
containers=[batch.CfnJobDefinition.EksContainerProperty(
|
|
6575
|
+
image="image",
|
|
6576
|
+
|
|
6577
|
+
# the properties below are optional
|
|
6578
|
+
args=["args"],
|
|
6579
|
+
command=["command"],
|
|
6580
|
+
env=[batch.CfnJobDefinition.EksContainerEnvironmentVariableProperty(
|
|
6581
|
+
name="name",
|
|
6582
|
+
|
|
6583
|
+
# the properties below are optional
|
|
6584
|
+
value="value"
|
|
6585
|
+
)],
|
|
6586
|
+
image_pull_policy="imagePullPolicy",
|
|
6587
|
+
name="name",
|
|
6588
|
+
resources=batch.CfnJobDefinition.ResourcesProperty(
|
|
6589
|
+
limits=limits,
|
|
6590
|
+
requests=requests
|
|
6591
|
+
),
|
|
6592
|
+
security_context=batch.CfnJobDefinition.SecurityContextProperty(
|
|
6593
|
+
allow_privilege_escalation=False,
|
|
6594
|
+
privileged=False,
|
|
6595
|
+
read_only_root_filesystem=False,
|
|
6596
|
+
run_as_group=123,
|
|
6597
|
+
run_as_non_root=False,
|
|
6598
|
+
run_as_user=123
|
|
6599
|
+
),
|
|
6600
|
+
volume_mounts=[batch.CfnJobDefinition.EksContainerVolumeMountProperty(
|
|
6601
|
+
mount_path="mountPath",
|
|
6602
|
+
name="name",
|
|
6603
|
+
read_only=False
|
|
6604
|
+
)]
|
|
6605
|
+
)],
|
|
6606
|
+
dns_policy="dnsPolicy",
|
|
6607
|
+
host_network=False,
|
|
6608
|
+
image_pull_secrets=[batch.CfnJobDefinition.ImagePullSecretProperty(
|
|
6609
|
+
name="name"
|
|
6610
|
+
)],
|
|
6611
|
+
init_containers=[batch.CfnJobDefinition.EksContainerProperty(
|
|
6612
|
+
image="image",
|
|
6613
|
+
|
|
6614
|
+
# the properties below are optional
|
|
6615
|
+
args=["args"],
|
|
6616
|
+
command=["command"],
|
|
6617
|
+
env=[batch.CfnJobDefinition.EksContainerEnvironmentVariableProperty(
|
|
6618
|
+
name="name",
|
|
6619
|
+
|
|
6620
|
+
# the properties below are optional
|
|
6621
|
+
value="value"
|
|
6622
|
+
)],
|
|
6623
|
+
image_pull_policy="imagePullPolicy",
|
|
6624
|
+
name="name",
|
|
6625
|
+
resources=batch.CfnJobDefinition.ResourcesProperty(
|
|
6626
|
+
limits=limits,
|
|
6627
|
+
requests=requests
|
|
6628
|
+
),
|
|
6629
|
+
security_context=batch.CfnJobDefinition.SecurityContextProperty(
|
|
6630
|
+
allow_privilege_escalation=False,
|
|
6631
|
+
privileged=False,
|
|
6632
|
+
read_only_root_filesystem=False,
|
|
6633
|
+
run_as_group=123,
|
|
6634
|
+
run_as_non_root=False,
|
|
6635
|
+
run_as_user=123
|
|
6636
|
+
),
|
|
6637
|
+
volume_mounts=[batch.CfnJobDefinition.EksContainerVolumeMountProperty(
|
|
6638
|
+
mount_path="mountPath",
|
|
6639
|
+
name="name",
|
|
6640
|
+
read_only=False
|
|
6641
|
+
)]
|
|
6642
|
+
)],
|
|
6643
|
+
metadata=batch.CfnJobDefinition.MetadataProperty(
|
|
6644
|
+
labels=labels
|
|
6645
|
+
),
|
|
6646
|
+
service_account_name="serviceAccountName",
|
|
6647
|
+
share_process_namespace=False,
|
|
6648
|
+
volumes=[batch.CfnJobDefinition.EksVolumeProperty(
|
|
6649
|
+
name="name",
|
|
6650
|
+
|
|
6651
|
+
# the properties below are optional
|
|
6652
|
+
empty_dir=batch.CfnJobDefinition.EmptyDirProperty(
|
|
6653
|
+
medium="medium",
|
|
6654
|
+
size_limit="sizeLimit"
|
|
6655
|
+
),
|
|
6656
|
+
host_path=batch.CfnJobDefinition.HostPathProperty(
|
|
6657
|
+
path="path"
|
|
6658
|
+
),
|
|
6659
|
+
secret=batch.CfnJobDefinition.EksSecretProperty(
|
|
6660
|
+
secret_name="secretName",
|
|
6661
|
+
|
|
6662
|
+
# the properties below are optional
|
|
6663
|
+
optional=False
|
|
6664
|
+
)
|
|
6665
|
+
)]
|
|
6666
|
+
)
|
|
6667
|
+
),
|
|
6450
6668
|
instance_types=["instanceTypes"]
|
|
6451
6669
|
)
|
|
6452
6670
|
'''
|
|
@@ -6455,6 +6673,7 @@ class CfnJobDefinition(
|
|
|
6455
6673
|
check_type(argname="argument target_nodes", value=target_nodes, expected_type=type_hints["target_nodes"])
|
|
6456
6674
|
check_type(argname="argument container", value=container, expected_type=type_hints["container"])
|
|
6457
6675
|
check_type(argname="argument ecs_properties", value=ecs_properties, expected_type=type_hints["ecs_properties"])
|
|
6676
|
+
check_type(argname="argument eks_properties", value=eks_properties, expected_type=type_hints["eks_properties"])
|
|
6458
6677
|
check_type(argname="argument instance_types", value=instance_types, expected_type=type_hints["instance_types"])
|
|
6459
6678
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
6460
6679
|
"target_nodes": target_nodes,
|
|
@@ -6463,6 +6682,8 @@ class CfnJobDefinition(
|
|
|
6463
6682
|
self._values["container"] = container
|
|
6464
6683
|
if ecs_properties is not None:
|
|
6465
6684
|
self._values["ecs_properties"] = ecs_properties
|
|
6685
|
+
if eks_properties is not None:
|
|
6686
|
+
self._values["eks_properties"] = eks_properties
|
|
6466
6687
|
if instance_types is not None:
|
|
6467
6688
|
self._values["instance_types"] = instance_types
|
|
6468
6689
|
|
|
@@ -6500,6 +6721,17 @@ class CfnJobDefinition(
|
|
|
6500
6721
|
result = self._values.get("ecs_properties")
|
|
6501
6722
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnJobDefinition.EcsPropertiesProperty"]], result)
|
|
6502
6723
|
|
|
6724
|
+
@builtins.property
|
|
6725
|
+
def eks_properties(
|
|
6726
|
+
self,
|
|
6727
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnJobDefinition.EksPropertiesProperty"]]:
|
|
6728
|
+
'''This is an object that represents the properties of the node range for a multi-node parallel job.
|
|
6729
|
+
|
|
6730
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-noderangeproperty.html#cfn-batch-jobdefinition-noderangeproperty-eksproperties
|
|
6731
|
+
'''
|
|
6732
|
+
result = self._values.get("eks_properties")
|
|
6733
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnJobDefinition.EksPropertiesProperty"]], result)
|
|
6734
|
+
|
|
6503
6735
|
@builtins.property
|
|
6504
6736
|
def instance_types(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
6505
6737
|
'''The instance types of the underlying host infrastructure of a multi-node parallel job.
|
|
@@ -8831,7 +9063,7 @@ class CfnJobQueue(
|
|
|
8831
9063
|
if __debug__:
|
|
8832
9064
|
type_hints = typing.get_type_hints(_typecheckingstub__aa1c2f3f42165309672c3fdf8c286ff9dc5e99756ec1a5b3ffca9e719d4c7036)
|
|
8833
9065
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
8834
|
-
jsii.set(self, "computeEnvironmentOrder", value)
|
|
9066
|
+
jsii.set(self, "computeEnvironmentOrder", value) # pyright: ignore[reportArgumentType]
|
|
8835
9067
|
|
|
8836
9068
|
@builtins.property
|
|
8837
9069
|
@jsii.member(jsii_name="priority")
|
|
@@ -8844,7 +9076,7 @@ class CfnJobQueue(
|
|
|
8844
9076
|
if __debug__:
|
|
8845
9077
|
type_hints = typing.get_type_hints(_typecheckingstub__620331f74c116d31a6d43627e1a45e7041bc3c110194265f30dc193863c8ed94)
|
|
8846
9078
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
8847
|
-
jsii.set(self, "priority", value)
|
|
9079
|
+
jsii.set(self, "priority", value) # pyright: ignore[reportArgumentType]
|
|
8848
9080
|
|
|
8849
9081
|
@builtins.property
|
|
8850
9082
|
@jsii.member(jsii_name="jobQueueName")
|
|
@@ -8857,7 +9089,7 @@ class CfnJobQueue(
|
|
|
8857
9089
|
if __debug__:
|
|
8858
9090
|
type_hints = typing.get_type_hints(_typecheckingstub__3b88e27e62b46f1049263a61bb14f62674a8121083de64c2db32d585651e1c30)
|
|
8859
9091
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
8860
|
-
jsii.set(self, "jobQueueName", value)
|
|
9092
|
+
jsii.set(self, "jobQueueName", value) # pyright: ignore[reportArgumentType]
|
|
8861
9093
|
|
|
8862
9094
|
@builtins.property
|
|
8863
9095
|
@jsii.member(jsii_name="jobStateTimeLimitActions")
|
|
@@ -8875,7 +9107,7 @@ class CfnJobQueue(
|
|
|
8875
9107
|
if __debug__:
|
|
8876
9108
|
type_hints = typing.get_type_hints(_typecheckingstub__6e248d0029fc3043fabb974edf0f06b8f9f721a8f13ce794fd6c39b5ae3bb91e)
|
|
8877
9109
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
8878
|
-
jsii.set(self, "jobStateTimeLimitActions", value)
|
|
9110
|
+
jsii.set(self, "jobStateTimeLimitActions", value) # pyright: ignore[reportArgumentType]
|
|
8879
9111
|
|
|
8880
9112
|
@builtins.property
|
|
8881
9113
|
@jsii.member(jsii_name="schedulingPolicyArn")
|
|
@@ -8888,7 +9120,7 @@ class CfnJobQueue(
|
|
|
8888
9120
|
if __debug__:
|
|
8889
9121
|
type_hints = typing.get_type_hints(_typecheckingstub__48a6952b4a8d4426554895a52085bf8c88701735f3f94a3426e81e56ab8a5761)
|
|
8890
9122
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
8891
|
-
jsii.set(self, "schedulingPolicyArn", value)
|
|
9123
|
+
jsii.set(self, "schedulingPolicyArn", value) # pyright: ignore[reportArgumentType]
|
|
8892
9124
|
|
|
8893
9125
|
@builtins.property
|
|
8894
9126
|
@jsii.member(jsii_name="state")
|
|
@@ -8901,7 +9133,7 @@ class CfnJobQueue(
|
|
|
8901
9133
|
if __debug__:
|
|
8902
9134
|
type_hints = typing.get_type_hints(_typecheckingstub__e97106b05367d04f8f618f0b8edf4f7fdc4b88436890062ac6e344ede4e180b0)
|
|
8903
9135
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
8904
|
-
jsii.set(self, "state", value)
|
|
9136
|
+
jsii.set(self, "state", value) # pyright: ignore[reportArgumentType]
|
|
8905
9137
|
|
|
8906
9138
|
@builtins.property
|
|
8907
9139
|
@jsii.member(jsii_name="tagsRaw")
|
|
@@ -8917,7 +9149,7 @@ class CfnJobQueue(
|
|
|
8917
9149
|
if __debug__:
|
|
8918
9150
|
type_hints = typing.get_type_hints(_typecheckingstub__e658491e12e1806302783cf972183ab89bf0d8d1d3abe7164fad544d18b91367)
|
|
8919
9151
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
8920
|
-
jsii.set(self, "tagsRaw", value)
|
|
9152
|
+
jsii.set(self, "tagsRaw", value) # pyright: ignore[reportArgumentType]
|
|
8921
9153
|
|
|
8922
9154
|
@jsii.data_type(
|
|
8923
9155
|
jsii_type="aws-cdk-lib.aws_batch.CfnJobQueue.ComputeEnvironmentOrderProperty",
|
|
@@ -9426,7 +9658,7 @@ class CfnSchedulingPolicy(
|
|
|
9426
9658
|
if __debug__:
|
|
9427
9659
|
type_hints = typing.get_type_hints(_typecheckingstub__cfc1fdc7b365c326e80f94bc6ce2c1ba05c54c3d0dc4caaecec7e9eb7ec315b3)
|
|
9428
9660
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
9429
|
-
jsii.set(self, "fairsharePolicy", value)
|
|
9661
|
+
jsii.set(self, "fairsharePolicy", value) # pyright: ignore[reportArgumentType]
|
|
9430
9662
|
|
|
9431
9663
|
@builtins.property
|
|
9432
9664
|
@jsii.member(jsii_name="name")
|
|
@@ -9439,7 +9671,7 @@ class CfnSchedulingPolicy(
|
|
|
9439
9671
|
if __debug__:
|
|
9440
9672
|
type_hints = typing.get_type_hints(_typecheckingstub__411bf4b677626f26ae0d797bd4706cc6d8b5dbd45471422cf971b438d0f43ee0)
|
|
9441
9673
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
9442
|
-
jsii.set(self, "name", value)
|
|
9674
|
+
jsii.set(self, "name", value) # pyright: ignore[reportArgumentType]
|
|
9443
9675
|
|
|
9444
9676
|
@builtins.property
|
|
9445
9677
|
@jsii.member(jsii_name="tagsRaw")
|
|
@@ -9455,7 +9687,7 @@ class CfnSchedulingPolicy(
|
|
|
9455
9687
|
if __debug__:
|
|
9456
9688
|
type_hints = typing.get_type_hints(_typecheckingstub__15f828d01fc7085728330a84e961df84cb35664d5a94e9bbf3bcfe93f7b3c7d5)
|
|
9457
9689
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
9458
|
-
jsii.set(self, "tagsRaw", value)
|
|
9690
|
+
jsii.set(self, "tagsRaw", value) # pyright: ignore[reportArgumentType]
|
|
9459
9691
|
|
|
9460
9692
|
@jsii.data_type(
|
|
9461
9693
|
jsii_type="aws-cdk-lib.aws_batch.CfnSchedulingPolicy.FairsharePolicyProperty",
|
|
@@ -11102,10 +11334,31 @@ class EcsMachineImage:
|
|
|
11102
11334
|
|
|
11103
11335
|
@jsii.enum(jsii_type="aws-cdk-lib.aws_batch.EcsMachineImageType")
|
|
11104
11336
|
class EcsMachineImageType(enum.Enum):
|
|
11105
|
-
'''Maps the image to instance types.
|
|
11337
|
+
'''Maps the image to instance types.
|
|
11338
|
+
|
|
11339
|
+
:exampleMetadata: infused
|
|
11340
|
+
|
|
11341
|
+
Example::
|
|
11342
|
+
|
|
11343
|
+
# vpc: ec2.IVpc
|
|
11344
|
+
|
|
11345
|
+
|
|
11346
|
+
batch.ManagedEc2EcsComputeEnvironment(self, "myEc2ComputeEnv",
|
|
11347
|
+
vpc=vpc,
|
|
11348
|
+
images=[batch.EcsMachineImage(
|
|
11349
|
+
image_type=batch.EcsMachineImageType.ECS_AL2023
|
|
11350
|
+
)
|
|
11351
|
+
]
|
|
11352
|
+
)
|
|
11353
|
+
'''
|
|
11106
11354
|
|
|
11107
11355
|
ECS_AL2 = "ECS_AL2"
|
|
11108
|
-
'''Tells Batch that this machine image runs on non-GPU instances.'''
|
|
11356
|
+
'''Tells Batch that this machine image runs on non-GPU AL2 instances.'''
|
|
11357
|
+
ECS_AL2023 = "ECS_AL2023"
|
|
11358
|
+
'''Tells Batch that this machine image runs on non-GPU AL2023 instances.
|
|
11359
|
+
|
|
11360
|
+
Amazon Linux 2023 does not support A1 instances.
|
|
11361
|
+
'''
|
|
11109
11362
|
ECS_AL2_NVIDIA = "ECS_AL2_NVIDIA"
|
|
11110
11363
|
'''Tells Batch that this machine image runs on GPU instances.'''
|
|
11111
11364
|
|
|
@@ -23508,6 +23761,7 @@ def _typecheckingstub__005c21025a81827c3f5ed456b171eb7ffdf652583c7da0ff6ff671864
|
|
|
23508
23761
|
target_nodes: builtins.str,
|
|
23509
23762
|
container: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.ContainerPropertiesProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
23510
23763
|
ecs_properties: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.EcsPropertiesProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
23764
|
+
eks_properties: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.EksPropertiesProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
23511
23765
|
instance_types: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
23512
23766
|
) -> None:
|
|
23513
23767
|
"""Type checking stubs"""
|
|
@@ -216,7 +216,7 @@ class CfnExport(
|
|
|
216
216
|
if __debug__:
|
|
217
217
|
type_hints = typing.get_type_hints(_typecheckingstub__c8ce26f4856f4fbb56e9f2fa30a5520af71bb0fab07aab599f3d350bcd7af208)
|
|
218
218
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
219
|
-
jsii.set(self, "export", value)
|
|
219
|
+
jsii.set(self, "export", value) # pyright: ignore[reportArgumentType]
|
|
220
220
|
|
|
221
221
|
@builtins.property
|
|
222
222
|
@jsii.member(jsii_name="tags")
|
|
@@ -231,7 +231,7 @@ class CfnExport(
|
|
|
231
231
|
if __debug__:
|
|
232
232
|
type_hints = typing.get_type_hints(_typecheckingstub__1ad623342e4c1e6ad8d0a1e800f480ca841fcc2866deb4be0a499fc18bffc658)
|
|
233
233
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
234
|
-
jsii.set(self, "tags", value)
|
|
234
|
+
jsii.set(self, "tags", value) # pyright: ignore[reportArgumentType]
|
|
235
235
|
|
|
236
236
|
@jsii.data_type(
|
|
237
237
|
jsii_type="aws-cdk-lib.aws_bcmdataexports.CfnExport.DataQueryProperty",
|