@aws-sdk/client-imagebuilder 3.1031.0 → 3.1033.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.
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.bdd = void 0;
4
+ const util_endpoints_1 = require("@smithy/util-endpoints");
5
+ const k = "ref";
6
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
7
+ const _data = {
8
+ conditions: [
9
+ [c, [g]],
10
+ [c, j],
11
+ ["aws.partition", j, d],
12
+ [e, [{ [k]: "UseFIPS" }, b]],
13
+ [e, [{ [k]: "UseDualStack" }, b]],
14
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
15
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]],
16
+ ["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws-us-gov"]]
17
+ ],
18
+ results: [
19
+ [a],
20
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
21
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
22
+ [g, i],
23
+ ["https://imagebuilder-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
24
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
25
+ ["https://imagebuilder.{Region}.amazonaws.com", i],
26
+ ["https://imagebuilder-fips.{Region}.{PartitionResult#dnsSuffix}", i],
27
+ [a, "FIPS is enabled but this partition does not support FIPS"],
28
+ ["https://imagebuilder.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
29
+ [a, "DualStack is enabled but this partition does not support DualStack"],
30
+ ["https://imagebuilder.{Region}.{PartitionResult#dnsSuffix}", i],
31
+ [a, "Invalid Configuration: Missing Region"]
32
+ ]
33
+ };
34
+ const root = 2;
35
+ const r = 100_000_000;
36
+ const nodes = new Int32Array([
37
+ -1, 1, -1,
38
+ 0, 13, 3,
39
+ 1, 4, r + 12,
40
+ 2, 5, r + 12,
41
+ 3, 8, 6,
42
+ 4, 7, r + 11,
43
+ 5, r + 9, r + 10,
44
+ 4, 11, 9,
45
+ 6, 10, r + 8,
46
+ 7, r + 6, r + 7,
47
+ 5, 12, r + 5,
48
+ 6, r + 4, r + 5,
49
+ 3, r + 1, 14,
50
+ 4, r + 2, r + 3,
51
+ ]);
52
+ exports.bdd = util_endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultEndpointResolver = void 0;
4
4
  const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
5
  const util_endpoints_2 = require("@smithy/util-endpoints");
6
- const ruleset_1 = require("./ruleset");
6
+ const bdd_1 = require("./bdd");
7
7
  const cache = new util_endpoints_2.EndpointCache({
8
8
  size: 50,
9
9
  params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
10
10
  });
11
11
  const defaultEndpointResolver = (endpointParams, context = {}) => {
12
- return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
12
+ return cache.get(endpointParams, () => (0, util_endpoints_2.decideEndpoint)(bdd_1.bdd, {
13
13
  endpointParams: endpointParams,
14
14
  logger: context.logger,
15
15
  }));
@@ -4,10 +4,10 @@ exports.CreateImagePipelineResponse$ = exports.CreateImagePipelineRequest$ = exp
4
4
  exports.GetContainerRecipeResponse$ = exports.GetContainerRecipeRequest$ = exports.GetContainerRecipePolicyResponse$ = exports.GetContainerRecipePolicyRequest$ = exports.GetComponentResponse$ = exports.GetComponentRequest$ = exports.GetComponentPolicyResponse$ = exports.GetComponentPolicyRequest$ = exports.Filter$ = exports.FastLaunchSnapshotConfiguration$ = exports.FastLaunchLaunchTemplateSpecification$ = exports.FastLaunchConfiguration$ = exports.EcrConfiguration$ = exports.EbsInstanceBlockDeviceSpecification$ = exports.DistributionConfigurationSummary$ = exports.DistributionConfiguration$ = exports.Distribution$ = exports.DistributeImageResponse$ = exports.DistributeImageRequest$ = exports.DeleteWorkflowResponse$ = exports.DeleteWorkflowRequest$ = exports.DeleteLifecyclePolicyResponse$ = exports.DeleteLifecyclePolicyRequest$ = exports.DeleteInfrastructureConfigurationResponse$ = exports.DeleteInfrastructureConfigurationRequest$ = exports.DeleteImageResponse$ = exports.DeleteImageRequest$ = exports.DeleteImageRecipeResponse$ = exports.DeleteImageRecipeRequest$ = exports.DeleteImagePipelineResponse$ = exports.DeleteImagePipelineRequest$ = exports.DeleteDistributionConfigurationResponse$ = exports.DeleteDistributionConfigurationRequest$ = exports.DeleteContainerRecipeResponse$ = exports.DeleteContainerRecipeRequest$ = exports.DeleteComponentResponse$ = exports.DeleteComponentRequest$ = exports.CvssScoreDetails$ = exports.CvssScoreAdjustment$ = exports.CvssScore$ = exports.CreateWorkflowResponse$ = exports.CreateWorkflowRequest$ = exports.CreateLifecyclePolicyResponse$ = exports.CreateLifecyclePolicyRequest$ = exports.CreateInfrastructureConfigurationResponse$ = exports.CreateInfrastructureConfigurationRequest$ = exports.CreateImageResponse$ = exports.CreateImageRequest$ = exports.CreateImageRecipeResponse$ = exports.CreateImageRecipeRequest$ = void 0;
5
5
  exports.InfrastructureConfiguration$ = exports.ImportVmImageResponse$ = exports.ImportVmImageRequest$ = exports.ImportDiskImageResponse$ = exports.ImportDiskImageRequest$ = exports.ImportComponentResponse$ = exports.ImportComponentRequest$ = exports.ImageVersion$ = exports.ImageTestsConfiguration$ = exports.ImageSummary$ = exports.ImageState$ = exports.ImageScanState$ = exports.ImageScanningConfiguration$ = exports.ImageScanFindingsFilter$ = exports.ImageScanFindingAggregation$ = exports.ImageScanFinding$ = exports.ImageRecipeSummary$ = exports.ImageRecipe$ = exports.ImagePipelineAggregation$ = exports.ImagePipeline$ = exports.ImagePackage$ = exports.ImageLoggingConfiguration$ = exports.ImageAggregation$ = exports.Image$ = exports.GetWorkflowStepExecutionResponse$ = exports.GetWorkflowStepExecutionRequest$ = exports.GetWorkflowResponse$ = exports.GetWorkflowRequest$ = exports.GetWorkflowExecutionResponse$ = exports.GetWorkflowExecutionRequest$ = exports.GetMarketplaceResourceResponse$ = exports.GetMarketplaceResourceRequest$ = exports.GetLifecyclePolicyResponse$ = exports.GetLifecyclePolicyRequest$ = exports.GetLifecycleExecutionResponse$ = exports.GetLifecycleExecutionRequest$ = exports.GetInfrastructureConfigurationResponse$ = exports.GetInfrastructureConfigurationRequest$ = exports.GetImageResponse$ = exports.GetImageRequest$ = exports.GetImageRecipeResponse$ = exports.GetImageRecipeRequest$ = exports.GetImageRecipePolicyResponse$ = exports.GetImageRecipePolicyRequest$ = exports.GetImagePolicyResponse$ = exports.GetImagePolicyRequest$ = exports.GetImagePipelineResponse$ = exports.GetImagePipelineRequest$ = exports.GetDistributionConfigurationResponse$ = exports.GetDistributionConfigurationRequest$ = void 0;
6
6
  exports.ListImagesResponse$ = exports.ListImagesRequest$ = exports.ListImageScanFindingsResponse$ = exports.ListImageScanFindingsRequest$ = exports.ListImageScanFindingAggregationsResponse$ = exports.ListImageScanFindingAggregationsRequest$ = exports.ListImageRecipesResponse$ = exports.ListImageRecipesRequest$ = exports.ListImagePipelinesResponse$ = exports.ListImagePipelinesRequest$ = exports.ListImagePipelineImagesResponse$ = exports.ListImagePipelineImagesRequest$ = exports.ListImagePackagesResponse$ = exports.ListImagePackagesRequest$ = exports.ListImageBuildVersionsResponse$ = exports.ListImageBuildVersionsRequest$ = exports.ListDistributionConfigurationsResponse$ = exports.ListDistributionConfigurationsRequest$ = exports.ListContainerRecipesResponse$ = exports.ListContainerRecipesRequest$ = exports.ListComponentsResponse$ = exports.ListComponentsRequest$ = exports.ListComponentBuildVersionsResponse$ = exports.ListComponentBuildVersionsRequest$ = exports.LifecyclePolicySummary$ = exports.LifecyclePolicyResourceSelectionRecipe$ = exports.LifecyclePolicyResourceSelection$ = exports.LifecyclePolicyDetailFilter$ = exports.LifecyclePolicyDetailExclusionRulesAmisLastLaunched$ = exports.LifecyclePolicyDetailExclusionRulesAmis$ = exports.LifecyclePolicyDetailExclusionRules$ = exports.LifecyclePolicyDetailActionIncludeResources$ = exports.LifecyclePolicyDetailAction$ = exports.LifecyclePolicyDetail$ = exports.LifecyclePolicy$ = exports.LifecycleExecutionState$ = exports.LifecycleExecutionSnapshotResource$ = exports.LifecycleExecutionResourceState$ = exports.LifecycleExecutionResourcesImpactedSummary$ = exports.LifecycleExecutionResourceAction$ = exports.LifecycleExecutionResource$ = exports.LifecycleExecution$ = exports.LaunchTemplateConfiguration$ = exports.LaunchPermissionConfiguration$ = exports.LatestVersionReferences$ = exports.InstanceMetadataOptions$ = exports.InstanceConfiguration$ = exports.InstanceBlockDeviceMapping$ = exports.InspectorScoreDetails$ = exports.InfrastructureConfigurationSummary$ = void 0;
7
- exports.StartImagePipelineExecutionResponse$ = exports.StartImagePipelineExecutionRequest$ = exports.SsmParameterConfiguration$ = exports.SeverityCounts$ = exports.SendWorkflowStepActionResponse$ = exports.SendWorkflowStepActionRequest$ = exports.Schedule$ = exports.S3Logs$ = exports.S3ExportConfiguration$ = exports.RetryImageResponse$ = exports.RetryImageRequest$ = exports.ResourceStateUpdateIncludeResources$ = exports.ResourceStateUpdateExclusionRules$ = exports.ResourceState$ = exports.RemediationRecommendation$ = exports.Remediation$ = exports.PutImageRecipePolicyResponse$ = exports.PutImageRecipePolicyRequest$ = exports.PutImagePolicyResponse$ = exports.PutImagePolicyRequest$ = exports.PutContainerRecipePolicyResponse$ = exports.PutContainerRecipePolicyRequest$ = exports.PutComponentPolicyResponse$ = exports.PutComponentPolicyRequest$ = exports.ProductCodeListItem$ = exports.Placement$ = exports.PipelineLoggingConfiguration$ = exports.PackageVulnerabilityDetails$ = exports.OutputResources$ = exports.Logging$ = exports.ListWorkflowStepExecutionsResponse$ = exports.ListWorkflowStepExecutionsRequest$ = exports.ListWorkflowsResponse$ = exports.ListWorkflowsRequest$ = exports.ListWorkflowExecutionsResponse$ = exports.ListWorkflowExecutionsRequest$ = exports.ListWorkflowBuildVersionsResponse$ = exports.ListWorkflowBuildVersionsRequest$ = exports.ListWaitingWorkflowStepsResponse$ = exports.ListWaitingWorkflowStepsRequest$ = exports.ListTagsForResourceResponse$ = exports.ListTagsForResourceRequest$ = exports.ListLifecyclePoliciesResponse$ = exports.ListLifecyclePoliciesRequest$ = exports.ListLifecycleExecutionsResponse$ = exports.ListLifecycleExecutionsRequest$ = exports.ListLifecycleExecutionResourcesResponse$ = exports.ListLifecycleExecutionResourcesRequest$ = exports.ListInfrastructureConfigurationsResponse$ = exports.ListInfrastructureConfigurationsRequest$ = void 0;
8
- exports.GetComponent$ = exports.DistributeImage$ = exports.DeleteWorkflow$ = exports.DeleteLifecyclePolicy$ = exports.DeleteInfrastructureConfiguration$ = exports.DeleteImageRecipe$ = exports.DeleteImagePipeline$ = exports.DeleteImage$ = exports.DeleteDistributionConfiguration$ = exports.DeleteContainerRecipe$ = exports.DeleteComponent$ = exports.CreateWorkflow$ = exports.CreateLifecyclePolicy$ = exports.CreateInfrastructureConfiguration$ = exports.CreateImageRecipe$ = exports.CreateImagePipeline$ = exports.CreateImage$ = exports.CreateDistributionConfiguration$ = exports.CreateContainerRecipe$ = exports.CreateComponent$ = exports.CancelLifecycleExecution$ = exports.CancelImageCreation$ = exports.WorkflowVersion$ = exports.WorkflowSummary$ = exports.WorkflowStepMetadata$ = exports.WorkflowStepExecution$ = exports.WorkflowState$ = exports.WorkflowParameterDetail$ = exports.WorkflowParameter$ = exports.WorkflowExecutionMetadata$ = exports.WorkflowConfiguration$ = exports.Workflow$ = exports.VulnerablePackage$ = exports.VulnerabilityIdAggregation$ = exports.UpdateLifecyclePolicyResponse$ = exports.UpdateLifecyclePolicyRequest$ = exports.UpdateInfrastructureConfigurationResponse$ = exports.UpdateInfrastructureConfigurationRequest$ = exports.UpdateImagePipelineResponse$ = exports.UpdateImagePipelineRequest$ = exports.UpdateDistributionConfigurationResponse$ = exports.UpdateDistributionConfigurationRequest$ = exports.UntagResourceResponse$ = exports.UntagResourceRequest$ = exports.TargetContainerRepository$ = exports.TagResourceResponse$ = exports.TagResourceRequest$ = exports.SystemsManagerAgent$ = exports.StartResourceStateUpdateResponse$ = exports.StartResourceStateUpdateRequest$ = void 0;
9
- exports.TagResource$ = exports.StartResourceStateUpdate$ = exports.StartImagePipelineExecution$ = exports.SendWorkflowStepAction$ = exports.RetryImage$ = exports.PutImageRecipePolicy$ = exports.PutImagePolicy$ = exports.PutContainerRecipePolicy$ = exports.PutComponentPolicy$ = exports.ListWorkflowStepExecutions$ = exports.ListWorkflows$ = exports.ListWorkflowExecutions$ = exports.ListWorkflowBuildVersions$ = exports.ListWaitingWorkflowSteps$ = exports.ListTagsForResource$ = exports.ListLifecyclePolicies$ = exports.ListLifecycleExecutions$ = exports.ListLifecycleExecutionResources$ = exports.ListInfrastructureConfigurations$ = exports.ListImageScanFindings$ = exports.ListImageScanFindingAggregations$ = exports.ListImages$ = exports.ListImageRecipes$ = exports.ListImagePipelines$ = exports.ListImagePipelineImages$ = exports.ListImagePackages$ = exports.ListImageBuildVersions$ = exports.ListDistributionConfigurations$ = exports.ListContainerRecipes$ = exports.ListComponents$ = exports.ListComponentBuildVersions$ = exports.ImportVmImage$ = exports.ImportDiskImage$ = exports.ImportComponent$ = exports.GetWorkflowStepExecution$ = exports.GetWorkflowExecution$ = exports.GetWorkflow$ = exports.GetMarketplaceResource$ = exports.GetLifecyclePolicy$ = exports.GetLifecycleExecution$ = exports.GetInfrastructureConfiguration$ = exports.GetImageRecipePolicy$ = exports.GetImageRecipe$ = exports.GetImagePolicy$ = exports.GetImagePipeline$ = exports.GetImage$ = exports.GetDistributionConfiguration$ = exports.GetContainerRecipePolicy$ = exports.GetContainerRecipe$ = exports.GetComponentPolicy$ = void 0;
10
- exports.UpdateLifecyclePolicy$ = exports.UpdateInfrastructureConfiguration$ = exports.UpdateImagePipeline$ = exports.UpdateDistributionConfiguration$ = exports.UntagResource$ = void 0;
7
+ exports.StartImagePipelineExecutionRequest$ = exports.SsmParameterConfiguration$ = exports.SeverityCounts$ = exports.SendWorkflowStepActionResponse$ = exports.SendWorkflowStepActionRequest$ = exports.Schedule$ = exports.S3Logs$ = exports.S3ExportConfiguration$ = exports.RetryImageResponse$ = exports.RetryImageRequest$ = exports.ResourceStateUpdateIncludeResources$ = exports.ResourceStateUpdateExclusionRules$ = exports.ResourceState$ = exports.RemediationRecommendation$ = exports.Remediation$ = exports.RegisterImageOptions$ = exports.PutImageRecipePolicyResponse$ = exports.PutImageRecipePolicyRequest$ = exports.PutImagePolicyResponse$ = exports.PutImagePolicyRequest$ = exports.PutContainerRecipePolicyResponse$ = exports.PutContainerRecipePolicyRequest$ = exports.PutComponentPolicyResponse$ = exports.PutComponentPolicyRequest$ = exports.ProductCodeListItem$ = exports.Placement$ = exports.PipelineLoggingConfiguration$ = exports.PackageVulnerabilityDetails$ = exports.OutputResources$ = exports.Logging$ = exports.ListWorkflowStepExecutionsResponse$ = exports.ListWorkflowStepExecutionsRequest$ = exports.ListWorkflowsResponse$ = exports.ListWorkflowsRequest$ = exports.ListWorkflowExecutionsResponse$ = exports.ListWorkflowExecutionsRequest$ = exports.ListWorkflowBuildVersionsResponse$ = exports.ListWorkflowBuildVersionsRequest$ = exports.ListWaitingWorkflowStepsResponse$ = exports.ListWaitingWorkflowStepsRequest$ = exports.ListTagsForResourceResponse$ = exports.ListTagsForResourceRequest$ = exports.ListLifecyclePoliciesResponse$ = exports.ListLifecyclePoliciesRequest$ = exports.ListLifecycleExecutionsResponse$ = exports.ListLifecycleExecutionsRequest$ = exports.ListLifecycleExecutionResourcesResponse$ = exports.ListLifecycleExecutionResourcesRequest$ = exports.ListInfrastructureConfigurationsResponse$ = exports.ListInfrastructureConfigurationsRequest$ = void 0;
8
+ exports.DeleteWorkflow$ = exports.DeleteLifecyclePolicy$ = exports.DeleteInfrastructureConfiguration$ = exports.DeleteImageRecipe$ = exports.DeleteImagePipeline$ = exports.DeleteImage$ = exports.DeleteDistributionConfiguration$ = exports.DeleteContainerRecipe$ = exports.DeleteComponent$ = exports.CreateWorkflow$ = exports.CreateLifecyclePolicy$ = exports.CreateInfrastructureConfiguration$ = exports.CreateImageRecipe$ = exports.CreateImagePipeline$ = exports.CreateImage$ = exports.CreateDistributionConfiguration$ = exports.CreateContainerRecipe$ = exports.CreateComponent$ = exports.CancelLifecycleExecution$ = exports.CancelImageCreation$ = exports.WorkflowVersion$ = exports.WorkflowSummary$ = exports.WorkflowStepMetadata$ = exports.WorkflowStepExecution$ = exports.WorkflowState$ = exports.WorkflowParameterDetail$ = exports.WorkflowParameter$ = exports.WorkflowExecutionMetadata$ = exports.WorkflowConfiguration$ = exports.Workflow$ = exports.WindowsConfiguration$ = exports.VulnerablePackage$ = exports.VulnerabilityIdAggregation$ = exports.UpdateLifecyclePolicyResponse$ = exports.UpdateLifecyclePolicyRequest$ = exports.UpdateInfrastructureConfigurationResponse$ = exports.UpdateInfrastructureConfigurationRequest$ = exports.UpdateImagePipelineResponse$ = exports.UpdateImagePipelineRequest$ = exports.UpdateDistributionConfigurationResponse$ = exports.UpdateDistributionConfigurationRequest$ = exports.UntagResourceResponse$ = exports.UntagResourceRequest$ = exports.TargetContainerRepository$ = exports.TagResourceResponse$ = exports.TagResourceRequest$ = exports.SystemsManagerAgent$ = exports.StartResourceStateUpdateResponse$ = exports.StartResourceStateUpdateRequest$ = exports.StartImagePipelineExecutionResponse$ = void 0;
9
+ exports.StartImagePipelineExecution$ = exports.SendWorkflowStepAction$ = exports.RetryImage$ = exports.PutImageRecipePolicy$ = exports.PutImagePolicy$ = exports.PutContainerRecipePolicy$ = exports.PutComponentPolicy$ = exports.ListWorkflowStepExecutions$ = exports.ListWorkflows$ = exports.ListWorkflowExecutions$ = exports.ListWorkflowBuildVersions$ = exports.ListWaitingWorkflowSteps$ = exports.ListTagsForResource$ = exports.ListLifecyclePolicies$ = exports.ListLifecycleExecutions$ = exports.ListLifecycleExecutionResources$ = exports.ListInfrastructureConfigurations$ = exports.ListImageScanFindings$ = exports.ListImageScanFindingAggregations$ = exports.ListImages$ = exports.ListImageRecipes$ = exports.ListImagePipelines$ = exports.ListImagePipelineImages$ = exports.ListImagePackages$ = exports.ListImageBuildVersions$ = exports.ListDistributionConfigurations$ = exports.ListContainerRecipes$ = exports.ListComponents$ = exports.ListComponentBuildVersions$ = exports.ImportVmImage$ = exports.ImportDiskImage$ = exports.ImportComponent$ = exports.GetWorkflowStepExecution$ = exports.GetWorkflowExecution$ = exports.GetWorkflow$ = exports.GetMarketplaceResource$ = exports.GetLifecyclePolicy$ = exports.GetLifecycleExecution$ = exports.GetInfrastructureConfiguration$ = exports.GetImageRecipePolicy$ = exports.GetImageRecipe$ = exports.GetImagePolicy$ = exports.GetImagePipeline$ = exports.GetImage$ = exports.GetDistributionConfiguration$ = exports.GetContainerRecipePolicy$ = exports.GetContainerRecipe$ = exports.GetComponentPolicy$ = exports.GetComponent$ = exports.DistributeImage$ = void 0;
10
+ exports.UpdateLifecyclePolicy$ = exports.UpdateInfrastructureConfiguration$ = exports.UpdateImagePipeline$ = exports.UpdateDistributionConfiguration$ = exports.UntagResource$ = exports.TagResource$ = exports.StartResourceStateUpdate$ = void 0;
11
11
  const _A = "Ami";
12
12
  const _AA = "AccountAggregation";
13
13
  const _ADC = "AmiDistributionConfiguration";
@@ -335,6 +335,7 @@ const _R = "Remediation";
335
335
  const _RAEE = "ResourceAlreadyExistsException";
336
336
  const _RDE = "ResourceDependencyException";
337
337
  const _RI = "RetryImage";
338
+ const _RIO = "RegisterImageOptions";
338
339
  const _RIR = "RetryImageRequest";
339
340
  const _RIRe = "RetryImageResponse";
340
341
  const _RIUE = "ResourceInUseException";
@@ -386,8 +387,9 @@ const _VIA = "VulnerabilityIdAggregation";
386
387
  const _VP = "VulnerablePackage";
387
388
  const _VPL = "VulnerablePackageList";
388
389
  const _W = "Workflow";
389
- const _WC = "WorkflowConfiguration";
390
+ const _WC = "WindowsConfiguration";
390
391
  const _WCL = "WorkflowConfigurationList";
392
+ const _WCo = "WorkflowConfiguration";
391
393
  const _WEL = "WorkflowExecutionsList";
392
394
  const _WEM = "WorkflowExecutionMetadata";
393
395
  const _WP = "WorkflowParameter";
@@ -503,6 +505,7 @@ const _iCSL = "infrastructureConfigurationSummaryList";
503
505
  const _iCn = "infrastructureConfiguration";
504
506
  const _iD = "includeDeprecated";
505
507
  const _iI = "instanceImage";
508
+ const _iIm = "imageIndex";
506
509
  const _iLGN = "imageLogGroupName";
507
510
  const _iMO = "instanceMetadataOptions";
508
511
  const _iOVO = "imageOsVersionOverride";
@@ -598,6 +601,7 @@ const _r = "region";
598
601
  const _rA = "resourceArn";
599
602
  const _rAL = "retainAtLeast";
600
603
  const _rI = "requestId";
604
+ const _rIO = "registerImageOptions";
601
605
  const _rIS = "resourcesImpactedSummary";
602
606
  const _rIe = "resourceId";
603
607
  const _rL = "resourceLocation";
@@ -621,6 +625,7 @@ const _ret = "retried";
621
625
  const _s = "smithy.ts.sdk.synthetic.com.amazonaws.imagebuilder";
622
626
  const _sA = "sharedAccounts";
623
627
  const _sB = "s3Bucket";
628
+ const _sBE = "secureBootEnabled";
624
629
  const _sBN = "s3BucketName";
625
630
  const _sC = "severityCounts";
626
631
  const _sCn = "snapshotConfiguration";
@@ -681,6 +686,7 @@ const _u = "uri";
681
686
  const _uA = "updatedAt";
682
687
  const _uAB = "uninstallAfterBuild";
683
688
  const _uAp = "updateAt";
689
+ const _uD = "uefiData";
684
690
  const _uDO = "userDataOverride";
685
691
  const _uG = "userGroups";
686
692
  const _uI = "userIds";
@@ -702,6 +708,7 @@ const _val = "values";
702
708
  const _w = "workflows";
703
709
  const _wA = "workflowArn";
704
710
  const _wBVA = "workflowBuildVersionArn";
711
+ const _wC = "windowsConfiguration";
705
712
  const _wD = "workingDirectory";
706
713
  const _wE = "workflowExecutions";
707
714
  const _wEI = "workflowExecutionId";
@@ -1458,8 +1465,8 @@ exports.ImportComponentResponse$ = [3, n0, _ICRm,
1458
1465
  ];
1459
1466
  exports.ImportDiskImageRequest$ = [3, n0, _IDIR,
1460
1467
  0,
1461
- [_n, _sV, _p, _oV, _iCA, _u, _d, _eR, _lC, _ta, _cT],
1462
- [0, 0, 0, 0, 0, 0, 0, 0, () => exports.ImageLoggingConfiguration$, 128 | 0, [0, 4]], 6
1468
+ [_n, _sV, _p, _oV, _iCA, _u, _d, _eR, _lC, _ta, _rIO, _wC, _cT],
1469
+ [0, 0, 0, 0, 0, 0, 0, 0, () => exports.ImageLoggingConfiguration$, 128 | 0, () => exports.RegisterImageOptions$, () => exports.WindowsConfiguration$, [0, 4]], 6
1463
1470
  ];
1464
1471
  exports.ImportDiskImageResponse$ = [3, n0, _IDIRm,
1465
1472
  0,
@@ -1901,6 +1908,11 @@ exports.PutImageRecipePolicyResponse$ = [3, n0, _PIRPRu,
1901
1908
  [_rI, _iRA],
1902
1909
  [0, 0]
1903
1910
  ];
1911
+ exports.RegisterImageOptions$ = [3, n0, _RIO,
1912
+ 0,
1913
+ [_sBE, _uD],
1914
+ [2, 0]
1915
+ ];
1904
1916
  exports.Remediation$ = [3, n0, _R,
1905
1917
  0,
1906
1918
  [_reco],
@@ -2071,12 +2083,17 @@ exports.VulnerablePackage$ = [3, n0, _VP,
2071
2083
  [_n, _v, _sLH, _ep, _rel, _ar, _pM, _fP, _fIV, _rem],
2072
2084
  [0, 0, 0, 1, 0, 0, 0, 0, 0, 0]
2073
2085
  ];
2086
+ exports.WindowsConfiguration$ = [3, n0, _WC,
2087
+ 0,
2088
+ [_iIm],
2089
+ [1], 1
2090
+ ];
2074
2091
  exports.Workflow$ = [3, n0, _W,
2075
2092
  0,
2076
2093
  [_a, _n, _v, _d, _cD, _t, _st, _o, _da, _kKI, _dC, _ta, _pa],
2077
2094
  [0, 0, 0, 0, 0, 0, () => exports.WorkflowState$, 0, 0, 0, 0, 128 | 0, () => WorkflowParameterDetailList]
2078
2095
  ];
2079
- exports.WorkflowConfiguration$ = [3, n0, _WC,
2096
+ exports.WorkflowConfiguration$ = [3, n0, _WCo,
2080
2097
  0,
2081
2098
  [_wA, _pa, _pG, _oF],
2082
2099
  [0, () => WorkflowParameterList, 0, 0], 1
@@ -0,0 +1,49 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/util-endpoints";
2
+ const k = "ref";
3
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
4
+ const _data = {
5
+ conditions: [
6
+ [c, [g]],
7
+ [c, j],
8
+ ["aws.partition", j, d],
9
+ [e, [{ [k]: "UseFIPS" }, b]],
10
+ [e, [{ [k]: "UseDualStack" }, b]],
11
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
12
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]],
13
+ ["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws-us-gov"]]
14
+ ],
15
+ results: [
16
+ [a],
17
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
18
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
19
+ [g, i],
20
+ ["https://imagebuilder-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
21
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
22
+ ["https://imagebuilder.{Region}.amazonaws.com", i],
23
+ ["https://imagebuilder-fips.{Region}.{PartitionResult#dnsSuffix}", i],
24
+ [a, "FIPS is enabled but this partition does not support FIPS"],
25
+ ["https://imagebuilder.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
26
+ [a, "DualStack is enabled but this partition does not support DualStack"],
27
+ ["https://imagebuilder.{Region}.{PartitionResult#dnsSuffix}", i],
28
+ [a, "Invalid Configuration: Missing Region"]
29
+ ]
30
+ };
31
+ const root = 2;
32
+ const r = 100_000_000;
33
+ const nodes = new Int32Array([
34
+ -1, 1, -1,
35
+ 0, 13, 3,
36
+ 1, 4, r + 12,
37
+ 2, 5, r + 12,
38
+ 3, 8, 6,
39
+ 4, 7, r + 11,
40
+ 5, r + 9, r + 10,
41
+ 4, 11, 9,
42
+ 6, 10, r + 8,
43
+ 7, r + 6, r + 7,
44
+ 5, 12, r + 5,
45
+ 6, r + 4, r + 5,
46
+ 3, r + 1, 14,
47
+ 4, r + 2, r + 3,
48
+ ]);
49
+ export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -1,12 +1,12 @@
1
1
  import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
- import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
3
- import { ruleSet } from "./ruleset";
2
+ import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/util-endpoints";
3
+ import { bdd } from "./bdd";
4
4
  const cache = new EndpointCache({
5
5
  size: 50,
6
6
  params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
7
7
  });
8
8
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
9
- return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
9
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
10
10
  endpointParams: endpointParams,
11
11
  logger: context.logger,
12
12
  }));
@@ -325,6 +325,7 @@ const _R = "Remediation";
325
325
  const _RAEE = "ResourceAlreadyExistsException";
326
326
  const _RDE = "ResourceDependencyException";
327
327
  const _RI = "RetryImage";
328
+ const _RIO = "RegisterImageOptions";
328
329
  const _RIR = "RetryImageRequest";
329
330
  const _RIRe = "RetryImageResponse";
330
331
  const _RIUE = "ResourceInUseException";
@@ -376,8 +377,9 @@ const _VIA = "VulnerabilityIdAggregation";
376
377
  const _VP = "VulnerablePackage";
377
378
  const _VPL = "VulnerablePackageList";
378
379
  const _W = "Workflow";
379
- const _WC = "WorkflowConfiguration";
380
+ const _WC = "WindowsConfiguration";
380
381
  const _WCL = "WorkflowConfigurationList";
382
+ const _WCo = "WorkflowConfiguration";
381
383
  const _WEL = "WorkflowExecutionsList";
382
384
  const _WEM = "WorkflowExecutionMetadata";
383
385
  const _WP = "WorkflowParameter";
@@ -493,6 +495,7 @@ const _iCSL = "infrastructureConfigurationSummaryList";
493
495
  const _iCn = "infrastructureConfiguration";
494
496
  const _iD = "includeDeprecated";
495
497
  const _iI = "instanceImage";
498
+ const _iIm = "imageIndex";
496
499
  const _iLGN = "imageLogGroupName";
497
500
  const _iMO = "instanceMetadataOptions";
498
501
  const _iOVO = "imageOsVersionOverride";
@@ -588,6 +591,7 @@ const _r = "region";
588
591
  const _rA = "resourceArn";
589
592
  const _rAL = "retainAtLeast";
590
593
  const _rI = "requestId";
594
+ const _rIO = "registerImageOptions";
591
595
  const _rIS = "resourcesImpactedSummary";
592
596
  const _rIe = "resourceId";
593
597
  const _rL = "resourceLocation";
@@ -611,6 +615,7 @@ const _ret = "retried";
611
615
  const _s = "smithy.ts.sdk.synthetic.com.amazonaws.imagebuilder";
612
616
  const _sA = "sharedAccounts";
613
617
  const _sB = "s3Bucket";
618
+ const _sBE = "secureBootEnabled";
614
619
  const _sBN = "s3BucketName";
615
620
  const _sC = "severityCounts";
616
621
  const _sCn = "snapshotConfiguration";
@@ -671,6 +676,7 @@ const _u = "uri";
671
676
  const _uA = "updatedAt";
672
677
  const _uAB = "uninstallAfterBuild";
673
678
  const _uAp = "updateAt";
679
+ const _uD = "uefiData";
674
680
  const _uDO = "userDataOverride";
675
681
  const _uG = "userGroups";
676
682
  const _uI = "userIds";
@@ -692,6 +698,7 @@ const _val = "values";
692
698
  const _w = "workflows";
693
699
  const _wA = "workflowArn";
694
700
  const _wBVA = "workflowBuildVersionArn";
701
+ const _wC = "windowsConfiguration";
695
702
  const _wD = "workingDirectory";
696
703
  const _wE = "workflowExecutions";
697
704
  const _wEI = "workflowExecutionId";
@@ -1448,8 +1455,8 @@ export var ImportComponentResponse$ = [3, n0, _ICRm,
1448
1455
  ];
1449
1456
  export var ImportDiskImageRequest$ = [3, n0, _IDIR,
1450
1457
  0,
1451
- [_n, _sV, _p, _oV, _iCA, _u, _d, _eR, _lC, _ta, _cT],
1452
- [0, 0, 0, 0, 0, 0, 0, 0, () => ImageLoggingConfiguration$, 128 | 0, [0, 4]], 6
1458
+ [_n, _sV, _p, _oV, _iCA, _u, _d, _eR, _lC, _ta, _rIO, _wC, _cT],
1459
+ [0, 0, 0, 0, 0, 0, 0, 0, () => ImageLoggingConfiguration$, 128 | 0, () => RegisterImageOptions$, () => WindowsConfiguration$, [0, 4]], 6
1453
1460
  ];
1454
1461
  export var ImportDiskImageResponse$ = [3, n0, _IDIRm,
1455
1462
  0,
@@ -1891,6 +1898,11 @@ export var PutImageRecipePolicyResponse$ = [3, n0, _PIRPRu,
1891
1898
  [_rI, _iRA],
1892
1899
  [0, 0]
1893
1900
  ];
1901
+ export var RegisterImageOptions$ = [3, n0, _RIO,
1902
+ 0,
1903
+ [_sBE, _uD],
1904
+ [2, 0]
1905
+ ];
1894
1906
  export var Remediation$ = [3, n0, _R,
1895
1907
  0,
1896
1908
  [_reco],
@@ -2061,12 +2073,17 @@ export var VulnerablePackage$ = [3, n0, _VP,
2061
2073
  [_n, _v, _sLH, _ep, _rel, _ar, _pM, _fP, _fIV, _rem],
2062
2074
  [0, 0, 0, 1, 0, 0, 0, 0, 0, 0]
2063
2075
  ];
2076
+ export var WindowsConfiguration$ = [3, n0, _WC,
2077
+ 0,
2078
+ [_iIm],
2079
+ [1], 1
2080
+ ];
2064
2081
  export var Workflow$ = [3, n0, _W,
2065
2082
  0,
2066
2083
  [_a, _n, _v, _d, _cD, _t, _st, _o, _da, _kKI, _dC, _ta, _pa],
2067
2084
  [0, 0, 0, 0, 0, 0, () => WorkflowState$, 0, 0, 0, 0, 128 | 0, () => WorkflowParameterDetailList]
2068
2085
  ];
2069
- export var WorkflowConfiguration$ = [3, n0, _WC,
2086
+ export var WorkflowConfiguration$ = [3, n0, _WCo,
2070
2087
  0,
2071
2088
  [_wA, _pa, _pG, _oF],
2072
2089
  [0, () => WorkflowParameterList, 0, 0], 1
@@ -57,6 +57,13 @@ declare const ImportDiskImageCommand_base: {
57
57
  * tags: { // TagMap
58
58
  * "<keys>": "STRING_VALUE",
59
59
  * },
60
+ * registerImageOptions: { // RegisterImageOptions
61
+ * secureBootEnabled: true || false,
62
+ * uefiData: "STRING_VALUE",
63
+ * },
64
+ * windowsConfiguration: { // WindowsConfiguration
65
+ * imageIndex: Number("long"), // required
66
+ * },
60
67
  * clientToken: "STRING_VALUE", // required
61
68
  * };
62
69
  * const command = new ImportDiskImageCommand(input);
@@ -0,0 +1,2 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/util-endpoints";
2
+ export declare const bdd: BinaryDecisionDiagram;
@@ -4758,6 +4758,49 @@ export interface ImportComponentResponse {
4758
4758
  */
4759
4759
  componentBuildVersionArn?: string | undefined;
4760
4760
  }
4761
+ /**
4762
+ * <p>Controls Secure Boot and UEFI data settings for the resulting image
4763
+ * during ISO imports. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/uefi-secure-boot.html">UEFI Secure Boot for Amazon EC2 instances</a> in
4764
+ * the <i>
4765
+ * <i>Amazon EC2 User Guide</i>
4766
+ * </i>.</p>
4767
+ * @public
4768
+ */
4769
+ export interface RegisterImageOptions {
4770
+ /**
4771
+ * <p>Specifies whether Secure Boot is enabled for the output AMI.
4772
+ * The default value is <code>true</code>. To disable Secure Boot
4773
+ * for custom unsigned drivers, set this value to <code>false</code>.</p>
4774
+ * @public
4775
+ */
4776
+ secureBootEnabled?: boolean | undefined;
4777
+ /**
4778
+ * <p>A Base64-encoded representation of the non-volatile UEFI variable store.
4779
+ * You can specify this parameter only when
4780
+ * <code>secureBootEnabled</code> is <code>true</code> or
4781
+ * unspecified. You can inspect and modify the UEFI data by using
4782
+ * the <a href="https://github.com/awslabs/python-uefivars">python-uefivars tool on GitHub</a>.</p>
4783
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/uefi-variables.html">UEFI
4784
+ * variables for Amazon EC2 instances</a>.</p>
4785
+ * @public
4786
+ */
4787
+ uefiData?: string | undefined;
4788
+ }
4789
+ /**
4790
+ * <p>Windows-specific configuration settings for an ISO import, including
4791
+ * the edition to install from a multi-edition Windows ISO file.</p>
4792
+ * @public
4793
+ */
4794
+ export interface WindowsConfiguration {
4795
+ /**
4796
+ * <p>The 1-based index that specifies which Windows edition to install
4797
+ * from a multi-edition Windows ISO file. A Windows ISO can contain a
4798
+ * <code>.wim</code> file with multiple image indexes, each representing
4799
+ * a different edition.</p>
4800
+ * @public
4801
+ */
4802
+ imageIndex: number | undefined;
4803
+ }
4761
4804
  /**
4762
4805
  * @public
4763
4806
  */
@@ -4817,6 +4860,17 @@ export interface ImportDiskImageRequest {
4817
4860
  * @public
4818
4861
  */
4819
4862
  tags?: Record<string, string> | undefined;
4863
+ /**
4864
+ * <p>Configures Secure Boot and UEFI settings for the
4865
+ * imported image.</p>
4866
+ * @public
4867
+ */
4868
+ registerImageOptions?: RegisterImageOptions | undefined;
4869
+ /**
4870
+ * <p>Specifies Windows settings for ISO imports.</p>
4871
+ * @public
4872
+ */
4873
+ windowsConfiguration?: WindowsConfiguration | undefined;
4820
4874
  /**
4821
4875
  * <p>Unique, case-sensitive identifier you provide to ensure
4822
4876
  * idempotency of the request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency</a>
@@ -239,6 +239,7 @@ export declare var PutImagePolicyRequest$: StaticStructureSchema;
239
239
  export declare var PutImagePolicyResponse$: StaticStructureSchema;
240
240
  export declare var PutImageRecipePolicyRequest$: StaticStructureSchema;
241
241
  export declare var PutImageRecipePolicyResponse$: StaticStructureSchema;
242
+ export declare var RegisterImageOptions$: StaticStructureSchema;
242
243
  export declare var Remediation$: StaticStructureSchema;
243
244
  export declare var RemediationRecommendation$: StaticStructureSchema;
244
245
  export declare var ResourceState$: StaticStructureSchema;
@@ -273,6 +274,7 @@ export declare var UpdateLifecyclePolicyRequest$: StaticStructureSchema;
273
274
  export declare var UpdateLifecyclePolicyResponse$: StaticStructureSchema;
274
275
  export declare var VulnerabilityIdAggregation$: StaticStructureSchema;
275
276
  export declare var VulnerablePackage$: StaticStructureSchema;
277
+ export declare var WindowsConfiguration$: StaticStructureSchema;
276
278
  export declare var Workflow$: StaticStructureSchema;
277
279
  export declare var WorkflowConfiguration$: StaticStructureSchema;
278
280
  export declare var WorkflowExecutionMetadata$: StaticStructureSchema;
@@ -0,0 +1,2 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/util-endpoints";
2
+ export declare const bdd: BinaryDecisionDiagram;
@@ -996,6 +996,13 @@ export interface ImportComponentResponse {
996
996
  clientToken?: string | undefined;
997
997
  componentBuildVersionArn?: string | undefined;
998
998
  }
999
+ export interface RegisterImageOptions {
1000
+ secureBootEnabled?: boolean | undefined;
1001
+ uefiData?: string | undefined;
1002
+ }
1003
+ export interface WindowsConfiguration {
1004
+ imageIndex: number | undefined;
1005
+ }
999
1006
  export interface ImportDiskImageRequest {
1000
1007
  name: string | undefined;
1001
1008
  semanticVersion: string | undefined;
@@ -1007,6 +1014,8 @@ export interface ImportDiskImageRequest {
1007
1014
  uri: string | undefined;
1008
1015
  loggingConfiguration?: ImageLoggingConfiguration | undefined;
1009
1016
  tags?: Record<string, string> | undefined;
1017
+ registerImageOptions?: RegisterImageOptions | undefined;
1018
+ windowsConfiguration?: WindowsConfiguration | undefined;
1010
1019
  clientToken?: string | undefined;
1011
1020
  }
1012
1021
  export interface ImportDiskImageResponse {
@@ -238,6 +238,7 @@ export declare var PutImagePolicyRequest$: StaticStructureSchema;
238
238
  export declare var PutImagePolicyResponse$: StaticStructureSchema;
239
239
  export declare var PutImageRecipePolicyRequest$: StaticStructureSchema;
240
240
  export declare var PutImageRecipePolicyResponse$: StaticStructureSchema;
241
+ export declare var RegisterImageOptions$: StaticStructureSchema;
241
242
  export declare var Remediation$: StaticStructureSchema;
242
243
  export declare var RemediationRecommendation$: StaticStructureSchema;
243
244
  export declare var ResourceState$: StaticStructureSchema;
@@ -272,6 +273,7 @@ export declare var UpdateLifecyclePolicyRequest$: StaticStructureSchema;
272
273
  export declare var UpdateLifecyclePolicyResponse$: StaticStructureSchema;
273
274
  export declare var VulnerabilityIdAggregation$: StaticStructureSchema;
274
275
  export declare var VulnerablePackage$: StaticStructureSchema;
276
+ export declare var WindowsConfiguration$: StaticStructureSchema;
275
277
  export declare var Workflow$: StaticStructureSchema;
276
278
  export declare var WorkflowConfiguration$: StaticStructureSchema;
277
279
  export declare var WorkflowExecutionMetadata$: StaticStructureSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-imagebuilder",
3
3
  "description": "AWS SDK for JavaScript Imagebuilder Client for Node.js, Browser and React Native",
4
- "version": "3.1031.0",
4
+ "version": "3.1033.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-imagebuilder",
@@ -21,17 +21,17 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.974.0",
25
- "@aws-sdk/credential-provider-node": "^3.972.31",
24
+ "@aws-sdk/core": "^3.974.2",
25
+ "@aws-sdk/credential-provider-node": "^3.972.33",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.10",
27
27
  "@aws-sdk/middleware-logger": "^3.972.10",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.11",
29
- "@aws-sdk/middleware-user-agent": "^3.972.30",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.32",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.12",
31
31
  "@aws-sdk/types": "^3.973.8",
32
32
  "@aws-sdk/util-endpoints": "^3.996.7",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.10",
34
- "@aws-sdk/util-user-agent-node": "^3.973.16",
34
+ "@aws-sdk/util-user-agent-node": "^3.973.18",
35
35
  "@smithy/config-resolver": "^4.4.16",
36
36
  "@smithy/core": "^3.23.15",
37
37
  "@smithy/fetch-http-handler": "^5.3.17",
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ruleSet = void 0;
4
- const u = "required", v = "fn", w = "argv", x = "ref";
5
- const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = { [u]: false, "type": "string" }, j = { [u]: true, "default": false, "type": "boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }, r = [l], s = [m], t = [{ [x]: "Region" }];
6
- const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://imagebuilder-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://imagebuilder.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://imagebuilder-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://imagebuilder.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://imagebuilder.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
7
- exports.ruleSet = _data;
@@ -1,4 +0,0 @@
1
- const u = "required", v = "fn", w = "argv", x = "ref";
2
- const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = { [u]: false, "type": "string" }, j = { [u]: true, "default": false, "type": "boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }, r = [l], s = [m], t = [{ [x]: "Region" }];
3
- const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://imagebuilder-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://imagebuilder.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://imagebuilder-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://imagebuilder.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://imagebuilder.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
4
- export const ruleSet = _data;
@@ -1,2 +0,0 @@
1
- import { RuleSetObject } from "@smithy/types";
2
- export declare const ruleSet: RuleSetObject;
@@ -1,2 +0,0 @@
1
- import { RuleSetObject } from "@smithy/types";
2
- export declare const ruleSet: RuleSetObject;