@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/README.md
CHANGED
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
AWS SDK for JavaScript Imagebuilder Client for Node.js, Browser and React Native.
|
|
11
11
|
|
|
12
12
|
<p>EC2 Image Builder is a fully managed Amazon Web Services service that makes it easier to automate the
|
|
13
|
-
creation, management, and deployment of customized, secure, and up-to-date
|
|
14
|
-
images that are pre-installed and pre-configured with software
|
|
15
|
-
IT standards.</p>
|
|
13
|
+
creation, management, and deployment of customized, secure, and up-to-date
|
|
14
|
+
"golden" server images that are pre-installed and pre-configured with software
|
|
15
|
+
and settings to meet specific IT standards.</p>
|
|
16
16
|
|
|
17
17
|
## Installing
|
|
18
18
|
|
|
@@ -416,6 +416,22 @@ GetInfrastructureConfiguration
|
|
|
416
416
|
|
|
417
417
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-imagebuilder/classes/getinfrastructureconfigurationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-imagebuilder/interfaces/getinfrastructureconfigurationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-imagebuilder/interfaces/getinfrastructureconfigurationcommandoutput.html)
|
|
418
418
|
|
|
419
|
+
</details>
|
|
420
|
+
<details>
|
|
421
|
+
<summary>
|
|
422
|
+
GetWorkflowExecution
|
|
423
|
+
</summary>
|
|
424
|
+
|
|
425
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-imagebuilder/classes/getworkflowexecutioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-imagebuilder/interfaces/getworkflowexecutioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-imagebuilder/interfaces/getworkflowexecutioncommandoutput.html)
|
|
426
|
+
|
|
427
|
+
</details>
|
|
428
|
+
<details>
|
|
429
|
+
<summary>
|
|
430
|
+
GetWorkflowStepExecution
|
|
431
|
+
</summary>
|
|
432
|
+
|
|
433
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-imagebuilder/classes/getworkflowstepexecutioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-imagebuilder/interfaces/getworkflowstepexecutioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-imagebuilder/interfaces/getworkflowstepexecutioncommandoutput.html)
|
|
434
|
+
|
|
419
435
|
</details>
|
|
420
436
|
<details>
|
|
421
437
|
<summary>
|
|
@@ -512,6 +528,22 @@ ListImages
|
|
|
512
528
|
|
|
513
529
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-imagebuilder/classes/listimagescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-imagebuilder/interfaces/listimagescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-imagebuilder/interfaces/listimagescommandoutput.html)
|
|
514
530
|
|
|
531
|
+
</details>
|
|
532
|
+
<details>
|
|
533
|
+
<summary>
|
|
534
|
+
ListImageScanFindingAggregations
|
|
535
|
+
</summary>
|
|
536
|
+
|
|
537
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-imagebuilder/classes/listimagescanfindingaggregationscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-imagebuilder/interfaces/listimagescanfindingaggregationscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-imagebuilder/interfaces/listimagescanfindingaggregationscommandoutput.html)
|
|
538
|
+
|
|
539
|
+
</details>
|
|
540
|
+
<details>
|
|
541
|
+
<summary>
|
|
542
|
+
ListImageScanFindings
|
|
543
|
+
</summary>
|
|
544
|
+
|
|
545
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-imagebuilder/classes/listimagescanfindingscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-imagebuilder/interfaces/listimagescanfindingscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-imagebuilder/interfaces/listimagescanfindingscommandoutput.html)
|
|
546
|
+
|
|
515
547
|
</details>
|
|
516
548
|
<details>
|
|
517
549
|
<summary>
|
|
@@ -528,6 +560,22 @@ ListTagsForResource
|
|
|
528
560
|
|
|
529
561
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-imagebuilder/classes/listtagsforresourcecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-imagebuilder/interfaces/listtagsforresourcecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-imagebuilder/interfaces/listtagsforresourcecommandoutput.html)
|
|
530
562
|
|
|
563
|
+
</details>
|
|
564
|
+
<details>
|
|
565
|
+
<summary>
|
|
566
|
+
ListWorkflowExecutions
|
|
567
|
+
</summary>
|
|
568
|
+
|
|
569
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-imagebuilder/classes/listworkflowexecutionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-imagebuilder/interfaces/listworkflowexecutionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-imagebuilder/interfaces/listworkflowexecutionscommandoutput.html)
|
|
570
|
+
|
|
571
|
+
</details>
|
|
572
|
+
<details>
|
|
573
|
+
<summary>
|
|
574
|
+
ListWorkflowStepExecutions
|
|
575
|
+
</summary>
|
|
576
|
+
|
|
577
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-imagebuilder/classes/listworkflowstepexecutionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-imagebuilder/interfaces/listworkflowstepexecutionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-imagebuilder/interfaces/listworkflowstepexecutionscommandoutput.html)
|
|
578
|
+
|
|
531
579
|
</details>
|
|
532
580
|
<details>
|
|
533
581
|
<summary>
|
package/dist-cjs/Imagebuilder.js
CHANGED
|
@@ -27,6 +27,8 @@ const GetImagePolicyCommand_1 = require("./commands/GetImagePolicyCommand");
|
|
|
27
27
|
const GetImageRecipeCommand_1 = require("./commands/GetImageRecipeCommand");
|
|
28
28
|
const GetImageRecipePolicyCommand_1 = require("./commands/GetImageRecipePolicyCommand");
|
|
29
29
|
const GetInfrastructureConfigurationCommand_1 = require("./commands/GetInfrastructureConfigurationCommand");
|
|
30
|
+
const GetWorkflowExecutionCommand_1 = require("./commands/GetWorkflowExecutionCommand");
|
|
31
|
+
const GetWorkflowStepExecutionCommand_1 = require("./commands/GetWorkflowStepExecutionCommand");
|
|
30
32
|
const ImportComponentCommand_1 = require("./commands/ImportComponentCommand");
|
|
31
33
|
const ImportVmImageCommand_1 = require("./commands/ImportVmImageCommand");
|
|
32
34
|
const ListComponentBuildVersionsCommand_1 = require("./commands/ListComponentBuildVersionsCommand");
|
|
@@ -38,9 +40,13 @@ const ListImagePackagesCommand_1 = require("./commands/ListImagePackagesCommand"
|
|
|
38
40
|
const ListImagePipelineImagesCommand_1 = require("./commands/ListImagePipelineImagesCommand");
|
|
39
41
|
const ListImagePipelinesCommand_1 = require("./commands/ListImagePipelinesCommand");
|
|
40
42
|
const ListImageRecipesCommand_1 = require("./commands/ListImageRecipesCommand");
|
|
43
|
+
const ListImageScanFindingAggregationsCommand_1 = require("./commands/ListImageScanFindingAggregationsCommand");
|
|
44
|
+
const ListImageScanFindingsCommand_1 = require("./commands/ListImageScanFindingsCommand");
|
|
41
45
|
const ListImagesCommand_1 = require("./commands/ListImagesCommand");
|
|
42
46
|
const ListInfrastructureConfigurationsCommand_1 = require("./commands/ListInfrastructureConfigurationsCommand");
|
|
43
47
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
48
|
+
const ListWorkflowExecutionsCommand_1 = require("./commands/ListWorkflowExecutionsCommand");
|
|
49
|
+
const ListWorkflowStepExecutionsCommand_1 = require("./commands/ListWorkflowStepExecutionsCommand");
|
|
44
50
|
const PutComponentPolicyCommand_1 = require("./commands/PutComponentPolicyCommand");
|
|
45
51
|
const PutContainerRecipePolicyCommand_1 = require("./commands/PutContainerRecipePolicyCommand");
|
|
46
52
|
const PutImagePolicyCommand_1 = require("./commands/PutImagePolicyCommand");
|
|
@@ -417,6 +423,34 @@ class Imagebuilder extends ImagebuilderClient_1.ImagebuilderClient {
|
|
|
417
423
|
return this.send(command, optionsOrCb);
|
|
418
424
|
}
|
|
419
425
|
}
|
|
426
|
+
getWorkflowExecution(args, optionsOrCb, cb) {
|
|
427
|
+
const command = new GetWorkflowExecutionCommand_1.GetWorkflowExecutionCommand(args);
|
|
428
|
+
if (typeof optionsOrCb === "function") {
|
|
429
|
+
this.send(command, optionsOrCb);
|
|
430
|
+
}
|
|
431
|
+
else if (typeof cb === "function") {
|
|
432
|
+
if (typeof optionsOrCb !== "object")
|
|
433
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
434
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
435
|
+
}
|
|
436
|
+
else {
|
|
437
|
+
return this.send(command, optionsOrCb);
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
getWorkflowStepExecution(args, optionsOrCb, cb) {
|
|
441
|
+
const command = new GetWorkflowStepExecutionCommand_1.GetWorkflowStepExecutionCommand(args);
|
|
442
|
+
if (typeof optionsOrCb === "function") {
|
|
443
|
+
this.send(command, optionsOrCb);
|
|
444
|
+
}
|
|
445
|
+
else if (typeof cb === "function") {
|
|
446
|
+
if (typeof optionsOrCb !== "object")
|
|
447
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
448
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
449
|
+
}
|
|
450
|
+
else {
|
|
451
|
+
return this.send(command, optionsOrCb);
|
|
452
|
+
}
|
|
453
|
+
}
|
|
420
454
|
importComponent(args, optionsOrCb, cb) {
|
|
421
455
|
const command = new ImportComponentCommand_1.ImportComponentCommand(args);
|
|
422
456
|
if (typeof optionsOrCb === "function") {
|
|
@@ -585,6 +619,34 @@ class Imagebuilder extends ImagebuilderClient_1.ImagebuilderClient {
|
|
|
585
619
|
return this.send(command, optionsOrCb);
|
|
586
620
|
}
|
|
587
621
|
}
|
|
622
|
+
listImageScanFindingAggregations(args, optionsOrCb, cb) {
|
|
623
|
+
const command = new ListImageScanFindingAggregationsCommand_1.ListImageScanFindingAggregationsCommand(args);
|
|
624
|
+
if (typeof optionsOrCb === "function") {
|
|
625
|
+
this.send(command, optionsOrCb);
|
|
626
|
+
}
|
|
627
|
+
else if (typeof cb === "function") {
|
|
628
|
+
if (typeof optionsOrCb !== "object")
|
|
629
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
630
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
631
|
+
}
|
|
632
|
+
else {
|
|
633
|
+
return this.send(command, optionsOrCb);
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
listImageScanFindings(args, optionsOrCb, cb) {
|
|
637
|
+
const command = new ListImageScanFindingsCommand_1.ListImageScanFindingsCommand(args);
|
|
638
|
+
if (typeof optionsOrCb === "function") {
|
|
639
|
+
this.send(command, optionsOrCb);
|
|
640
|
+
}
|
|
641
|
+
else if (typeof cb === "function") {
|
|
642
|
+
if (typeof optionsOrCb !== "object")
|
|
643
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
644
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
645
|
+
}
|
|
646
|
+
else {
|
|
647
|
+
return this.send(command, optionsOrCb);
|
|
648
|
+
}
|
|
649
|
+
}
|
|
588
650
|
listInfrastructureConfigurations(args, optionsOrCb, cb) {
|
|
589
651
|
const command = new ListInfrastructureConfigurationsCommand_1.ListInfrastructureConfigurationsCommand(args);
|
|
590
652
|
if (typeof optionsOrCb === "function") {
|
|
@@ -613,6 +675,34 @@ class Imagebuilder extends ImagebuilderClient_1.ImagebuilderClient {
|
|
|
613
675
|
return this.send(command, optionsOrCb);
|
|
614
676
|
}
|
|
615
677
|
}
|
|
678
|
+
listWorkflowExecutions(args, optionsOrCb, cb) {
|
|
679
|
+
const command = new ListWorkflowExecutionsCommand_1.ListWorkflowExecutionsCommand(args);
|
|
680
|
+
if (typeof optionsOrCb === "function") {
|
|
681
|
+
this.send(command, optionsOrCb);
|
|
682
|
+
}
|
|
683
|
+
else if (typeof cb === "function") {
|
|
684
|
+
if (typeof optionsOrCb !== "object")
|
|
685
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
686
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
687
|
+
}
|
|
688
|
+
else {
|
|
689
|
+
return this.send(command, optionsOrCb);
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
listWorkflowStepExecutions(args, optionsOrCb, cb) {
|
|
693
|
+
const command = new ListWorkflowStepExecutionsCommand_1.ListWorkflowStepExecutionsCommand(args);
|
|
694
|
+
if (typeof optionsOrCb === "function") {
|
|
695
|
+
this.send(command, optionsOrCb);
|
|
696
|
+
}
|
|
697
|
+
else if (typeof cb === "function") {
|
|
698
|
+
if (typeof optionsOrCb !== "object")
|
|
699
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
700
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
701
|
+
}
|
|
702
|
+
else {
|
|
703
|
+
return this.send(command, optionsOrCb);
|
|
704
|
+
}
|
|
705
|
+
}
|
|
616
706
|
putComponentPolicy(args, optionsOrCb, cb) {
|
|
617
707
|
const command = new PutComponentPolicyCommand_1.PutComponentPolicyCommand(args);
|
|
618
708
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetWorkflowExecutionCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class GetWorkflowExecutionCommand extends smithy_client_1.Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetWorkflowExecutionCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "ImagebuilderClient";
|
|
27
|
+
const commandName = "GetWorkflowExecutionCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1GetWorkflowExecutionCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1GetWorkflowExecutionCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.GetWorkflowExecutionCommand = GetWorkflowExecutionCommand;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetWorkflowStepExecutionCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class GetWorkflowStepExecutionCommand extends smithy_client_1.Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetWorkflowStepExecutionCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "ImagebuilderClient";
|
|
27
|
+
const commandName = "GetWorkflowStepExecutionCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1GetWorkflowStepExecutionCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1GetWorkflowStepExecutionCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.GetWorkflowStepExecutionCommand = GetWorkflowStepExecutionCommand;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListImageScanFindingAggregationsCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class ListImageScanFindingAggregationsCommand extends smithy_client_1.Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListImageScanFindingAggregationsCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "ImagebuilderClient";
|
|
27
|
+
const commandName = "ListImageScanFindingAggregationsCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1ListImageScanFindingAggregationsCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1ListImageScanFindingAggregationsCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.ListImageScanFindingAggregationsCommand = ListImageScanFindingAggregationsCommand;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListImageScanFindingsCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class ListImageScanFindingsCommand extends smithy_client_1.Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListImageScanFindingsCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "ImagebuilderClient";
|
|
27
|
+
const commandName = "ListImageScanFindingsCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1ListImageScanFindingsCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1ListImageScanFindingsCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.ListImageScanFindingsCommand = ListImageScanFindingsCommand;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListWorkflowExecutionsCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class ListWorkflowExecutionsCommand extends smithy_client_1.Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListWorkflowExecutionsCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "ImagebuilderClient";
|
|
27
|
+
const commandName = "ListWorkflowExecutionsCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1ListWorkflowExecutionsCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1ListWorkflowExecutionsCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.ListWorkflowExecutionsCommand = ListWorkflowExecutionsCommand;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListWorkflowStepExecutionsCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class ListWorkflowStepExecutionsCommand extends smithy_client_1.Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListWorkflowStepExecutionsCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "ImagebuilderClient";
|
|
27
|
+
const commandName = "ListWorkflowStepExecutionsCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1ListWorkflowStepExecutionsCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1ListWorkflowStepExecutionsCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.ListWorkflowStepExecutionsCommand = ListWorkflowStepExecutionsCommand;
|
|
@@ -27,6 +27,8 @@ tslib_1.__exportStar(require("./GetImagePolicyCommand"), exports);
|
|
|
27
27
|
tslib_1.__exportStar(require("./GetImageRecipeCommand"), exports);
|
|
28
28
|
tslib_1.__exportStar(require("./GetImageRecipePolicyCommand"), exports);
|
|
29
29
|
tslib_1.__exportStar(require("./GetInfrastructureConfigurationCommand"), exports);
|
|
30
|
+
tslib_1.__exportStar(require("./GetWorkflowExecutionCommand"), exports);
|
|
31
|
+
tslib_1.__exportStar(require("./GetWorkflowStepExecutionCommand"), exports);
|
|
30
32
|
tslib_1.__exportStar(require("./ImportComponentCommand"), exports);
|
|
31
33
|
tslib_1.__exportStar(require("./ImportVmImageCommand"), exports);
|
|
32
34
|
tslib_1.__exportStar(require("./ListComponentBuildVersionsCommand"), exports);
|
|
@@ -38,9 +40,13 @@ tslib_1.__exportStar(require("./ListImagePackagesCommand"), exports);
|
|
|
38
40
|
tslib_1.__exportStar(require("./ListImagePipelineImagesCommand"), exports);
|
|
39
41
|
tslib_1.__exportStar(require("./ListImagePipelinesCommand"), exports);
|
|
40
42
|
tslib_1.__exportStar(require("./ListImageRecipesCommand"), exports);
|
|
43
|
+
tslib_1.__exportStar(require("./ListImageScanFindingAggregationsCommand"), exports);
|
|
44
|
+
tslib_1.__exportStar(require("./ListImageScanFindingsCommand"), exports);
|
|
41
45
|
tslib_1.__exportStar(require("./ListImagesCommand"), exports);
|
|
42
46
|
tslib_1.__exportStar(require("./ListInfrastructureConfigurationsCommand"), exports);
|
|
43
47
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
48
|
+
tslib_1.__exportStar(require("./ListWorkflowExecutionsCommand"), exports);
|
|
49
|
+
tslib_1.__exportStar(require("./ListWorkflowStepExecutionsCommand"), exports);
|
|
44
50
|
tslib_1.__exportStar(require("./PutComponentPolicyCommand"), exports);
|
|
45
51
|
tslib_1.__exportStar(require("./PutContainerRecipePolicyCommand"), exports);
|
|
46
52
|
tslib_1.__exportStar(require("./PutImagePolicyCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const s = "
|
|
5
|
-
const a =
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const s = "required", t = "fn", u = "argv", v = "ref";
|
|
5
|
+
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" }];
|
|
6
|
+
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 }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|