Skip to content

Commit eb51d8f

Browse files
author
awstools
committed
feat(client-codepipeline): CodePipeline now supports new API ListDeployActionExecutionTargets that lists the deployment target details for deploy action executions.
1 parent f1f82e1 commit eb51d8f

File tree

10 files changed

+817
-0
lines changed

10 files changed

+817
-0
lines changed

clients/client-codepipeline/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,14 @@ ListActionTypes
543543

544544
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codepipeline/command/ListActionTypesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codepipeline/Interface/ListActionTypesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codepipeline/Interface/ListActionTypesCommandOutput/)
545545

546+
</details>
547+
<details>
548+
<summary>
549+
ListDeployActionExecutionTargets
550+
</summary>
551+
552+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codepipeline/command/ListDeployActionExecutionTargetsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codepipeline/Interface/ListDeployActionExecutionTargetsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codepipeline/Interface/ListDeployActionExecutionTargetsCommandOutput/)
553+
546554
</details>
547555
<details>
548556
<summary>

clients/client-codepipeline/src/CodePipeline.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ import {
8989
ListActionTypesCommandInput,
9090
ListActionTypesCommandOutput,
9191
} from "./commands/ListActionTypesCommand";
92+
import {
93+
ListDeployActionExecutionTargetsCommand,
94+
ListDeployActionExecutionTargetsCommandInput,
95+
ListDeployActionExecutionTargetsCommandOutput,
96+
} from "./commands/ListDeployActionExecutionTargetsCommand";
9297
import {
9398
ListPipelineExecutionsCommand,
9499
ListPipelineExecutionsCommandInput,
@@ -222,6 +227,7 @@ const commands = {
222227
GetThirdPartyJobDetailsCommand,
223228
ListActionExecutionsCommand,
224229
ListActionTypesCommand,
230+
ListDeployActionExecutionTargetsCommand,
225231
ListPipelineExecutionsCommand,
226232
ListPipelinesCommand,
227233
ListRuleExecutionsCommand,
@@ -522,6 +528,23 @@ export interface CodePipeline {
522528
cb: (err: any, data?: ListActionTypesCommandOutput) => void
523529
): void;
524530

531+
/**
532+
* @see {@link ListDeployActionExecutionTargetsCommand}
533+
*/
534+
listDeployActionExecutionTargets(
535+
args: ListDeployActionExecutionTargetsCommandInput,
536+
options?: __HttpHandlerOptions
537+
): Promise<ListDeployActionExecutionTargetsCommandOutput>;
538+
listDeployActionExecutionTargets(
539+
args: ListDeployActionExecutionTargetsCommandInput,
540+
cb: (err: any, data?: ListDeployActionExecutionTargetsCommandOutput) => void
541+
): void;
542+
listDeployActionExecutionTargets(
543+
args: ListDeployActionExecutionTargetsCommandInput,
544+
options: __HttpHandlerOptions,
545+
cb: (err: any, data?: ListDeployActionExecutionTargetsCommandOutput) => void
546+
): void;
547+
525548
/**
526549
* @see {@link ListPipelineExecutionsCommand}
527550
*/

clients/client-codepipeline/src/CodePipelineClient.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ import {
9898
ListActionExecutionsCommandOutput,
9999
} from "./commands/ListActionExecutionsCommand";
100100
import { ListActionTypesCommandInput, ListActionTypesCommandOutput } from "./commands/ListActionTypesCommand";
101+
import {
102+
ListDeployActionExecutionTargetsCommandInput,
103+
ListDeployActionExecutionTargetsCommandOutput,
104+
} from "./commands/ListDeployActionExecutionTargetsCommand";
101105
import {
102106
ListPipelineExecutionsCommandInput,
103107
ListPipelineExecutionsCommandOutput,
@@ -192,6 +196,7 @@ export type ServiceInputTypes =
192196
| GetThirdPartyJobDetailsCommandInput
193197
| ListActionExecutionsCommandInput
194198
| ListActionTypesCommandInput
199+
| ListDeployActionExecutionTargetsCommandInput
195200
| ListPipelineExecutionsCommandInput
196201
| ListPipelinesCommandInput
197202
| ListRuleExecutionsCommandInput
@@ -240,6 +245,7 @@ export type ServiceOutputTypes =
240245
| GetThirdPartyJobDetailsCommandOutput
241246
| ListActionExecutionsCommandOutput
242247
| ListActionTypesCommandOutput
248+
| ListDeployActionExecutionTargetsCommandOutput
243249
| ListPipelineExecutionsCommandOutput
244250
| ListPipelinesCommandOutput
245251
| ListRuleExecutionsCommandOutput
Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
// smithy-typescript generated code
2+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3+
import { getSerdePlugin } from "@smithy/middleware-serde";
4+
import { Command as $Command } from "@smithy/smithy-client";
5+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
6+
7+
import { CodePipelineClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodePipelineClient";
8+
import { commonParams } from "../endpoint/EndpointParameters";
9+
import { ListDeployActionExecutionTargetsInput, ListDeployActionExecutionTargetsOutput } from "../models/models_0";
10+
import {
11+
de_ListDeployActionExecutionTargetsCommand,
12+
se_ListDeployActionExecutionTargetsCommand,
13+
} from "../protocols/Aws_json1_1";
14+
15+
/**
16+
* @public
17+
*/
18+
export type { __MetadataBearer };
19+
export { $Command };
20+
/**
21+
* @public
22+
*
23+
* The input for {@link ListDeployActionExecutionTargetsCommand}.
24+
*/
25+
export interface ListDeployActionExecutionTargetsCommandInput extends ListDeployActionExecutionTargetsInput {}
26+
/**
27+
* @public
28+
*
29+
* The output of {@link ListDeployActionExecutionTargetsCommand}.
30+
*/
31+
export interface ListDeployActionExecutionTargetsCommandOutput
32+
extends ListDeployActionExecutionTargetsOutput,
33+
__MetadataBearer {}
34+
35+
/**
36+
* <p>Lists the targets for the deploy action.</p>
37+
* @example
38+
* Use a bare-bones client and the command you need to make an API call.
39+
* ```javascript
40+
* import { CodePipelineClient, ListDeployActionExecutionTargetsCommand } from "@aws-sdk/client-codepipeline"; // ES Modules import
41+
* // const { CodePipelineClient, ListDeployActionExecutionTargetsCommand } = require("@aws-sdk/client-codepipeline"); // CommonJS import
42+
* const client = new CodePipelineClient(config);
43+
* const input = { // ListDeployActionExecutionTargetsInput
44+
* pipelineName: "STRING_VALUE",
45+
* actionExecutionId: "STRING_VALUE", // required
46+
* filters: [ // TargetFilterList
47+
* { // TargetFilter
48+
* name: "TARGET_STATUS",
49+
* values: [ // TargetFilterValueList
50+
* "STRING_VALUE",
51+
* ],
52+
* },
53+
* ],
54+
* maxResults: Number("int"),
55+
* nextToken: "STRING_VALUE",
56+
* };
57+
* const command = new ListDeployActionExecutionTargetsCommand(input);
58+
* const response = await client.send(command);
59+
* // { // ListDeployActionExecutionTargetsOutput
60+
* // targets: [ // DeployActionExecutionTargetList
61+
* // { // DeployActionExecutionTarget
62+
* // targetId: "STRING_VALUE",
63+
* // targetType: "STRING_VALUE",
64+
* // status: "STRING_VALUE",
65+
* // startTime: new Date("TIMESTAMP"),
66+
* // endTime: new Date("TIMESTAMP"),
67+
* // events: [ // DeployTargetEventList
68+
* // { // DeployTargetEvent
69+
* // name: "STRING_VALUE",
70+
* // status: "STRING_VALUE",
71+
* // startTime: new Date("TIMESTAMP"),
72+
* // endTime: new Date("TIMESTAMP"),
73+
* // context: { // DeployTargetEventContext
74+
* // ssmCommandId: "STRING_VALUE",
75+
* // message: "STRING_VALUE",
76+
* // },
77+
* // },
78+
* // ],
79+
* // },
80+
* // ],
81+
* // nextToken: "STRING_VALUE",
82+
* // };
83+
*
84+
* ```
85+
*
86+
* @param ListDeployActionExecutionTargetsCommandInput - {@link ListDeployActionExecutionTargetsCommandInput}
87+
* @returns {@link ListDeployActionExecutionTargetsCommandOutput}
88+
* @see {@link ListDeployActionExecutionTargetsCommandInput} for command's `input` shape.
89+
* @see {@link ListDeployActionExecutionTargetsCommandOutput} for command's `response` shape.
90+
* @see {@link CodePipelineClientResolvedConfig | config} for CodePipelineClient's `config` shape.
91+
*
92+
* @throws {@link ActionExecutionNotFoundException} (client fault)
93+
* <p>The action execution was not found.</p>
94+
*
95+
* @throws {@link InvalidNextTokenException} (client fault)
96+
* <p>The next token was specified in an invalid format. Make sure that the next token
97+
* you provide is the token returned by a previous call.</p>
98+
*
99+
* @throws {@link PipelineNotFoundException} (client fault)
100+
* <p>The pipeline was specified in an invalid format or cannot be found.</p>
101+
*
102+
* @throws {@link ValidationException} (client fault)
103+
* <p>The validation was specified in an invalid format.</p>
104+
*
105+
* @throws {@link CodePipelineServiceException}
106+
* <p>Base exception class for all service exceptions from CodePipeline service.</p>
107+
*
108+
*
109+
* @public
110+
*/
111+
export class ListDeployActionExecutionTargetsCommand extends $Command
112+
.classBuilder<
113+
ListDeployActionExecutionTargetsCommandInput,
114+
ListDeployActionExecutionTargetsCommandOutput,
115+
CodePipelineClientResolvedConfig,
116+
ServiceInputTypes,
117+
ServiceOutputTypes
118+
>()
119+
.ep(commonParams)
120+
.m(function (this: any, Command: any, cs: any, config: CodePipelineClientResolvedConfig, o: any) {
121+
return [
122+
getSerdePlugin(config, this.serialize, this.deserialize),
123+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
124+
];
125+
})
126+
.s("CodePipeline_20150709", "ListDeployActionExecutionTargets", {})
127+
.n("CodePipelineClient", "ListDeployActionExecutionTargetsCommand")
128+
.f(void 0, void 0)
129+
.ser(se_ListDeployActionExecutionTargetsCommand)
130+
.de(de_ListDeployActionExecutionTargetsCommand)
131+
.build() {
132+
/** @internal type navigation helper, not in runtime. */
133+
protected declare static __types: {
134+
api: {
135+
input: ListDeployActionExecutionTargetsInput;
136+
output: ListDeployActionExecutionTargetsOutput;
137+
};
138+
sdk: {
139+
input: ListDeployActionExecutionTargetsCommandInput;
140+
output: ListDeployActionExecutionTargetsCommandOutput;
141+
};
142+
};
143+
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export * from "./GetPipelineStateCommand";
1717
export * from "./GetThirdPartyJobDetailsCommand";
1818
export * from "./ListActionExecutionsCommand";
1919
export * from "./ListActionTypesCommand";
20+
export * from "./ListDeployActionExecutionTargetsCommand";
2021
export * from "./ListPipelineExecutionsCommand";
2122
export * from "./ListPipelinesCommand";
2223
export * from "./ListRuleExecutionsCommand";

0 commit comments

Comments
 (0)