@aws-sdk/client-imagebuilder 3.468.0 → 3.472.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.
- package/README.md +56 -0
- package/dist-cjs/Imagebuilder.js +14 -0
- package/dist-cjs/commands/CreateWorkflowCommand.js +51 -0
- package/dist-cjs/commands/DeleteWorkflowCommand.js +51 -0
- package/dist-cjs/commands/GetWorkflowCommand.js +51 -0
- package/dist-cjs/commands/ListWaitingWorkflowStepsCommand.js +51 -0
- package/dist-cjs/commands/ListWorkflowBuildVersionsCommand.js +51 -0
- package/dist-cjs/commands/ListWorkflowsCommand.js +51 -0
- package/dist-cjs/commands/SendWorkflowStepActionCommand.js +51 -0
- package/dist-cjs/commands/index.js +7 -0
- package/dist-cjs/models/models_0.js +19 -6
- package/dist-cjs/pagination/ListWaitingWorkflowStepsPaginator.js +29 -0
- package/dist-cjs/pagination/ListWorkflowBuildVersionsPaginator.js +29 -0
- package/dist-cjs/pagination/ListWorkflowsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_restJson1.js +565 -3
- package/dist-es/Imagebuilder.js +14 -0
- package/dist-es/commands/CreateWorkflowCommand.js +47 -0
- package/dist-es/commands/DeleteWorkflowCommand.js +47 -0
- package/dist-es/commands/GetWorkflowCommand.js +47 -0
- package/dist-es/commands/ListWaitingWorkflowStepsCommand.js +47 -0
- package/dist-es/commands/ListWorkflowBuildVersionsCommand.js +47 -0
- package/dist-es/commands/ListWorkflowsCommand.js +47 -0
- package/dist-es/commands/SendWorkflowStepActionCommand.js +47 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/models/models_0.js +18 -5
- package/dist-es/pagination/ListWaitingWorkflowStepsPaginator.js +25 -0
- package/dist-es/pagination/ListWorkflowBuildVersionsPaginator.js +25 -0
- package/dist-es/pagination/ListWorkflowsPaginator.js +25 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +548 -0
- package/dist-types/Imagebuilder.d.ts +49 -0
- package/dist-types/ImagebuilderClient.d.ts +9 -2
- package/dist-types/commands/CreateImageCommand.d.ts +16 -0
- package/dist-types/commands/CreateImagePipelineCommand.d.ts +16 -0
- package/dist-types/commands/CreateWorkflowCommand.d.ts +126 -0
- package/dist-types/commands/DeleteWorkflowCommand.d.ts +98 -0
- package/dist-types/commands/GetImageCommand.d.ts +16 -0
- package/dist-types/commands/GetImagePipelineCommand.d.ts +16 -0
- package/dist-types/commands/GetWorkflowCommand.d.ts +122 -0
- package/dist-types/commands/GetWorkflowExecutionCommand.d.ts +2 -1
- package/dist-types/commands/GetWorkflowStepExecutionCommand.d.ts +1 -1
- package/dist-types/commands/ListImagePipelinesCommand.d.ts +16 -0
- package/dist-types/commands/ListWaitingWorkflowStepsCommand.d.ts +110 -0
- package/dist-types/commands/ListWorkflowBuildVersionsCommand.d.ts +118 -0
- package/dist-types/commands/ListWorkflowExecutionsCommand.d.ts +2 -1
- package/dist-types/commands/ListWorkflowStepExecutionsCommand.d.ts +2 -2
- package/dist-types/commands/ListWorkflowsCommand.d.ts +119 -0
- package/dist-types/commands/SendWorkflowStepActionCommand.d.ts +115 -0
- package/dist-types/commands/UpdateImagePipelineCommand.d.ts +18 -1
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/models/models_0.d.ts +786 -61
- package/dist-types/pagination/ListWaitingWorkflowStepsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListWorkflowBuildVersionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListWorkflowsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +63 -0
- package/dist-types/ts3.4/Imagebuilder.d.ts +119 -0
- package/dist-types/ts3.4/ImagebuilderClient.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateWorkflowCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteWorkflowCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetWorkflowCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListWaitingWorkflowStepsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListWorkflowBuildVersionsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListWorkflowsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/SendWorkflowStepActionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +7 -0
- package/dist-types/ts3.4/models/models_0.d.ts +170 -6
- package/dist-types/ts3.4/pagination/ListWaitingWorkflowStepsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListWorkflowBuildVersionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListWorkflowsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +84 -0
- package/package.json +13 -13
package/dist-es/Imagebuilder.js
CHANGED
|
@@ -9,6 +9,7 @@ import { CreateImagePipelineCommand, } from "./commands/CreateImagePipelineComma
|
|
|
9
9
|
import { CreateImageRecipeCommand, } from "./commands/CreateImageRecipeCommand";
|
|
10
10
|
import { CreateInfrastructureConfigurationCommand, } from "./commands/CreateInfrastructureConfigurationCommand";
|
|
11
11
|
import { CreateLifecyclePolicyCommand, } from "./commands/CreateLifecyclePolicyCommand";
|
|
12
|
+
import { CreateWorkflowCommand, } from "./commands/CreateWorkflowCommand";
|
|
12
13
|
import { DeleteComponentCommand, } from "./commands/DeleteComponentCommand";
|
|
13
14
|
import { DeleteContainerRecipeCommand, } from "./commands/DeleteContainerRecipeCommand";
|
|
14
15
|
import { DeleteDistributionConfigurationCommand, } from "./commands/DeleteDistributionConfigurationCommand";
|
|
@@ -17,6 +18,7 @@ import { DeleteImagePipelineCommand, } from "./commands/DeleteImagePipelineComma
|
|
|
17
18
|
import { DeleteImageRecipeCommand, } from "./commands/DeleteImageRecipeCommand";
|
|
18
19
|
import { DeleteInfrastructureConfigurationCommand, } from "./commands/DeleteInfrastructureConfigurationCommand";
|
|
19
20
|
import { DeleteLifecyclePolicyCommand, } from "./commands/DeleteLifecyclePolicyCommand";
|
|
21
|
+
import { DeleteWorkflowCommand, } from "./commands/DeleteWorkflowCommand";
|
|
20
22
|
import { GetComponentCommand, } from "./commands/GetComponentCommand";
|
|
21
23
|
import { GetComponentPolicyCommand, } from "./commands/GetComponentPolicyCommand";
|
|
22
24
|
import { GetContainerRecipeCommand, } from "./commands/GetContainerRecipeCommand";
|
|
@@ -30,6 +32,7 @@ import { GetImageRecipePolicyCommand, } from "./commands/GetImageRecipePolicyCom
|
|
|
30
32
|
import { GetInfrastructureConfigurationCommand, } from "./commands/GetInfrastructureConfigurationCommand";
|
|
31
33
|
import { GetLifecycleExecutionCommand, } from "./commands/GetLifecycleExecutionCommand";
|
|
32
34
|
import { GetLifecyclePolicyCommand, } from "./commands/GetLifecyclePolicyCommand";
|
|
35
|
+
import { GetWorkflowCommand } from "./commands/GetWorkflowCommand";
|
|
33
36
|
import { GetWorkflowExecutionCommand, } from "./commands/GetWorkflowExecutionCommand";
|
|
34
37
|
import { GetWorkflowStepExecutionCommand, } from "./commands/GetWorkflowStepExecutionCommand";
|
|
35
38
|
import { ImportComponentCommand, } from "./commands/ImportComponentCommand";
|
|
@@ -51,12 +54,16 @@ import { ListLifecycleExecutionResourcesCommand, } from "./commands/ListLifecycl
|
|
|
51
54
|
import { ListLifecycleExecutionsCommand, } from "./commands/ListLifecycleExecutionsCommand";
|
|
52
55
|
import { ListLifecyclePoliciesCommand, } from "./commands/ListLifecyclePoliciesCommand";
|
|
53
56
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
57
|
+
import { ListWaitingWorkflowStepsCommand, } from "./commands/ListWaitingWorkflowStepsCommand";
|
|
58
|
+
import { ListWorkflowBuildVersionsCommand, } from "./commands/ListWorkflowBuildVersionsCommand";
|
|
54
59
|
import { ListWorkflowExecutionsCommand, } from "./commands/ListWorkflowExecutionsCommand";
|
|
60
|
+
import { ListWorkflowsCommand, } from "./commands/ListWorkflowsCommand";
|
|
55
61
|
import { ListWorkflowStepExecutionsCommand, } from "./commands/ListWorkflowStepExecutionsCommand";
|
|
56
62
|
import { PutComponentPolicyCommand, } from "./commands/PutComponentPolicyCommand";
|
|
57
63
|
import { PutContainerRecipePolicyCommand, } from "./commands/PutContainerRecipePolicyCommand";
|
|
58
64
|
import { PutImagePolicyCommand, } from "./commands/PutImagePolicyCommand";
|
|
59
65
|
import { PutImageRecipePolicyCommand, } from "./commands/PutImageRecipePolicyCommand";
|
|
66
|
+
import { SendWorkflowStepActionCommand, } from "./commands/SendWorkflowStepActionCommand";
|
|
60
67
|
import { StartImagePipelineExecutionCommand, } from "./commands/StartImagePipelineExecutionCommand";
|
|
61
68
|
import { StartResourceStateUpdateCommand, } from "./commands/StartResourceStateUpdateCommand";
|
|
62
69
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
@@ -77,6 +84,7 @@ const commands = {
|
|
|
77
84
|
CreateImageRecipeCommand,
|
|
78
85
|
CreateInfrastructureConfigurationCommand,
|
|
79
86
|
CreateLifecyclePolicyCommand,
|
|
87
|
+
CreateWorkflowCommand,
|
|
80
88
|
DeleteComponentCommand,
|
|
81
89
|
DeleteContainerRecipeCommand,
|
|
82
90
|
DeleteDistributionConfigurationCommand,
|
|
@@ -85,6 +93,7 @@ const commands = {
|
|
|
85
93
|
DeleteImageRecipeCommand,
|
|
86
94
|
DeleteInfrastructureConfigurationCommand,
|
|
87
95
|
DeleteLifecyclePolicyCommand,
|
|
96
|
+
DeleteWorkflowCommand,
|
|
88
97
|
GetComponentCommand,
|
|
89
98
|
GetComponentPolicyCommand,
|
|
90
99
|
GetContainerRecipeCommand,
|
|
@@ -98,6 +107,7 @@ const commands = {
|
|
|
98
107
|
GetInfrastructureConfigurationCommand,
|
|
99
108
|
GetLifecycleExecutionCommand,
|
|
100
109
|
GetLifecyclePolicyCommand,
|
|
110
|
+
GetWorkflowCommand,
|
|
101
111
|
GetWorkflowExecutionCommand,
|
|
102
112
|
GetWorkflowStepExecutionCommand,
|
|
103
113
|
ImportComponentCommand,
|
|
@@ -119,12 +129,16 @@ const commands = {
|
|
|
119
129
|
ListLifecycleExecutionsCommand,
|
|
120
130
|
ListLifecyclePoliciesCommand,
|
|
121
131
|
ListTagsForResourceCommand,
|
|
132
|
+
ListWaitingWorkflowStepsCommand,
|
|
133
|
+
ListWorkflowBuildVersionsCommand,
|
|
122
134
|
ListWorkflowExecutionsCommand,
|
|
135
|
+
ListWorkflowsCommand,
|
|
123
136
|
ListWorkflowStepExecutionsCommand,
|
|
124
137
|
PutComponentPolicyCommand,
|
|
125
138
|
PutContainerRecipePolicyCommand,
|
|
126
139
|
PutImagePolicyCommand,
|
|
127
140
|
PutImageRecipePolicyCommand,
|
|
141
|
+
SendWorkflowStepActionCommand,
|
|
128
142
|
StartImagePipelineExecutionCommand,
|
|
129
143
|
StartResourceStateUpdateCommand,
|
|
130
144
|
TagResourceCommand,
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_CreateWorkflowCommand, se_CreateWorkflowCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class CreateWorkflowCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CreateWorkflowCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "ImagebuilderClient";
|
|
26
|
+
const commandName = "CreateWorkflowCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "imagebuilder",
|
|
35
|
+
operation: "CreateWorkflow",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_CreateWorkflowCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_CreateWorkflowCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_DeleteWorkflowCommand, se_DeleteWorkflowCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class DeleteWorkflowCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DeleteWorkflowCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "ImagebuilderClient";
|
|
26
|
+
const commandName = "DeleteWorkflowCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "imagebuilder",
|
|
35
|
+
operation: "DeleteWorkflow",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_DeleteWorkflowCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_DeleteWorkflowCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_GetWorkflowCommand, se_GetWorkflowCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class GetWorkflowCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetWorkflowCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "ImagebuilderClient";
|
|
26
|
+
const commandName = "GetWorkflowCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "imagebuilder",
|
|
35
|
+
operation: "GetWorkflow",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_GetWorkflowCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_GetWorkflowCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_ListWaitingWorkflowStepsCommand, se_ListWaitingWorkflowStepsCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListWaitingWorkflowStepsCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListWaitingWorkflowStepsCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "ImagebuilderClient";
|
|
26
|
+
const commandName = "ListWaitingWorkflowStepsCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "imagebuilder",
|
|
35
|
+
operation: "ListWaitingWorkflowSteps",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_ListWaitingWorkflowStepsCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_ListWaitingWorkflowStepsCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_ListWorkflowBuildVersionsCommand, se_ListWorkflowBuildVersionsCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListWorkflowBuildVersionsCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListWorkflowBuildVersionsCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "ImagebuilderClient";
|
|
26
|
+
const commandName = "ListWorkflowBuildVersionsCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "imagebuilder",
|
|
35
|
+
operation: "ListWorkflowBuildVersions",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_ListWorkflowBuildVersionsCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_ListWorkflowBuildVersionsCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_ListWorkflowsCommand, se_ListWorkflowsCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListWorkflowsCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListWorkflowsCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "ImagebuilderClient";
|
|
26
|
+
const commandName = "ListWorkflowsCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "imagebuilder",
|
|
35
|
+
operation: "ListWorkflows",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_ListWorkflowsCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_ListWorkflowsCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_SendWorkflowStepActionCommand, se_SendWorkflowStepActionCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class SendWorkflowStepActionCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, SendWorkflowStepActionCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "ImagebuilderClient";
|
|
26
|
+
const commandName = "SendWorkflowStepActionCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "imagebuilder",
|
|
35
|
+
operation: "SendWorkflowStepAction",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_SendWorkflowStepActionCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_SendWorkflowStepActionCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -8,6 +8,7 @@ export * from "./CreateImagePipelineCommand";
|
|
|
8
8
|
export * from "./CreateImageRecipeCommand";
|
|
9
9
|
export * from "./CreateInfrastructureConfigurationCommand";
|
|
10
10
|
export * from "./CreateLifecyclePolicyCommand";
|
|
11
|
+
export * from "./CreateWorkflowCommand";
|
|
11
12
|
export * from "./DeleteComponentCommand";
|
|
12
13
|
export * from "./DeleteContainerRecipeCommand";
|
|
13
14
|
export * from "./DeleteDistributionConfigurationCommand";
|
|
@@ -16,6 +17,7 @@ export * from "./DeleteImagePipelineCommand";
|
|
|
16
17
|
export * from "./DeleteImageRecipeCommand";
|
|
17
18
|
export * from "./DeleteInfrastructureConfigurationCommand";
|
|
18
19
|
export * from "./DeleteLifecyclePolicyCommand";
|
|
20
|
+
export * from "./DeleteWorkflowCommand";
|
|
19
21
|
export * from "./GetComponentCommand";
|
|
20
22
|
export * from "./GetComponentPolicyCommand";
|
|
21
23
|
export * from "./GetContainerRecipeCommand";
|
|
@@ -29,6 +31,7 @@ export * from "./GetImageRecipePolicyCommand";
|
|
|
29
31
|
export * from "./GetInfrastructureConfigurationCommand";
|
|
30
32
|
export * from "./GetLifecycleExecutionCommand";
|
|
31
33
|
export * from "./GetLifecyclePolicyCommand";
|
|
34
|
+
export * from "./GetWorkflowCommand";
|
|
32
35
|
export * from "./GetWorkflowExecutionCommand";
|
|
33
36
|
export * from "./GetWorkflowStepExecutionCommand";
|
|
34
37
|
export * from "./ImportComponentCommand";
|
|
@@ -50,12 +53,16 @@ export * from "./ListLifecycleExecutionResourcesCommand";
|
|
|
50
53
|
export * from "./ListLifecycleExecutionsCommand";
|
|
51
54
|
export * from "./ListLifecyclePoliciesCommand";
|
|
52
55
|
export * from "./ListTagsForResourceCommand";
|
|
56
|
+
export * from "./ListWaitingWorkflowStepsCommand";
|
|
57
|
+
export * from "./ListWorkflowBuildVersionsCommand";
|
|
53
58
|
export * from "./ListWorkflowExecutionsCommand";
|
|
54
59
|
export * from "./ListWorkflowStepExecutionsCommand";
|
|
60
|
+
export * from "./ListWorkflowsCommand";
|
|
55
61
|
export * from "./PutComponentPolicyCommand";
|
|
56
62
|
export * from "./PutContainerRecipePolicyCommand";
|
|
57
63
|
export * from "./PutImagePolicyCommand";
|
|
58
64
|
export * from "./PutImageRecipePolicyCommand";
|
|
65
|
+
export * from "./SendWorkflowStepActionCommand";
|
|
59
66
|
export * from "./StartImagePipelineExecutionCommand";
|
|
60
67
|
export * from "./StartResourceStateUpdateCommand";
|
|
61
68
|
export * from "./TagResourceCommand";
|
|
@@ -196,6 +196,10 @@ export const DiskImageFormat = {
|
|
|
196
196
|
VHD: "VHD",
|
|
197
197
|
VMDK: "VMDK",
|
|
198
198
|
};
|
|
199
|
+
export const OnWorkflowFailure = {
|
|
200
|
+
ABORT: "ABORT",
|
|
201
|
+
CONTINUE: "CONTINUE",
|
|
202
|
+
};
|
|
199
203
|
export const PipelineExecutionStartCondition = {
|
|
200
204
|
EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE: "EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE",
|
|
201
205
|
EXPRESSION_MATCH_ONLY: "EXPRESSION_MATCH_ONLY",
|
|
@@ -227,6 +231,11 @@ export const LifecyclePolicyStatus = {
|
|
|
227
231
|
DISABLED: "DISABLED",
|
|
228
232
|
ENABLED: "ENABLED",
|
|
229
233
|
};
|
|
234
|
+
export const WorkflowType = {
|
|
235
|
+
BUILD: "BUILD",
|
|
236
|
+
DISTRIBUTION: "DISTRIBUTION",
|
|
237
|
+
TEST: "TEST",
|
|
238
|
+
};
|
|
230
239
|
export class ResourceDependencyException extends __BaseException {
|
|
231
240
|
constructor(opts) {
|
|
232
241
|
super({
|
|
@@ -277,7 +286,11 @@ export const LifecycleExecutionStatus = {
|
|
|
277
286
|
IN_PROGRESS: "IN_PROGRESS",
|
|
278
287
|
SUCCESS: "SUCCESS",
|
|
279
288
|
};
|
|
289
|
+
export const WorkflowStatus = {
|
|
290
|
+
DEPRECATED: "DEPRECATED",
|
|
291
|
+
};
|
|
280
292
|
export const WorkflowExecutionStatus = {
|
|
293
|
+
CANCELLED: "CANCELLED",
|
|
281
294
|
COMPLETED: "COMPLETED",
|
|
282
295
|
FAILED: "FAILED",
|
|
283
296
|
PENDING: "PENDING",
|
|
@@ -286,11 +299,6 @@ export const WorkflowExecutionStatus = {
|
|
|
286
299
|
RUNNING: "RUNNING",
|
|
287
300
|
SKIPPED: "SKIPPED",
|
|
288
301
|
};
|
|
289
|
-
export const WorkflowType = {
|
|
290
|
-
BUILD: "BUILD",
|
|
291
|
-
DISTRIBUTION: "DISTRIBUTION",
|
|
292
|
-
TEST: "TEST",
|
|
293
|
-
};
|
|
294
302
|
export const WorkflowStepExecutionRollbackStatus = {
|
|
295
303
|
COMPLETED: "COMPLETED",
|
|
296
304
|
FAILED: "FAILED",
|
|
@@ -298,6 +306,7 @@ export const WorkflowStepExecutionRollbackStatus = {
|
|
|
298
306
|
SKIPPED: "SKIPPED",
|
|
299
307
|
};
|
|
300
308
|
export const WorkflowStepExecutionStatus = {
|
|
309
|
+
CANCELLED: "CANCELLED",
|
|
301
310
|
COMPLETED: "COMPLETED",
|
|
302
311
|
FAILED: "FAILED",
|
|
303
312
|
PENDING: "PENDING",
|
|
@@ -358,6 +367,10 @@ export class InvalidParameterValueException extends __BaseException {
|
|
|
358
367
|
Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
|
|
359
368
|
}
|
|
360
369
|
}
|
|
370
|
+
export const WorkflowStepActionType = {
|
|
371
|
+
RESUME: "RESUME",
|
|
372
|
+
STOP: "STOP",
|
|
373
|
+
};
|
|
361
374
|
export const ResourceStatus = {
|
|
362
375
|
AVAILABLE: "AVAILABLE",
|
|
363
376
|
DELETED: "DELETED",
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListWaitingWorkflowStepsCommand, } from "../commands/ListWaitingWorkflowStepsCommand";
|
|
2
|
+
import { ImagebuilderClient } from "../ImagebuilderClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListWaitingWorkflowStepsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListWaitingWorkflowSteps(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof ImagebuilderClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListWorkflowBuildVersionsCommand, } from "../commands/ListWorkflowBuildVersionsCommand";
|
|
2
|
+
import { ImagebuilderClient } from "../ImagebuilderClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListWorkflowBuildVersionsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListWorkflowBuildVersions(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof ImagebuilderClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListWorkflowsCommand, } from "../commands/ListWorkflowsCommand";
|
|
2
|
+
import { ImagebuilderClient } from "../ImagebuilderClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListWorkflowsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListWorkflows(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof ImagebuilderClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -15,5 +15,8 @@ export * from "./ListInfrastructureConfigurationsPaginator";
|
|
|
15
15
|
export * from "./ListLifecycleExecutionResourcesPaginator";
|
|
16
16
|
export * from "./ListLifecycleExecutionsPaginator";
|
|
17
17
|
export * from "./ListLifecyclePoliciesPaginator";
|
|
18
|
+
export * from "./ListWaitingWorkflowStepsPaginator";
|
|
19
|
+
export * from "./ListWorkflowBuildVersionsPaginator";
|
|
18
20
|
export * from "./ListWorkflowExecutionsPaginator";
|
|
19
21
|
export * from "./ListWorkflowStepExecutionsPaginator";
|
|
22
|
+
export * from "./ListWorkflowsPaginator";
|