Skip to content

Commit 00737e5

Browse files
author
awstools
committedDec 17, 2024
feat(client-batch): This feature allows AWS Batch on Amazon EKS to support configuration of Pod Annotations, overriding Namespace on which the Batch job's Pod runs on, and allows Subpath and Persistent Volume claim to be set for AWS Batch on Amazon EKS jobs.
1 parent 5e299dd commit 00737e5

File tree

8 files changed

+300
-115
lines changed

8 files changed

+300
-115
lines changed
 

‎clients/client-batch/src/commands/CreateComputeEnvironmentCommand.ts

+3-5
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,9 @@ export interface CreateComputeEnvironmentCommandOutput extends CreateComputeEnvi
9494
* </li>
9595
* <li>
9696
* <p>Set the update to latest image version (<code>updateToLatestImageVersion</code>)
97-
* parameter to
98-
* <code>true</code>.
99-
* The <code>updateToLatestImageVersion</code> parameter is used when you update a compute
100-
* environment. This parameter is ignored when you create a compute
101-
* environment.</p>
97+
* parameter to <code>true</code>. The <code>updateToLatestImageVersion</code> parameter
98+
* is used when you update a compute environment. This parameter is ignored when you create
99+
* a compute environment.</p>
102100
* </li>
103101
* <li>
104102
* <p>Don't specify an AMI ID in <code>imageId</code>, <code>imageIdOverride</code> (in

‎clients/client-batch/src/commands/DescribeJobDefinitionsCommand.ts

+20
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ export interface DescribeJobDefinitionsCommandOutput extends DescribeJobDefiniti
375375
* // { // EksContainerVolumeMount
376376
* // name: "STRING_VALUE",
377377
* // mountPath: "STRING_VALUE",
378+
* // subPath: "STRING_VALUE",
378379
* // readOnly: true || false,
379380
* // },
380381
* // ],
@@ -413,6 +414,7 @@ export interface DescribeJobDefinitionsCommandOutput extends DescribeJobDefiniti
413414
* // {
414415
* // name: "STRING_VALUE",
415416
* // mountPath: "STRING_VALUE",
417+
* // subPath: "STRING_VALUE",
416418
* // readOnly: true || false,
417419
* // },
418420
* // ],
@@ -440,12 +442,20 @@ export interface DescribeJobDefinitionsCommandOutput extends DescribeJobDefiniti
440442
* // secretName: "STRING_VALUE", // required
441443
* // optional: true || false,
442444
* // },
445+
* // persistentVolumeClaim: { // EksPersistentVolumeClaim
446+
* // claimName: "STRING_VALUE", // required
447+
* // readOnly: true || false,
448+
* // },
443449
* // },
444450
* // ],
445451
* // metadata: { // EksMetadata
446452
* // labels: { // EksLabelsMap
447453
* // "<keys>": "STRING_VALUE",
448454
* // },
455+
* // annotations: { // EksAnnotationsMap
456+
* // "<keys>": "STRING_VALUE",
457+
* // },
458+
* // namespace: "STRING_VALUE",
449459
* // },
450460
* // shareProcessNamespace: true || false,
451461
* // },
@@ -535,6 +545,7 @@ export interface DescribeJobDefinitionsCommandOutput extends DescribeJobDefiniti
535545
* // {
536546
* // name: "STRING_VALUE",
537547
* // mountPath: "STRING_VALUE",
548+
* // subPath: "STRING_VALUE",
538549
* // readOnly: true || false,
539550
* // },
540551
* // ],
@@ -573,6 +584,7 @@ export interface DescribeJobDefinitionsCommandOutput extends DescribeJobDefiniti
573584
* // {
574585
* // name: "STRING_VALUE",
575586
* // mountPath: "STRING_VALUE",
587+
* // subPath: "STRING_VALUE",
576588
* // readOnly: true || false,
577589
* // },
578590
* // ],
@@ -600,12 +612,20 @@ export interface DescribeJobDefinitionsCommandOutput extends DescribeJobDefiniti
600612
* // secretName: "STRING_VALUE", // required
601613
* // optional: true || false,
602614
* // },
615+
* // persistentVolumeClaim: {
616+
* // claimName: "STRING_VALUE", // required
617+
* // readOnly: true || false,
618+
* // },
603619
* // },
604620
* // ],
605621
* // metadata: {
606622
* // labels: {
607623
* // "<keys>": "STRING_VALUE",
608624
* // },
625+
* // annotations: {
626+
* // "<keys>": "STRING_VALUE",
627+
* // },
628+
* // namespace: "STRING_VALUE",
609629
* // },
610630
* // shareProcessNamespace: true || false,
611631
* // },

‎clients/client-batch/src/commands/DescribeJobsCommand.ts

+20
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ export interface DescribeJobsCommandOutput extends DescribeJobsResponse, __Metad
431431
* // { // EksContainerVolumeMount
432432
* // name: "STRING_VALUE",
433433
* // mountPath: "STRING_VALUE",
434+
* // subPath: "STRING_VALUE",
434435
* // readOnly: true || false,
435436
* // },
436437
* // ],
@@ -469,6 +470,7 @@ export interface DescribeJobsCommandOutput extends DescribeJobsResponse, __Metad
469470
* // {
470471
* // name: "STRING_VALUE",
471472
* // mountPath: "STRING_VALUE",
473+
* // subPath: "STRING_VALUE",
472474
* // readOnly: true || false,
473475
* // },
474476
* // ],
@@ -496,12 +498,20 @@ export interface DescribeJobsCommandOutput extends DescribeJobsResponse, __Metad
496498
* // secretName: "STRING_VALUE", // required
497499
* // optional: true || false,
498500
* // },
501+
* // persistentVolumeClaim: { // EksPersistentVolumeClaim
502+
* // claimName: "STRING_VALUE", // required
503+
* // readOnly: true || false,
504+
* // },
499505
* // },
500506
* // ],
501507
* // metadata: { // EksMetadata
502508
* // labels: { // EksLabelsMap
503509
* // "<keys>": "STRING_VALUE",
504510
* // },
511+
* // annotations: { // EksAnnotationsMap
512+
* // "<keys>": "STRING_VALUE",
513+
* // },
514+
* // namespace: "STRING_VALUE",
505515
* // },
506516
* // shareProcessNamespace: true || false,
507517
* // },
@@ -563,6 +573,7 @@ export interface DescribeJobsCommandOutput extends DescribeJobsResponse, __Metad
563573
* // {
564574
* // name: "STRING_VALUE",
565575
* // mountPath: "STRING_VALUE",
576+
* // subPath: "STRING_VALUE",
566577
* // readOnly: true || false,
567578
* // },
568579
* // ],
@@ -603,6 +614,7 @@ export interface DescribeJobsCommandOutput extends DescribeJobsResponse, __Metad
603614
* // {
604615
* // name: "STRING_VALUE",
605616
* // mountPath: "STRING_VALUE",
617+
* // subPath: "STRING_VALUE",
606618
* // readOnly: true || false,
607619
* // },
608620
* // ],
@@ -630,6 +642,10 @@ export interface DescribeJobsCommandOutput extends DescribeJobsResponse, __Metad
630642
* // secretName: "STRING_VALUE", // required
631643
* // optional: true || false,
632644
* // },
645+
* // persistentVolumeClaim: {
646+
* // claimName: "STRING_VALUE", // required
647+
* // readOnly: true || false,
648+
* // },
633649
* // },
634650
* // ],
635651
* // podName: "STRING_VALUE",
@@ -638,6 +654,10 @@ export interface DescribeJobsCommandOutput extends DescribeJobsResponse, __Metad
638654
* // labels: {
639655
* // "<keys>": "STRING_VALUE",
640656
* // },
657+
* // annotations: {
658+
* // "<keys>": "STRING_VALUE",
659+
* // },
660+
* // namespace: "STRING_VALUE",
641661
* // },
642662
* // shareProcessNamespace: true || false,
643663
* // },

‎clients/client-batch/src/commands/RegisterJobDefinitionCommand.ts

+20
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ export interface RegisterJobDefinitionCommandOutput extends RegisterJobDefinitio
344344
* { // EksContainerVolumeMount
345345
* name: "STRING_VALUE",
346346
* mountPath: "STRING_VALUE",
347+
* subPath: "STRING_VALUE",
347348
* readOnly: true || false,
348349
* },
349350
* ],
@@ -382,6 +383,7 @@ export interface RegisterJobDefinitionCommandOutput extends RegisterJobDefinitio
382383
* {
383384
* name: "STRING_VALUE",
384385
* mountPath: "STRING_VALUE",
386+
* subPath: "STRING_VALUE",
385387
* readOnly: true || false,
386388
* },
387389
* ],
@@ -409,12 +411,20 @@ export interface RegisterJobDefinitionCommandOutput extends RegisterJobDefinitio
409411
* secretName: "STRING_VALUE", // required
410412
* optional: true || false,
411413
* },
414+
* persistentVolumeClaim: { // EksPersistentVolumeClaim
415+
* claimName: "STRING_VALUE", // required
416+
* readOnly: true || false,
417+
* },
412418
* },
413419
* ],
414420
* metadata: { // EksMetadata
415421
* labels: { // EksLabelsMap
416422
* "<keys>": "STRING_VALUE",
417423
* },
424+
* annotations: { // EksAnnotationsMap
425+
* "<keys>": "STRING_VALUE",
426+
* },
427+
* namespace: "STRING_VALUE",
418428
* },
419429
* shareProcessNamespace: true || false,
420430
* },
@@ -478,6 +488,7 @@ export interface RegisterJobDefinitionCommandOutput extends RegisterJobDefinitio
478488
* {
479489
* name: "STRING_VALUE",
480490
* mountPath: "STRING_VALUE",
491+
* subPath: "STRING_VALUE",
481492
* readOnly: true || false,
482493
* },
483494
* ],
@@ -516,6 +527,7 @@ export interface RegisterJobDefinitionCommandOutput extends RegisterJobDefinitio
516527
* {
517528
* name: "STRING_VALUE",
518529
* mountPath: "STRING_VALUE",
530+
* subPath: "STRING_VALUE",
519531
* readOnly: true || false,
520532
* },
521533
* ],
@@ -543,12 +555,20 @@ export interface RegisterJobDefinitionCommandOutput extends RegisterJobDefinitio
543555
* secretName: "STRING_VALUE", // required
544556
* optional: true || false,
545557
* },
558+
* persistentVolumeClaim: {
559+
* claimName: "STRING_VALUE", // required
560+
* readOnly: true || false,
561+
* },
546562
* },
547563
* ],
548564
* metadata: {
549565
* labels: {
550566
* "<keys>": "STRING_VALUE",
551567
* },
568+
* annotations: {
569+
* "<keys>": "STRING_VALUE",
570+
* },
571+
* namespace: "STRING_VALUE",
552572
* },
553573
* shareProcessNamespace: true || false,
554574
* },

‎clients/client-batch/src/commands/SubmitJobCommand.ts

+8
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,10 @@ export interface SubmitJobCommandOutput extends SubmitJobResponse, __MetadataBea
177177
* labels: { // EksLabelsMap
178178
* "<keys>": "STRING_VALUE",
179179
* },
180+
* annotations: { // EksAnnotationsMap
181+
* "<keys>": "STRING_VALUE",
182+
* },
183+
* namespace: "STRING_VALUE",
180184
* },
181185
* },
182186
* },
@@ -251,6 +255,10 @@ export interface SubmitJobCommandOutput extends SubmitJobResponse, __MetadataBea
251255
* labels: {
252256
* "<keys>": "STRING_VALUE",
253257
* },
258+
* annotations: {
259+
* "<keys>": "STRING_VALUE",
260+
* },
261+
* namespace: "STRING_VALUE",
254262
* },
255263
* },
256264
* },

‎clients/client-batch/src/models/models_0.ts

+143-88
Large diffs are not rendered by default.

‎clients/client-batch/src/protocols/Aws_restJson1.ts

+9
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ import {
120120
EksEmptyDir,
121121
EksHostPath,
122122
EksMetadata,
123+
EksPersistentVolumeClaim,
123124
EksPodProperties,
124125
EksPodPropertiesOverride,
125126
EksProperties,
@@ -1380,6 +1381,8 @@ const de_ServerExceptionRes = async (parsedOutput: any, context: __SerdeContext)
13801381

13811382
// se_EFSVolumeConfiguration omitted.
13821383

1384+
// se_EksAnnotationsMap omitted.
1385+
13831386
// se_EksConfiguration omitted.
13841387

13851388
// se_EksContainer omitted.
@@ -1412,6 +1415,8 @@ const de_ServerExceptionRes = async (parsedOutput: any, context: __SerdeContext)
14121415

14131416
// se_EksMetadata omitted.
14141417

1418+
// se_EksPersistentVolumeClaim omitted.
1419+
14151420
// se_EksPodProperties omitted.
14161421

14171422
// se_EksPodPropertiesOverride omitted.
@@ -1650,6 +1655,8 @@ const se_ShareAttributesList = (input: ShareAttributes[], context: __SerdeContex
16501655

16511656
// de_EFSVolumeConfiguration omitted.
16521657

1658+
// de_EksAnnotationsMap omitted.
1659+
16531660
// de_EksAttemptContainerDetail omitted.
16541661

16551662
// de_EksAttemptContainerDetails omitted.
@@ -1690,6 +1697,8 @@ const se_ShareAttributesList = (input: ShareAttributes[], context: __SerdeContex
16901697

16911698
// de_EksMetadata omitted.
16921699

1700+
// de_EksPersistentVolumeClaim omitted.
1701+
16931702
// de_EksPodProperties omitted.
16941703

16951704
// de_EksPodPropertiesDetail omitted.

‎codegen/sdk-codegen/aws-models/batch.json

+77-22
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.