@aws-sdk/client-batch 3.535.0 → 3.543.0

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.
@@ -1,12 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultEndpointResolver = void 0;
4
- const util_endpoints_1 = require("@smithy/util-endpoints");
4
+ const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
+ const util_endpoints_2 = require("@smithy/util-endpoints");
5
6
  const ruleset_1 = require("./ruleset");
6
7
  const defaultEndpointResolver = (endpointParams, context = {}) => {
7
- return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, {
8
+ return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
8
9
  endpointParams: endpointParams,
9
10
  logger: context.logger,
10
11
  });
11
12
  };
12
13
  exports.defaultEndpointResolver = defaultEndpointResolver;
14
+ util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
package/dist-cjs/index.js CHANGED
@@ -1794,9 +1794,6 @@ var paginateListJobs = (0, import_core.createPaginator)(BatchClient, ListJobsCom
1794
1794
  // src/pagination/ListSchedulingPoliciesPaginator.ts
1795
1795
 
1796
1796
  var paginateListSchedulingPolicies = (0, import_core.createPaginator)(BatchClient, ListSchedulingPoliciesCommand, "nextToken", "nextToken", "maxResults");
1797
-
1798
- // src/index.ts
1799
- var import_util_endpoints = require("@aws-sdk/util-endpoints");
1800
1797
  // Annotate the CommonJS export names for ESM import in node:
1801
1798
 
1802
1799
  0 && (module.exports = {
@@ -1,4 +1,5 @@
1
- import { resolveEndpoint } from "@smithy/util-endpoints";
1
+ import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
+ import { customEndpointFunctions, resolveEndpoint } from "@smithy/util-endpoints";
2
3
  import { ruleSet } from "./ruleset";
3
4
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
4
5
  return resolveEndpoint(ruleSet, {
@@ -6,3 +7,4 @@ export const defaultEndpointResolver = (endpointParams, context = {}) => {
6
7
  logger: context.logger,
7
8
  });
8
9
  };
10
+ customEndpointFunctions.aws = awsEndpointFunctions;
package/dist-es/index.js CHANGED
@@ -3,5 +3,4 @@ export * from "./Batch";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
5
  export * from "./models";
6
- import "@aws-sdk/util-endpoints";
7
6
  export { BatchServiceException } from "./models/BatchServiceException";
@@ -393,6 +393,11 @@ declare const DescribeJobDefinitionsCommand_base: {
393
393
  * // serviceAccountName: "STRING_VALUE",
394
394
  * // hostNetwork: true || false,
395
395
  * // dnsPolicy: "STRING_VALUE",
396
+ * // imagePullSecrets: [ // ImagePullSecrets
397
+ * // { // ImagePullSecret
398
+ * // name: "STRING_VALUE", // required
399
+ * // },
400
+ * // ],
396
401
  * // containers: [ // EksContainers
397
402
  * // { // EksContainer
398
403
  * // name: "STRING_VALUE",
@@ -425,6 +430,7 @@ declare const DescribeJobDefinitionsCommand_base: {
425
430
  * // runAsUser: Number("long"),
426
431
  * // runAsGroup: Number("long"),
427
432
  * // privileged: true || false,
433
+ * // allowPrivilegeEscalation: true || false,
428
434
  * // readOnlyRootFilesystem: true || false,
429
435
  * // runAsNonRoot: true || false,
430
436
  * // },
@@ -462,6 +468,7 @@ declare const DescribeJobDefinitionsCommand_base: {
462
468
  * // runAsUser: Number("long"),
463
469
  * // runAsGroup: Number("long"),
464
470
  * // privileged: true || false,
471
+ * // allowPrivilegeEscalation: true || false,
465
472
  * // readOnlyRootFilesystem: true || false,
466
473
  * // runAsNonRoot: true || false,
467
474
  * // },
@@ -404,6 +404,11 @@ declare const DescribeJobsCommand_base: {
404
404
  * // serviceAccountName: "STRING_VALUE",
405
405
  * // hostNetwork: true || false,
406
406
  * // dnsPolicy: "STRING_VALUE",
407
+ * // imagePullSecrets: [ // ImagePullSecrets
408
+ * // { // ImagePullSecret
409
+ * // name: "STRING_VALUE", // required
410
+ * // },
411
+ * // ],
407
412
  * // containers: [ // EksContainerDetails
408
413
  * // { // EksContainerDetail
409
414
  * // name: "STRING_VALUE",
@@ -438,6 +443,7 @@ declare const DescribeJobsCommand_base: {
438
443
  * // runAsUser: Number("long"),
439
444
  * // runAsGroup: Number("long"),
440
445
  * // privileged: true || false,
446
+ * // allowPrivilegeEscalation: true || false,
441
447
  * // readOnlyRootFilesystem: true || false,
442
448
  * // runAsNonRoot: true || false,
443
449
  * // },
@@ -477,6 +483,7 @@ declare const DescribeJobsCommand_base: {
477
483
  * // runAsUser: Number("long"),
478
484
  * // runAsGroup: Number("long"),
479
485
  * // privileged: true || false,
486
+ * // allowPrivilegeEscalation: true || false,
480
487
  * // readOnlyRootFilesystem: true || false,
481
488
  * // runAsNonRoot: true || false,
482
489
  * // },
@@ -336,6 +336,11 @@ declare const RegisterJobDefinitionCommand_base: {
336
336
  * serviceAccountName: "STRING_VALUE",
337
337
  * hostNetwork: true || false,
338
338
  * dnsPolicy: "STRING_VALUE",
339
+ * imagePullSecrets: [ // ImagePullSecrets
340
+ * { // ImagePullSecret
341
+ * name: "STRING_VALUE", // required
342
+ * },
343
+ * ],
339
344
  * containers: [ // EksContainers
340
345
  * { // EksContainer
341
346
  * name: "STRING_VALUE",
@@ -368,6 +373,7 @@ declare const RegisterJobDefinitionCommand_base: {
368
373
  * runAsUser: Number("long"),
369
374
  * runAsGroup: Number("long"),
370
375
  * privileged: true || false,
376
+ * allowPrivilegeEscalation: true || false,
371
377
  * readOnlyRootFilesystem: true || false,
372
378
  * runAsNonRoot: true || false,
373
379
  * },
@@ -405,6 +411,7 @@ declare const RegisterJobDefinitionCommand_base: {
405
411
  * runAsUser: Number("long"),
406
412
  * runAsGroup: Number("long"),
407
413
  * privileged: true || false,
414
+ * allowPrivilegeEscalation: true || false,
408
415
  * readOnlyRootFilesystem: true || false,
409
416
  * runAsNonRoot: true || false,
410
417
  * },
@@ -21,5 +21,4 @@ export { BatchExtensionConfiguration } from "./extensionConfiguration";
21
21
  export * from "./commands";
22
22
  export * from "./pagination";
23
23
  export * from "./models";
24
- import "@aws-sdk/util-endpoints";
25
24
  export { BatchServiceException } from "./models/BatchServiceException";
@@ -3085,6 +3085,11 @@ export interface EksContainerSecurityContext {
3085
3085
  * @public
3086
3086
  */
3087
3087
  privileged?: boolean;
3088
+ /**
3089
+ * <p>Whether or not a container or a Kubernetes pod is allowed to gain more privileges than its parent process. The default value is <code>false</code>.</p>
3090
+ * @public
3091
+ */
3092
+ allowPrivilegeEscalation?: boolean;
3088
3093
  /**
3089
3094
  * <p>When this parameter is <code>true</code>, the container is given read-only access to its
3090
3095
  * root file system. The default value is <code>false</code>. This parameter maps to
@@ -3215,6 +3220,17 @@ export interface EksContainer {
3215
3220
  */
3216
3221
  securityContext?: EksContainerSecurityContext;
3217
3222
  }
3223
+ /**
3224
+ * <p>References a Kubernetes configuration resource that holds a list of secrets. These secrets help to gain access to pull an image from a private registry.</p>
3225
+ * @public
3226
+ */
3227
+ export interface ImagePullSecret {
3228
+ /**
3229
+ * <p>Provides a unique identifier for the <code>ImagePullSecret</code>. This object is required when <code>EksPodProperties$imagePullSecrets</code> is used.</p>
3230
+ * @public
3231
+ */
3232
+ name: string | undefined;
3233
+ }
3218
3234
  /**
3219
3235
  * <p>Describes and uniquely identifies Kubernetes resources. For example, the compute environment that
3220
3236
  * a pod runs in or the <code>jobID</code> for a job running in the pod. For more information, see
@@ -3369,6 +3385,13 @@ export interface EksPodProperties {
3369
3385
  * @public
3370
3386
  */
3371
3387
  dnsPolicy?: string;
3388
+ /**
3389
+ * <p>References a Kubernetes secret resource. This object must start and end with an alphanumeric character, is required to be lowercase, can include periods (.) and hyphens (-), and can't contain more than 253 characters.</p>
3390
+ * <p>
3391
+ * <code>ImagePullSecret$name</code> is required when this object is used.</p>
3392
+ * @public
3393
+ */
3394
+ imagePullSecrets?: ImagePullSecret[];
3372
3395
  /**
3373
3396
  * <p>The properties of the container that's used on the Amazon EKS pod.</p>
3374
3397
  * @public
@@ -4660,6 +4683,11 @@ export interface EksPodPropertiesDetail {
4660
4683
  * @public
4661
4684
  */
4662
4685
  dnsPolicy?: string;
4686
+ /**
4687
+ * <p>Displays the reference pointer to the Kubernetes secret resource.</p>
4688
+ * @public
4689
+ */
4690
+ imagePullSecrets?: ImagePullSecret[];
4663
4691
  /**
4664
4692
  * <p>The properties of the container that's used on the Amazon EKS pod.</p>
4665
4693
  * @public
@@ -6,5 +6,4 @@ export { BatchExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
7
  export * from "./pagination";
8
8
  export * from "./models";
9
- import "@aws-sdk/util-endpoints";
10
9
  export { BatchServiceException } from "./models/BatchServiceException";
@@ -443,6 +443,7 @@ export interface EksContainerSecurityContext {
443
443
  runAsUser?: number;
444
444
  runAsGroup?: number;
445
445
  privileged?: boolean;
446
+ allowPrivilegeEscalation?: boolean;
446
447
  readOnlyRootFilesystem?: boolean;
447
448
  runAsNonRoot?: boolean;
448
449
  }
@@ -462,6 +463,9 @@ export interface EksContainer {
462
463
  volumeMounts?: EksContainerVolumeMount[];
463
464
  securityContext?: EksContainerSecurityContext;
464
465
  }
466
+ export interface ImagePullSecret {
467
+ name: string | undefined;
468
+ }
465
469
  export interface EksMetadata {
466
470
  labels?: Record<string, string>;
467
471
  }
@@ -486,6 +490,7 @@ export interface EksPodProperties {
486
490
  serviceAccountName?: string;
487
491
  hostNetwork?: boolean;
488
492
  dnsPolicy?: string;
493
+ imagePullSecrets?: ImagePullSecret[];
489
494
  containers?: EksContainer[];
490
495
  initContainers?: EksContainer[];
491
496
  volumes?: EksVolume[];
@@ -690,6 +695,7 @@ export interface EksPodPropertiesDetail {
690
695
  serviceAccountName?: string;
691
696
  hostNetwork?: boolean;
692
697
  dnsPolicy?: string;
698
+ imagePullSecrets?: ImagePullSecret[];
693
699
  containers?: EksContainerDetail[];
694
700
  initContainers?: EksContainerDetail[];
695
701
  volumes?: EksVolume[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-batch",
3
3
  "description": "AWS SDK for JavaScript Batch Client for Node.js, Browser and React Native",
4
- "version": "3.535.0",
4
+ "version": "3.543.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-batch",
@@ -20,16 +20,16 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.535.0",
23
+ "@aws-sdk/client-sts": "3.540.0",
24
24
  "@aws-sdk/core": "3.535.0",
25
- "@aws-sdk/credential-provider-node": "3.535.0",
25
+ "@aws-sdk/credential-provider-node": "3.540.0",
26
26
  "@aws-sdk/middleware-host-header": "3.535.0",
27
27
  "@aws-sdk/middleware-logger": "3.535.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.535.0",
29
- "@aws-sdk/middleware-user-agent": "3.535.0",
29
+ "@aws-sdk/middleware-user-agent": "3.540.0",
30
30
  "@aws-sdk/region-config-resolver": "3.535.0",
31
31
  "@aws-sdk/types": "3.535.0",
32
- "@aws-sdk/util-endpoints": "3.535.0",
32
+ "@aws-sdk/util-endpoints": "3.540.0",
33
33
  "@aws-sdk/util-user-agent-browser": "3.535.0",
34
34
  "@aws-sdk/util-user-agent-node": "3.535.0",
35
35
  "@smithy/config-resolver": "^2.2.0",