Skip to content

Commit 2905d17

Browse files
author
awstools
committed
feat(client-codepipeline): Add ability to override timeout on action level.
1 parent 5d6bff4 commit 2905d17

File tree

6 files changed

+121
-64
lines changed

6 files changed

+121
-64
lines changed

clients/client-codepipeline/src/commands/CreatePipelineCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
9898
* roleArn: "STRING_VALUE",
9999
* region: "STRING_VALUE",
100100
* namespace: "STRING_VALUE",
101+
* timeoutInMinutes: Number("int"),
101102
* },
102103
* ],
103104
* },
@@ -238,6 +239,7 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
238239
* // roleArn: "STRING_VALUE",
239240
* // region: "STRING_VALUE",
240241
* // namespace: "STRING_VALUE",
242+
* // timeoutInMinutes: Number("int"),
241243
* // },
242244
* // ],
243245
* // },

clients/client-codepipeline/src/commands/GetPipelineCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ export interface GetPipelineCommandOutput extends GetPipelineOutput, __MetadataB
100100
* // roleArn: "STRING_VALUE",
101101
* // region: "STRING_VALUE",
102102
* // namespace: "STRING_VALUE",
103+
* // timeoutInMinutes: Number("int"),
103104
* // },
104105
* // ],
105106
* // },

clients/client-codepipeline/src/commands/RetryStageExecutionCommand.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,14 @@ export interface RetryStageExecutionCommandOutput extends RetryStageExecutionOut
2828

2929
/**
3030
* @public
31-
* <p>You can retry a stage that has failed without having to run a pipeline again from the beginning. You do
32-
* this by either retrying the failed actions in a stage or by retrying all actions in the stage starting from the first action in the stage. When you retry the failed actions in a stage,
33-
* all actions that are still in progress continue working, and failed actions are
34-
* triggered again. When you retry a failed stage from the first action in the stage, the stage cannot have any actions in progress. Before a stage can be retried, it must either have all actions failed or some actions failed and some succeeded.</p>
31+
* <p>You can retry a stage that has failed without having to run a pipeline again from
32+
* the beginning. You do this by either retrying the failed actions in a stage or by
33+
* retrying all actions in the stage starting from the first action in the stage. When you
34+
* retry the failed actions in a stage, all actions that are still in progress continue
35+
* working, and failed actions are triggered again. When you retry a failed stage from the
36+
* first action in the stage, the stage cannot have any actions in progress. Before a stage
37+
* can be retried, it must either have all actions failed or some actions failed and some
38+
* succeeded.</p>
3539
* @example
3640
* Use a bare-bones client and the command you need to make an API call.
3741
* ```javascript

clients/client-codepipeline/src/commands/UpdatePipelineCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
9595
* roleArn: "STRING_VALUE",
9696
* region: "STRING_VALUE",
9797
* namespace: "STRING_VALUE",
98+
* timeoutInMinutes: Number("int"),
9899
* },
99100
* ],
100101
* },
@@ -229,6 +230,7 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
229230
* // roleArn: "STRING_VALUE",
230231
* // region: "STRING_VALUE",
231232
* // namespace: "STRING_VALUE",
233+
* // timeoutInMinutes: Number("int"),
232234
* // },
233235
* // ],
234236
* // },

clients/client-codepipeline/src/models/models_0.ts

Lines changed: 67 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,14 @@ export interface ActionDeclaration {
485485
* this action fall under this namespace.</p>
486486
*/
487487
namespace?: string;
488+
489+
/**
490+
* @public
491+
* <p>A timeout duration in minutes that can be applied against the ActionType’s default
492+
* timeout value specified in <a href="https://docs.aws.amazon.com/codepipeline/latest/userguide/limits.html">Quotas for CodePipeline
493+
* </a>. This attribute is available only to the manual approval ActionType.</p>
494+
*/
495+
timeoutInMinutes?: number;
488496
}
489497

490498
/**
@@ -835,7 +843,8 @@ export type StartTimeRange = (typeof StartTimeRange)[keyof typeof StartTimeRange
835843

836844
/**
837845
* @public
838-
* <p>The field that specifies to filter on the latest execution in the pipeline.</p>
846+
* <p>The field that specifies to filter on the latest execution in the
847+
* pipeline.</p>
839848
* <note>
840849
* <p>Filtering on the latest execution is available for executions run on or after
841850
* February 08, 2024.</p>
@@ -2002,18 +2011,21 @@ export interface StageDeclaration {
20022011

20032012
/**
20042013
* @public
2005-
* <p>The Git repository branches specified as filter criteria to start the pipeline.</p>
2014+
* <p>The Git repository branches specified as filter criteria to start the
2015+
* pipeline.</p>
20062016
*/
20072017
export interface GitBranchFilterCriteria {
20082018
/**
20092019
* @public
2010-
* <p>The list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.</p>
2020+
* <p>The list of patterns of Git branches that, when a commit is pushed, are to be
2021+
* included as criteria that starts the pipeline.</p>
20112022
*/
20122023
includes?: string[];
20132024

20142025
/**
20152026
* @public
2016-
* <p>The list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.</p>
2027+
* <p>The list of patterns of Git branches that, when a commit is pushed, are to be
2028+
* excluded from starting the pipeline.</p>
20172029
*/
20182030
excludes?: string[];
20192031
}
@@ -2035,42 +2047,49 @@ export type GitPullRequestEventType = (typeof GitPullRequestEventType)[keyof typ
20352047

20362048
/**
20372049
* @public
2038-
* <p>The Git repository file paths specified as filter criteria to start the pipeline.</p>
2050+
* <p>The Git repository file paths specified as filter criteria to start the
2051+
* pipeline.</p>
20392052
*/
20402053
export interface GitFilePathFilterCriteria {
20412054
/**
20422055
* @public
2043-
* <p>The list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.</p>
2056+
* <p>The list of patterns of Git repository file paths that, when a commit is pushed,
2057+
* are to be included as criteria that starts the pipeline.</p>
20442058
*/
20452059
includes?: string[];
20462060

20472061
/**
20482062
* @public
2049-
* <p>The list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.</p>
2063+
* <p>The list of patterns of Git repository file paths that, when a commit is pushed,
2064+
* are to be excluded from starting the pipeline.</p>
20502065
*/
20512066
excludes?: string[];
20522067
}
20532068

20542069
/**
20552070
* @public
2056-
* <p>The event criteria for the pull request trigger configuration, such as the lists of branches or file paths to include and exclude.</p>
2071+
* <p>The event criteria for the pull request trigger configuration, such as the lists of
2072+
* branches or file paths to include and exclude.</p>
20572073
*/
20582074
export interface GitPullRequestFilter {
20592075
/**
20602076
* @public
2061-
* <p>The field that specifies which pull request events to filter on (opened, updated, closed) for the trigger configuration.</p>
2077+
* <p>The field that specifies which pull request events to filter on (opened, updated,
2078+
* closed) for the trigger configuration.</p>
20622079
*/
20632080
events?: GitPullRequestEventType[];
20642081

20652082
/**
20662083
* @public
2067-
* <p>The field that specifies to filter on branches for the pull request trigger configuration.</p>
2084+
* <p>The field that specifies to filter on branches for the pull request trigger
2085+
* configuration.</p>
20682086
*/
20692087
branches?: GitBranchFilterCriteria;
20702088

20712089
/**
20722090
* @public
2073-
* <p>The field that specifies to filter on file paths for the pull request trigger configuration.</p>
2091+
* <p>The field that specifies to filter on file paths for the pull request trigger
2092+
* configuration.</p>
20742093
*/
20752094
filePaths?: GitFilePathFilterCriteria;
20762095
}
@@ -2098,7 +2117,9 @@ export interface GitTagFilterCriteria {
20982117

20992118
/**
21002119
* @public
2101-
* <p>The event criteria that specify when a specified repository event will start the pipeline for the specified trigger configuration, such as the lists of Git tags to include and exclude.</p>
2120+
* <p>The event criteria that specify when a specified repository event will start the
2121+
* pipeline for the specified trigger configuration, such as the lists of Git tags to
2122+
* include and exclude.</p>
21022123
*/
21032124
export interface GitPushFilter {
21042125
/**
@@ -2110,13 +2131,15 @@ export interface GitPushFilter {
21102131

21112132
/**
21122133
* @public
2113-
* <p>The field that specifies to filter on branches for the push trigger configuration.</p>
2134+
* <p>The field that specifies to filter on branches for the push trigger
2135+
* configuration.</p>
21142136
*/
21152137
branches?: GitBranchFilterCriteria;
21162138

21172139
/**
21182140
* @public
2119-
* <p>The field that specifies to filter on file paths for the push trigger configuration.</p>
2141+
* <p>The field that specifies to filter on file paths for the push trigger
2142+
* configuration.</p>
21202143
*/
21212144
filePaths?: GitFilePathFilterCriteria;
21222145
}
@@ -2151,7 +2174,8 @@ export interface GitConfiguration {
21512174

21522175
/**
21532176
* @public
2154-
* <p>The field where the repository event that will start the pipeline is specified as pull requests.</p>
2177+
* <p>The field where the repository event that will start the pipeline is specified as
2178+
* pull requests.</p>
21552179
*/
21562180
pullRequest?: GitPullRequestFilter[];
21572181
}
@@ -2218,7 +2242,8 @@ export interface PipelineVariableDeclaration {
22182242

22192243
/**
22202244
* @public
2221-
* <p>The description of a pipeline-level variable. It's used to add additional context about the variable, and not being used at time when pipeline executes.</p>
2245+
* <p>The description of a pipeline-level variable. It's used to add additional context
2246+
* about the variable, and not being used at time when pipeline executes.</p>
22222247
*/
22232248
description?: string;
22242249
}
@@ -2284,15 +2309,16 @@ export interface PipelineDeclaration {
22842309

22852310
/**
22862311
* @public
2287-
* <p>The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED.</p>
2312+
* <p>The method that the pipeline will use to handle multiple executions. The default
2313+
* mode is SUPERSEDED.</p>
22882314
*/
22892315
executionMode?: ExecutionMode;
22902316

22912317
/**
22922318
* @public
2293-
* <p>CodePipeline provides the following pipeline types, which differ in characteristics and
2294-
* price, so that you can tailor your pipeline features and cost to the needs of your
2295-
* applications.</p>
2319+
* <p>CodePipeline provides the following pipeline types, which differ in
2320+
* characteristics and price, so that you can tailor your pipeline features and cost to the
2321+
* needs of your applications.</p>
22962322
* <ul>
22972323
* <li>
22982324
* <p>V1 type pipelines have a JSON structure that contains standard pipeline,
@@ -2309,8 +2335,8 @@ export interface PipelineDeclaration {
23092335
* pipeline and the associated costs.</p>
23102336
* </important>
23112337
* <p>For information about pricing for CodePipeline, see <a href="http://aws.amazon.com/codepipeline/pricing/">Pricing</a>.</p>
2312-
* <p>
2313-
* 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>
2338+
* <p> 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
2339+
* pipeline is right for me?</a>.</p>
23142340
*/
23152341
pipelineType?: PipelineType;
23162342

@@ -2324,7 +2350,8 @@ export interface PipelineDeclaration {
23242350

23252351
/**
23262352
* @public
2327-
* <p>The trigger configuration specifying a type of event, such as Git tags, that starts the pipeline.</p>
2353+
* <p>The trigger configuration specifying a type of event, such as Git tags, that starts
2354+
* the pipeline.</p>
23282355
* <note>
23292356
* <p>When a trigger configuration is specified, default change detection for
23302357
* repository and branch commits is disabled.</p>
@@ -3208,7 +3235,8 @@ export interface PipelineExecution {
32083235

32093236
/**
32103237
* @public
3211-
* <p>The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED.</p>
3238+
* <p>The method that the pipeline will use to handle multiple executions. The default
3239+
* mode is SUPERSEDED.</p>
32123240
*/
32133241
executionMode?: ExecutionMode;
32143242
}
@@ -3841,7 +3869,8 @@ export interface PipelineExecutionSummary {
38413869

38423870
/**
38433871
* @public
3844-
* <p>The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED.</p>
3872+
* <p>The method that the pipeline will use to handle multiple executions. The default
3873+
* mode is SUPERSEDED.</p>
38453874
*/
38463875
executionMode?: ExecutionMode;
38473876
}
@@ -3906,9 +3935,9 @@ export interface PipelineSummary {
39063935

39073936
/**
39083937
* @public
3909-
* <p>CodePipeline provides the following pipeline types, which differ in characteristics and
3910-
* price, so that you can tailor your pipeline features and cost to the needs of your
3911-
* applications.</p>
3938+
* <p>CodePipeline provides the following pipeline types, which differ in
3939+
* characteristics and price, so that you can tailor your pipeline features and cost to the
3940+
* needs of your applications.</p>
39123941
* <ul>
39133942
* <li>
39143943
* <p>V1 type pipelines have a JSON structure that contains standard pipeline,
@@ -3925,14 +3954,15 @@ export interface PipelineSummary {
39253954
* pipeline and the associated costs.</p>
39263955
* </important>
39273956
* <p>For information about pricing for CodePipeline, see <a href="http://aws.amazon.com/codepipeline/pricing/">Pricing</a>.</p>
3928-
* <p>
3929-
* 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>
3957+
* <p> 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
3958+
* pipeline is right for me?</a>.</p>
39303959
*/
39313960
pipelineType?: PipelineType;
39323961

39333962
/**
39343963
* @public
3935-
* <p>The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED.</p>
3964+
* <p>The method that the pipeline will use to handle multiple executions. The default
3965+
* mode is SUPERSEDED.</p>
39363966
*/
39373967
executionMode?: ExecutionMode;
39383968

@@ -5100,8 +5130,9 @@ export interface StartPipelineExecutionInput {
51005130

51015131
/**
51025132
* @public
5103-
* <p>A list that overrides pipeline variables for a pipeline execution that's being started. Variable names must match <code>[A-Za-z0-9@\-_]+</code>,
5104-
* and the values can be anything except an empty string.</p>
5133+
* <p>A list that overrides pipeline variables for a pipeline execution that's being
5134+
* started. Variable names must match <code>[A-Za-z0-9@\-_]+</code>, and the values can be
5135+
* anything except an empty string.</p>
51055136
*/
51065137
variables?: PipelineVariable[];
51075138

@@ -5114,7 +5145,9 @@ export interface StartPipelineExecutionInput {
51145145

51155146
/**
51165147
* @public
5117-
* <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>
5148+
* <p>A list that allows you to specify, or override, the source revision for a pipeline
5149+
* execution that's being started. A source revision is the version with all the changes to
5150+
* your application code, or source artifact, for the pipeline execution.</p>
51185151
*/
51195152
sourceRevisions?: SourceRevisionOverride[];
51205153
}

0 commit comments

Comments
 (0)