@aws-sdk/client-codepipeline 3.620.1 → 3.621.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.
Files changed (38) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/index.js +374 -71
  3. package/dist-es/CodePipeline.js +6 -0
  4. package/dist-es/commands/ListRuleExecutionsCommand.js +24 -0
  5. package/dist-es/commands/ListRuleTypesCommand.js +24 -0
  6. package/dist-es/commands/OverrideStageConditionCommand.js +24 -0
  7. package/dist-es/commands/index.js +3 -0
  8. package/dist-es/models/models_0.js +82 -39
  9. package/dist-es/pagination/ListRuleExecutionsPaginator.js +4 -0
  10. package/dist-es/pagination/index.js +1 -0
  11. package/dist-es/protocols/Aws_json1_1.js +198 -14
  12. package/dist-types/CodePipeline.d.ts +22 -0
  13. package/dist-types/CodePipelineClient.d.ts +5 -2
  14. package/dist-types/commands/CreatePipelineCommand.d.ts +172 -2
  15. package/dist-types/commands/GetPipelineCommand.d.ts +86 -1
  16. package/dist-types/commands/GetPipelineStateCommand.d.ts +123 -0
  17. package/dist-types/commands/ListRuleExecutionsCommand.d.ts +132 -0
  18. package/dist-types/commands/ListRuleTypesCommand.d.ts +98 -0
  19. package/dist-types/commands/OverrideStageConditionCommand.d.ts +85 -0
  20. package/dist-types/commands/PutActionRevisionCommand.d.ts +3 -0
  21. package/dist-types/commands/RetryStageExecutionCommand.d.ts +3 -0
  22. package/dist-types/commands/UpdatePipelineCommand.d.ts +172 -2
  23. package/dist-types/commands/index.d.ts +3 -0
  24. package/dist-types/models/models_0.d.ts +1019 -222
  25. package/dist-types/pagination/ListRuleExecutionsPaginator.d.ts +7 -0
  26. package/dist-types/pagination/index.d.ts +1 -0
  27. package/dist-types/protocols/Aws_json1_1.d.ts +27 -0
  28. package/dist-types/ts3.4/CodePipeline.d.ts +52 -0
  29. package/dist-types/ts3.4/CodePipelineClient.d.ts +18 -0
  30. package/dist-types/ts3.4/commands/ListRuleExecutionsCommand.d.ts +40 -0
  31. package/dist-types/ts3.4/commands/ListRuleTypesCommand.d.ts +36 -0
  32. package/dist-types/ts3.4/commands/OverrideStageConditionCommand.d.ts +35 -0
  33. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  34. package/dist-types/ts3.4/models/models_0.d.ts +228 -29
  35. package/dist-types/ts3.4/pagination/ListRuleExecutionsPaginator.d.ts +11 -0
  36. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  37. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
  38. package/package.json +11 -11
@@ -20,8 +20,11 @@ import { ListActionExecutionsCommand, } from "./commands/ListActionExecutionsCom
20
20
  import { ListActionTypesCommand, } from "./commands/ListActionTypesCommand";
21
21
  import { ListPipelineExecutionsCommand, } from "./commands/ListPipelineExecutionsCommand";
22
22
  import { ListPipelinesCommand, } from "./commands/ListPipelinesCommand";
23
+ import { ListRuleExecutionsCommand, } from "./commands/ListRuleExecutionsCommand";
24
+ import { ListRuleTypesCommand, } from "./commands/ListRuleTypesCommand";
23
25
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
24
26
  import { ListWebhooksCommand, } from "./commands/ListWebhooksCommand";
27
+ import { OverrideStageConditionCommand, } from "./commands/OverrideStageConditionCommand";
25
28
  import { PollForJobsCommand } from "./commands/PollForJobsCommand";
26
29
  import { PollForThirdPartyJobsCommand, } from "./commands/PollForThirdPartyJobsCommand";
27
30
  import { PutActionRevisionCommand, } from "./commands/PutActionRevisionCommand";
@@ -61,8 +64,11 @@ const commands = {
61
64
  ListActionTypesCommand,
62
65
  ListPipelineExecutionsCommand,
63
66
  ListPipelinesCommand,
67
+ ListRuleExecutionsCommand,
68
+ ListRuleTypesCommand,
64
69
  ListTagsForResourceCommand,
65
70
  ListWebhooksCommand,
71
+ OverrideStageConditionCommand,
66
72
  PollForJobsCommand,
67
73
  PollForThirdPartyJobsCommand,
68
74
  PutActionRevisionCommand,
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListRuleExecutionsCommand, se_ListRuleExecutionsCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class ListRuleExecutionsCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("CodePipeline_20150709", "ListRuleExecutions", {})
19
+ .n("CodePipelineClient", "ListRuleExecutionsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListRuleExecutionsCommand)
22
+ .de(de_ListRuleExecutionsCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListRuleTypesCommand, se_ListRuleTypesCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class ListRuleTypesCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("CodePipeline_20150709", "ListRuleTypes", {})
19
+ .n("CodePipelineClient", "ListRuleTypesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListRuleTypesCommand)
22
+ .de(de_ListRuleTypesCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_OverrideStageConditionCommand, se_OverrideStageConditionCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class OverrideStageConditionCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("CodePipeline_20150709", "OverrideStageCondition", {})
19
+ .n("CodePipelineClient", "OverrideStageConditionCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_OverrideStageConditionCommand)
22
+ .de(de_OverrideStageConditionCommand)
23
+ .build() {
24
+ }
@@ -18,8 +18,11 @@ export * from "./ListActionExecutionsCommand";
18
18
  export * from "./ListActionTypesCommand";
19
19
  export * from "./ListPipelineExecutionsCommand";
20
20
  export * from "./ListPipelinesCommand";
21
+ export * from "./ListRuleExecutionsCommand";
22
+ export * from "./ListRuleTypesCommand";
21
23
  export * from "./ListTagsForResourceCommand";
22
24
  export * from "./ListWebhooksCommand";
25
+ export * from "./OverrideStageConditionCommand";
23
26
  export * from "./PollForJobsCommand";
24
27
  export * from "./PollForThirdPartyJobsCommand";
25
28
  export * from "./PutActionRevisionCommand";
@@ -138,6 +138,16 @@ export const EncryptionKeyType = {
138
138
  export const ArtifactStoreType = {
139
139
  S3: "S3",
140
140
  };
141
+ export const Result = {
142
+ FAIL: "FAIL",
143
+ ROLLBACK: "ROLLBACK",
144
+ };
145
+ export const RuleCategory = {
146
+ Rule: "Rule",
147
+ };
148
+ export const RuleOwner = {
149
+ AWS: "AWS",
150
+ };
141
151
  export const BlockerType = {
142
152
  Schedule: "Schedule",
143
153
  };
@@ -198,9 +208,6 @@ export const PipelineType = {
198
208
  V1: "V1",
199
209
  V2: "V2",
200
210
  };
201
- export const Result = {
202
- ROLLBACK: "ROLLBACK",
203
- };
204
211
  export const GitPullRequestEventType = {
205
212
  CLOSED: "CLOSED",
206
213
  OPEN: "OPEN",
@@ -357,6 +364,21 @@ export class PipelineExecutionNotFoundException extends __BaseException {
357
364
  Object.setPrototypeOf(this, PipelineExecutionNotFoundException.prototype);
358
365
  }
359
366
  }
367
+ export const ConditionExecutionStatus = {
368
+ Abandoned: "Abandoned",
369
+ Cancelled: "Cancelled",
370
+ Errored: "Errored",
371
+ Failed: "Failed",
372
+ InProgress: "InProgress",
373
+ Overridden: "Overridden",
374
+ Succeeded: "Succeeded",
375
+ };
376
+ export const RuleExecutionStatus = {
377
+ Abandoned: "Abandoned",
378
+ Failed: "Failed",
379
+ InProgress: "InProgress",
380
+ Succeeded: "Succeeded",
381
+ };
360
382
  export const StageExecutionStatus = {
361
383
  Cancelled: "Cancelled",
362
384
  Failed: "Failed",
@@ -389,6 +411,11 @@ export class InvalidNextTokenException extends __BaseException {
389
411
  Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
390
412
  }
391
413
  }
414
+ export const RuleConfigurationPropertyType = {
415
+ Boolean: "Boolean",
416
+ Number: "Number",
417
+ String: "String",
418
+ };
392
419
  export class InvalidArnException extends __BaseException {
393
420
  constructor(opts) {
394
421
  super({
@@ -418,6 +445,58 @@ export const WebhookAuthenticationType = {
418
445
  IP: "IP",
419
446
  UNAUTHENTICATED: "UNAUTHENTICATED",
420
447
  };
448
+ export class ConcurrentPipelineExecutionsLimitExceededException extends __BaseException {
449
+ constructor(opts) {
450
+ super({
451
+ name: "ConcurrentPipelineExecutionsLimitExceededException",
452
+ $fault: "client",
453
+ ...opts,
454
+ });
455
+ this.name = "ConcurrentPipelineExecutionsLimitExceededException";
456
+ this.$fault = "client";
457
+ Object.setPrototypeOf(this, ConcurrentPipelineExecutionsLimitExceededException.prototype);
458
+ }
459
+ }
460
+ export class ConditionNotOverridableException extends __BaseException {
461
+ constructor(opts) {
462
+ super({
463
+ name: "ConditionNotOverridableException",
464
+ $fault: "client",
465
+ ...opts,
466
+ });
467
+ this.name = "ConditionNotOverridableException";
468
+ this.$fault = "client";
469
+ Object.setPrototypeOf(this, ConditionNotOverridableException.prototype);
470
+ }
471
+ }
472
+ export class ConflictException extends __BaseException {
473
+ constructor(opts) {
474
+ super({
475
+ name: "ConflictException",
476
+ $fault: "client",
477
+ ...opts,
478
+ });
479
+ this.name = "ConflictException";
480
+ this.$fault = "client";
481
+ Object.setPrototypeOf(this, ConflictException.prototype);
482
+ }
483
+ }
484
+ export class NotLatestPipelineExecutionException extends __BaseException {
485
+ constructor(opts) {
486
+ super({
487
+ name: "NotLatestPipelineExecutionException",
488
+ $fault: "client",
489
+ ...opts,
490
+ });
491
+ this.name = "NotLatestPipelineExecutionException";
492
+ this.$fault = "client";
493
+ Object.setPrototypeOf(this, NotLatestPipelineExecutionException.prototype);
494
+ }
495
+ }
496
+ export const ConditionType = {
497
+ BEFORE_ENTRY: "BEFORE_ENTRY",
498
+ ON_SUCCESS: "ON_SUCCESS",
499
+ };
421
500
  export class InvalidApprovalTokenException extends __BaseException {
422
501
  constructor(opts) {
423
502
  super({
@@ -486,30 +565,6 @@ export class InvalidWebhookFilterPatternException extends __BaseException {
486
565
  Object.setPrototypeOf(this, InvalidWebhookFilterPatternException.prototype);
487
566
  }
488
567
  }
489
- export class ConflictException extends __BaseException {
490
- constructor(opts) {
491
- super({
492
- name: "ConflictException",
493
- $fault: "client",
494
- ...opts,
495
- });
496
- this.name = "ConflictException";
497
- this.$fault = "client";
498
- Object.setPrototypeOf(this, ConflictException.prototype);
499
- }
500
- }
501
- export class NotLatestPipelineExecutionException extends __BaseException {
502
- constructor(opts) {
503
- super({
504
- name: "NotLatestPipelineExecutionException",
505
- $fault: "client",
506
- ...opts,
507
- });
508
- this.name = "NotLatestPipelineExecutionException";
509
- this.$fault = "client";
510
- Object.setPrototypeOf(this, NotLatestPipelineExecutionException.prototype);
511
- }
512
- }
513
568
  export const StageRetryMode = {
514
569
  ALL_ACTIONS: "ALL_ACTIONS",
515
570
  FAILED_ACTIONS: "FAILED_ACTIONS",
@@ -550,18 +605,6 @@ export class UnableToRollbackStageException extends __BaseException {
550
605
  Object.setPrototypeOf(this, UnableToRollbackStageException.prototype);
551
606
  }
552
607
  }
553
- export class ConcurrentPipelineExecutionsLimitExceededException extends __BaseException {
554
- constructor(opts) {
555
- super({
556
- name: "ConcurrentPipelineExecutionsLimitExceededException",
557
- $fault: "client",
558
- ...opts,
559
- });
560
- this.name = "ConcurrentPipelineExecutionsLimitExceededException";
561
- this.$fault = "client";
562
- Object.setPrototypeOf(this, ConcurrentPipelineExecutionsLimitExceededException.prototype);
563
- }
564
- }
565
608
  export const SourceRevisionType = {
566
609
  COMMIT_ID: "COMMIT_ID",
567
610
  IMAGE_DIGEST: "IMAGE_DIGEST",
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { CodePipelineClient } from "../CodePipelineClient";
3
+ import { ListRuleExecutionsCommand, } from "../commands/ListRuleExecutionsCommand";
4
+ export const paginateListRuleExecutions = createPaginator(CodePipelineClient, ListRuleExecutionsCommand, "nextToken", "nextToken", "maxResults");
@@ -3,5 +3,6 @@ export * from "./ListActionExecutionsPaginator";
3
3
  export * from "./ListActionTypesPaginator";
4
4
  export * from "./ListPipelineExecutionsPaginator";
5
5
  export * from "./ListPipelinesPaginator";
6
+ export * from "./ListRuleExecutionsPaginator";
6
7
  export * from "./ListTagsForResourcePaginator";
7
8
  export * from "./ListWebhooksPaginator";
@@ -3,7 +3,7 @@ import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
5
5
  import { CodePipelineServiceException as __BaseException } from "../models/CodePipelineServiceException";
6
- import { ActionNotFoundException, ActionTypeNotFoundException, ApprovalAlreadyCompletedException, ConcurrentModificationException, ConcurrentPipelineExecutionsLimitExceededException, ConflictException, DuplicatedStopRequestException, InvalidActionDeclarationException, InvalidApprovalTokenException, InvalidArnException, InvalidBlockerDeclarationException, InvalidClientTokenException, InvalidJobException, InvalidJobStateException, InvalidNextTokenException, InvalidNonceException, InvalidStageDeclarationException, InvalidStructureException, InvalidTagsException, InvalidWebhookAuthenticationParametersException, InvalidWebhookFilterPatternException, JobNotFoundException, LimitExceededException, NotLatestPipelineExecutionException, OutputVariablesSizeExceededException, PipelineExecutionNotFoundException, PipelineExecutionNotStoppableException, PipelineExecutionOutdatedException, PipelineNameInUseException, PipelineNotFoundException, PipelineVersionNotFoundException, RequestFailedException, ResourceNotFoundException, StageNotFoundException, StageNotRetryableException, TooManyTagsException, UnableToRollbackStageException, ValidationException, WebhookNotFoundException, } from "../models/models_0";
6
+ import { ActionNotFoundException, ActionTypeNotFoundException, ApprovalAlreadyCompletedException, ConcurrentModificationException, ConcurrentPipelineExecutionsLimitExceededException, ConditionNotOverridableException, ConflictException, DuplicatedStopRequestException, InvalidActionDeclarationException, InvalidApprovalTokenException, InvalidArnException, InvalidBlockerDeclarationException, InvalidClientTokenException, InvalidJobException, InvalidJobStateException, InvalidNextTokenException, InvalidNonceException, InvalidStageDeclarationException, InvalidStructureException, InvalidTagsException, InvalidWebhookAuthenticationParametersException, InvalidWebhookFilterPatternException, JobNotFoundException, LimitExceededException, NotLatestPipelineExecutionException, OutputVariablesSizeExceededException, PipelineExecutionNotFoundException, PipelineExecutionNotStoppableException, PipelineExecutionOutdatedException, PipelineNameInUseException, PipelineNotFoundException, PipelineVersionNotFoundException, RequestFailedException, ResourceNotFoundException, StageNotFoundException, StageNotRetryableException, TooManyTagsException, UnableToRollbackStageException, ValidationException, WebhookNotFoundException, } from "../models/models_0";
7
7
  export const se_AcknowledgeJobCommand = async (input, context) => {
8
8
  const headers = sharedHeaders("AcknowledgeJob");
9
9
  let body;
@@ -25,7 +25,7 @@ export const se_CreateCustomActionTypeCommand = async (input, context) => {
25
25
  export const se_CreatePipelineCommand = async (input, context) => {
26
26
  const headers = sharedHeaders("CreatePipeline");
27
27
  let body;
28
- body = JSON.stringify(_json(input));
28
+ body = JSON.stringify(se_CreatePipelineInput(input, context));
29
29
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
30
30
  };
31
31
  export const se_DeleteCustomActionTypeCommand = async (input, context) => {
@@ -124,6 +124,18 @@ export const se_ListPipelinesCommand = async (input, context) => {
124
124
  body = JSON.stringify(_json(input));
125
125
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
126
126
  };
127
+ export const se_ListRuleExecutionsCommand = async (input, context) => {
128
+ const headers = sharedHeaders("ListRuleExecutions");
129
+ let body;
130
+ body = JSON.stringify(_json(input));
131
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
132
+ };
133
+ export const se_ListRuleTypesCommand = async (input, context) => {
134
+ const headers = sharedHeaders("ListRuleTypes");
135
+ let body;
136
+ body = JSON.stringify(_json(input));
137
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
138
+ };
127
139
  export const se_ListTagsForResourceCommand = async (input, context) => {
128
140
  const headers = sharedHeaders("ListTagsForResource");
129
141
  let body;
@@ -136,6 +148,12 @@ export const se_ListWebhooksCommand = async (input, context) => {
136
148
  body = JSON.stringify(_json(input));
137
149
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
138
150
  };
151
+ export const se_OverrideStageConditionCommand = async (input, context) => {
152
+ const headers = sharedHeaders("OverrideStageCondition");
153
+ let body;
154
+ body = JSON.stringify(_json(input));
155
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
156
+ };
139
157
  export const se_PollForJobsCommand = async (input, context) => {
140
158
  const headers = sharedHeaders("PollForJobs");
141
159
  let body;
@@ -241,7 +259,7 @@ export const se_UpdateActionTypeCommand = async (input, context) => {
241
259
  export const se_UpdatePipelineCommand = async (input, context) => {
242
260
  const headers = sharedHeaders("UpdatePipeline");
243
261
  let body;
244
- body = JSON.stringify(_json(input));
262
+ body = JSON.stringify(se_UpdatePipelineInput(input, context));
245
263
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
246
264
  };
247
265
  export const de_AcknowledgeJobCommand = async (output, context) => {
@@ -289,7 +307,7 @@ export const de_CreatePipelineCommand = async (output, context) => {
289
307
  }
290
308
  const data = await parseBody(output.body, context);
291
309
  let contents = {};
292
- contents = _json(data);
310
+ contents = de_CreatePipelineOutput(data, context);
293
311
  const response = {
294
312
  $metadata: deserializeMetadata(output),
295
313
  ...contents,
@@ -492,6 +510,32 @@ export const de_ListPipelinesCommand = async (output, context) => {
492
510
  };
493
511
  return response;
494
512
  };
513
+ export const de_ListRuleExecutionsCommand = async (output, context) => {
514
+ if (output.statusCode >= 300) {
515
+ return de_CommandError(output, context);
516
+ }
517
+ const data = await parseBody(output.body, context);
518
+ let contents = {};
519
+ contents = de_ListRuleExecutionsOutput(data, context);
520
+ const response = {
521
+ $metadata: deserializeMetadata(output),
522
+ ...contents,
523
+ };
524
+ return response;
525
+ };
526
+ export const de_ListRuleTypesCommand = async (output, context) => {
527
+ if (output.statusCode >= 300) {
528
+ return de_CommandError(output, context);
529
+ }
530
+ const data = await parseBody(output.body, context);
531
+ let contents = {};
532
+ contents = _json(data);
533
+ const response = {
534
+ $metadata: deserializeMetadata(output),
535
+ ...contents,
536
+ };
537
+ return response;
538
+ };
495
539
  export const de_ListTagsForResourceCommand = async (output, context) => {
496
540
  if (output.statusCode >= 300) {
497
541
  return de_CommandError(output, context);
@@ -518,6 +562,16 @@ export const de_ListWebhooksCommand = async (output, context) => {
518
562
  };
519
563
  return response;
520
564
  };
565
+ export const de_OverrideStageConditionCommand = async (output, context) => {
566
+ if (output.statusCode >= 300) {
567
+ return de_CommandError(output, context);
568
+ }
569
+ await collectBody(output.body, context);
570
+ const response = {
571
+ $metadata: deserializeMetadata(output),
572
+ };
573
+ return response;
574
+ };
521
575
  export const de_PollForJobsCommand = async (output, context) => {
522
576
  if (output.statusCode >= 300) {
523
577
  return de_CommandError(output, context);
@@ -730,7 +784,7 @@ export const de_UpdatePipelineCommand = async (output, context) => {
730
784
  }
731
785
  const data = await parseBody(output.body, context);
732
786
  let contents = {};
733
- contents = _json(data);
787
+ contents = de_UpdatePipelineOutput(data, context);
734
788
  const response = {
735
789
  $metadata: deserializeMetadata(output),
736
790
  ...contents,
@@ -813,6 +867,18 @@ const de_CommandError = async (output, context) => {
813
867
  case "ResourceNotFoundException":
814
868
  case "com.amazonaws.codepipeline#ResourceNotFoundException":
815
869
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
870
+ case "ConcurrentPipelineExecutionsLimitExceededException":
871
+ case "com.amazonaws.codepipeline#ConcurrentPipelineExecutionsLimitExceededException":
872
+ throw await de_ConcurrentPipelineExecutionsLimitExceededExceptionRes(parsedOutput, context);
873
+ case "ConditionNotOverridableException":
874
+ case "com.amazonaws.codepipeline#ConditionNotOverridableException":
875
+ throw await de_ConditionNotOverridableExceptionRes(parsedOutput, context);
876
+ case "ConflictException":
877
+ case "com.amazonaws.codepipeline#ConflictException":
878
+ throw await de_ConflictExceptionRes(parsedOutput, context);
879
+ case "NotLatestPipelineExecutionException":
880
+ case "com.amazonaws.codepipeline#NotLatestPipelineExecutionException":
881
+ throw await de_NotLatestPipelineExecutionExceptionRes(parsedOutput, context);
816
882
  case "ActionNotFoundException":
817
883
  case "com.amazonaws.codepipeline#ActionNotFoundException":
818
884
  throw await de_ActionNotFoundExceptionRes(parsedOutput, context);
@@ -834,12 +900,6 @@ const de_CommandError = async (output, context) => {
834
900
  case "InvalidWebhookFilterPatternException":
835
901
  case "com.amazonaws.codepipeline#InvalidWebhookFilterPatternException":
836
902
  throw await de_InvalidWebhookFilterPatternExceptionRes(parsedOutput, context);
837
- case "ConflictException":
838
- case "com.amazonaws.codepipeline#ConflictException":
839
- throw await de_ConflictExceptionRes(parsedOutput, context);
840
- case "NotLatestPipelineExecutionException":
841
- case "com.amazonaws.codepipeline#NotLatestPipelineExecutionException":
842
- throw await de_NotLatestPipelineExecutionExceptionRes(parsedOutput, context);
843
903
  case "StageNotRetryableException":
844
904
  case "com.amazonaws.codepipeline#StageNotRetryableException":
845
905
  throw await de_StageNotRetryableExceptionRes(parsedOutput, context);
@@ -849,9 +909,6 @@ const de_CommandError = async (output, context) => {
849
909
  case "UnableToRollbackStageException":
850
910
  case "com.amazonaws.codepipeline#UnableToRollbackStageException":
851
911
  throw await de_UnableToRollbackStageExceptionRes(parsedOutput, context);
852
- case "ConcurrentPipelineExecutionsLimitExceededException":
853
- case "com.amazonaws.codepipeline#ConcurrentPipelineExecutionsLimitExceededException":
854
- throw await de_ConcurrentPipelineExecutionsLimitExceededExceptionRes(parsedOutput, context);
855
912
  case "DuplicatedStopRequestException":
856
913
  case "com.amazonaws.codepipeline#DuplicatedStopRequestException":
857
914
  throw await de_DuplicatedStopRequestExceptionRes(parsedOutput, context);
@@ -915,6 +972,15 @@ const de_ConcurrentPipelineExecutionsLimitExceededExceptionRes = async (parsedOu
915
972
  });
916
973
  return __decorateServiceException(exception, body);
917
974
  };
975
+ const de_ConditionNotOverridableExceptionRes = async (parsedOutput, context) => {
976
+ const body = parsedOutput.body;
977
+ const deserialized = _json(body);
978
+ const exception = new ConditionNotOverridableException({
979
+ $metadata: deserializeMetadata(parsedOutput),
980
+ ...deserialized,
981
+ });
982
+ return __decorateServiceException(exception, body);
983
+ };
918
984
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
919
985
  const body = parsedOutput.body;
920
986
  const deserialized = _json(body);
@@ -1228,6 +1294,12 @@ const se_ActionRevision = (input, context) => {
1228
1294
  revisionId: [],
1229
1295
  });
1230
1296
  };
1297
+ const se_CreatePipelineInput = (input, context) => {
1298
+ return take(input, {
1299
+ pipeline: _json,
1300
+ tags: _json,
1301
+ });
1302
+ };
1231
1303
  const se_CurrentRevision = (input, context) => {
1232
1304
  return take(input, {
1233
1305
  changeIdentifier: [],
@@ -1270,6 +1342,11 @@ const se_StartPipelineExecutionInput = (input, context) => {
1270
1342
  variables: _json,
1271
1343
  });
1272
1344
  };
1345
+ const se_UpdatePipelineInput = (input, context) => {
1346
+ return take(input, {
1347
+ pipeline: _json,
1348
+ });
1349
+ };
1273
1350
  const de_ActionExecution = (output, context) => {
1274
1351
  return take(output, {
1275
1352
  actionExecutionId: __expectString,
@@ -1349,6 +1426,33 @@ const de_ArtifactRevisionList = (output, context) => {
1349
1426
  });
1350
1427
  return retVal;
1351
1428
  };
1429
+ const de_ConditionExecution = (output, context) => {
1430
+ return take(output, {
1431
+ lastStatusChange: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1432
+ status: __expectString,
1433
+ summary: __expectString,
1434
+ });
1435
+ };
1436
+ const de_ConditionState = (output, context) => {
1437
+ return take(output, {
1438
+ latestExecution: (_) => de_ConditionExecution(_, context),
1439
+ ruleStates: (_) => de_RuleStateList(_, context),
1440
+ });
1441
+ };
1442
+ const de_ConditionStateList = (output, context) => {
1443
+ const retVal = (output || [])
1444
+ .filter((e) => e != null)
1445
+ .map((entry) => {
1446
+ return de_ConditionState(entry, context);
1447
+ });
1448
+ return retVal;
1449
+ };
1450
+ const de_CreatePipelineOutput = (output, context) => {
1451
+ return take(output, {
1452
+ pipeline: _json,
1453
+ tags: _json,
1454
+ });
1455
+ };
1352
1456
  const de_GetPipelineExecutionOutput = (output, context) => {
1353
1457
  return take(output, {
1354
1458
  pipelineExecution: (_) => de_PipelineExecution(_, context),
@@ -1387,6 +1491,12 @@ const de_ListPipelinesOutput = (output, context) => {
1387
1491
  pipelines: (_) => de_PipelineList(_, context),
1388
1492
  });
1389
1493
  };
1494
+ const de_ListRuleExecutionsOutput = (output, context) => {
1495
+ return take(output, {
1496
+ nextToken: __expectString,
1497
+ ruleExecutionDetails: (_) => de_RuleExecutionDetailList(_, context),
1498
+ });
1499
+ };
1390
1500
  const de_ListWebhookItem = (output, context) => {
1391
1501
  return take(output, {
1392
1502
  arn: __expectString,
@@ -1478,13 +1588,82 @@ const de_PutWebhookOutput = (output, context) => {
1478
1588
  webhook: (_) => de_ListWebhookItem(_, context),
1479
1589
  });
1480
1590
  };
1591
+ const de_RuleExecution = (output, context) => {
1592
+ return take(output, {
1593
+ errorDetails: _json,
1594
+ externalExecutionId: __expectString,
1595
+ externalExecutionUrl: __expectString,
1596
+ lastStatusChange: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1597
+ lastUpdatedBy: __expectString,
1598
+ ruleExecutionId: __expectString,
1599
+ status: __expectString,
1600
+ summary: __expectString,
1601
+ token: __expectString,
1602
+ });
1603
+ };
1604
+ const de_RuleExecutionDetail = (output, context) => {
1605
+ return take(output, {
1606
+ input: _json,
1607
+ lastUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1608
+ output: _json,
1609
+ pipelineExecutionId: __expectString,
1610
+ pipelineVersion: __expectInt32,
1611
+ ruleExecutionId: __expectString,
1612
+ ruleName: __expectString,
1613
+ stageName: __expectString,
1614
+ startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1615
+ status: __expectString,
1616
+ updatedBy: __expectString,
1617
+ });
1618
+ };
1619
+ const de_RuleExecutionDetailList = (output, context) => {
1620
+ const retVal = (output || [])
1621
+ .filter((e) => e != null)
1622
+ .map((entry) => {
1623
+ return de_RuleExecutionDetail(entry, context);
1624
+ });
1625
+ return retVal;
1626
+ };
1627
+ const de_RuleRevision = (output, context) => {
1628
+ return take(output, {
1629
+ created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1630
+ revisionChangeId: __expectString,
1631
+ revisionId: __expectString,
1632
+ });
1633
+ };
1634
+ const de_RuleState = (output, context) => {
1635
+ return take(output, {
1636
+ currentRevision: (_) => de_RuleRevision(_, context),
1637
+ entityUrl: __expectString,
1638
+ latestExecution: (_) => de_RuleExecution(_, context),
1639
+ revisionUrl: __expectString,
1640
+ ruleName: __expectString,
1641
+ });
1642
+ };
1643
+ const de_RuleStateList = (output, context) => {
1644
+ const retVal = (output || [])
1645
+ .filter((e) => e != null)
1646
+ .map((entry) => {
1647
+ return de_RuleState(entry, context);
1648
+ });
1649
+ return retVal;
1650
+ };
1651
+ const de_StageConditionState = (output, context) => {
1652
+ return take(output, {
1653
+ conditionStates: (_) => de_ConditionStateList(_, context),
1654
+ latestExecution: _json,
1655
+ });
1656
+ };
1481
1657
  const de_StageState = (output, context) => {
1482
1658
  return take(output, {
1483
1659
  actionStates: (_) => de_ActionStateList(_, context),
1660
+ beforeEntryConditionState: (_) => de_StageConditionState(_, context),
1484
1661
  inboundExecution: _json,
1485
1662
  inboundExecutions: _json,
1486
1663
  inboundTransitionState: (_) => de_TransitionState(_, context),
1487
1664
  latestExecution: _json,
1665
+ onFailureConditionState: (_) => de_StageConditionState(_, context),
1666
+ onSuccessConditionState: (_) => de_StageConditionState(_, context),
1488
1667
  stageName: __expectString,
1489
1668
  });
1490
1669
  };
@@ -1504,6 +1683,11 @@ const de_TransitionState = (output, context) => {
1504
1683
  lastChangedBy: __expectString,
1505
1684
  });
1506
1685
  };
1686
+ const de_UpdatePipelineOutput = (output, context) => {
1687
+ return take(output, {
1688
+ pipeline: _json,
1689
+ });
1690
+ };
1507
1691
  const de_WebhookList = (output, context) => {
1508
1692
  const retVal = (output || [])
1509
1693
  .filter((e) => e != null)