Skip to content

Commit

Permalink
feat(client-batch): This feature allows AWS Batch on Amazon EKS to su…
Browse files Browse the repository at this point in the history
…pport 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.
  • Loading branch information
awstools committed Dec 17, 2024
1 parent 5e299dd commit 00737e5
Show file tree
Hide file tree
Showing 8 changed files with 300 additions and 115 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,9 @@ export interface CreateComputeEnvironmentCommandOutput extends CreateComputeEnvi
* </li>
* <li>
* <p>Set the update to latest image version (<code>updateToLatestImageVersion</code>)
* parameter to
* <code>true</code>.
* The <code>updateToLatestImageVersion</code> parameter is used when you update a compute
* environment. This parameter is ignored when you create a compute
* environment.</p>
* parameter to <code>true</code>. The <code>updateToLatestImageVersion</code> parameter
* is used when you update a compute environment. This parameter is ignored when you create
* a compute environment.</p>
* </li>
* <li>
* <p>Don't specify an AMI ID in <code>imageId</code>, <code>imageIdOverride</code> (in
Expand Down
20 changes: 20 additions & 0 deletions clients/client-batch/src/commands/DescribeJobDefinitionsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ export interface DescribeJobDefinitionsCommandOutput extends DescribeJobDefiniti
* // { // EksContainerVolumeMount
* // name: "STRING_VALUE",
* // mountPath: "STRING_VALUE",
* // subPath: "STRING_VALUE",
* // readOnly: true || false,
* // },
* // ],
Expand Down Expand Up @@ -413,6 +414,7 @@ export interface DescribeJobDefinitionsCommandOutput extends DescribeJobDefiniti
* // {
* // name: "STRING_VALUE",
* // mountPath: "STRING_VALUE",
* // subPath: "STRING_VALUE",
* // readOnly: true || false,
* // },
* // ],
Expand Down Expand Up @@ -440,12 +442,20 @@ export interface DescribeJobDefinitionsCommandOutput extends DescribeJobDefiniti
* // secretName: "STRING_VALUE", // required
* // optional: true || false,
* // },
* // persistentVolumeClaim: { // EksPersistentVolumeClaim
* // claimName: "STRING_VALUE", // required
* // readOnly: true || false,
* // },
* // },
* // ],
* // metadata: { // EksMetadata
* // labels: { // EksLabelsMap
* // "<keys>": "STRING_VALUE",
* // },
* // annotations: { // EksAnnotationsMap
* // "<keys>": "STRING_VALUE",
* // },
* // namespace: "STRING_VALUE",
* // },
* // shareProcessNamespace: true || false,
* // },
Expand Down Expand Up @@ -535,6 +545,7 @@ export interface DescribeJobDefinitionsCommandOutput extends DescribeJobDefiniti
* // {
* // name: "STRING_VALUE",
* // mountPath: "STRING_VALUE",
* // subPath: "STRING_VALUE",
* // readOnly: true || false,
* // },
* // ],
Expand Down Expand Up @@ -573,6 +584,7 @@ export interface DescribeJobDefinitionsCommandOutput extends DescribeJobDefiniti
* // {
* // name: "STRING_VALUE",
* // mountPath: "STRING_VALUE",
* // subPath: "STRING_VALUE",
* // readOnly: true || false,
* // },
* // ],
Expand Down Expand Up @@ -600,12 +612,20 @@ export interface DescribeJobDefinitionsCommandOutput extends DescribeJobDefiniti
* // secretName: "STRING_VALUE", // required
* // optional: true || false,
* // },
* // persistentVolumeClaim: {
* // claimName: "STRING_VALUE", // required
* // readOnly: true || false,
* // },
* // },
* // ],
* // metadata: {
* // labels: {
* // "<keys>": "STRING_VALUE",
* // },
* // annotations: {
* // "<keys>": "STRING_VALUE",
* // },
* // namespace: "STRING_VALUE",
* // },
* // shareProcessNamespace: true || false,
* // },
Expand Down
20 changes: 20 additions & 0 deletions clients/client-batch/src/commands/DescribeJobsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ export interface DescribeJobsCommandOutput extends DescribeJobsResponse, __Metad
* // { // EksContainerVolumeMount
* // name: "STRING_VALUE",
* // mountPath: "STRING_VALUE",
* // subPath: "STRING_VALUE",
* // readOnly: true || false,
* // },
* // ],
Expand Down Expand Up @@ -469,6 +470,7 @@ export interface DescribeJobsCommandOutput extends DescribeJobsResponse, __Metad
* // {
* // name: "STRING_VALUE",
* // mountPath: "STRING_VALUE",
* // subPath: "STRING_VALUE",
* // readOnly: true || false,
* // },
* // ],
Expand Down Expand Up @@ -496,12 +498,20 @@ export interface DescribeJobsCommandOutput extends DescribeJobsResponse, __Metad
* // secretName: "STRING_VALUE", // required
* // optional: true || false,
* // },
* // persistentVolumeClaim: { // EksPersistentVolumeClaim
* // claimName: "STRING_VALUE", // required
* // readOnly: true || false,
* // },
* // },
* // ],
* // metadata: { // EksMetadata
* // labels: { // EksLabelsMap
* // "<keys>": "STRING_VALUE",
* // },
* // annotations: { // EksAnnotationsMap
* // "<keys>": "STRING_VALUE",
* // },
* // namespace: "STRING_VALUE",
* // },
* // shareProcessNamespace: true || false,
* // },
Expand Down Expand Up @@ -563,6 +573,7 @@ export interface DescribeJobsCommandOutput extends DescribeJobsResponse, __Metad
* // {
* // name: "STRING_VALUE",
* // mountPath: "STRING_VALUE",
* // subPath: "STRING_VALUE",
* // readOnly: true || false,
* // },
* // ],
Expand Down Expand Up @@ -603,6 +614,7 @@ export interface DescribeJobsCommandOutput extends DescribeJobsResponse, __Metad
* // {
* // name: "STRING_VALUE",
* // mountPath: "STRING_VALUE",
* // subPath: "STRING_VALUE",
* // readOnly: true || false,
* // },
* // ],
Expand Down Expand Up @@ -630,6 +642,10 @@ export interface DescribeJobsCommandOutput extends DescribeJobsResponse, __Metad
* // secretName: "STRING_VALUE", // required
* // optional: true || false,
* // },
* // persistentVolumeClaim: {
* // claimName: "STRING_VALUE", // required
* // readOnly: true || false,
* // },
* // },
* // ],
* // podName: "STRING_VALUE",
Expand All @@ -638,6 +654,10 @@ export interface DescribeJobsCommandOutput extends DescribeJobsResponse, __Metad
* // labels: {
* // "<keys>": "STRING_VALUE",
* // },
* // annotations: {
* // "<keys>": "STRING_VALUE",
* // },
* // namespace: "STRING_VALUE",
* // },
* // shareProcessNamespace: true || false,
* // },
Expand Down
20 changes: 20 additions & 0 deletions clients/client-batch/src/commands/RegisterJobDefinitionCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ export interface RegisterJobDefinitionCommandOutput extends RegisterJobDefinitio
* { // EksContainerVolumeMount
* name: "STRING_VALUE",
* mountPath: "STRING_VALUE",
* subPath: "STRING_VALUE",
* readOnly: true || false,
* },
* ],
Expand Down Expand Up @@ -382,6 +383,7 @@ export interface RegisterJobDefinitionCommandOutput extends RegisterJobDefinitio
* {
* name: "STRING_VALUE",
* mountPath: "STRING_VALUE",
* subPath: "STRING_VALUE",
* readOnly: true || false,
* },
* ],
Expand Down Expand Up @@ -409,12 +411,20 @@ export interface RegisterJobDefinitionCommandOutput extends RegisterJobDefinitio
* secretName: "STRING_VALUE", // required
* optional: true || false,
* },
* persistentVolumeClaim: { // EksPersistentVolumeClaim
* claimName: "STRING_VALUE", // required
* readOnly: true || false,
* },
* },
* ],
* metadata: { // EksMetadata
* labels: { // EksLabelsMap
* "<keys>": "STRING_VALUE",
* },
* annotations: { // EksAnnotationsMap
* "<keys>": "STRING_VALUE",
* },
* namespace: "STRING_VALUE",
* },
* shareProcessNamespace: true || false,
* },
Expand Down Expand Up @@ -478,6 +488,7 @@ export interface RegisterJobDefinitionCommandOutput extends RegisterJobDefinitio
* {
* name: "STRING_VALUE",
* mountPath: "STRING_VALUE",
* subPath: "STRING_VALUE",
* readOnly: true || false,
* },
* ],
Expand Down Expand Up @@ -516,6 +527,7 @@ export interface RegisterJobDefinitionCommandOutput extends RegisterJobDefinitio
* {
* name: "STRING_VALUE",
* mountPath: "STRING_VALUE",
* subPath: "STRING_VALUE",
* readOnly: true || false,
* },
* ],
Expand Down Expand Up @@ -543,12 +555,20 @@ export interface RegisterJobDefinitionCommandOutput extends RegisterJobDefinitio
* secretName: "STRING_VALUE", // required
* optional: true || false,
* },
* persistentVolumeClaim: {
* claimName: "STRING_VALUE", // required
* readOnly: true || false,
* },
* },
* ],
* metadata: {
* labels: {
* "<keys>": "STRING_VALUE",
* },
* annotations: {
* "<keys>": "STRING_VALUE",
* },
* namespace: "STRING_VALUE",
* },
* shareProcessNamespace: true || false,
* },
Expand Down
8 changes: 8 additions & 0 deletions clients/client-batch/src/commands/SubmitJobCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@ export interface SubmitJobCommandOutput extends SubmitJobResponse, __MetadataBea
* labels: { // EksLabelsMap
* "<keys>": "STRING_VALUE",
* },
* annotations: { // EksAnnotationsMap
* "<keys>": "STRING_VALUE",
* },
* namespace: "STRING_VALUE",
* },
* },
* },
Expand Down Expand Up @@ -251,6 +255,10 @@ export interface SubmitJobCommandOutput extends SubmitJobResponse, __MetadataBea
* labels: {
* "<keys>": "STRING_VALUE",
* },
* annotations: {
* "<keys>": "STRING_VALUE",
* },
* namespace: "STRING_VALUE",
* },
* },
* },
Expand Down
Loading

0 comments on commit 00737e5

Please sign in to comment.