aws-sdk-inspector2 1.24.0 → 1.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-inspector2/client.rb +910 -1
- data/lib/aws-sdk-inspector2/client_api.rb +737 -0
- data/lib/aws-sdk-inspector2/endpoint_provider.rb +1 -1
- data/lib/aws-sdk-inspector2/endpoints.rb +182 -0
- data/lib/aws-sdk-inspector2/plugins/endpoints.rb +26 -0
- data/lib/aws-sdk-inspector2/types.rb +1601 -39
- data/lib/aws-sdk-inspector2.rb +1 -1
- metadata +6 -6
@@ -32,7 +32,7 @@ module Aws::Inspector2
|
|
32
32
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
33
|
end
|
34
34
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
36
|
return Aws::Endpoints::Endpoint.new(url: "https://inspector2-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
37
|
end
|
38
38
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
@@ -138,6 +138,20 @@ module Aws::Inspector2
|
|
138
138
|
end
|
139
139
|
end
|
140
140
|
|
141
|
+
class CreateCisScanConfiguration
|
142
|
+
def self.build(context)
|
143
|
+
unless context.config.regional_endpoint
|
144
|
+
endpoint = context.config.endpoint.to_s
|
145
|
+
end
|
146
|
+
Aws::Inspector2::EndpointParameters.new(
|
147
|
+
region: context.config.region,
|
148
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
149
|
+
use_fips: context.config.use_fips_endpoint,
|
150
|
+
endpoint: endpoint,
|
151
|
+
)
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
141
155
|
class CreateFilter
|
142
156
|
def self.build(context)
|
143
157
|
unless context.config.regional_endpoint
|
@@ -180,6 +194,20 @@ module Aws::Inspector2
|
|
180
194
|
end
|
181
195
|
end
|
182
196
|
|
197
|
+
class DeleteCisScanConfiguration
|
198
|
+
def self.build(context)
|
199
|
+
unless context.config.regional_endpoint
|
200
|
+
endpoint = context.config.endpoint.to_s
|
201
|
+
end
|
202
|
+
Aws::Inspector2::EndpointParameters.new(
|
203
|
+
region: context.config.region,
|
204
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
205
|
+
use_fips: context.config.use_fips_endpoint,
|
206
|
+
endpoint: endpoint,
|
207
|
+
)
|
208
|
+
end
|
209
|
+
end
|
210
|
+
|
183
211
|
class DeleteFilter
|
184
212
|
def self.build(context)
|
185
213
|
unless context.config.regional_endpoint
|
@@ -278,6 +306,34 @@ module Aws::Inspector2
|
|
278
306
|
end
|
279
307
|
end
|
280
308
|
|
309
|
+
class GetCisScanReport
|
310
|
+
def self.build(context)
|
311
|
+
unless context.config.regional_endpoint
|
312
|
+
endpoint = context.config.endpoint.to_s
|
313
|
+
end
|
314
|
+
Aws::Inspector2::EndpointParameters.new(
|
315
|
+
region: context.config.region,
|
316
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
317
|
+
use_fips: context.config.use_fips_endpoint,
|
318
|
+
endpoint: endpoint,
|
319
|
+
)
|
320
|
+
end
|
321
|
+
end
|
322
|
+
|
323
|
+
class GetCisScanResultDetails
|
324
|
+
def self.build(context)
|
325
|
+
unless context.config.regional_endpoint
|
326
|
+
endpoint = context.config.endpoint.to_s
|
327
|
+
end
|
328
|
+
Aws::Inspector2::EndpointParameters.new(
|
329
|
+
region: context.config.region,
|
330
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
331
|
+
use_fips: context.config.use_fips_endpoint,
|
332
|
+
endpoint: endpoint,
|
333
|
+
)
|
334
|
+
end
|
335
|
+
end
|
336
|
+
|
281
337
|
class GetConfiguration
|
282
338
|
def self.build(context)
|
283
339
|
unless context.config.regional_endpoint
|
@@ -390,6 +446,62 @@ module Aws::Inspector2
|
|
390
446
|
end
|
391
447
|
end
|
392
448
|
|
449
|
+
class ListCisScanConfigurations
|
450
|
+
def self.build(context)
|
451
|
+
unless context.config.regional_endpoint
|
452
|
+
endpoint = context.config.endpoint.to_s
|
453
|
+
end
|
454
|
+
Aws::Inspector2::EndpointParameters.new(
|
455
|
+
region: context.config.region,
|
456
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
457
|
+
use_fips: context.config.use_fips_endpoint,
|
458
|
+
endpoint: endpoint,
|
459
|
+
)
|
460
|
+
end
|
461
|
+
end
|
462
|
+
|
463
|
+
class ListCisScanResultsAggregatedByChecks
|
464
|
+
def self.build(context)
|
465
|
+
unless context.config.regional_endpoint
|
466
|
+
endpoint = context.config.endpoint.to_s
|
467
|
+
end
|
468
|
+
Aws::Inspector2::EndpointParameters.new(
|
469
|
+
region: context.config.region,
|
470
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
471
|
+
use_fips: context.config.use_fips_endpoint,
|
472
|
+
endpoint: endpoint,
|
473
|
+
)
|
474
|
+
end
|
475
|
+
end
|
476
|
+
|
477
|
+
class ListCisScanResultsAggregatedByTargetResource
|
478
|
+
def self.build(context)
|
479
|
+
unless context.config.regional_endpoint
|
480
|
+
endpoint = context.config.endpoint.to_s
|
481
|
+
end
|
482
|
+
Aws::Inspector2::EndpointParameters.new(
|
483
|
+
region: context.config.region,
|
484
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
485
|
+
use_fips: context.config.use_fips_endpoint,
|
486
|
+
endpoint: endpoint,
|
487
|
+
)
|
488
|
+
end
|
489
|
+
end
|
490
|
+
|
491
|
+
class ListCisScans
|
492
|
+
def self.build(context)
|
493
|
+
unless context.config.regional_endpoint
|
494
|
+
endpoint = context.config.endpoint.to_s
|
495
|
+
end
|
496
|
+
Aws::Inspector2::EndpointParameters.new(
|
497
|
+
region: context.config.region,
|
498
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
499
|
+
use_fips: context.config.use_fips_endpoint,
|
500
|
+
endpoint: endpoint,
|
501
|
+
)
|
502
|
+
end
|
503
|
+
end
|
504
|
+
|
393
505
|
class ListCoverage
|
394
506
|
def self.build(context)
|
395
507
|
unless context.config.regional_endpoint
|
@@ -544,6 +656,62 @@ module Aws::Inspector2
|
|
544
656
|
end
|
545
657
|
end
|
546
658
|
|
659
|
+
class SendCisSessionHealth
|
660
|
+
def self.build(context)
|
661
|
+
unless context.config.regional_endpoint
|
662
|
+
endpoint = context.config.endpoint.to_s
|
663
|
+
end
|
664
|
+
Aws::Inspector2::EndpointParameters.new(
|
665
|
+
region: context.config.region,
|
666
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
667
|
+
use_fips: context.config.use_fips_endpoint,
|
668
|
+
endpoint: endpoint,
|
669
|
+
)
|
670
|
+
end
|
671
|
+
end
|
672
|
+
|
673
|
+
class SendCisSessionTelemetry
|
674
|
+
def self.build(context)
|
675
|
+
unless context.config.regional_endpoint
|
676
|
+
endpoint = context.config.endpoint.to_s
|
677
|
+
end
|
678
|
+
Aws::Inspector2::EndpointParameters.new(
|
679
|
+
region: context.config.region,
|
680
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
681
|
+
use_fips: context.config.use_fips_endpoint,
|
682
|
+
endpoint: endpoint,
|
683
|
+
)
|
684
|
+
end
|
685
|
+
end
|
686
|
+
|
687
|
+
class StartCisSession
|
688
|
+
def self.build(context)
|
689
|
+
unless context.config.regional_endpoint
|
690
|
+
endpoint = context.config.endpoint.to_s
|
691
|
+
end
|
692
|
+
Aws::Inspector2::EndpointParameters.new(
|
693
|
+
region: context.config.region,
|
694
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
695
|
+
use_fips: context.config.use_fips_endpoint,
|
696
|
+
endpoint: endpoint,
|
697
|
+
)
|
698
|
+
end
|
699
|
+
end
|
700
|
+
|
701
|
+
class StopCisSession
|
702
|
+
def self.build(context)
|
703
|
+
unless context.config.regional_endpoint
|
704
|
+
endpoint = context.config.endpoint.to_s
|
705
|
+
end
|
706
|
+
Aws::Inspector2::EndpointParameters.new(
|
707
|
+
region: context.config.region,
|
708
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
709
|
+
use_fips: context.config.use_fips_endpoint,
|
710
|
+
endpoint: endpoint,
|
711
|
+
)
|
712
|
+
end
|
713
|
+
end
|
714
|
+
|
547
715
|
class TagResource
|
548
716
|
def self.build(context)
|
549
717
|
unless context.config.regional_endpoint
|
@@ -572,6 +740,20 @@ module Aws::Inspector2
|
|
572
740
|
end
|
573
741
|
end
|
574
742
|
|
743
|
+
class UpdateCisScanConfiguration
|
744
|
+
def self.build(context)
|
745
|
+
unless context.config.regional_endpoint
|
746
|
+
endpoint = context.config.endpoint.to_s
|
747
|
+
end
|
748
|
+
Aws::Inspector2::EndpointParameters.new(
|
749
|
+
region: context.config.region,
|
750
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
751
|
+
use_fips: context.config.use_fips_endpoint,
|
752
|
+
endpoint: endpoint,
|
753
|
+
)
|
754
|
+
end
|
755
|
+
end
|
756
|
+
|
575
757
|
class UpdateConfiguration
|
576
758
|
def self.build(context)
|
577
759
|
unless context.config.regional_endpoint
|
@@ -75,12 +75,16 @@ module Aws::Inspector2
|
|
75
75
|
Aws::Inspector2::Endpoints::CancelFindingsReport.build(context)
|
76
76
|
when :cancel_sbom_export
|
77
77
|
Aws::Inspector2::Endpoints::CancelSbomExport.build(context)
|
78
|
+
when :create_cis_scan_configuration
|
79
|
+
Aws::Inspector2::Endpoints::CreateCisScanConfiguration.build(context)
|
78
80
|
when :create_filter
|
79
81
|
Aws::Inspector2::Endpoints::CreateFilter.build(context)
|
80
82
|
when :create_findings_report
|
81
83
|
Aws::Inspector2::Endpoints::CreateFindingsReport.build(context)
|
82
84
|
when :create_sbom_export
|
83
85
|
Aws::Inspector2::Endpoints::CreateSbomExport.build(context)
|
86
|
+
when :delete_cis_scan_configuration
|
87
|
+
Aws::Inspector2::Endpoints::DeleteCisScanConfiguration.build(context)
|
84
88
|
when :delete_filter
|
85
89
|
Aws::Inspector2::Endpoints::DeleteFilter.build(context)
|
86
90
|
when :describe_organization_configuration
|
@@ -95,6 +99,10 @@ module Aws::Inspector2
|
|
95
99
|
Aws::Inspector2::Endpoints::Enable.build(context)
|
96
100
|
when :enable_delegated_admin_account
|
97
101
|
Aws::Inspector2::Endpoints::EnableDelegatedAdminAccount.build(context)
|
102
|
+
when :get_cis_scan_report
|
103
|
+
Aws::Inspector2::Endpoints::GetCisScanReport.build(context)
|
104
|
+
when :get_cis_scan_result_details
|
105
|
+
Aws::Inspector2::Endpoints::GetCisScanResultDetails.build(context)
|
98
106
|
when :get_configuration
|
99
107
|
Aws::Inspector2::Endpoints::GetConfiguration.build(context)
|
100
108
|
when :get_delegated_admin_account
|
@@ -111,6 +119,14 @@ module Aws::Inspector2
|
|
111
119
|
Aws::Inspector2::Endpoints::GetSbomExport.build(context)
|
112
120
|
when :list_account_permissions
|
113
121
|
Aws::Inspector2::Endpoints::ListAccountPermissions.build(context)
|
122
|
+
when :list_cis_scan_configurations
|
123
|
+
Aws::Inspector2::Endpoints::ListCisScanConfigurations.build(context)
|
124
|
+
when :list_cis_scan_results_aggregated_by_checks
|
125
|
+
Aws::Inspector2::Endpoints::ListCisScanResultsAggregatedByChecks.build(context)
|
126
|
+
when :list_cis_scan_results_aggregated_by_target_resource
|
127
|
+
Aws::Inspector2::Endpoints::ListCisScanResultsAggregatedByTargetResource.build(context)
|
128
|
+
when :list_cis_scans
|
129
|
+
Aws::Inspector2::Endpoints::ListCisScans.build(context)
|
114
130
|
when :list_coverage
|
115
131
|
Aws::Inspector2::Endpoints::ListCoverage.build(context)
|
116
132
|
when :list_coverage_statistics
|
@@ -133,10 +149,20 @@ module Aws::Inspector2
|
|
133
149
|
Aws::Inspector2::Endpoints::ResetEncryptionKey.build(context)
|
134
150
|
when :search_vulnerabilities
|
135
151
|
Aws::Inspector2::Endpoints::SearchVulnerabilities.build(context)
|
152
|
+
when :send_cis_session_health
|
153
|
+
Aws::Inspector2::Endpoints::SendCisSessionHealth.build(context)
|
154
|
+
when :send_cis_session_telemetry
|
155
|
+
Aws::Inspector2::Endpoints::SendCisSessionTelemetry.build(context)
|
156
|
+
when :start_cis_session
|
157
|
+
Aws::Inspector2::Endpoints::StartCisSession.build(context)
|
158
|
+
when :stop_cis_session
|
159
|
+
Aws::Inspector2::Endpoints::StopCisSession.build(context)
|
136
160
|
when :tag_resource
|
137
161
|
Aws::Inspector2::Endpoints::TagResource.build(context)
|
138
162
|
when :untag_resource
|
139
163
|
Aws::Inspector2::Endpoints::UntagResource.build(context)
|
164
|
+
when :update_cis_scan_configuration
|
165
|
+
Aws::Inspector2::Endpoints::UpdateCisScanConfiguration.build(context)
|
140
166
|
when :update_configuration
|
141
167
|
Aws::Inspector2::Endpoints::UpdateConfiguration.build(context)
|
142
168
|
when :update_ec2_deep_inspection_configuration
|