@aws-sdk/client-batch 3.1142.0 → 3.1144.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.
package/dist-cjs/index.js CHANGED
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1141.0";
72
+ var version = "3.1143.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -277,6 +277,7 @@ const _EACD = "EksAttemptContainerDetail";
277
277
  const _EACDk = "EksAttemptContainerDetails";
278
278
  const _EAD = "EksAttemptDetail";
279
279
  const _EADk = "EksAttemptDetails";
280
+ const _EAE = "EksAccessEntry";
280
281
  const _EC = "Ec2Configuration";
281
282
  const _ECD = "EksContainerDetail";
282
283
  const _ECDk = "EksContainerDetails";
@@ -287,6 +288,7 @@ const _ECO = "EksContainerOverride";
287
288
  const _ECOL = "EksContainerOverrideList";
288
289
  const _ECRR = "EksContainerResourceRequirements";
289
290
  const _ECSC = "EksContainerSecurityContext";
291
+ const _ECU = "EksConfigurationUpdate";
290
292
  const _ECVM = "EksContainerVolumeMount";
291
293
  const _ECVMk = "EksContainerVolumeMounts";
292
294
  const _ECk = "EksConfiguration";
@@ -536,6 +538,7 @@ const _Vo = "Volumes";
536
538
  const _a = "arn";
537
539
  const _aC = "authorizationConfig";
538
540
  const _aDS = "attemptDurationSeconds";
541
+ const _aE = "accessEntry";
539
542
  const _aI = "attachmentId";
540
543
  const _aIT = "allowedInstanceTypes";
541
544
  const _aJI = "arrayJobId";
@@ -599,6 +602,7 @@ const _d = "devices";
599
602
  const _dC = "desiredvCpus";
600
603
  const _dO = "dependsOn";
601
604
  const _dP = "dnsPolicy";
605
+ const _dS = "desiredState";
602
606
  const _e = "error";
603
607
  const _eA = "eksAttempts";
604
608
  const _eC = "exitCode";
@@ -1298,6 +1302,11 @@ var EFSVolumeConfiguration$ = [3, n0, _EFSVC,
1298
1302
  [_fSI, _rD, _tE, _tEP, _aC],
1299
1303
  [0, 0, 0, 1, () => EFSAuthorizationConfig$], 1
1300
1304
  ];
1305
+ var EksAccessEntry$ = [3, n0, _EAE,
1306
+ 0,
1307
+ [_dS, _sta],
1308
+ [0, 0], 1
1309
+ ];
1301
1310
  var EksAttemptContainerDetail$ = [3, n0, _EACD,
1302
1311
  0,
1303
1312
  [_n, _cID, _eC, _r],
@@ -1310,8 +1319,13 @@ var EksAttemptDetail$ = [3, n0, _EAD,
1310
1319
  ];
1311
1320
  var EksConfiguration$ = [3, n0, _ECk,
1312
1321
  0,
1313
- [_eCAk, _kN],
1314
- [0, 0], 2
1322
+ [_eCAk, _kN, _aE],
1323
+ [0, 0, () => EksAccessEntry$], 2
1324
+ ];
1325
+ var EksConfigurationUpdate$ = [3, n0, _ECU,
1326
+ 0,
1327
+ [_aE],
1328
+ [() => EksAccessEntry$]
1315
1329
  ];
1316
1330
  var EksContainer$ = [3, n0, _ECks,
1317
1331
  0,
@@ -2020,8 +2034,8 @@ var UntagResourceResponse$ = [3, n0, _URRn,
2020
2034
  ];
2021
2035
  var UpdateComputeEnvironmentRequest$ = [3, n0, _UCER,
2022
2036
  0,
2023
- [_cE, _st, _uC, _cR, _sRe, _uP, _cont, _eS],
2024
- [0, 0, 1, () => ComputeResourceUpdate$, 0, () => UpdatePolicy$, 0, () => EcsSettings$], 1
2037
+ [_cE, _st, _uC, _cR, _sRe, _uP, _cont, _eS, _eCk],
2038
+ [0, 0, 1, () => ComputeResourceUpdate$, 0, () => UpdatePolicy$, 0, () => EcsSettings$, () => EksConfigurationUpdate$], 1
2025
2039
  ];
2026
2040
  var UpdateComputeEnvironmentResponse$ = [3, n0, _UCERp,
2027
2041
  0,
@@ -2880,6 +2894,15 @@ const ContainerInsights = {
2880
2894
  ENABLED: "ENABLED",
2881
2895
  ENHANCED: "ENHANCED",
2882
2896
  };
2897
+ const EksAccessEntryDesiredState = {
2898
+ DISABLED: "DISABLED",
2899
+ ENABLED: "ENABLED",
2900
+ INHERIT_FROM_CLUSTER: "INHERIT_FROM_CLUSTER",
2901
+ };
2902
+ const EksAccessEntryStatus = {
2903
+ ACTIVE: "ACTIVE",
2904
+ INACTIVE: "INACTIVE",
2905
+ };
2883
2906
  const CEState = {
2884
2907
  DISABLED: "DISABLED",
2885
2908
  ENABLED: "ENABLED",
@@ -3192,9 +3215,13 @@ exports.EcsPropertiesOverride$ = EcsPropertiesOverride$;
3192
3215
  exports.EcsSettings$ = EcsSettings$;
3193
3216
  exports.EcsTaskDetails$ = EcsTaskDetails$;
3194
3217
  exports.EcsTaskProperties$ = EcsTaskProperties$;
3218
+ exports.EksAccessEntry$ = EksAccessEntry$;
3219
+ exports.EksAccessEntryDesiredState = EksAccessEntryDesiredState;
3220
+ exports.EksAccessEntryStatus = EksAccessEntryStatus;
3195
3221
  exports.EksAttemptContainerDetail$ = EksAttemptContainerDetail$;
3196
3222
  exports.EksAttemptDetail$ = EksAttemptDetail$;
3197
3223
  exports.EksConfiguration$ = EksConfiguration$;
3224
+ exports.EksConfigurationUpdate$ = EksConfigurationUpdate$;
3198
3225
  exports.EksContainer$ = EksContainer$;
3199
3226
  exports.EksContainerDetail$ = EksContainerDetail$;
3200
3227
  exports.EksContainerEnvironmentVariable$ = EksContainerEnvironmentVariable$;
@@ -30,6 +30,15 @@ export const ContainerInsights = {
30
30
  ENABLED: "ENABLED",
31
31
  ENHANCED: "ENHANCED",
32
32
  };
33
+ export const EksAccessEntryDesiredState = {
34
+ DISABLED: "DISABLED",
35
+ ENABLED: "ENABLED",
36
+ INHERIT_FROM_CLUSTER: "INHERIT_FROM_CLUSTER",
37
+ };
38
+ export const EksAccessEntryStatus = {
39
+ ACTIVE: "ACTIVE",
40
+ INACTIVE: "INACTIVE",
41
+ };
33
42
  export const CEState = {
34
43
  DISABLED: "DISABLED",
35
44
  ENABLED: "ENABLED",
@@ -106,6 +106,7 @@ const _EACD = "EksAttemptContainerDetail";
106
106
  const _EACDk = "EksAttemptContainerDetails";
107
107
  const _EAD = "EksAttemptDetail";
108
108
  const _EADk = "EksAttemptDetails";
109
+ const _EAE = "EksAccessEntry";
109
110
  const _EC = "Ec2Configuration";
110
111
  const _ECD = "EksContainerDetail";
111
112
  const _ECDk = "EksContainerDetails";
@@ -116,6 +117,7 @@ const _ECO = "EksContainerOverride";
116
117
  const _ECOL = "EksContainerOverrideList";
117
118
  const _ECRR = "EksContainerResourceRequirements";
118
119
  const _ECSC = "EksContainerSecurityContext";
120
+ const _ECU = "EksConfigurationUpdate";
119
121
  const _ECVM = "EksContainerVolumeMount";
120
122
  const _ECVMk = "EksContainerVolumeMounts";
121
123
  const _ECk = "EksConfiguration";
@@ -365,6 +367,7 @@ const _Vo = "Volumes";
365
367
  const _a = "arn";
366
368
  const _aC = "authorizationConfig";
367
369
  const _aDS = "attemptDurationSeconds";
370
+ const _aE = "accessEntry";
368
371
  const _aI = "attachmentId";
369
372
  const _aIT = "allowedInstanceTypes";
370
373
  const _aJI = "arrayJobId";
@@ -428,6 +431,7 @@ const _d = "devices";
428
431
  const _dC = "desiredvCpus";
429
432
  const _dO = "dependsOn";
430
433
  const _dP = "dnsPolicy";
434
+ const _dS = "desiredState";
431
435
  const _e = "error";
432
436
  const _eA = "eksAttempts";
433
437
  const _eC = "exitCode";
@@ -1130,6 +1134,11 @@ export var EFSVolumeConfiguration$ = [3, n0, _EFSVC,
1130
1134
  [_fSI, _rD, _tE, _tEP, _aC],
1131
1135
  [0, 0, 0, 1, () => EFSAuthorizationConfig$], 1
1132
1136
  ];
1137
+ export var EksAccessEntry$ = [3, n0, _EAE,
1138
+ 0,
1139
+ [_dS, _sta],
1140
+ [0, 0], 1
1141
+ ];
1133
1142
  export var EksAttemptContainerDetail$ = [3, n0, _EACD,
1134
1143
  0,
1135
1144
  [_n, _cID, _eC, _r],
@@ -1142,8 +1151,13 @@ export var EksAttemptDetail$ = [3, n0, _EAD,
1142
1151
  ];
1143
1152
  export var EksConfiguration$ = [3, n0, _ECk,
1144
1153
  0,
1145
- [_eCAk, _kN],
1146
- [0, 0], 2
1154
+ [_eCAk, _kN, _aE],
1155
+ [0, 0, () => EksAccessEntry$], 2
1156
+ ];
1157
+ export var EksConfigurationUpdate$ = [3, n0, _ECU,
1158
+ 0,
1159
+ [_aE],
1160
+ [() => EksAccessEntry$]
1147
1161
  ];
1148
1162
  export var EksContainer$ = [3, n0, _ECks,
1149
1163
  0,
@@ -1852,8 +1866,8 @@ export var UntagResourceResponse$ = [3, n0, _URRn,
1852
1866
  ];
1853
1867
  export var UpdateComputeEnvironmentRequest$ = [3, n0, _UCER,
1854
1868
  0,
1855
- [_cE, _st, _uC, _cR, _sRe, _uP, _cont, _eS],
1856
- [0, 0, 1, () => ComputeResourceUpdate$, 0, () => UpdatePolicy$, 0, () => EcsSettings$], 1
1869
+ [_cE, _st, _uC, _cR, _sRe, _uP, _cont, _eS, _eCk],
1870
+ [0, 0, 1, () => ComputeResourceUpdate$, 0, () => UpdatePolicy$, 0, () => EcsSettings$, () => EksConfigurationUpdate$], 1
1857
1871
  ];
1858
1872
  export var UpdateComputeEnvironmentResponse$ = [3, n0, _UCERp,
1859
1873
  0,
@@ -44,6 +44,12 @@ declare const CancelJobsCommand_base: {
44
44
  * HTTP status code of <code>200</code> even when some jobs encountered errors, so check the
45
45
  * <code>errors</code> list. Jobs that can't be found are treated as successfully
46
46
  * processed.</p>
47
+ * <important>
48
+ * <p>This operation requires <code>batch:CancelJob</code> permission for each job in the
49
+ * request. There is no separate <code>batch:CancelJobs</code> IAM action. If a caller's IAM
50
+ * policy grants <code>batch:CancelJob</code>, they can use both the singular
51
+ * <a>CancelJob</a> and bulk <code>CancelJobs</code> operations.</p>
52
+ * </important>
47
53
  * @example
48
54
  * Use a bare-bones client and the command you need to make an API call.
49
55
  * ```javascript
@@ -158,6 +158,10 @@ declare const CreateComputeEnvironmentCommand_base: {
158
158
  * eksConfiguration: { // EksConfiguration
159
159
  * eksClusterArn: "STRING_VALUE", // required
160
160
  * kubernetesNamespace: "STRING_VALUE", // required
161
+ * accessEntry: { // EksAccessEntry
162
+ * desiredState: "ENABLED" || "DISABLED" || "INHERIT_FROM_CLUSTER", // required
163
+ * status: "ACTIVE" || "INACTIVE",
164
+ * },
161
165
  * },
162
166
  * context: "STRING_VALUE",
163
167
  * ecsSettings: { // EcsSettings
@@ -156,6 +156,10 @@ declare const DescribeComputeEnvironmentsCommand_base: {
156
156
  * // eksConfiguration: { // EksConfiguration
157
157
  * // eksClusterArn: "STRING_VALUE", // required
158
158
  * // kubernetesNamespace: "STRING_VALUE", // required
159
+ * // accessEntry: { // EksAccessEntry
160
+ * // desiredState: "ENABLED" || "DISABLED" || "INHERIT_FROM_CLUSTER", // required
161
+ * // status: "ACTIVE" || "INACTIVE",
162
+ * // },
159
163
  * // },
160
164
  * // containerOrchestrationType: "ECS" || "EKS",
161
165
  * // uuid: "STRING_VALUE",
@@ -34,6 +34,12 @@ declare const TerminateJobsCommand_base: {
34
34
  * HTTP status code of <code>200</code> even when some jobs encountered errors, so check the
35
35
  * <code>errors</code> list. Jobs that can't be found are treated as successfully
36
36
  * processed.</p>
37
+ * <important>
38
+ * <p>This operation requires <code>batch:TerminateJob</code> permission for each job in the
39
+ * request. There is no separate <code>batch:TerminateJobs</code> IAM action. If a caller's IAM
40
+ * policy grants <code>batch:TerminateJob</code>, they can use both the singular
41
+ * <a>TerminateJob</a> and bulk <code>TerminateJobs</code> operations.</p>
42
+ * </important>
37
43
  * @example
38
44
  * Use a bare-bones client and the command you need to make an API call.
39
45
  * ```javascript
@@ -26,6 +26,12 @@ declare const TerminateServiceJobsCommand_base: {
26
26
  /**
27
27
  * <p>Terminates up to 50 service jobs in a job queue. This is a bulk version of <a>TerminateServiceJob</a>.</p>
28
28
  * <p>Batch reports the result for each service job individually in the response. Service jobs that were processed successfully are reported in the <code>successful</code> list. Service jobs that encountered errors are reported in the <code>errors</code> list. The response returns an HTTP status code of <code>200</code> even when some service jobs encountered errors, so check the <code>errors</code> list. Service jobs that can't be found are treated as successfully processed.</p>
29
+ * <important>
30
+ * <p>This operation requires <code>batch:TerminateServiceJob</code> permission for each service job in the
31
+ * request. There is no separate <code>batch:TerminateServiceJobs</code> IAM action. If a caller's IAM
32
+ * policy grants <code>batch:TerminateServiceJob</code>, they can use both the singular
33
+ * <code>TerminateServiceJob</code> and bulk <code>TerminateServiceJobs</code> operations.</p>
34
+ * </important>
29
35
  * @example
30
36
  * Use a bare-bones client and the command you need to make an API call.
31
37
  * ```javascript
@@ -133,6 +133,12 @@ declare const UpdateComputeEnvironmentCommand_base: {
133
133
  * ecsSettings: { // EcsSettings
134
134
  * containerInsights: "ENABLED" || "ENHANCED" || "DISABLED",
135
135
  * },
136
+ * eksConfiguration: { // EksConfigurationUpdate
137
+ * accessEntry: { // EksAccessEntry
138
+ * desiredState: "ENABLED" || "DISABLED" || "INHERIT_FROM_CLUSTER", // required
139
+ * status: "ACTIVE" || "INACTIVE",
140
+ * },
141
+ * },
136
142
  * };
137
143
  * const command = new UpdateComputeEnvironmentCommand(input);
138
144
  * const response = await client.send(command);
@@ -78,6 +78,31 @@ export declare const ContainerInsights: {
78
78
  * @public
79
79
  */
80
80
  export type ContainerInsights = (typeof ContainerInsights)[keyof typeof ContainerInsights];
81
+ /**
82
+ * @public
83
+ * @enum
84
+ */
85
+ export declare const EksAccessEntryDesiredState: {
86
+ readonly DISABLED: "DISABLED";
87
+ readonly ENABLED: "ENABLED";
88
+ readonly INHERIT_FROM_CLUSTER: "INHERIT_FROM_CLUSTER";
89
+ };
90
+ /**
91
+ * @public
92
+ */
93
+ export type EksAccessEntryDesiredState = (typeof EksAccessEntryDesiredState)[keyof typeof EksAccessEntryDesiredState];
94
+ /**
95
+ * @public
96
+ * @enum
97
+ */
98
+ export declare const EksAccessEntryStatus: {
99
+ readonly ACTIVE: "ACTIVE";
100
+ readonly INACTIVE: "INACTIVE";
101
+ };
102
+ /**
103
+ * @public
104
+ */
105
+ export type EksAccessEntryStatus = (typeof EksAccessEntryStatus)[keyof typeof EksAccessEntryStatus];
81
106
  /**
82
107
  * @public
83
108
  * @enum
@@ -1,4 +1,4 @@
1
- import type { ArrayJobDependency, AssignPublicIp, CEState, CEStatus, CEType, ContainerInsights, CRAllocationStrategy, CRType, CRUpdateAllocationStrategy, DeviceCgroupPermission, EFSAuthorizationConfigIAM, EFSTransitEncryption, FirelensConfigurationType, JobDefinitionType, JobQueueType, JobStateTimeLimitActionsAction, JobStateTimeLimitActionsState, JobStatus, JQState, JQStatus, LogDriver, OrchestrationType, PlatformCapability, QuotaShareIdleResourceAssignmentStrategy, QuotaShareInSharePreemptionState, QuotaShareResourceSharingStrategy, QuotaShareState, QuotaShareStatus, ResourceType, RetryAction, ServiceEnvironmentState, ServiceEnvironmentStatus, ServiceEnvironmentType, ServiceJobRetryAction, ServiceJobStatus, ServiceJobType, ServiceResourceIdName, UserdataType } from "./enums";
1
+ import type { ArrayJobDependency, AssignPublicIp, CEState, CEStatus, CEType, ContainerInsights, CRAllocationStrategy, CRType, CRUpdateAllocationStrategy, DeviceCgroupPermission, EFSAuthorizationConfigIAM, EFSTransitEncryption, EksAccessEntryDesiredState, EksAccessEntryStatus, FirelensConfigurationType, JobDefinitionType, JobQueueType, JobStateTimeLimitActionsAction, JobStateTimeLimitActionsState, JobStatus, JQState, JQStatus, LogDriver, OrchestrationType, PlatformCapability, QuotaShareIdleResourceAssignmentStrategy, QuotaShareInSharePreemptionState, QuotaShareResourceSharingStrategy, QuotaShareState, QuotaShareStatus, ResourceType, RetryAction, ServiceEnvironmentState, ServiceEnvironmentStatus, ServiceEnvironmentType, ServiceJobRetryAction, ServiceJobStatus, ServiceJobType, ServiceResourceIdName, UserdataType } from "./enums";
2
2
  /**
3
3
  * <p>An object that represents an Batch array job.</p>
4
4
  * @public
@@ -1332,6 +1332,61 @@ export interface EcsSettings {
1332
1332
  */
1333
1333
  containerInsights?: ContainerInsights | undefined;
1334
1334
  }
1335
+ /**
1336
+ * <p>Configures whether Batch manages an Amazon EKS access entry on the cluster for the compute
1337
+ * environment. For information on how the fields interact with the cluster's
1338
+ * <code>authenticationMode</code> and with other compute environments that share the cluster,
1339
+ * see <a href="https://docs.aws.amazon.com/batch/latest/userguide/eks-access-entries.html">Amazon EKS access entry
1340
+ * authentication</a> in the <i>Batch User Guide</i>.</p>
1341
+ * <note>
1342
+ * <p>Setting <code>desiredState=ENABLED</code> on a single compute environment does not guarantee that Batch creates an access
1343
+ * entry, and setting <code>desiredState=DISABLED</code> on a single compute environment does not guarantee that Batch deletes
1344
+ * one. Batch compares the <code>desiredState</code> across all compute environments that
1345
+ * target the same cluster. The Batch-managed access entry is created only when all compute environments have
1346
+ * <code>desiredState=ENABLED</code>, and deleted only when all have
1347
+ * <code>desiredState=DISABLED</code>. If you have multiple compute environments on the same
1348
+ * cluster, set <code>desiredState</code> consistently across all of them to avoid uncertainty.
1349
+ * For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/eks-access-entries.html#eks-access-entries-reconciliation">Reconciling
1350
+ * desiredState across compute environments</a> in the
1351
+ * <i>Batch User Guide</i>.</p>
1352
+ * </note>
1353
+ * @public
1354
+ */
1355
+ export interface EksAccessEntry {
1356
+ /**
1357
+ * <p>The desired access entry state for the compute environment. Valid values:</p>
1358
+ * <dl>
1359
+ * <dt>ENABLED</dt>
1360
+ * <dd>
1361
+ * <p>Batch manages an access entry on the cluster for the compute environment.</p>
1362
+ * </dd>
1363
+ * <dt>DISABLED</dt>
1364
+ * <dd>
1365
+ * <p>Batch deletes the Batch-managed access entry for the cluster. This value is rejected if the cluster's
1366
+ * <code>authenticationMode</code> is <code>API</code>, because such a cluster doesn't support
1367
+ * the <code>aws-auth</code> ConfigMap.</p>
1368
+ * </dd>
1369
+ * <dt>INHERIT_FROM_CLUSTER</dt>
1370
+ * <dd>
1371
+ * <p>Batch defers to the cluster's current access entry <code>status</code>. On a cluster whose
1372
+ * authentication mode is <code>API</code>, Batch creates and manages an access entry. On a
1373
+ * cluster whose authentication mode is <code>API_AND_CONFIG_MAP</code> or
1374
+ * <code>CONFIG_MAP</code>, Batch neither adds nor removes an access entry.</p>
1375
+ * </dd>
1376
+ * </dl>
1377
+ * @public
1378
+ */
1379
+ desiredState: EksAccessEntryDesiredState | undefined;
1380
+ /**
1381
+ * <p>The observed state of the access entry on the cluster. <code>ACTIVE</code> means that an
1382
+ * access entry for the compute environment exists on the cluster and takes
1383
+ * precedence over the <code>aws-auth</code> ConfigMap. <code>INACTIVE</code> means that no
1384
+ * Batch-managed access entry is present. This is a read-only field returned by
1385
+ * <code>DescribeComputeEnvironments</code>.</p>
1386
+ * @public
1387
+ */
1388
+ status?: EksAccessEntryStatus | undefined;
1389
+ }
1335
1390
  /**
1336
1391
  * <p>Configuration for the Amazon EKS cluster that supports the Batch compute environment. The
1337
1392
  * cluster must exist before the compute environment can be created.</p>
@@ -1354,6 +1409,27 @@ export interface EksConfiguration {
1354
1409
  * @public
1355
1410
  */
1356
1411
  kubernetesNamespace: string | undefined;
1412
+ /**
1413
+ * <p>The Batch-managed Amazon EKS access entry for the compute environment. Set
1414
+ * <code>desiredState</code> to declare whether Batch manages an access entry on the cluster. In
1415
+ * a <code>DescribeComputeEnvironments</code> response, <code>desiredState</code> is the value that
1416
+ * Batch recorded for the compute environment and <code>status</code> is the observed state of
1417
+ * the access entry on the cluster. To change the access entry on an existing compute environment,
1418
+ * use <a href="https://docs.aws.amazon.com/batch/latest/APIReference/API_EksConfigurationUpdate.html#Batch-Type-EksConfigurationUpdate-accessEntry">
1419
+ * <code>EksConfigurationUpdate.accessEntry</code>
1420
+ * </a>.</p>
1421
+ * <p>Whether the entry is provisioned on the cluster depends on the cluster's
1422
+ * <code>authenticationMode</code> and the <code>desiredState</code> recorded for each Batch compute
1423
+ * environment targeting the cluster. For more information,
1424
+ * see <a href="https://docs.aws.amazon.com/batch/latest/userguide/eks-access-entries.html">Amazon EKS access entry
1425
+ * authentication</a> in the <i>Batch User Guide</i>.</p>
1426
+ * <p>If you don't specify this field, Batch doesn't record a <code>desiredState</code> for the
1427
+ * compute environment and <code>DescribeComputeEnvironments</code> doesn't return one. For the
1428
+ * purpose of provisioning the access entry, Batch behaves as it does for
1429
+ * <code>INHERIT_FROM_CLUSTER</code>.</p>
1430
+ * @public
1431
+ */
1432
+ accessEntry?: EksAccessEntry | undefined;
1357
1433
  }
1358
1434
  /**
1359
1435
  * <p>Contains the parameters for <code>CreateComputeEnvironment</code>.</p>
@@ -1458,7 +1534,9 @@ export interface CreateComputeEnvironmentRequest {
1458
1534
  * <p>The details for the Amazon EKS cluster that supports the compute environment.</p>
1459
1535
  * <note>
1460
1536
  * <p>To create a compute environment that uses EKS resources, the caller must have
1461
- * permissions to call <code>eks:DescribeCluster</code>.</p>
1537
+ * permissions to call <code>eks:DescribeCluster</code>. Additional Amazon EKS permissions are
1538
+ * required for Batch to manage an access entry on the cluster; see <a href="https://docs.aws.amazon.com/batch/latest/userguide/eks-access-entries.html">Amazon EKS access entry
1539
+ * authentication</a> in the <i>Batch User Guide</i>.</p>
1462
1540
  * </note>
1463
1541
  * @public
1464
1542
  */
@@ -3808,8 +3886,8 @@ export interface TaskContainerProperties {
3808
3886
  */
3809
3887
  repositoryCredentials?: RepositoryCredentials | undefined;
3810
3888
  /**
3811
- * <p>The type and amount of a resource to assign to a container. The only supported resource is a
3812
- * GPU.</p>
3889
+ * <p>The type and amount of a resource to assign to a container. The supported resources include
3890
+ * <code>GPU</code>, <code>MEMORY</code>, and <code>VCPU</code>.</p>
3813
3891
  * @public
3814
3892
  */
3815
3893
  resourceRequirements?: ResourceRequirement[] | undefined;
@@ -9450,6 +9528,24 @@ export interface ComputeResourceUpdate {
9450
9528
  */
9451
9529
  capacityTags?: Record<string, string> | undefined;
9452
9530
  }
9531
+ /**
9532
+ * <p>An object that represents the attributes of an Batch compute environment's Amazon EKS
9533
+ * configuration that can be updated. Currently <code>accessEntry</code> is the only attribute that you can
9534
+ * change after the compute environment is created. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/eks-access-entries.html">Amazon EKS access entry
9535
+ * authentication</a> in the <i>Batch User Guide</i>.</p>
9536
+ * @public
9537
+ */
9538
+ export interface EksConfigurationUpdate {
9539
+ /**
9540
+ * <p>The updated access entry configuration for the compute environment. Set
9541
+ * <code>desiredState</code> to declare whether Batch will manage an access entry on the cluster.
9542
+ * For the accepted values, see <a href="https://docs.aws.amazon.com/batch/latest/APIReference/API_EksAccessEntry.html">
9543
+ * <code>EksAccessEntry</code>
9544
+ * </a>.</p>
9545
+ * @public
9546
+ */
9547
+ accessEntry?: EksAccessEntry | undefined;
9548
+ }
9453
9549
  /**
9454
9550
  * <p>Contains the parameters for <code>UpdateComputeEnvironment</code>.</p>
9455
9551
  * @public
@@ -9541,6 +9637,15 @@ export interface UpdateComputeEnvironmentRequest {
9541
9637
  * @public
9542
9638
  */
9543
9639
  ecsSettings?: EcsSettings | undefined;
9640
+ /**
9641
+ * <p>Updates the Amazon EKS configuration for the compute environment. Only specify this
9642
+ * parameter if the compute environment's <code>containerOrchestrationType</code> is
9643
+ * <code>EKS</code>. Currently, the <code>accessEntry</code> setting is the only Amazon EKS configuration that
9644
+ * you can change after the compute environment is created. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/eks-access-entries.html">Amazon EKS access entry
9645
+ * authentication</a> in the <i>Batch User Guide</i>.</p>
9646
+ * @public
9647
+ */
9648
+ eksConfiguration?: EksConfigurationUpdate | undefined;
9544
9649
  }
9545
9650
  /**
9546
9651
  * @public
@@ -89,9 +89,11 @@ export declare var EcsTaskDetails$: StaticStructureSchema;
89
89
  export declare var EcsTaskProperties$: StaticStructureSchema;
90
90
  export declare var EFSAuthorizationConfig$: StaticStructureSchema;
91
91
  export declare var EFSVolumeConfiguration$: StaticStructureSchema;
92
+ export declare var EksAccessEntry$: StaticStructureSchema;
92
93
  export declare var EksAttemptContainerDetail$: StaticStructureSchema;
93
94
  export declare var EksAttemptDetail$: StaticStructureSchema;
94
95
  export declare var EksConfiguration$: StaticStructureSchema;
96
+ export declare var EksConfigurationUpdate$: StaticStructureSchema;
95
97
  export declare var EksContainer$: StaticStructureSchema;
96
98
  export declare var EksContainerDetail$: StaticStructureSchema;
97
99
  export declare var EksContainerEnvironmentVariable$: StaticStructureSchema;
@@ -36,6 +36,18 @@ export declare const ContainerInsights: {
36
36
  readonly ENHANCED: "ENHANCED";
37
37
  };
38
38
  export type ContainerInsights = (typeof ContainerInsights)[keyof typeof ContainerInsights];
39
+ export declare const EksAccessEntryDesiredState: {
40
+ readonly DISABLED: "DISABLED";
41
+ readonly ENABLED: "ENABLED";
42
+ readonly INHERIT_FROM_CLUSTER: "INHERIT_FROM_CLUSTER";
43
+ };
44
+ export type EksAccessEntryDesiredState =
45
+ (typeof EksAccessEntryDesiredState)[keyof typeof EksAccessEntryDesiredState];
46
+ export declare const EksAccessEntryStatus: {
47
+ readonly ACTIVE: "ACTIVE";
48
+ readonly INACTIVE: "INACTIVE";
49
+ };
50
+ export type EksAccessEntryStatus = (typeof EksAccessEntryStatus)[keyof typeof EksAccessEntryStatus];
39
51
  export declare const CEState: {
40
52
  readonly DISABLED: "DISABLED";
41
53
  readonly ENABLED: "ENABLED";
@@ -11,6 +11,8 @@ import {
11
11
  DeviceCgroupPermission,
12
12
  EFSAuthorizationConfigIAM,
13
13
  EFSTransitEncryption,
14
+ EksAccessEntryDesiredState,
15
+ EksAccessEntryStatus,
14
16
  FirelensConfigurationType,
15
17
  JobDefinitionType,
16
18
  JobQueueType,
@@ -189,9 +191,14 @@ export interface ComputeResource {
189
191
  export interface EcsSettings {
190
192
  containerInsights?: ContainerInsights | undefined;
191
193
  }
194
+ export interface EksAccessEntry {
195
+ desiredState: EksAccessEntryDesiredState | undefined;
196
+ status?: EksAccessEntryStatus | undefined;
197
+ }
192
198
  export interface EksConfiguration {
193
199
  eksClusterArn: string | undefined;
194
200
  kubernetesNamespace: string | undefined;
201
+ accessEntry?: EksAccessEntry | undefined;
195
202
  }
196
203
  export interface CreateComputeEnvironmentRequest {
197
204
  computeEnvironmentName: string | undefined;
@@ -1397,6 +1404,9 @@ export interface ComputeResourceUpdate {
1397
1404
  managedInstancesProvider?: UpdateManagedInstancesProviderConfiguration | undefined;
1398
1405
  capacityTags?: Record<string, string> | undefined;
1399
1406
  }
1407
+ export interface EksConfigurationUpdate {
1408
+ accessEntry?: EksAccessEntry | undefined;
1409
+ }
1400
1410
  export interface UpdateComputeEnvironmentRequest {
1401
1411
  computeEnvironment: string | undefined;
1402
1412
  state?: CEState | undefined;
@@ -1406,6 +1416,7 @@ export interface UpdateComputeEnvironmentRequest {
1406
1416
  updatePolicy?: UpdatePolicy | undefined;
1407
1417
  context?: string | undefined;
1408
1418
  ecsSettings?: EcsSettings | undefined;
1419
+ eksConfiguration?: EksConfigurationUpdate | undefined;
1409
1420
  }
1410
1421
  export interface UpdateComputeEnvironmentResponse {
1411
1422
  computeEnvironmentName?: string | undefined;
@@ -84,9 +84,11 @@ export declare var EcsTaskDetails$: StaticStructureSchema;
84
84
  export declare var EcsTaskProperties$: StaticStructureSchema;
85
85
  export declare var EFSAuthorizationConfig$: StaticStructureSchema;
86
86
  export declare var EFSVolumeConfiguration$: StaticStructureSchema;
87
+ export declare var EksAccessEntry$: StaticStructureSchema;
87
88
  export declare var EksAttemptContainerDetail$: StaticStructureSchema;
88
89
  export declare var EksAttemptDetail$: StaticStructureSchema;
89
90
  export declare var EksConfiguration$: StaticStructureSchema;
91
+ export declare var EksConfigurationUpdate$: StaticStructureSchema;
90
92
  export declare var EksContainer$: StaticStructureSchema;
91
93
  export declare var EksContainerDetail$: StaticStructureSchema;
92
94
  export declare var EksContainerEnvironmentVariable$: StaticStructureSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-batch",
3
- "version": "3.1142.0",
3
+ "version": "3.1144.0",
4
4
  "description": "AWS SDK for JavaScript Batch Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-batch",
6
6
  "license": "Apache-2.0",