@aws-sdk/client-imagebuilder 3.300.0 → 3.303.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 +51 -3
- package/dist-cjs/Imagebuilder.js +90 -0
- package/dist-cjs/commands/GetWorkflowExecutionCommand.js +45 -0
- package/dist-cjs/commands/GetWorkflowStepExecutionCommand.js +45 -0
- package/dist-cjs/commands/ListImageScanFindingAggregationsCommand.js +45 -0
- package/dist-cjs/commands/ListImageScanFindingsCommand.js +45 -0
- package/dist-cjs/commands/ListWorkflowExecutionsCommand.js +45 -0
- package/dist-cjs/commands/ListWorkflowStepExecutionsCommand.js +45 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +113 -92
- package/dist-cjs/pagination/ListImageScanFindingAggregationsPaginator.js +28 -0
- package/dist-cjs/pagination/ListImageScanFindingsPaginator.js +29 -0
- package/dist-cjs/pagination/ListWorkflowExecutionsPaginator.js +29 -0
- package/dist-cjs/pagination/ListWorkflowStepExecutionsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +4 -0
- package/dist-cjs/protocols/Aws_restJson1.js +945 -13
- package/dist-es/Imagebuilder.js +90 -0
- package/dist-es/commands/GetWorkflowExecutionCommand.js +41 -0
- package/dist-es/commands/GetWorkflowStepExecutionCommand.js +41 -0
- package/dist-es/commands/ListImageScanFindingAggregationsCommand.js +41 -0
- package/dist-es/commands/ListImageScanFindingsCommand.js +41 -0
- package/dist-es/commands/ListWorkflowExecutionsCommand.js +41 -0
- package/dist-es/commands/ListWorkflowStepExecutionsCommand.js +41 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +112 -91
- package/dist-es/pagination/ListImageScanFindingAggregationsPaginator.js +24 -0
- package/dist-es/pagination/ListImageScanFindingsPaginator.js +25 -0
- package/dist-es/pagination/ListWorkflowExecutionsPaginator.js +25 -0
- package/dist-es/pagination/ListWorkflowStepExecutionsPaginator.js +25 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +931 -12
- package/dist-types/Imagebuilder.d.ts +165 -75
- package/dist-types/ImagebuilderClient.d.ts +11 -5
- package/dist-types/commands/CancelImageCreationCommand.d.ts +9 -8
- package/dist-types/commands/CreateComponentCommand.d.ts +19 -16
- package/dist-types/commands/CreateContainerRecipeCommand.d.ts +25 -21
- package/dist-types/commands/CreateDistributionConfigurationCommand.d.ts +35 -32
- package/dist-types/commands/CreateImageCommand.d.ts +26 -13
- package/dist-types/commands/CreateImagePipelineCommand.d.ts +25 -13
- package/dist-types/commands/CreateImageRecipeCommand.d.ts +25 -22
- package/dist-types/commands/CreateInfrastructureConfigurationCommand.d.ts +21 -18
- package/dist-types/commands/DeleteComponentCommand.d.ts +10 -9
- package/dist-types/commands/DeleteContainerRecipeCommand.d.ts +9 -8
- package/dist-types/commands/DeleteDistributionConfigurationCommand.d.ts +10 -9
- package/dist-types/commands/DeleteImageCommand.d.ts +17 -15
- package/dist-types/commands/DeleteImagePipelineCommand.d.ts +10 -9
- package/dist-types/commands/DeleteImageRecipeCommand.d.ts +10 -9
- package/dist-types/commands/DeleteInfrastructureConfigurationCommand.d.ts +10 -9
- package/dist-types/commands/GetComponentCommand.d.ts +8 -7
- package/dist-types/commands/GetComponentPolicyCommand.d.ts +5 -4
- package/dist-types/commands/GetContainerRecipeCommand.d.ts +7 -6
- package/dist-types/commands/GetContainerRecipePolicyCommand.d.ts +4 -3
- package/dist-types/commands/GetDistributionConfigurationCommand.d.ts +8 -7
- package/dist-types/commands/GetImageCommand.d.ts +8 -7
- package/dist-types/commands/GetImagePipelineCommand.d.ts +8 -7
- package/dist-types/commands/GetImagePolicyCommand.d.ts +5 -4
- package/dist-types/commands/GetImageRecipeCommand.d.ts +8 -7
- package/dist-types/commands/GetImageRecipePolicyCommand.d.ts +5 -4
- package/dist-types/commands/GetInfrastructureConfigurationCommand.d.ts +8 -7
- package/dist-types/commands/GetWorkflowExecutionCommand.d.ts +85 -0
- package/dist-types/commands/GetWorkflowStepExecutionCommand.d.ts +85 -0
- package/dist-types/commands/ImportComponentCommand.d.ts +12 -11
- package/dist-types/commands/ImportVmImageCommand.d.ts +14 -14
- package/dist-types/commands/ListComponentBuildVersionsCommand.d.ts +9 -7
- package/dist-types/commands/ListComponentsCommand.d.ts +13 -12
- package/dist-types/commands/ListContainerRecipesCommand.d.ts +10 -9
- package/dist-types/commands/ListDistributionConfigurationsCommand.d.ts +10 -9
- package/dist-types/commands/ListImageBuildVersionsCommand.d.ts +11 -10
- package/dist-types/commands/ListImagePackagesCommand.d.ts +9 -7
- package/dist-types/commands/ListImagePipelineImagesCommand.d.ts +10 -9
- package/dist-types/commands/ListImagePipelinesCommand.d.ts +10 -9
- package/dist-types/commands/ListImageRecipesCommand.d.ts +11 -10
- package/dist-types/commands/ListImageScanFindingAggregationsCommand.d.ts +120 -0
- package/dist-types/commands/ListImageScanFindingsCommand.d.ts +96 -0
- package/dist-types/commands/ListImagesCommand.d.ts +12 -11
- package/dist-types/commands/ListInfrastructureConfigurationsCommand.d.ts +11 -10
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +4 -3
- package/dist-types/commands/ListWorkflowExecutionsCommand.d.ts +90 -0
- package/dist-types/commands/ListWorkflowStepExecutionsCommand.d.ts +90 -0
- package/dist-types/commands/PutComponentPolicyCommand.d.ts +10 -9
- package/dist-types/commands/PutContainerRecipePolicyCommand.d.ts +15 -7
- package/dist-types/commands/PutImagePolicyCommand.d.ts +9 -8
- package/dist-types/commands/PutImageRecipePolicyCommand.d.ts +10 -9
- package/dist-types/commands/StartImagePipelineExecutionCommand.d.ts +10 -9
- package/dist-types/commands/TagResourceCommand.d.ts +5 -4
- package/dist-types/commands/UntagResourceCommand.d.ts +5 -4
- package/dist-types/commands/UpdateDistributionConfigurationCommand.d.ts +31 -30
- package/dist-types/commands/UpdateImagePipelineCommand.d.ts +24 -14
- package/dist-types/commands/UpdateInfrastructureConfigurationCommand.d.ts +17 -16
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +1712 -524
- package/dist-types/pagination/ListImageScanFindingAggregationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListImageScanFindingsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListWorkflowExecutionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListWorkflowStepExecutionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/ts3.4/Imagebuilder.d.ts +102 -0
- package/dist-types/ts3.4/ImagebuilderClient.d.ts +36 -0
- package/dist-types/ts3.4/commands/GetWorkflowExecutionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetWorkflowStepExecutionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListImageScanFindingAggregationsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListImageScanFindingsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListWorkflowExecutionsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListWorkflowStepExecutionsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +372 -76
- package/dist-types/ts3.4/pagination/ListImageScanFindingAggregationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListImageScanFindingsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListWorkflowExecutionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListWorkflowStepExecutionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +72 -0
- package/package.json +34 -34
package/dist-es/Imagebuilder.js
CHANGED
|
@@ -24,6 +24,8 @@ import { GetImagePolicyCommand, } from "./commands/GetImagePolicyCommand";
|
|
|
24
24
|
import { GetImageRecipeCommand, } from "./commands/GetImageRecipeCommand";
|
|
25
25
|
import { GetImageRecipePolicyCommand, } from "./commands/GetImageRecipePolicyCommand";
|
|
26
26
|
import { GetInfrastructureConfigurationCommand, } from "./commands/GetInfrastructureConfigurationCommand";
|
|
27
|
+
import { GetWorkflowExecutionCommand, } from "./commands/GetWorkflowExecutionCommand";
|
|
28
|
+
import { GetWorkflowStepExecutionCommand, } from "./commands/GetWorkflowStepExecutionCommand";
|
|
27
29
|
import { ImportComponentCommand, } from "./commands/ImportComponentCommand";
|
|
28
30
|
import { ImportVmImageCommand, } from "./commands/ImportVmImageCommand";
|
|
29
31
|
import { ListComponentBuildVersionsCommand, } from "./commands/ListComponentBuildVersionsCommand";
|
|
@@ -35,9 +37,13 @@ import { ListImagePackagesCommand, } from "./commands/ListImagePackagesCommand";
|
|
|
35
37
|
import { ListImagePipelineImagesCommand, } from "./commands/ListImagePipelineImagesCommand";
|
|
36
38
|
import { ListImagePipelinesCommand, } from "./commands/ListImagePipelinesCommand";
|
|
37
39
|
import { ListImageRecipesCommand, } from "./commands/ListImageRecipesCommand";
|
|
40
|
+
import { ListImageScanFindingAggregationsCommand, } from "./commands/ListImageScanFindingAggregationsCommand";
|
|
41
|
+
import { ListImageScanFindingsCommand, } from "./commands/ListImageScanFindingsCommand";
|
|
38
42
|
import { ListImagesCommand } from "./commands/ListImagesCommand";
|
|
39
43
|
import { ListInfrastructureConfigurationsCommand, } from "./commands/ListInfrastructureConfigurationsCommand";
|
|
40
44
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
45
|
+
import { ListWorkflowExecutionsCommand, } from "./commands/ListWorkflowExecutionsCommand";
|
|
46
|
+
import { ListWorkflowStepExecutionsCommand, } from "./commands/ListWorkflowStepExecutionsCommand";
|
|
41
47
|
import { PutComponentPolicyCommand, } from "./commands/PutComponentPolicyCommand";
|
|
42
48
|
import { PutContainerRecipePolicyCommand, } from "./commands/PutContainerRecipePolicyCommand";
|
|
43
49
|
import { PutImagePolicyCommand, } from "./commands/PutImagePolicyCommand";
|
|
@@ -414,6 +420,34 @@ export class Imagebuilder extends ImagebuilderClient {
|
|
|
414
420
|
return this.send(command, optionsOrCb);
|
|
415
421
|
}
|
|
416
422
|
}
|
|
423
|
+
getWorkflowExecution(args, optionsOrCb, cb) {
|
|
424
|
+
const command = new GetWorkflowExecutionCommand(args);
|
|
425
|
+
if (typeof optionsOrCb === "function") {
|
|
426
|
+
this.send(command, optionsOrCb);
|
|
427
|
+
}
|
|
428
|
+
else if (typeof cb === "function") {
|
|
429
|
+
if (typeof optionsOrCb !== "object")
|
|
430
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
431
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
432
|
+
}
|
|
433
|
+
else {
|
|
434
|
+
return this.send(command, optionsOrCb);
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
getWorkflowStepExecution(args, optionsOrCb, cb) {
|
|
438
|
+
const command = new GetWorkflowStepExecutionCommand(args);
|
|
439
|
+
if (typeof optionsOrCb === "function") {
|
|
440
|
+
this.send(command, optionsOrCb);
|
|
441
|
+
}
|
|
442
|
+
else if (typeof cb === "function") {
|
|
443
|
+
if (typeof optionsOrCb !== "object")
|
|
444
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
445
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
446
|
+
}
|
|
447
|
+
else {
|
|
448
|
+
return this.send(command, optionsOrCb);
|
|
449
|
+
}
|
|
450
|
+
}
|
|
417
451
|
importComponent(args, optionsOrCb, cb) {
|
|
418
452
|
const command = new ImportComponentCommand(args);
|
|
419
453
|
if (typeof optionsOrCb === "function") {
|
|
@@ -582,6 +616,34 @@ export class Imagebuilder extends ImagebuilderClient {
|
|
|
582
616
|
return this.send(command, optionsOrCb);
|
|
583
617
|
}
|
|
584
618
|
}
|
|
619
|
+
listImageScanFindingAggregations(args, optionsOrCb, cb) {
|
|
620
|
+
const command = new ListImageScanFindingAggregationsCommand(args);
|
|
621
|
+
if (typeof optionsOrCb === "function") {
|
|
622
|
+
this.send(command, optionsOrCb);
|
|
623
|
+
}
|
|
624
|
+
else if (typeof cb === "function") {
|
|
625
|
+
if (typeof optionsOrCb !== "object")
|
|
626
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
627
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
628
|
+
}
|
|
629
|
+
else {
|
|
630
|
+
return this.send(command, optionsOrCb);
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
listImageScanFindings(args, optionsOrCb, cb) {
|
|
634
|
+
const command = new ListImageScanFindingsCommand(args);
|
|
635
|
+
if (typeof optionsOrCb === "function") {
|
|
636
|
+
this.send(command, optionsOrCb);
|
|
637
|
+
}
|
|
638
|
+
else if (typeof cb === "function") {
|
|
639
|
+
if (typeof optionsOrCb !== "object")
|
|
640
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
641
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
642
|
+
}
|
|
643
|
+
else {
|
|
644
|
+
return this.send(command, optionsOrCb);
|
|
645
|
+
}
|
|
646
|
+
}
|
|
585
647
|
listInfrastructureConfigurations(args, optionsOrCb, cb) {
|
|
586
648
|
const command = new ListInfrastructureConfigurationsCommand(args);
|
|
587
649
|
if (typeof optionsOrCb === "function") {
|
|
@@ -610,6 +672,34 @@ export class Imagebuilder extends ImagebuilderClient {
|
|
|
610
672
|
return this.send(command, optionsOrCb);
|
|
611
673
|
}
|
|
612
674
|
}
|
|
675
|
+
listWorkflowExecutions(args, optionsOrCb, cb) {
|
|
676
|
+
const command = new ListWorkflowExecutionsCommand(args);
|
|
677
|
+
if (typeof optionsOrCb === "function") {
|
|
678
|
+
this.send(command, optionsOrCb);
|
|
679
|
+
}
|
|
680
|
+
else if (typeof cb === "function") {
|
|
681
|
+
if (typeof optionsOrCb !== "object")
|
|
682
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
683
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
684
|
+
}
|
|
685
|
+
else {
|
|
686
|
+
return this.send(command, optionsOrCb);
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
listWorkflowStepExecutions(args, optionsOrCb, cb) {
|
|
690
|
+
const command = new ListWorkflowStepExecutionsCommand(args);
|
|
691
|
+
if (typeof optionsOrCb === "function") {
|
|
692
|
+
this.send(command, optionsOrCb);
|
|
693
|
+
}
|
|
694
|
+
else if (typeof cb === "function") {
|
|
695
|
+
if (typeof optionsOrCb !== "object")
|
|
696
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
697
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
698
|
+
}
|
|
699
|
+
else {
|
|
700
|
+
return this.send(command, optionsOrCb);
|
|
701
|
+
}
|
|
702
|
+
}
|
|
613
703
|
putComponentPolicy(args, optionsOrCb, cb) {
|
|
614
704
|
const command = new PutComponentPolicyCommand(args);
|
|
615
705
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { deserializeAws_restJson1GetWorkflowExecutionCommand, serializeAws_restJson1GetWorkflowExecutionCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
+
export class GetWorkflowExecutionCommand extends $Command {
|
|
6
|
+
static getEndpointParameterInstructions() {
|
|
7
|
+
return {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
constructor(input) {
|
|
15
|
+
super();
|
|
16
|
+
this.input = input;
|
|
17
|
+
}
|
|
18
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
19
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
20
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetWorkflowExecutionCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "ImagebuilderClient";
|
|
24
|
+
const commandName = "GetWorkflowExecutionCommand";
|
|
25
|
+
const handlerExecutionContext = {
|
|
26
|
+
logger,
|
|
27
|
+
clientName,
|
|
28
|
+
commandName,
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
31
|
+
};
|
|
32
|
+
const { requestHandler } = configuration;
|
|
33
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
|
+
}
|
|
35
|
+
serialize(input, context) {
|
|
36
|
+
return serializeAws_restJson1GetWorkflowExecutionCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return deserializeAws_restJson1GetWorkflowExecutionCommand(output, context);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { deserializeAws_restJson1GetWorkflowStepExecutionCommand, serializeAws_restJson1GetWorkflowStepExecutionCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
+
export class GetWorkflowStepExecutionCommand extends $Command {
|
|
6
|
+
static getEndpointParameterInstructions() {
|
|
7
|
+
return {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
constructor(input) {
|
|
15
|
+
super();
|
|
16
|
+
this.input = input;
|
|
17
|
+
}
|
|
18
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
19
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
20
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetWorkflowStepExecutionCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "ImagebuilderClient";
|
|
24
|
+
const commandName = "GetWorkflowStepExecutionCommand";
|
|
25
|
+
const handlerExecutionContext = {
|
|
26
|
+
logger,
|
|
27
|
+
clientName,
|
|
28
|
+
commandName,
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
31
|
+
};
|
|
32
|
+
const { requestHandler } = configuration;
|
|
33
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
|
+
}
|
|
35
|
+
serialize(input, context) {
|
|
36
|
+
return serializeAws_restJson1GetWorkflowStepExecutionCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return deserializeAws_restJson1GetWorkflowStepExecutionCommand(output, context);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { deserializeAws_restJson1ListImageScanFindingAggregationsCommand, serializeAws_restJson1ListImageScanFindingAggregationsCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
+
export class ListImageScanFindingAggregationsCommand extends $Command {
|
|
6
|
+
static getEndpointParameterInstructions() {
|
|
7
|
+
return {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
constructor(input) {
|
|
15
|
+
super();
|
|
16
|
+
this.input = input;
|
|
17
|
+
}
|
|
18
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
19
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
20
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListImageScanFindingAggregationsCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "ImagebuilderClient";
|
|
24
|
+
const commandName = "ListImageScanFindingAggregationsCommand";
|
|
25
|
+
const handlerExecutionContext = {
|
|
26
|
+
logger,
|
|
27
|
+
clientName,
|
|
28
|
+
commandName,
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
31
|
+
};
|
|
32
|
+
const { requestHandler } = configuration;
|
|
33
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
|
+
}
|
|
35
|
+
serialize(input, context) {
|
|
36
|
+
return serializeAws_restJson1ListImageScanFindingAggregationsCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return deserializeAws_restJson1ListImageScanFindingAggregationsCommand(output, context);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { deserializeAws_restJson1ListImageScanFindingsCommand, serializeAws_restJson1ListImageScanFindingsCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
+
export class ListImageScanFindingsCommand extends $Command {
|
|
6
|
+
static getEndpointParameterInstructions() {
|
|
7
|
+
return {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
constructor(input) {
|
|
15
|
+
super();
|
|
16
|
+
this.input = input;
|
|
17
|
+
}
|
|
18
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
19
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
20
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListImageScanFindingsCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "ImagebuilderClient";
|
|
24
|
+
const commandName = "ListImageScanFindingsCommand";
|
|
25
|
+
const handlerExecutionContext = {
|
|
26
|
+
logger,
|
|
27
|
+
clientName,
|
|
28
|
+
commandName,
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
31
|
+
};
|
|
32
|
+
const { requestHandler } = configuration;
|
|
33
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
|
+
}
|
|
35
|
+
serialize(input, context) {
|
|
36
|
+
return serializeAws_restJson1ListImageScanFindingsCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return deserializeAws_restJson1ListImageScanFindingsCommand(output, context);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { deserializeAws_restJson1ListWorkflowExecutionsCommand, serializeAws_restJson1ListWorkflowExecutionsCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
+
export class ListWorkflowExecutionsCommand extends $Command {
|
|
6
|
+
static getEndpointParameterInstructions() {
|
|
7
|
+
return {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
constructor(input) {
|
|
15
|
+
super();
|
|
16
|
+
this.input = input;
|
|
17
|
+
}
|
|
18
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
19
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
20
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListWorkflowExecutionsCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "ImagebuilderClient";
|
|
24
|
+
const commandName = "ListWorkflowExecutionsCommand";
|
|
25
|
+
const handlerExecutionContext = {
|
|
26
|
+
logger,
|
|
27
|
+
clientName,
|
|
28
|
+
commandName,
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
31
|
+
};
|
|
32
|
+
const { requestHandler } = configuration;
|
|
33
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
|
+
}
|
|
35
|
+
serialize(input, context) {
|
|
36
|
+
return serializeAws_restJson1ListWorkflowExecutionsCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return deserializeAws_restJson1ListWorkflowExecutionsCommand(output, context);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { deserializeAws_restJson1ListWorkflowStepExecutionsCommand, serializeAws_restJson1ListWorkflowStepExecutionsCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
+
export class ListWorkflowStepExecutionsCommand extends $Command {
|
|
6
|
+
static getEndpointParameterInstructions() {
|
|
7
|
+
return {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
constructor(input) {
|
|
15
|
+
super();
|
|
16
|
+
this.input = input;
|
|
17
|
+
}
|
|
18
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
19
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
20
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListWorkflowStepExecutionsCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "ImagebuilderClient";
|
|
24
|
+
const commandName = "ListWorkflowStepExecutionsCommand";
|
|
25
|
+
const handlerExecutionContext = {
|
|
26
|
+
logger,
|
|
27
|
+
clientName,
|
|
28
|
+
commandName,
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
31
|
+
};
|
|
32
|
+
const { requestHandler } = configuration;
|
|
33
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
|
+
}
|
|
35
|
+
serialize(input, context) {
|
|
36
|
+
return serializeAws_restJson1ListWorkflowStepExecutionsCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return deserializeAws_restJson1ListWorkflowStepExecutionsCommand(output, context);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -24,6 +24,8 @@ export * from "./GetImagePolicyCommand";
|
|
|
24
24
|
export * from "./GetImageRecipeCommand";
|
|
25
25
|
export * from "./GetImageRecipePolicyCommand";
|
|
26
26
|
export * from "./GetInfrastructureConfigurationCommand";
|
|
27
|
+
export * from "./GetWorkflowExecutionCommand";
|
|
28
|
+
export * from "./GetWorkflowStepExecutionCommand";
|
|
27
29
|
export * from "./ImportComponentCommand";
|
|
28
30
|
export * from "./ImportVmImageCommand";
|
|
29
31
|
export * from "./ListComponentBuildVersionsCommand";
|
|
@@ -35,9 +37,13 @@ export * from "./ListImagePackagesCommand";
|
|
|
35
37
|
export * from "./ListImagePipelineImagesCommand";
|
|
36
38
|
export * from "./ListImagePipelinesCommand";
|
|
37
39
|
export * from "./ListImageRecipesCommand";
|
|
40
|
+
export * from "./ListImageScanFindingAggregationsCommand";
|
|
41
|
+
export * from "./ListImageScanFindingsCommand";
|
|
38
42
|
export * from "./ListImagesCommand";
|
|
39
43
|
export * from "./ListInfrastructureConfigurationsCommand";
|
|
40
44
|
export * from "./ListTagsForResourceCommand";
|
|
45
|
+
export * from "./ListWorkflowExecutionsCommand";
|
|
46
|
+
export * from "./ListWorkflowStepExecutionsCommand";
|
|
41
47
|
export * from "./PutComponentPolicyCommand";
|
|
42
48
|
export * from "./PutContainerRecipePolicyCommand";
|
|
43
49
|
export * from "./PutImagePolicyCommand";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const s = "
|
|
2
|
-
const a =
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const s = "required", t = "fn", u = "argv", v = "ref";
|
|
2
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "getAttr", g = { [s]: false, "type": "String" }, h = { [s]: true, "default": false, "type": "Boolean" }, i = { [v]: "Endpoint" }, j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, l = {}, m = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [{ [v]: e }, "supportsFIPS"] }] }, n = { [v]: e }, o = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [n, "supportsDualStack"] }] }, p = [j], q = [k], r = [{ [v]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [t]: a, [u]: [i] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [t]: a, [u]: r }], type: b, rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [m, o], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://imagebuilder-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }], endpoint: { url: "https://imagebuilder.{Region}.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://imagebuilder-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [o], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://imagebuilder.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://imagebuilder.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
4
4
|
export const ruleSet = _data;
|