@aws-sdk/client-m2 3.675.0 → 3.677.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/README.md CHANGED
@@ -14,7 +14,7 @@ continuous delivery (CI/CD) of the applications.</p>
14
14
 
15
15
  ## Installing
16
16
 
17
- To install the this package, simply type add or install @aws-sdk/client-m2
17
+ To install this package, simply type add or install @aws-sdk/client-m2
18
18
  using your favorite package manager:
19
19
 
20
20
  - `npm install @aws-sdk/client-m2`
package/dist-cjs/index.js CHANGED
@@ -606,17 +606,25 @@ var EnvironmentLifecycle = {
606
606
  CREATING: "Creating",
607
607
  DELETING: "Deleting",
608
608
  FAILED: "Failed",
609
+ UNHEALTHY: "UnHealthy",
609
610
  UPDATING: "Updating"
610
611
  };
611
612
 
612
613
  // src/protocols/Aws_restJson1.ts
613
614
  var se_CancelBatchJobExecutionCommand = /* @__PURE__ */ __name(async (input, context) => {
614
615
  const b = (0, import_core.requestBuilder)(input, context);
615
- const headers = {};
616
+ const headers = {
617
+ "content-type": "application/json"
618
+ };
616
619
  b.bp("/applications/{applicationId}/batch-job-executions/{executionId}/cancel");
617
620
  b.p("applicationId", () => input.applicationId, "{applicationId}", false);
618
621
  b.p("executionId", () => input.executionId, "{executionId}", false);
619
622
  let body;
623
+ body = JSON.stringify(
624
+ (0, import_smithy_client.take)(input, {
625
+ authSecretsManagerArn: []
626
+ })
627
+ );
620
628
  b.m("POST").h(headers).b(body);
621
629
  return b.build();
622
630
  }, "se_CancelBatchJobExecutionCommand");
@@ -874,8 +882,11 @@ var se_ListBatchJobRestartPointsCommand = /* @__PURE__ */ __name(async (input, c
874
882
  b.bp("/applications/{applicationId}/batch-job-executions/{executionId}/steps");
875
883
  b.p("applicationId", () => input.applicationId, "{applicationId}", false);
876
884
  b.p("executionId", () => input.executionId, "{executionId}", false);
885
+ const query = (0, import_smithy_client.map)({
886
+ [_aSMA]: [, input[_aSMA]]
887
+ });
877
888
  let body;
878
- b.m("GET").h(headers).b(body);
889
+ b.m("GET").h(headers).q(query).b(body);
879
890
  return b.build();
880
891
  }, "se_ListBatchJobRestartPointsCommand");
881
892
  var se_ListDataSetImportHistoryCommand = /* @__PURE__ */ __name(async (input, context) => {
@@ -974,6 +985,7 @@ var se_StartBatchJobCommand = /* @__PURE__ */ __name(async (input, context) => {
974
985
  let body;
975
986
  body = JSON.stringify(
976
987
  (0, import_smithy_client.take)(input, {
988
+ authSecretsManagerArn: [],
977
989
  batchJobIdentifier: (_) => (0, import_smithy_client._json)(_),
978
990
  jobParams: (_) => (0, import_smithy_client._json)(_)
979
991
  })
@@ -1951,6 +1963,7 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1951
1963
  extendedRequestId: output.headers["x-amz-id-2"],
1952
1964
  cfId: output.headers["x-amz-cf-id"]
1953
1965
  }), "deserializeMetadata");
1966
+ var _aSMA = "authSecretsManagerArn";
1954
1967
  var _eI = "environmentId";
1955
1968
  var _eIx = "executionIds";
1956
1969
  var _eT = "engineType";
@@ -295,5 +295,6 @@ export const EnvironmentLifecycle = {
295
295
  CREATING: "Creating",
296
296
  DELETING: "Deleting",
297
297
  FAILED: "Failed",
298
+ UNHEALTHY: "UnHealthy",
298
299
  UPDATING: "Updating",
299
300
  };
@@ -6,11 +6,16 @@ import { M2ServiceException as __BaseException } from "../models/M2ServiceExcept
6
6
  import { AccessDeniedException, ConflictException, ExecutionTimeoutException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ServiceUnavailableException, StorageConfiguration, ThrottlingException, ValidationException, } from "../models/models_0";
7
7
  export const se_CancelBatchJobExecutionCommand = async (input, context) => {
8
8
  const b = rb(input, context);
9
- const headers = {};
9
+ const headers = {
10
+ "content-type": "application/json",
11
+ };
10
12
  b.bp("/applications/{applicationId}/batch-job-executions/{executionId}/cancel");
11
13
  b.p("applicationId", () => input.applicationId, "{applicationId}", false);
12
14
  b.p("executionId", () => input.executionId, "{executionId}", false);
13
15
  let body;
16
+ body = JSON.stringify(take(input, {
17
+ authSecretsManagerArn: [],
18
+ }));
14
19
  b.m("POST").h(headers).b(body);
15
20
  return b.build();
16
21
  };
@@ -260,8 +265,11 @@ export const se_ListBatchJobRestartPointsCommand = async (input, context) => {
260
265
  b.bp("/applications/{applicationId}/batch-job-executions/{executionId}/steps");
261
266
  b.p("applicationId", () => input.applicationId, "{applicationId}", false);
262
267
  b.p("executionId", () => input.executionId, "{executionId}", false);
268
+ const query = map({
269
+ [_aSMA]: [, input[_aSMA]],
270
+ });
263
271
  let body;
264
- b.m("GET").h(headers).b(body);
272
+ b.m("GET").h(headers).q(query).b(body);
265
273
  return b.build();
266
274
  };
267
275
  export const se_ListDataSetImportHistoryCommand = async (input, context) => {
@@ -359,6 +367,7 @@ export const se_StartBatchJobCommand = async (input, context) => {
359
367
  b.p("applicationId", () => input.applicationId, "{applicationId}", false);
360
368
  let body;
361
369
  body = JSON.stringify(take(input, {
370
+ authSecretsManagerArn: [],
362
371
  batchJobIdentifier: (_) => _json(_),
363
372
  jobParams: (_) => _json(_),
364
373
  }));
@@ -1344,6 +1353,7 @@ const deserializeMetadata = (output) => ({
1344
1353
  cfId: output.headers["x-amz-cf-id"],
1345
1354
  });
1346
1355
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1356
+ const _aSMA = "authSecretsManagerArn";
1347
1357
  const _eI = "environmentId";
1348
1358
  const _eIx = "executionIds";
1349
1359
  const _eT = "engineType";
@@ -37,6 +37,7 @@ declare const CancelBatchJobExecutionCommand_base: {
37
37
  * const input = { // CancelBatchJobExecutionRequest
38
38
  * applicationId: "STRING_VALUE", // required
39
39
  * executionId: "STRING_VALUE", // required
40
+ * authSecretsManagerArn: "STRING_VALUE",
40
41
  * };
41
42
  * const command = new CancelBatchJobExecutionCommand(input);
42
43
  * const response = await client.send(command);
@@ -27,7 +27,7 @@ declare const ListBatchJobRestartPointsCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Lists all the job steps for JCL files to restart a batch job. This is only applicable for Micro Focus engine with versions 8.0.6 and above.</p>
30
+ * <p>Lists all the job steps for a JCL file to restart a batch job. This is only applicable for Micro Focus engine with versions 8.0.6 and above.</p>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -37,6 +37,7 @@ declare const ListBatchJobRestartPointsCommand_base: {
37
37
  * const input = { // ListBatchJobRestartPointsRequest
38
38
  * applicationId: "STRING_VALUE", // required
39
39
  * executionId: "STRING_VALUE", // required
40
+ * authSecretsManagerArn: "STRING_VALUE",
40
41
  * };
41
42
  * const command = new ListBatchJobRestartPointsCommand(input);
42
43
  * const response = await client.send(command);
@@ -66,6 +66,7 @@ declare const StartBatchJobCommand_base: {
66
66
  * jobParams: { // BatchJobParametersMap
67
67
  * "<keys>": "STRING_VALUE",
68
68
  * },
69
+ * authSecretsManagerArn: "STRING_VALUE",
69
70
  * };
70
71
  * const command = new StartBatchJobCommand(input);
71
72
  * const response = await client.send(command);
@@ -56,6 +56,11 @@ export interface CancelBatchJobExecutionRequest {
56
56
  * @public
57
57
  */
58
58
  executionId: string | undefined;
59
+ /**
60
+ * <p>The Amazon Web Services Secrets Manager containing user's credentials for authentication and authorization for Cancel Batch Job Execution operation.</p>
61
+ * @public
62
+ */
63
+ authSecretsManagerArn?: string;
59
64
  }
60
65
  /**
61
66
  * @public
@@ -294,11 +299,8 @@ export interface CreateApplicationRequest {
294
299
  */
295
300
  tags?: Record<string, string>;
296
301
  /**
297
- * <p>Unique, case-sensitive identifier the service generates to ensure the idempotency of the
298
- * request to create an application. The service generates the clientToken when the API call
299
- * is triggered. The token expires after one hour, so if you retry the API within this
300
- * timeframe with the same clientToken, you will get the same response. The service also
301
- * handles deleting the clientToken after it expires. </p>
302
+ * <p>A client token is a unique, case-sensitive string of up to 128 ASCII characters with ASCII values of 33-126 inclusive.
303
+ * It's generated by the client to ensure idempotent operations, allowing for safe retries without unintended side effects.</p>
302
304
  * @public
303
305
  */
304
306
  clientToken?: string;
@@ -1126,22 +1128,22 @@ export interface FileBatchJobIdentifier {
1126
1128
  folderPath?: string;
1127
1129
  }
1128
1130
  /**
1129
- * <p>Provides restart step information for the most recent restart operation.</p>
1131
+ * <p>Provides step/procedure step information for a restart batch job operation.</p>
1130
1132
  * @public
1131
1133
  */
1132
1134
  export interface JobStepRestartMarker {
1133
1135
  /**
1134
- * <p>The step name that a batch job restart was from.</p>
1136
+ * <p>The step name that a batch job was restarted from.</p>
1135
1137
  * @public
1136
1138
  */
1137
1139
  fromStep: string | undefined;
1138
1140
  /**
1139
- * <p>The procedure step name that a job was restarted from.</p>
1141
+ * <p>The procedure step name that a batch job was restarted from.</p>
1140
1142
  * @public
1141
1143
  */
1142
1144
  fromProcStep?: string;
1143
1145
  /**
1144
- * <p>The step name that a job was restarted to.</p>
1146
+ * <p>The step name that a batch job was restarted to.</p>
1145
1147
  * @public
1146
1148
  */
1147
1149
  toStep?: string;
@@ -1152,17 +1154,17 @@ export interface JobStepRestartMarker {
1152
1154
  toProcStep?: string;
1153
1155
  }
1154
1156
  /**
1155
- * <p>An identifier for the StartBatchJob API to show that it is a restart operation.</p>
1157
+ * <p>An identifier for the <code>StartBatchJob</code> API to show that it is a restart operation.</p>
1156
1158
  * @public
1157
1159
  */
1158
1160
  export interface RestartBatchJobIdentifier {
1159
1161
  /**
1160
- * <p>The executionId from the StartBatchJob response when the job ran for the first time.</p>
1162
+ * <p>The <code>executionId</code> from the <code>StartBatchJob</code> response when the job ran for the first time.</p>
1161
1163
  * @public
1162
1164
  */
1163
1165
  executionId: string | undefined;
1164
1166
  /**
1165
- * <p>The restart step information for the most recent restart operation.</p>
1167
+ * <p>The step/procedure step information for a restart batch job operation.</p>
1166
1168
  * @public
1167
1169
  */
1168
1170
  jobStepRestartMarker: JobStepRestartMarker | undefined;
@@ -1286,7 +1288,7 @@ export declare namespace BatchJobIdentifier {
1286
1288
  $unknown?: never;
1287
1289
  }
1288
1290
  /**
1289
- * <p>Specifies the required information for restart, including execution ID and jobsteprestartmarker.</p>
1291
+ * <p>Specifies the required information for restart, including <code>executionId</code> and <code>JobStepRestartMarker</code>.</p>
1290
1292
  * @public
1291
1293
  */
1292
1294
  interface RestartBatchJobIdentifierMember {
@@ -1416,7 +1418,7 @@ export interface GetBatchJobExecutionResponse {
1416
1418
  */
1417
1419
  batchJobIdentifier?: BatchJobIdentifier;
1418
1420
  /**
1419
- * <p>The restart steps information for the most recent restart operation.</p>
1421
+ * <p>The step/procedure step information for the restart batch job operation.</p>
1420
1422
  * @public
1421
1423
  */
1422
1424
  jobStepRestartMarker?: JobStepRestartMarker;
@@ -2224,10 +2226,15 @@ export interface ListBatchJobRestartPointsRequest {
2224
2226
  */
2225
2227
  applicationId: string | undefined;
2226
2228
  /**
2227
- * <p>The unique identifier of each batch job execution.</p>
2229
+ * <p>The unique identifier of the batch job execution.</p>
2228
2230
  * @public
2229
2231
  */
2230
2232
  executionId: string | undefined;
2233
+ /**
2234
+ * <p>The Amazon Web Services Secrets Manager containing user's credentials for authentication and authorization for List Batch Job Restart Points operation.</p>
2235
+ * @public
2236
+ */
2237
+ authSecretsManagerArn?: string;
2231
2238
  }
2232
2239
  /**
2233
2240
  * <p>Provides information related to a job step.</p>
@@ -2541,6 +2548,11 @@ export interface StartBatchJobRequest {
2541
2548
  * @public
2542
2549
  */
2543
2550
  jobParams?: Record<string, string>;
2551
+ /**
2552
+ * <p>The Amazon Web Services Secrets Manager containing user's credentials for authentication and authorization for Start Batch Job execution operation.</p>
2553
+ * @public
2554
+ */
2555
+ authSecretsManagerArn?: string;
2544
2556
  }
2545
2557
  /**
2546
2558
  * @public
@@ -2851,6 +2863,7 @@ export declare const EnvironmentLifecycle: {
2851
2863
  readonly CREATING: "Creating";
2852
2864
  readonly DELETING: "Deleting";
2853
2865
  readonly FAILED: "Failed";
2866
+ readonly UNHEALTHY: "UnHealthy";
2854
2867
  readonly UPDATING: "Updating";
2855
2868
  };
2856
2869
  /**
@@ -2887,7 +2900,8 @@ export interface GetEnvironmentResponse {
2887
2900
  */
2888
2901
  instanceType: string | undefined;
2889
2902
  /**
2890
- * <p>The status of the runtime environment.</p>
2903
+ * <p>The status of the runtime environment. If the Amazon Web Services Mainframe Modernization environment is missing a connection to
2904
+ * the customer owned dependent resource, the status will be <code>Unhealthy</code>.</p>
2891
2905
  * @public
2892
2906
  */
2893
2907
  status: EnvironmentLifecycle | undefined;
@@ -16,6 +16,7 @@ export interface AlternateKey {
16
16
  export interface CancelBatchJobExecutionRequest {
17
17
  applicationId: string | undefined;
18
18
  executionId: string | undefined;
19
+ authSecretsManagerArn?: string;
19
20
  }
20
21
  export interface CancelBatchJobExecutionResponse {}
21
22
  export declare class ConflictException extends __BaseException {
@@ -773,6 +774,7 @@ export interface ListBatchJobExecutionsResponse {
773
774
  export interface ListBatchJobRestartPointsRequest {
774
775
  applicationId: string | undefined;
775
776
  executionId: string | undefined;
777
+ authSecretsManagerArn?: string;
776
778
  }
777
779
  export interface JobStep {
778
780
  stepNumber?: number;
@@ -845,6 +847,7 @@ export interface StartBatchJobRequest {
845
847
  applicationId: string | undefined;
846
848
  batchJobIdentifier: BatchJobIdentifier | undefined;
847
849
  jobParams?: Record<string, string>;
850
+ authSecretsManagerArn?: string;
848
851
  }
849
852
  export interface StartBatchJobResponse {
850
853
  executionId: string | undefined;
@@ -940,6 +943,7 @@ export declare const EnvironmentLifecycle: {
940
943
  readonly CREATING: "Creating";
941
944
  readonly DELETING: "Deleting";
942
945
  readonly FAILED: "Failed";
946
+ readonly UNHEALTHY: "UnHealthy";
943
947
  readonly UPDATING: "Updating";
944
948
  };
945
949
  export type EnvironmentLifecycle =
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-m2",
3
3
  "description": "AWS SDK for JavaScript M2 Client for Node.js, Browser and React Native",
4
- "version": "3.675.0",
4
+ "version": "3.677.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-m2",
@@ -20,19 +20,19 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.675.0",
24
- "@aws-sdk/client-sts": "3.675.0",
25
- "@aws-sdk/core": "3.667.0",
26
- "@aws-sdk/credential-provider-node": "3.675.0",
23
+ "@aws-sdk/client-sso-oidc": "3.677.0",
24
+ "@aws-sdk/client-sts": "3.677.0",
25
+ "@aws-sdk/core": "3.677.0",
26
+ "@aws-sdk/credential-provider-node": "3.677.0",
27
27
  "@aws-sdk/middleware-host-header": "3.667.0",
28
28
  "@aws-sdk/middleware-logger": "3.667.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.667.0",
30
- "@aws-sdk/middleware-user-agent": "3.669.0",
30
+ "@aws-sdk/middleware-user-agent": "3.677.0",
31
31
  "@aws-sdk/region-config-resolver": "3.667.0",
32
32
  "@aws-sdk/types": "3.667.0",
33
33
  "@aws-sdk/util-endpoints": "3.667.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.675.0",
35
- "@aws-sdk/util-user-agent-node": "3.669.0",
35
+ "@aws-sdk/util-user-agent-node": "3.677.0",
36
36
  "@smithy/config-resolver": "^3.0.9",
37
37
  "@smithy/core": "^2.4.8",
38
38
  "@smithy/fetch-http-handler": "^3.2.9",