aws-sdk-imagebuilder 1.43.0 → 1.45.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-imagebuilder/client.rb +491 -18
- data/lib/aws-sdk-imagebuilder/client_api.rb +432 -0
- data/lib/aws-sdk-imagebuilder/endpoint_parameters.rb +0 -3
- data/lib/aws-sdk-imagebuilder/endpoint_provider.rb +30 -24
- data/lib/aws-sdk-imagebuilder/endpoints.rb +84 -0
- data/lib/aws-sdk-imagebuilder/plugins/endpoints.rb +12 -0
- data/lib/aws-sdk-imagebuilder/types.rb +1368 -112
- data/lib/aws-sdk-imagebuilder.rb +1 -1
- metadata +2 -2
@@ -50,9 +50,6 @@ module Aws::Imagebuilder
|
|
50
50
|
|
51
51
|
def initialize(options = {})
|
52
52
|
self[:region] = options[:region]
|
53
|
-
if self[:region].nil?
|
54
|
-
raise ArgumentError, "Missing required EndpointParameter: :region"
|
55
|
-
end
|
56
53
|
self[:use_dual_stack] = options[:use_dual_stack]
|
57
54
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
58
55
|
if self[:use_dual_stack].nil?
|
@@ -14,36 +14,42 @@ module Aws::Imagebuilder
|
|
14
14
|
use_dual_stack = parameters.use_dual_stack
|
15
15
|
use_fips = parameters.use_fips
|
16
16
|
endpoint = parameters.endpoint
|
17
|
-
if
|
18
|
-
if Aws::Endpoints::Matchers.set?(endpoint)
|
19
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
20
|
-
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
-
end
|
22
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
-
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
-
end
|
25
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
26
|
-
end
|
27
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
28
|
-
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
29
|
-
return Aws::Endpoints::Endpoint.new(url: "https://imagebuilder-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
-
end
|
31
|
-
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
32
|
-
end
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
33
18
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
-
|
35
|
-
return Aws::Endpoints::Endpoint.new(url: "https://imagebuilder-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
36
|
-
end
|
37
|
-
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
38
20
|
end
|
39
21
|
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
40
|
-
|
41
|
-
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
|
+
end
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
25
|
+
end
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://imagebuilder-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
31
|
+
end
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
+
end
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
36
|
+
if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
|
37
|
+
return Aws::Endpoints::Endpoint.new(url: "https://imagebuilder.#{region}.amazonaws.com", headers: {}, properties: {})
|
38
|
+
end
|
39
|
+
return Aws::Endpoints::Endpoint.new(url: "https://imagebuilder-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
40
|
+
end
|
41
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
42
|
+
end
|
43
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
44
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
45
|
+
return Aws::Endpoints::Endpoint.new(url: "https://imagebuilder.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
46
|
+
end
|
47
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
42
48
|
end
|
43
|
-
|
49
|
+
return Aws::Endpoints::Endpoint.new(url: "https://imagebuilder.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
44
50
|
end
|
45
|
-
return Aws::Endpoints::Endpoint.new(url: "https://imagebuilder.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
46
51
|
end
|
52
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
47
53
|
raise ArgumentError, 'No endpoint could be resolved'
|
48
54
|
|
49
55
|
end
|
@@ -375,6 +375,34 @@ module Aws::Imagebuilder
|
|
375
375
|
end
|
376
376
|
end
|
377
377
|
|
378
|
+
class GetWorkflowExecution
|
379
|
+
def self.build(context)
|
380
|
+
unless context.config.regional_endpoint
|
381
|
+
endpoint = context.config.endpoint.to_s
|
382
|
+
end
|
383
|
+
Aws::Imagebuilder::EndpointParameters.new(
|
384
|
+
region: context.config.region,
|
385
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
386
|
+
use_fips: context.config.use_fips_endpoint,
|
387
|
+
endpoint: endpoint,
|
388
|
+
)
|
389
|
+
end
|
390
|
+
end
|
391
|
+
|
392
|
+
class GetWorkflowStepExecution
|
393
|
+
def self.build(context)
|
394
|
+
unless context.config.regional_endpoint
|
395
|
+
endpoint = context.config.endpoint.to_s
|
396
|
+
end
|
397
|
+
Aws::Imagebuilder::EndpointParameters.new(
|
398
|
+
region: context.config.region,
|
399
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
400
|
+
use_fips: context.config.use_fips_endpoint,
|
401
|
+
endpoint: endpoint,
|
402
|
+
)
|
403
|
+
end
|
404
|
+
end
|
405
|
+
|
378
406
|
class ImportComponent
|
379
407
|
def self.build(context)
|
380
408
|
unless context.config.regional_endpoint
|
@@ -529,6 +557,34 @@ module Aws::Imagebuilder
|
|
529
557
|
end
|
530
558
|
end
|
531
559
|
|
560
|
+
class ListImageScanFindingAggregations
|
561
|
+
def self.build(context)
|
562
|
+
unless context.config.regional_endpoint
|
563
|
+
endpoint = context.config.endpoint.to_s
|
564
|
+
end
|
565
|
+
Aws::Imagebuilder::EndpointParameters.new(
|
566
|
+
region: context.config.region,
|
567
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
568
|
+
use_fips: context.config.use_fips_endpoint,
|
569
|
+
endpoint: endpoint,
|
570
|
+
)
|
571
|
+
end
|
572
|
+
end
|
573
|
+
|
574
|
+
class ListImageScanFindings
|
575
|
+
def self.build(context)
|
576
|
+
unless context.config.regional_endpoint
|
577
|
+
endpoint = context.config.endpoint.to_s
|
578
|
+
end
|
579
|
+
Aws::Imagebuilder::EndpointParameters.new(
|
580
|
+
region: context.config.region,
|
581
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
582
|
+
use_fips: context.config.use_fips_endpoint,
|
583
|
+
endpoint: endpoint,
|
584
|
+
)
|
585
|
+
end
|
586
|
+
end
|
587
|
+
|
532
588
|
class ListImages
|
533
589
|
def self.build(context)
|
534
590
|
unless context.config.regional_endpoint
|
@@ -571,6 +627,34 @@ module Aws::Imagebuilder
|
|
571
627
|
end
|
572
628
|
end
|
573
629
|
|
630
|
+
class ListWorkflowExecutions
|
631
|
+
def self.build(context)
|
632
|
+
unless context.config.regional_endpoint
|
633
|
+
endpoint = context.config.endpoint.to_s
|
634
|
+
end
|
635
|
+
Aws::Imagebuilder::EndpointParameters.new(
|
636
|
+
region: context.config.region,
|
637
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
638
|
+
use_fips: context.config.use_fips_endpoint,
|
639
|
+
endpoint: endpoint,
|
640
|
+
)
|
641
|
+
end
|
642
|
+
end
|
643
|
+
|
644
|
+
class ListWorkflowStepExecutions
|
645
|
+
def self.build(context)
|
646
|
+
unless context.config.regional_endpoint
|
647
|
+
endpoint = context.config.endpoint.to_s
|
648
|
+
end
|
649
|
+
Aws::Imagebuilder::EndpointParameters.new(
|
650
|
+
region: context.config.region,
|
651
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
652
|
+
use_fips: context.config.use_fips_endpoint,
|
653
|
+
endpoint: endpoint,
|
654
|
+
)
|
655
|
+
end
|
656
|
+
end
|
657
|
+
|
574
658
|
class PutComponentPolicy
|
575
659
|
def self.build(context)
|
576
660
|
unless context.config.regional_endpoint
|
@@ -108,6 +108,10 @@ module Aws::Imagebuilder
|
|
108
108
|
Aws::Imagebuilder::Endpoints::GetImageRecipePolicy.build(context)
|
109
109
|
when :get_infrastructure_configuration
|
110
110
|
Aws::Imagebuilder::Endpoints::GetInfrastructureConfiguration.build(context)
|
111
|
+
when :get_workflow_execution
|
112
|
+
Aws::Imagebuilder::Endpoints::GetWorkflowExecution.build(context)
|
113
|
+
when :get_workflow_step_execution
|
114
|
+
Aws::Imagebuilder::Endpoints::GetWorkflowStepExecution.build(context)
|
111
115
|
when :import_component
|
112
116
|
Aws::Imagebuilder::Endpoints::ImportComponent.build(context)
|
113
117
|
when :import_vm_image
|
@@ -130,12 +134,20 @@ module Aws::Imagebuilder
|
|
130
134
|
Aws::Imagebuilder::Endpoints::ListImagePipelines.build(context)
|
131
135
|
when :list_image_recipes
|
132
136
|
Aws::Imagebuilder::Endpoints::ListImageRecipes.build(context)
|
137
|
+
when :list_image_scan_finding_aggregations
|
138
|
+
Aws::Imagebuilder::Endpoints::ListImageScanFindingAggregations.build(context)
|
139
|
+
when :list_image_scan_findings
|
140
|
+
Aws::Imagebuilder::Endpoints::ListImageScanFindings.build(context)
|
133
141
|
when :list_images
|
134
142
|
Aws::Imagebuilder::Endpoints::ListImages.build(context)
|
135
143
|
when :list_infrastructure_configurations
|
136
144
|
Aws::Imagebuilder::Endpoints::ListInfrastructureConfigurations.build(context)
|
137
145
|
when :list_tags_for_resource
|
138
146
|
Aws::Imagebuilder::Endpoints::ListTagsForResource.build(context)
|
147
|
+
when :list_workflow_executions
|
148
|
+
Aws::Imagebuilder::Endpoints::ListWorkflowExecutions.build(context)
|
149
|
+
when :list_workflow_step_executions
|
150
|
+
Aws::Imagebuilder::Endpoints::ListWorkflowStepExecutions.build(context)
|
139
151
|
when :put_component_policy
|
140
152
|
Aws::Imagebuilder::Endpoints::PutComponentPolicy.build(context)
|
141
153
|
when :put_container_recipe_policy
|