@aws-sdk/client-codepipeline 3.451.0 → 3.454.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ConflictException = exports.InvalidWebhookFilterPatternException = exports.InvalidWebhookAuthenticationParametersException = exports.OutputVariablesSizeExceededException = exports.FailureType = exports.InvalidJobStateException = exports.InvalidApprovalTokenException = exports.WebhookAuthenticationType = exports.ResourceNotFoundException = exports.InvalidArnException = exports.InvalidNextTokenException = exports.InvalidJobException = exports.StageExecutionStatus = exports.PipelineExecutionNotFoundException = exports.TriggerType = exports.PipelineExecutionStatus = exports.PipelineVersionNotFoundException = exports.StageNotFoundException = exports.PipelineNotFoundException = exports.StageTransitionType = exports.WebhookNotFoundException = exports.PipelineNameInUseException = exports.InvalidStructureException = exports.InvalidStageDeclarationException = exports.InvalidBlockerDeclarationException = exports.InvalidActionDeclarationException = exports.PipelineTriggerProviderType = exports.PipelineType = exports.TooManyTagsException = exports.LimitExceededException = exports.InvalidTagsException = exports.ConcurrentModificationException = exports.BlockerType = exports.ArtifactStoreType = exports.EncryptionKeyType = exports.ArtifactLocationType = exports.ApprovalStatus = exports.ApprovalAlreadyCompletedException = exports.ActionTypeNotFoundException = exports.ExecutorType = exports.ActionNotFoundException = exports.ActionExecutionStatus = exports.ActionOwner = exports.ActionConfigurationPropertyType = exports.ActionCategory = exports.InvalidClientTokenException = exports.ValidationException = exports.JobNotFoundException = exports.InvalidNonceException = exports.JobStatus = void 0;
4
- exports.PollForJobsOutputFilterSensitiveLog = exports.JobFilterSensitiveLog = exports.GetThirdPartyJobDetailsOutputFilterSensitiveLog = exports.ThirdPartyJobDetailsFilterSensitiveLog = exports.ThirdPartyJobDataFilterSensitiveLog = exports.GetJobDetailsOutputFilterSensitiveLog = exports.JobDetailsFilterSensitiveLog = exports.JobDataFilterSensitiveLog = exports.AWSSessionCredentialsFilterSensitiveLog = exports.RequestFailedException = exports.PipelineExecutionNotStoppableException = exports.DuplicatedStopRequestException = exports.StageNotRetryableException = exports.StageRetryMode = exports.NotLatestPipelineExecutionException = void 0;
4
+ exports.PollForJobsOutputFilterSensitiveLog = exports.JobFilterSensitiveLog = exports.GetThirdPartyJobDetailsOutputFilterSensitiveLog = exports.ThirdPartyJobDetailsFilterSensitiveLog = exports.ThirdPartyJobDataFilterSensitiveLog = exports.GetJobDetailsOutputFilterSensitiveLog = exports.JobDetailsFilterSensitiveLog = exports.JobDataFilterSensitiveLog = exports.AWSSessionCredentialsFilterSensitiveLog = exports.RequestFailedException = exports.PipelineExecutionNotStoppableException = exports.DuplicatedStopRequestException = exports.SourceRevisionType = exports.StageNotRetryableException = exports.StageRetryMode = exports.NotLatestPipelineExecutionException = void 0;
5
5
  const smithy_client_1 = require("@smithy/smithy-client");
6
6
  const CodePipelineServiceException_1 = require("./CodePipelineServiceException");
7
7
  exports.JobStatus = {
@@ -540,6 +540,11 @@ class StageNotRetryableException extends CodePipelineServiceException_1.CodePipe
540
540
  }
541
541
  }
542
542
  exports.StageNotRetryableException = StageNotRetryableException;
543
+ exports.SourceRevisionType = {
544
+ COMMIT_ID: "COMMIT_ID",
545
+ IMAGE_DIGEST: "IMAGE_DIGEST",
546
+ S3_OBJECT_VERSION_ID: "S3_OBJECT_VERSION_ID",
547
+ };
543
548
  class DuplicatedStopRequestException extends CodePipelineServiceException_1.CodePipelineServiceException {
544
549
  constructor(opts) {
545
550
  super({
@@ -2218,6 +2218,7 @@ const se_StartPipelineExecutionInput = (input, context) => {
2218
2218
  return (0, smithy_client_1.take)(input, {
2219
2219
  clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
2220
2220
  name: [],
2221
+ sourceRevisions: smithy_client_1._json,
2221
2222
  variables: smithy_client_1._json,
2222
2223
  });
2223
2224
  };
@@ -503,6 +503,11 @@ export class StageNotRetryableException extends __BaseException {
503
503
  Object.setPrototypeOf(this, StageNotRetryableException.prototype);
504
504
  }
505
505
  }
506
+ export const SourceRevisionType = {
507
+ COMMIT_ID: "COMMIT_ID",
508
+ IMAGE_DIGEST: "IMAGE_DIGEST",
509
+ S3_OBJECT_VERSION_ID: "S3_OBJECT_VERSION_ID",
510
+ };
506
511
  export class DuplicatedStopRequestException extends __BaseException {
507
512
  constructor(opts) {
508
513
  super({
@@ -2136,6 +2136,7 @@ const se_StartPipelineExecutionInput = (input, context) => {
2136
2136
  return take(input, {
2137
2137
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
2138
2138
  name: [],
2139
+ sourceRevisions: _json,
2139
2140
  variables: _json,
2140
2141
  });
2141
2142
  };
@@ -40,6 +40,13 @@ export interface StartPipelineExecutionCommandOutput extends StartPipelineExecut
40
40
  * },
41
41
  * ],
42
42
  * clientRequestToken: "STRING_VALUE",
43
+ * sourceRevisions: [ // SourceRevisionOverrideList
44
+ * { // SourceRevisionOverride
45
+ * actionName: "STRING_VALUE", // required
46
+ * revisionType: "COMMIT_ID" || "IMAGE_DIGEST" || "S3_OBJECT_VERSION_ID", // required
47
+ * revisionValue: "STRING_VALUE", // required
48
+ * },
49
+ * ],
43
50
  * };
44
51
  * const command = new StartPipelineExecutionCommand(input);
45
52
  * const response = await client.send(command);
@@ -1676,6 +1676,11 @@ export interface GitPushFilter {
1676
1676
  * Git-based source actions that are supported by the
1677
1677
  * <code>CodeStarSourceConnection</code> action type.</p>
1678
1678
  * </note>
1679
+ * <note>
1680
+ * <p>V2 type pipelines, along with triggers on Git tags and pipeline-level variables,
1681
+ * are not currently supported for CloudFormation and CDK resources in CodePipeline. For more information about V2 type pipelines, see <a href="https://docs.aws.amazon.com/codepipeline/latest/userguide/pipeline-types.html">Pipeline types</a>
1682
+ * in the <i>CodePipeline User Guide</i>.</p>
1683
+ * </note>
1679
1684
  */
1680
1685
  export interface GitConfiguration {
1681
1686
  /**
@@ -1721,6 +1726,11 @@ export type PipelineTriggerProviderType = (typeof PipelineTriggerProviderType)[k
1721
1726
  * <p>When a trigger configuration is specified, default change detection for
1722
1727
  * repository and branch commits is disabled.</p>
1723
1728
  * </note>
1729
+ * <note>
1730
+ * <p>V2 type pipelines, along with triggers on Git tags and pipeline-level variables,
1731
+ * are not currently supported for CloudFormation and CDK resources in CodePipeline. For more information about V2 type pipelines, see <a href="https://docs.aws.amazon.com/codepipeline/latest/userguide/pipeline-types.html">Pipeline types</a>
1732
+ * in the <i>CodePipeline User Guide</i>.</p>
1733
+ * </note>
1724
1734
  */
1725
1735
  export interface PipelineTriggerDeclaration {
1726
1736
  /**
@@ -1739,6 +1749,11 @@ export interface PipelineTriggerDeclaration {
1739
1749
  /**
1740
1750
  * @public
1741
1751
  * <p>A variable declared at the pipeline level.</p>
1752
+ * <note>
1753
+ * <p>V2 type pipelines, along with triggers on Git tags and pipeline-level variables,
1754
+ * are not currently supported for CloudFormation and CDK resources in CodePipeline. For more information about V2 type pipelines, see <a href="https://docs.aws.amazon.com/codepipeline/latest/userguide/pipeline-types.html">Pipeline types</a>
1755
+ * in the <i>CodePipeline User Guide</i>.</p>
1756
+ * </note>
1742
1757
  */
1743
1758
  export interface PipelineVariableDeclaration {
1744
1759
  /**
@@ -1833,6 +1848,11 @@ export interface PipelineDeclaration {
1833
1848
  * <p>For information about pricing for CodePipeline, see <a href="https://aws.amazon.com/codepipeline/pricing/">Pricing</a>.</p>
1834
1849
  * <p>
1835
1850
  * For information about which type of pipeline to choose, see <a href="https://docs.aws.amazon.com/codepipeline/latest/userguide/pipeline-types-planning.html">What type of pipeline is right for me?</a>.</p>
1851
+ * <note>
1852
+ * <p>V2 type pipelines, along with triggers on Git tags and pipeline-level variables,
1853
+ * are not currently supported for CloudFormation and CDK resources in CodePipeline. For more information about V2 type pipelines, see <a href="https://docs.aws.amazon.com/codepipeline/latest/userguide/pipeline-types.html">Pipeline types</a>
1854
+ * in the <i>CodePipeline User Guide</i>.</p>
1855
+ * </note>
1836
1856
  */
1837
1857
  pipelineType?: PipelineType;
1838
1858
  /**
@@ -3197,6 +3217,11 @@ export interface PipelineSummary {
3197
3217
  * <p>For information about pricing for CodePipeline, see <a href="https://aws.amazon.com/codepipeline/pricing/">Pricing</a>.</p>
3198
3218
  * <p>
3199
3219
  * For information about which type of pipeline to choose, see <a href="https://docs.aws.amazon.com/codepipeline/latest/userguide/pipeline-types-planning.html">What type of pipeline is right for me?</a>.</p>
3220
+ * <note>
3221
+ * <p>V2 type pipelines, along with triggers on Git tags and pipeline-level variables,
3222
+ * are not currently supported for CloudFormation and CDK resources in CodePipeline. For more information about V2 type pipelines, see <a href="https://docs.aws.amazon.com/codepipeline/latest/userguide/pipeline-types.html">Pipeline types</a>
3223
+ * in the <i>CodePipeline User Guide</i>.</p>
3224
+ * </note>
3200
3225
  */
3201
3226
  pipelineType?: PipelineType;
3202
3227
  /**
@@ -4093,9 +4118,52 @@ export declare class StageNotRetryableException extends __BaseException {
4093
4118
  */
4094
4119
  constructor(opts: __ExceptionOptionType<StageNotRetryableException, __BaseException>);
4095
4120
  }
4121
+ /**
4122
+ * @public
4123
+ * @enum
4124
+ */
4125
+ export declare const SourceRevisionType: {
4126
+ readonly COMMIT_ID: "COMMIT_ID";
4127
+ readonly IMAGE_DIGEST: "IMAGE_DIGEST";
4128
+ readonly S3_OBJECT_VERSION_ID: "S3_OBJECT_VERSION_ID";
4129
+ };
4130
+ /**
4131
+ * @public
4132
+ */
4133
+ export type SourceRevisionType = (typeof SourceRevisionType)[keyof typeof SourceRevisionType];
4134
+ /**
4135
+ * @public
4136
+ * <p>A list that allows you to specify, or override, the source revision for a pipeline
4137
+ * execution that's being started. A source revision is the version with all the changes to
4138
+ * your application code, or source artifact, for the pipeline execution.</p>
4139
+ */
4140
+ export interface SourceRevisionOverride {
4141
+ /**
4142
+ * @public
4143
+ * <p>The name of the action where the override will be applied.</p>
4144
+ */
4145
+ actionName: string | undefined;
4146
+ /**
4147
+ * @public
4148
+ * <p>The type of source revision, based on the source provider. For example, the revision
4149
+ * type for the CodeCommit action provider is the commit ID.</p>
4150
+ */
4151
+ revisionType: SourceRevisionType | undefined;
4152
+ /**
4153
+ * @public
4154
+ * <p>The source revision, or version of your source artifact, with the changes that you
4155
+ * want to run in the pipeline execution.</p>
4156
+ */
4157
+ revisionValue: string | undefined;
4158
+ }
4096
4159
  /**
4097
4160
  * @public
4098
4161
  * <p>A pipeline-level variable used for a pipeline execution.</p>
4162
+ * <note>
4163
+ * <p>V2 type pipelines, along with triggers on Git tags and pipeline-level variables,
4164
+ * are not currently supported for CloudFormation and CDK resources in CodePipeline. For more information about V2 type pipelines, see <a href="https://docs.aws.amazon.com/codepipeline/latest/userguide/pipeline-types.html">Pipeline types</a>
4165
+ * in the <i>CodePipeline User Guide</i>.</p>
4166
+ * </note>
4099
4167
  */
4100
4168
  export interface PipelineVariable {
4101
4169
  /**
@@ -4131,6 +4199,11 @@ export interface StartPipelineExecutionInput {
4131
4199
  * request.</p>
4132
4200
  */
4133
4201
  clientRequestToken?: string;
4202
+ /**
4203
+ * @public
4204
+ * <p>A list that allows you to specify, or override, the source revision for a pipeline execution that's being started. A source revision is the version with all the changes to your application code, or source artifact, for the pipeline execution.</p>
4205
+ */
4206
+ sourceRevisions?: SourceRevisionOverride[];
4134
4207
  }
4135
4208
  /**
4136
4209
  * @public
@@ -1064,6 +1064,18 @@ export declare class StageNotRetryableException extends __BaseException {
1064
1064
  opts: __ExceptionOptionType<StageNotRetryableException, __BaseException>
1065
1065
  );
1066
1066
  }
1067
+ export declare const SourceRevisionType: {
1068
+ readonly COMMIT_ID: "COMMIT_ID";
1069
+ readonly IMAGE_DIGEST: "IMAGE_DIGEST";
1070
+ readonly S3_OBJECT_VERSION_ID: "S3_OBJECT_VERSION_ID";
1071
+ };
1072
+ export type SourceRevisionType =
1073
+ (typeof SourceRevisionType)[keyof typeof SourceRevisionType];
1074
+ export interface SourceRevisionOverride {
1075
+ actionName: string | undefined;
1076
+ revisionType: SourceRevisionType | undefined;
1077
+ revisionValue: string | undefined;
1078
+ }
1067
1079
  export interface PipelineVariable {
1068
1080
  name: string | undefined;
1069
1081
  value: string | undefined;
@@ -1072,6 +1084,7 @@ export interface StartPipelineExecutionInput {
1072
1084
  name: string | undefined;
1073
1085
  variables?: PipelineVariable[];
1074
1086
  clientRequestToken?: string;
1087
+ sourceRevisions?: SourceRevisionOverride[];
1075
1088
  }
1076
1089
  export interface StartPipelineExecutionOutput {
1077
1090
  pipelineExecutionId?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-codepipeline",
3
3
  "description": "AWS SDK for JavaScript Codepipeline Client for Node.js, Browser and React Native",
4
- "version": "3.451.0",
4
+ "version": "3.454.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.451.0",
24
+ "@aws-sdk/client-sts": "3.454.0",
25
25
  "@aws-sdk/core": "3.451.0",
26
26
  "@aws-sdk/credential-provider-node": "3.451.0",
27
27
  "@aws-sdk/middleware-host-header": "3.451.0",