@aws-sdk/client-codepipeline 3.620.1 → 3.622.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 (46) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/index.js +386 -89
  3. package/dist-es/CodePipeline.js +6 -0
  4. package/dist-es/CodePipelineClient.js +12 -18
  5. package/dist-es/commands/ListRuleExecutionsCommand.js +24 -0
  6. package/dist-es/commands/ListRuleTypesCommand.js +24 -0
  7. package/dist-es/commands/OverrideStageConditionCommand.js +24 -0
  8. package/dist-es/commands/index.js +3 -0
  9. package/dist-es/models/models_0.js +82 -39
  10. package/dist-es/pagination/ListRuleExecutionsPaginator.js +4 -0
  11. package/dist-es/pagination/index.js +1 -0
  12. package/dist-es/protocols/Aws_json1_1.js +198 -14
  13. package/dist-types/CodePipeline.d.ts +22 -0
  14. package/dist-types/CodePipelineClient.d.ts +7 -6
  15. package/dist-types/auth/httpAuthSchemeProvider.d.ts +4 -4
  16. package/dist-types/commands/CreatePipelineCommand.d.ts +172 -2
  17. package/dist-types/commands/GetPipelineCommand.d.ts +86 -1
  18. package/dist-types/commands/GetPipelineStateCommand.d.ts +123 -0
  19. package/dist-types/commands/ListRuleExecutionsCommand.d.ts +132 -0
  20. package/dist-types/commands/ListRuleTypesCommand.d.ts +98 -0
  21. package/dist-types/commands/OverrideStageConditionCommand.d.ts +85 -0
  22. package/dist-types/commands/PutActionRevisionCommand.d.ts +3 -0
  23. package/dist-types/commands/RetryStageExecutionCommand.d.ts +3 -0
  24. package/dist-types/commands/UpdatePipelineCommand.d.ts +172 -2
  25. package/dist-types/commands/index.d.ts +3 -0
  26. package/dist-types/models/models_0.d.ts +1019 -222
  27. package/dist-types/pagination/ListRuleExecutionsPaginator.d.ts +7 -0
  28. package/dist-types/pagination/index.d.ts +1 -0
  29. package/dist-types/protocols/Aws_json1_1.d.ts +27 -0
  30. package/dist-types/runtimeConfig.browser.d.ts +2 -2
  31. package/dist-types/runtimeConfig.d.ts +2 -2
  32. package/dist-types/runtimeConfig.native.d.ts +2 -2
  33. package/dist-types/ts3.4/CodePipeline.d.ts +52 -0
  34. package/dist-types/ts3.4/CodePipelineClient.d.ts +24 -8
  35. package/dist-types/ts3.4/commands/ListRuleExecutionsCommand.d.ts +40 -0
  36. package/dist-types/ts3.4/commands/ListRuleTypesCommand.d.ts +36 -0
  37. package/dist-types/ts3.4/commands/OverrideStageConditionCommand.d.ts +35 -0
  38. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  39. package/dist-types/ts3.4/models/models_0.d.ts +228 -29
  40. package/dist-types/ts3.4/pagination/ListRuleExecutionsPaginator.d.ts +11 -0
  41. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  42. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
  43. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -5
  44. package/dist-types/ts3.4/runtimeConfig.d.ts +5 -5
  45. package/dist-types/ts3.4/runtimeConfig.native.d.ts +5 -5
  46. 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,
@@ -17,36 +17,30 @@ export class CodePipelineClient extends __Client {
17
17
  constructor(...[configuration]) {
18
18
  const _config_0 = __getRuntimeConfig(configuration || {});
19
19
  const _config_1 = resolveClientEndpointParameters(_config_0);
20
- const _config_2 = resolveRegionConfig(_config_1);
21
- const _config_3 = resolveEndpointConfig(_config_2);
22
- const _config_4 = resolveHostHeaderConfig(_config_3);
23
- const _config_5 = resolveUserAgentConfig(_config_4);
24
- const _config_6 = resolveRetryConfig(_config_5);
20
+ const _config_2 = resolveUserAgentConfig(_config_1);
21
+ const _config_3 = resolveRetryConfig(_config_2);
22
+ const _config_4 = resolveRegionConfig(_config_3);
23
+ const _config_5 = resolveHostHeaderConfig(_config_4);
24
+ const _config_6 = resolveEndpointConfig(_config_5);
25
25
  const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
26
26
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
27
27
  super(_config_8);
28
28
  this.config = _config_8;
29
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
30
- this.middlewareStack.use(getLoggerPlugin(this.config));
31
- this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
32
29
  this.middlewareStack.use(getUserAgentPlugin(this.config));
33
30
  this.middlewareStack.use(getRetryPlugin(this.config));
34
31
  this.middlewareStack.use(getContentLengthPlugin(this.config));
32
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
33
+ this.middlewareStack.use(getLoggerPlugin(this.config));
34
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
35
35
  this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
36
- httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
37
- identityProviderConfigProvider: this.getIdentityProviderConfigProvider(),
36
+ httpAuthSchemeParametersProvider: defaultCodePipelineHttpAuthSchemeParametersProvider,
37
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
38
+ "aws.auth#sigv4": config.credentials,
39
+ }),
38
40
  }));
39
41
  this.middlewareStack.use(getHttpSigningPlugin(this.config));
40
42
  }
41
43
  destroy() {
42
44
  super.destroy();
43
45
  }
44
- getDefaultHttpAuthSchemeParametersProvider() {
45
- return defaultCodePipelineHttpAuthSchemeParametersProvider;
46
- }
47
- getIdentityProviderConfigProvider() {
48
- return async (config) => new DefaultIdentityProviderConfig({
49
- "aws.auth#sigv4": config.credentials,
50
- });
51
- }
52
46
  }
@@ -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";