aws-sdk-inspector2 1.86.0 → 1.88.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.
@@ -55,7 +55,7 @@ module Aws::Inspector2
55
55
  autoload :EndpointProvider, 'aws-sdk-inspector2/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-inspector2/endpoints'
57
57
 
58
- GEM_VERSION = '1.86.0'
58
+ GEM_VERSION = '1.88.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -317,7 +317,8 @@ module Aws
317
317
  s3_destination: {
318
318
  bucket_name: ::String,
319
319
  key_prefix: ::String?,
320
- kms_key_arn: ::String
320
+ kms_key_arn: ::String,
321
+ expected_bucket_owner: ::String?
321
322
  }
322
323
  ) -> _CreateFindingsReportResponseSuccess
323
324
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateFindingsReportResponseSuccess
@@ -452,7 +453,8 @@ module Aws
452
453
  s3_destination: {
453
454
  bucket_name: ::String,
454
455
  key_prefix: ::String?,
455
- kms_key_arn: ::String
456
+ kms_key_arn: ::String,
457
+ expected_bucket_owner: ::String?
456
458
  }
457
459
  ) -> _CreateSbomExportResponseSuccess
458
460
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateSbomExportResponseSuccess
@@ -709,6 +711,7 @@ module Aws
709
711
  include ::Seahorse::Client::_ResponseSuccess[Types::GetConfigurationResponse]
710
712
  def ecr_configuration: () -> Types::EcrConfigurationState
711
713
  def ec2_configuration: () -> Types::Ec2ConfigurationState
714
+ def ami_configuration: () -> Types::AmiConfigurationState
712
715
  end
713
716
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#get_configuration-instance_method
714
717
  def get_configuration: (
@@ -744,7 +747,7 @@ module Aws
744
747
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#get_encryption_key-instance_method
745
748
  def get_encryption_key: (
746
749
  scan_type: ("NETWORK" | "PACKAGE" | "CODE"),
747
- resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY" | "Microsoft.Compute/virtualMachines" | "Microsoft.ContainerRegistry/registry/containerImage" | "Microsoft.Web/sites")
750
+ resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY" | "Microsoft.Compute/virtualMachines" | "Microsoft.ContainerRegistry/registry/containerImage" | "Microsoft.Web/sites" | "MACHINE_IMAGE")
748
751
  ) -> _GetEncryptionKeyResponseSuccess
749
752
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetEncryptionKeyResponseSuccess
750
753
 
@@ -773,6 +776,24 @@ module Aws
773
776
  ) -> _GetMemberResponseSuccess
774
777
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetMemberResponseSuccess
775
778
 
779
+ interface _GetOnDemandScanStatusResponseSuccess
780
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetOnDemandScanStatusResponse]
781
+ def scan_id: () -> ::String
782
+ def resource_id: () -> ::String
783
+ def resource_type: () -> ("AMI")
784
+ def scan_status: () -> ("IN_PROGRESS" | "SUCCESSFUL" | "FAILED")
785
+ def scan_status_reason: () -> ("ACCESS_DENIED" | "INTERNAL_ERROR" | "STORAGE_LIMIT_EXCEEDED" | "EXTRACTION_COLLECTION_TIME_LIMIT_EXCEEDED" | "UNSUPPORTED_OS" | "RESOURCE_TERMINATED")
786
+ def started_at: () -> ::Time
787
+ def completed_at: () -> ::Time
788
+ end
789
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#get_on_demand_scan_status-instance_method
790
+ def get_on_demand_scan_status: (
791
+ resource_id: ::String,
792
+ scan_id: ::String,
793
+ resource_type: ("AMI")
794
+ ) -> _GetOnDemandScanStatusResponseSuccess
795
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetOnDemandScanStatusResponseSuccess
796
+
776
797
  interface _GetSbomExportResponseSuccess
777
798
  include ::Seahorse::Client::_ResponseSuccess[Types::GetSbomExportResponse]
778
799
  def report_id: () -> ::String
@@ -1219,7 +1240,8 @@ module Aws
1219
1240
  }
1220
1241
  ]?,
1221
1242
  sort_order: ("ASC" | "DESC")?,
1222
- sort_by: ("CRITICAL" | "HIGH" | "ALL" | "AFFECTED_INSTANCES")?
1243
+ sort_by: ("CRITICAL" | "HIGH" | "ALL" | "AFFECTED_INSTANCES")?,
1244
+ scan_sources: Array[("INSTANCE_SCAN" | "MACHINE_IMAGE_SCAN")]?
1223
1245
  }?,
1224
1246
  aws_ecr_container_aggregation: {
1225
1247
  resource_ids: Array[
@@ -1699,6 +1721,20 @@ module Aws
1699
1721
  ) -> _ListMembersResponseSuccess
1700
1722
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListMembersResponseSuccess
1701
1723
 
1724
+ interface _ListOnDemandScansResponseSuccess
1725
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListOnDemandScansResponse]
1726
+ def items: () -> ::Array[Types::OnDemandScan]
1727
+ def next_token: () -> ::String
1728
+ end
1729
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#list_on_demand_scans-instance_method
1730
+ def list_on_demand_scans: (
1731
+ resource_id: ::String,
1732
+ resource_type: ("AMI"),
1733
+ ?max_results: ::Integer,
1734
+ ?next_token: ::String
1735
+ ) -> _ListOnDemandScansResponseSuccess
1736
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListOnDemandScansResponseSuccess
1737
+
1702
1738
  interface _ListTagsForResourceResponseSuccess
1703
1739
  include ::Seahorse::Client::_ResponseSuccess[Types::ListTagsForResourceResponse]
1704
1740
  def tags: () -> ::Hash[::String, ::String]
@@ -1728,7 +1764,7 @@ module Aws
1728
1764
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#reset_encryption_key-instance_method
1729
1765
  def reset_encryption_key: (
1730
1766
  scan_type: ("NETWORK" | "PACKAGE" | "CODE"),
1731
- resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY" | "Microsoft.Compute/virtualMachines" | "Microsoft.ContainerRegistry/registry/containerImage" | "Microsoft.Web/sites")
1767
+ resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY" | "Microsoft.Compute/virtualMachines" | "Microsoft.ContainerRegistry/registry/containerImage" | "Microsoft.Web/sites" | "MACHINE_IMAGE")
1732
1768
  ) -> _ResetEncryptionKeyResponseSuccess
1733
1769
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ResetEncryptionKeyResponseSuccess
1734
1770
 
@@ -1799,6 +1835,18 @@ module Aws
1799
1835
  ) -> _StartCodeSecurityScanResponseSuccess
1800
1836
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartCodeSecurityScanResponseSuccess
1801
1837
 
1838
+ interface _StartOnDemandScanResponseSuccess
1839
+ include ::Seahorse::Client::_ResponseSuccess[Types::StartOnDemandScanResponse]
1840
+ def scan_id: () -> ::String
1841
+ end
1842
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#start_on_demand_scan-instance_method
1843
+ def start_on_demand_scan: (
1844
+ resource_id: ::String,
1845
+ resource_type: ("AMI"),
1846
+ ?client_token: ::String
1847
+ ) -> _StartOnDemandScanResponseSuccess
1848
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartOnDemandScanResponseSuccess
1849
+
1802
1850
  interface _StopCisSessionResponseSuccess
1803
1851
  include ::Seahorse::Client::_ResponseSuccess[Types::StopCisSessionResponse]
1804
1852
  end
@@ -1913,9 +1961,25 @@ module Aws
1913
1961
  scan_mode: ("EC2_SSM_AGENT_BASED" | "EC2_HYBRID"),
1914
1962
  activate_vm_scanner: bool?
1915
1963
  },
1964
+ ?ami_configuration: {
1965
+ last_launched_within: ("DAYS_180" | "DAYS_90" | "DAYS_60" | "DAYS_30" | "DAYS_14" | "DAYS_7")?,
1966
+ created_within: ("DAYS_180" | "DAYS_90" | "DAYS_60" | "DAYS_30" | "DAYS_14" | "DAYS_7")?,
1967
+ scan_mode_configuration: {
1968
+ scan_mode: ("SCAN_ALL" | "TARGET_SCANNING"),
1969
+ tags: Array[
1970
+ {
1971
+ key: ::String,
1972
+ value: ::String?
1973
+ }
1974
+ ]?,
1975
+ exclude_copied_amis: bool?,
1976
+ exclude_backup_dlm_amis: bool?
1977
+ }
1978
+ },
1916
1979
  ?update_configuration_inheritance: {
1917
1980
  ec2_configuration: ("INHERIT_FROM_ADMIN")?,
1918
- ecr_configuration: ("INHERIT_FROM_ADMIN")?
1981
+ ecr_configuration: ("INHERIT_FROM_ADMIN")?,
1982
+ ami_configuration: ("INHERIT_FROM_ADMIN")?
1919
1983
  }
1920
1984
  ) -> _UpdateConfigurationResponseSuccess
1921
1985
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateConfigurationResponseSuccess
@@ -1974,7 +2038,7 @@ module Aws
1974
2038
  def update_encryption_key: (
1975
2039
  kms_key_id: ::String,
1976
2040
  scan_type: ("NETWORK" | "PACKAGE" | "CODE"),
1977
- resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY" | "Microsoft.Compute/virtualMachines" | "Microsoft.ContainerRegistry/registry/containerImage" | "Microsoft.Web/sites")
2041
+ resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY" | "Microsoft.Compute/virtualMachines" | "Microsoft.ContainerRegistry/registry/containerImage" | "Microsoft.Web/sites" | "MACHINE_IMAGE")
1978
2042
  ) -> _UpdateEncryptionKeyResponseSuccess
1979
2043
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateEncryptionKeyResponseSuccess
1980
2044
 
@@ -2013,7 +2077,8 @@ module Aws
2013
2077
  ecr: bool,
2014
2078
  lambda: bool?,
2015
2079
  lambda_code: bool?,
2016
- code_repository: bool?
2080
+ code_repository: bool?,
2081
+ ami: bool?
2017
2082
  }
2018
2083
  ) -> _UpdateOrganizationConfigurationResponseSuccess
2019
2084
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateOrganizationConfigurationResponseSuccess
data/sig/params.rbs CHANGED
@@ -334,6 +334,30 @@ module Aws
334
334
  value: ::String
335
335
  }
336
336
  ]?,
337
+ machine_image_id: Array[
338
+ {
339
+ comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
340
+ value: ::String
341
+ }
342
+ ]?,
343
+ machine_image_name: Array[
344
+ {
345
+ comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
346
+ value: ::String
347
+ }
348
+ ]?,
349
+ machine_image_owner_account_id: Array[
350
+ {
351
+ comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
352
+ value: ::String
353
+ }
354
+ ]?,
355
+ machine_image_platform: Array[
356
+ {
357
+ comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
358
+ value: ::String
359
+ }
360
+ ]?,
337
361
  cloud_provider: Array[
338
362
  {
339
363
  comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
@@ -560,6 +584,13 @@ module Aws
560
584
  value: ::String
561
585
  }
562
586
  ]?,
587
+ machine_image_tags: Array[
588
+ {
589
+ comparison: ("EQUALS"),
590
+ key: ::String,
591
+ value: ::String?
592
+ }
593
+ ]?,
563
594
  last_scanned_at: Array[
564
595
  {
565
596
  start_inclusive: ::Time?,
data/sig/types.rbs CHANGED
@@ -153,6 +153,7 @@ module Aws::Inspector2
153
153
  attr_accessor amis: ::Array[Types::StringFilter]
154
154
  attr_accessor sort_order: ("ASC" | "DESC")
155
155
  attr_accessor sort_by: ("CRITICAL" | "HIGH" | "ALL" | "AFFECTED_INSTANCES")
156
+ attr_accessor scan_sources: ::Array[("INSTANCE_SCAN" | "MACHINE_IMAGE_SCAN")]
156
157
  SENSITIVE: []
157
158
  end
158
159
 
@@ -166,6 +167,37 @@ module Aws::Inspector2
166
167
  attr_accessor cloud_account_id: ::String
167
168
  attr_accessor severity_counts: Types::SeverityCounts
168
169
  attr_accessor affected_instances: ::Integer
170
+ attr_accessor scan_source: ("INSTANCE_SCAN" | "MACHINE_IMAGE_SCAN")
171
+ SENSITIVE: []
172
+ end
173
+
174
+ class AmiConfiguration
175
+ attr_accessor last_launched_within: ("DAYS_180" | "DAYS_90" | "DAYS_60" | "DAYS_30" | "DAYS_14" | "DAYS_7")
176
+ attr_accessor created_within: ("DAYS_180" | "DAYS_90" | "DAYS_60" | "DAYS_30" | "DAYS_14" | "DAYS_7")
177
+ attr_accessor scan_mode_configuration: Types::AmiScanModeConfiguration
178
+ SENSITIVE: []
179
+ end
180
+
181
+ class AmiConfigurationState
182
+ attr_accessor last_launched_within: ("DAYS_180" | "DAYS_90" | "DAYS_60" | "DAYS_30" | "DAYS_14" | "DAYS_7")
183
+ attr_accessor created_within: ("DAYS_180" | "DAYS_90" | "DAYS_60" | "DAYS_30" | "DAYS_14" | "DAYS_7")
184
+ attr_accessor scan_mode_configuration: Types::AmiScanModeConfiguration
185
+ attr_accessor status: ("SUCCESS" | "PENDING" | "FAILED")
186
+ attr_accessor updated_at: ::Time
187
+ SENSITIVE: []
188
+ end
189
+
190
+ class AmiScanModeConfiguration
191
+ attr_accessor scan_mode: ("SCAN_ALL" | "TARGET_SCANNING")
192
+ attr_accessor tags: ::Array[Types::AmiTagFilter]
193
+ attr_accessor exclude_copied_amis: bool
194
+ attr_accessor exclude_backup_dlm_amis: bool
195
+ SENSITIVE: []
196
+ end
197
+
198
+ class AmiTagFilter
199
+ attr_accessor key: ::String
200
+ attr_accessor value: ::String
169
201
  SENSITIVE: []
170
202
  end
171
203
 
@@ -199,6 +231,7 @@ module Aws::Inspector2
199
231
  attr_accessor lambda: bool
200
232
  attr_accessor lambda_code: bool
201
233
  attr_accessor code_repository: bool
234
+ attr_accessor ami: bool
202
235
  SENSITIVE: []
203
236
  end
204
237
 
@@ -940,6 +973,7 @@ module Aws::Inspector2
940
973
  attr_accessor lambda_function_name: ::Array[Types::CoverageStringFilter]
941
974
  attr_accessor lambda_function_tags: ::Array[Types::CoverageMapFilter]
942
975
  attr_accessor lambda_function_runtime: ::Array[Types::CoverageStringFilter]
976
+ attr_accessor machine_image_tags: ::Array[Types::CoverageMapFilter]
943
977
  attr_accessor last_scanned_at: ::Array[Types::CoverageDateFilter]
944
978
  attr_accessor scan_mode: ::Array[Types::CoverageStringFilter]
945
979
  attr_accessor image_pulled_at: ::Array[Types::CoverageDateFilter]
@@ -983,7 +1017,7 @@ module Aws::Inspector2
983
1017
  end
984
1018
 
985
1019
  class CoveredResource
986
- attr_accessor resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY" | "Microsoft.Compute/virtualMachines" | "Microsoft.ContainerRegistry/registry/containerImage" | "Microsoft.ContainerRegistry/registry/containerRepository" | "Microsoft.Web/sites" | "Microsoft.ContainerRegistry/registries")
1020
+ attr_accessor resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY" | "Microsoft.Compute/virtualMachines" | "Microsoft.ContainerRegistry/registry/containerImage" | "Microsoft.ContainerRegistry/registry/containerRepository" | "Microsoft.Web/sites" | "Microsoft.ContainerRegistry/registries" | "MACHINE_IMAGE")
987
1021
  attr_accessor resource_id: ::String
988
1022
  attr_accessor account_id: ::String
989
1023
  attr_accessor scan_type: ("NETWORK" | "PACKAGE" | "CODE")
@@ -1245,6 +1279,7 @@ module Aws::Inspector2
1245
1279
  attr_accessor bucket_name: ::String
1246
1280
  attr_accessor key_prefix: ::String
1247
1281
  attr_accessor kms_key_arn: ::String
1282
+ attr_accessor expected_bucket_owner: ::String
1248
1283
  SENSITIVE: []
1249
1284
  end
1250
1285
 
@@ -1504,6 +1539,10 @@ module Aws::Inspector2
1504
1539
  attr_accessor epss_score: ::Array[Types::NumberFilter]
1505
1540
  attr_accessor code_repository_project_name: ::Array[Types::StringFilter]
1506
1541
  attr_accessor code_repository_provider_type: ::Array[Types::StringFilter]
1542
+ attr_accessor machine_image_id: ::Array[Types::StringFilter]
1543
+ attr_accessor machine_image_name: ::Array[Types::StringFilter]
1544
+ attr_accessor machine_image_owner_account_id: ::Array[Types::StringFilter]
1545
+ attr_accessor machine_image_platform: ::Array[Types::StringFilter]
1507
1546
  attr_accessor cloud_provider: ::Array[Types::StringFilter]
1508
1547
  attr_accessor cloud_provider_region: ::Array[Types::StringFilter]
1509
1548
  attr_accessor cloud_provider_account_id: ::Array[Types::StringFilter]
@@ -1600,7 +1639,7 @@ module Aws::Inspector2
1600
1639
  end
1601
1640
 
1602
1641
  class FreeTrialInfo
1603
- attr_accessor type: ("EC2" | "ECR" | "LAMBDA" | "LAMBDA_CODE" | "CODE_REPOSITORY" | "VM" | "CONTAINER_IMAGE" | "SERVERLESS_FUNCTION")
1642
+ attr_accessor type: ("EC2" | "ECR" | "LAMBDA" | "LAMBDA_CODE" | "CODE_REPOSITORY" | "VM" | "CONTAINER_IMAGE" | "SERVERLESS_FUNCTION" | "MACHINE_IMAGE")
1604
1643
  attr_accessor start: ::Time
1605
1644
  attr_accessor end: ::Time
1606
1645
  attr_accessor status: ("ACTIVE" | "INACTIVE")
@@ -1721,6 +1760,7 @@ module Aws::Inspector2
1721
1760
  class GetConfigurationResponse
1722
1761
  attr_accessor ecr_configuration: Types::EcrConfigurationState
1723
1762
  attr_accessor ec2_configuration: Types::Ec2ConfigurationState
1763
+ attr_accessor ami_configuration: Types::AmiConfigurationState
1724
1764
  SENSITIVE: []
1725
1765
  end
1726
1766
 
@@ -1745,7 +1785,7 @@ module Aws::Inspector2
1745
1785
 
1746
1786
  class GetEncryptionKeyRequest
1747
1787
  attr_accessor scan_type: ("NETWORK" | "PACKAGE" | "CODE")
1748
- attr_accessor resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY" | "Microsoft.Compute/virtualMachines" | "Microsoft.ContainerRegistry/registry/containerImage" | "Microsoft.Web/sites")
1788
+ attr_accessor resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY" | "Microsoft.Compute/virtualMachines" | "Microsoft.ContainerRegistry/registry/containerImage" | "Microsoft.Web/sites" | "MACHINE_IMAGE")
1749
1789
  SENSITIVE: []
1750
1790
  end
1751
1791
 
@@ -1779,6 +1819,24 @@ module Aws::Inspector2
1779
1819
  SENSITIVE: []
1780
1820
  end
1781
1821
 
1822
+ class GetOnDemandScanStatusRequest
1823
+ attr_accessor resource_id: ::String
1824
+ attr_accessor scan_id: ::String
1825
+ attr_accessor resource_type: ("AMI")
1826
+ SENSITIVE: []
1827
+ end
1828
+
1829
+ class GetOnDemandScanStatusResponse
1830
+ attr_accessor scan_id: ::String
1831
+ attr_accessor resource_id: ::String
1832
+ attr_accessor resource_type: ("AMI")
1833
+ attr_accessor scan_status: ("IN_PROGRESS" | "SUCCESSFUL" | "FAILED")
1834
+ attr_accessor scan_status_reason: ("ACCESS_DENIED" | "INTERNAL_ERROR" | "STORAGE_LIMIT_EXCEEDED" | "EXTRACTION_COLLECTION_TIME_LIMIT_EXCEEDED" | "UNSUPPORTED_OS" | "RESOURCE_TERMINATED")
1835
+ attr_accessor started_at: ::Time
1836
+ attr_accessor completed_at: ::Time
1837
+ SENSITIVE: []
1838
+ end
1839
+
1782
1840
  class GetSbomExportRequest
1783
1841
  attr_accessor report_id: ::String
1784
1842
  SENSITIVE: []
@@ -2158,6 +2216,20 @@ module Aws::Inspector2
2158
2216
  SENSITIVE: []
2159
2217
  end
2160
2218
 
2219
+ class ListOnDemandScansRequest
2220
+ attr_accessor resource_id: ::String
2221
+ attr_accessor resource_type: ("AMI")
2222
+ attr_accessor max_results: ::Integer
2223
+ attr_accessor next_token: ::String
2224
+ SENSITIVE: []
2225
+ end
2226
+
2227
+ class ListOnDemandScansResponse
2228
+ attr_accessor items: ::Array[Types::OnDemandScan]
2229
+ attr_accessor next_token: ::String
2230
+ SENSITIVE: []
2231
+ end
2232
+
2161
2233
  class ListTagsForResourceRequest
2162
2234
  attr_accessor resource_arn: ::String
2163
2235
  SENSITIVE: []
@@ -2181,6 +2253,27 @@ module Aws::Inspector2
2181
2253
  SENSITIVE: []
2182
2254
  end
2183
2255
 
2256
+ class MachineImageDetails
2257
+ attr_accessor machine_image_id: ::String
2258
+ attr_accessor name: ::String
2259
+ attr_accessor owner_account_id: ::String
2260
+ attr_accessor platform: ::String
2261
+ attr_accessor architecture: ("X86_64" | "ARM64")
2262
+ attr_accessor creation_date: ::Time
2263
+ attr_accessor state: ::String
2264
+ attr_accessor is_public: bool
2265
+ attr_accessor root_device_type: ::String
2266
+ attr_accessor virtualization_type: ::String
2267
+ attr_accessor source_resource_id: ::String
2268
+ SENSITIVE: []
2269
+ end
2270
+
2271
+ class MachineImageMetadata
2272
+ attr_accessor tags: ::Hash[::String, ::String]
2273
+ attr_accessor platform: ("WINDOWS" | "LINUX" | "UNKNOWN")
2274
+ SENSITIVE: []
2275
+ end
2276
+
2184
2277
  class MapFilter
2185
2278
  attr_accessor comparison: ("EQUALS")
2186
2279
  attr_accessor key: ::String
@@ -2233,6 +2326,17 @@ module Aws::Inspector2
2233
2326
  SENSITIVE: []
2234
2327
  end
2235
2328
 
2329
+ class OnDemandScan
2330
+ attr_accessor scan_id: ::String
2331
+ attr_accessor resource_id: ::String
2332
+ attr_accessor resource_type: ("AMI")
2333
+ attr_accessor scan_status: ("IN_PROGRESS" | "SUCCESSFUL" | "FAILED")
2334
+ attr_accessor scan_status_reason: ("ACCESS_DENIED" | "INTERNAL_ERROR" | "STORAGE_LIMIT_EXCEEDED" | "EXTRACTION_COLLECTION_TIME_LIMIT_EXCEEDED" | "UNSUPPORTED_OS" | "RESOURCE_TERMINATED")
2335
+ attr_accessor started_at: ::Time
2336
+ attr_accessor completed_at: ::Time
2337
+ SENSITIVE: []
2338
+ end
2339
+
2236
2340
  class OneTimeSchedule < Aws::EmptyStructure
2237
2341
  end
2238
2342
 
@@ -2379,7 +2483,7 @@ module Aws::Inspector2
2379
2483
 
2380
2484
  class ResetEncryptionKeyRequest
2381
2485
  attr_accessor scan_type: ("NETWORK" | "PACKAGE" | "CODE")
2382
- attr_accessor resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY" | "Microsoft.Compute/virtualMachines" | "Microsoft.ContainerRegistry/registry/containerImage" | "Microsoft.Web/sites")
2486
+ attr_accessor resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY" | "Microsoft.Compute/virtualMachines" | "Microsoft.ContainerRegistry/registry/containerImage" | "Microsoft.Web/sites" | "MACHINE_IMAGE")
2383
2487
  SENSITIVE: []
2384
2488
  end
2385
2489
 
@@ -2387,7 +2491,7 @@ module Aws::Inspector2
2387
2491
  end
2388
2492
 
2389
2493
  class Resource
2390
- attr_accessor type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY" | "Microsoft.Compute/virtualMachines" | "Microsoft.ContainerRegistry/registry/containerImage" | "Microsoft.Web/sites")
2494
+ attr_accessor type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY" | "Microsoft.Compute/virtualMachines" | "Microsoft.ContainerRegistry/registry/containerImage" | "Microsoft.Web/sites" | "MACHINE_IMAGE")
2391
2495
  attr_accessor id: ::String
2392
2496
  attr_accessor partition: ::String
2393
2497
  attr_accessor region: ::String
@@ -2404,6 +2508,7 @@ module Aws::Inspector2
2404
2508
  attr_accessor aws_ecr_container_image: Types::AwsEcrContainerImageDetails
2405
2509
  attr_accessor aws_lambda_function: Types::AwsLambdaFunctionDetails
2406
2510
  attr_accessor code_repository: Types::CodeRepositoryDetails
2511
+ attr_accessor machine_image: Types::MachineImageDetails
2407
2512
  attr_accessor vm: Types::Vm
2408
2513
  attr_accessor image: Types::Image
2409
2514
  attr_accessor serverless_function: Types::ServerlessFunction
@@ -2456,6 +2561,7 @@ module Aws::Inspector2
2456
2561
  attr_accessor container_repository: Types::ContainerRepositoryMetadata
2457
2562
  attr_accessor container_registry: Types::ContainerRegistryMetadata
2458
2563
  attr_accessor serverless_function: Types::ServerlessFunctionMetadata
2564
+ attr_accessor machine_image: Types::MachineImageMetadata
2459
2565
  SENSITIVE: []
2460
2566
  end
2461
2567
 
@@ -2465,6 +2571,7 @@ module Aws::Inspector2
2465
2571
  attr_accessor lambda: Types::State
2466
2572
  attr_accessor lambda_code: Types::State
2467
2573
  attr_accessor code_repository: Types::State
2574
+ attr_accessor ami: Types::State
2468
2575
  SENSITIVE: []
2469
2576
  end
2470
2577
 
@@ -2474,6 +2581,7 @@ module Aws::Inspector2
2474
2581
  attr_accessor lambda: ("ENABLING" | "ENABLED" | "DISABLING" | "DISABLED" | "SUSPENDING" | "SUSPENDED")
2475
2582
  attr_accessor lambda_code: ("ENABLING" | "ENABLED" | "DISABLING" | "DISABLED" | "SUSPENDING" | "SUSPENDED")
2476
2583
  attr_accessor code_repository: ("ENABLING" | "ENABLED" | "DISABLING" | "DISABLED" | "SUSPENDING" | "SUSPENDED")
2584
+ attr_accessor ami: ("ENABLING" | "ENABLED" | "DISABLING" | "DISABLED" | "SUSPENDING" | "SUSPENDED")
2477
2585
  SENSITIVE: []
2478
2586
  end
2479
2587
 
@@ -2485,7 +2593,7 @@ module Aws::Inspector2
2485
2593
 
2486
2594
  class ScanStatus
2487
2595
  attr_accessor status_code: ("ACTIVE" | "INACTIVE")
2488
- attr_accessor reason: ("PENDING_INITIAL_SCAN" | "ACCESS_DENIED" | "INTERNAL_ERROR" | "UNMANAGED_EC2_INSTANCE" | "UNSUPPORTED_OS" | "SCAN_ELIGIBILITY_EXPIRED" | "RESOURCE_TERMINATED" | "SUCCESSFUL" | "NO_RESOURCES_FOUND" | "IMAGE_SIZE_EXCEEDED" | "SCAN_FREQUENCY_MANUAL" | "SCAN_FREQUENCY_SCAN_ON_PUSH" | "EC2_INSTANCE_STOPPED" | "PENDING_DISABLE" | "NO_INVENTORY" | "STALE_INVENTORY" | "EXCLUDED_BY_TAG" | "UNSUPPORTED_RUNTIME" | "UNSUPPORTED_MEDIA_TYPE" | "UNSUPPORTED_CONFIG_FILE" | "DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED" | "DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED" | "DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED" | "DEEP_INSPECTION_NO_INVENTORY" | "AGENTLESS_INSTANCE_STORAGE_LIMIT_EXCEEDED" | "AGENTLESS_INSTANCE_COLLECTION_TIME_LIMIT_EXCEEDED" | "PENDING_REVIVAL_SCAN" | "INTEGRATION_CONNECTION_LOST" | "ACCESS_DENIED_TO_ENCRYPTION_KEY" | "UNSUPPORTED_LANGUAGE" | "NO_SCAN_CONFIGURATION_ASSOCIATED" | "SCAN_IN_PROGRESS" | "IMAGE_ARCHIVED" | "UNSUPPORTED_CODE_ARTIFACTS" | "RESOURCE_UNMANAGED" | "RESOURCE_STOPPED")
2596
+ attr_accessor reason: ("PENDING_INITIAL_SCAN" | "ACCESS_DENIED" | "INTERNAL_ERROR" | "UNMANAGED_EC2_INSTANCE" | "UNSUPPORTED_OS" | "SCAN_ELIGIBILITY_EXPIRED" | "RESOURCE_TERMINATED" | "SUCCESSFUL" | "NO_RESOURCES_FOUND" | "IMAGE_SIZE_EXCEEDED" | "SCAN_FREQUENCY_MANUAL" | "SCAN_FREQUENCY_SCAN_ON_PUSH" | "EC2_INSTANCE_STOPPED" | "PENDING_DISABLE" | "NO_INVENTORY" | "STALE_INVENTORY" | "EXCLUDED_BY_TAG" | "UNSUPPORTED_RUNTIME" | "UNSUPPORTED_MEDIA_TYPE" | "UNSUPPORTED_CONFIG_FILE" | "DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED" | "DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED" | "DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED" | "DEEP_INSPECTION_NO_INVENTORY" | "AGENTLESS_INSTANCE_STORAGE_LIMIT_EXCEEDED" | "AGENTLESS_INSTANCE_COLLECTION_TIME_LIMIT_EXCEEDED" | "PENDING_REVIVAL_SCAN" | "INTEGRATION_CONNECTION_LOST" | "ACCESS_DENIED_TO_ENCRYPTION_KEY" | "UNSUPPORTED_LANGUAGE" | "NO_SCAN_CONFIGURATION_ASSOCIATED" | "SCAN_IN_PROGRESS" | "IMAGE_ARCHIVED" | "UNSUPPORTED_CODE_ARTIFACTS" | "RESOURCE_UNMANAGED" | "RESOURCE_STOPPED" | "EXTRACTION_COLLECTION_TIME_LIMIT_EXCEEDED" | "STORAGE_LIMIT_EXCEEDED" | "INVALID_ARTIFACT")
2489
2597
  SENSITIVE: []
2490
2598
  end
2491
2599
 
@@ -2669,6 +2777,18 @@ module Aws::Inspector2
2669
2777
  SENSITIVE: []
2670
2778
  end
2671
2779
 
2780
+ class StartOnDemandScanRequest
2781
+ attr_accessor resource_id: ::String
2782
+ attr_accessor resource_type: ("AMI")
2783
+ attr_accessor client_token: ::String
2784
+ SENSITIVE: []
2785
+ end
2786
+
2787
+ class StartOnDemandScanResponse
2788
+ attr_accessor scan_id: ::String
2789
+ SENSITIVE: []
2790
+ end
2791
+
2672
2792
  class State
2673
2793
  attr_accessor status: ("ENABLING" | "ENABLED" | "DISABLING" | "DISABLED" | "SUSPENDING" | "SUSPENDED")
2674
2794
  attr_accessor error_code: ("ALREADY_ENABLED" | "ENABLE_IN_PROGRESS" | "DISABLE_IN_PROGRESS" | "SUSPEND_IN_PROGRESS" | "RESOURCE_NOT_FOUND" | "ACCESS_DENIED" | "INTERNAL_ERROR" | "SSM_UNAVAILABLE" | "SSM_THROTTLED" | "EVENTBRIDGE_UNAVAILABLE" | "EVENTBRIDGE_THROTTLED" | "RESOURCE_SCAN_NOT_DISABLED" | "DISASSOCIATE_ALL_MEMBERS" | "ACCOUNT_IS_ISOLATED" | "EC2_SSM_RESOURCE_DATA_SYNC_LIMIT_EXCEEDED" | "EC2_SSM_ASSOCIATION_VERSION_LIMIT_EXCEEDED" | "BLOCKED_BY_ORGANIZATION_POLICY")
@@ -2841,6 +2961,7 @@ module Aws::Inspector2
2841
2961
  class UpdateConfigurationInheritance
2842
2962
  attr_accessor ec2_configuration: ("INHERIT_FROM_ADMIN")
2843
2963
  attr_accessor ecr_configuration: ("INHERIT_FROM_ADMIN")
2964
+ attr_accessor ami_configuration: ("INHERIT_FROM_ADMIN")
2844
2965
  SENSITIVE: []
2845
2966
  end
2846
2967
 
@@ -2848,6 +2969,7 @@ module Aws::Inspector2
2848
2969
  attr_accessor account_id: ::String
2849
2970
  attr_accessor ecr_configuration: Types::EcrConfiguration
2850
2971
  attr_accessor ec2_configuration: Types::Ec2Configuration
2972
+ attr_accessor ami_configuration: Types::AmiConfiguration
2851
2973
  attr_accessor update_configuration_inheritance: Types::UpdateConfigurationInheritance
2852
2974
  SENSITIVE: []
2853
2975
  end
@@ -2893,7 +3015,7 @@ module Aws::Inspector2
2893
3015
  class UpdateEncryptionKeyRequest
2894
3016
  attr_accessor kms_key_id: ::String
2895
3017
  attr_accessor scan_type: ("NETWORK" | "PACKAGE" | "CODE")
2896
- attr_accessor resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY" | "Microsoft.Compute/virtualMachines" | "Microsoft.ContainerRegistry/registry/containerImage" | "Microsoft.Web/sites")
3018
+ attr_accessor resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY" | "Microsoft.Compute/virtualMachines" | "Microsoft.ContainerRegistry/registry/containerImage" | "Microsoft.Web/sites" | "MACHINE_IMAGE")
2897
3019
  SENSITIVE: []
2898
3020
  end
2899
3021
 
@@ -2959,7 +3081,7 @@ module Aws::Inspector2
2959
3081
  end
2960
3082
 
2961
3083
  class Usage
2962
- attr_accessor type: ("EC2_INSTANCE_HOURS" | "ECR_INITIAL_SCAN" | "ECR_RESCAN" | "LAMBDA_FUNCTION_HOURS" | "LAMBDA_FUNCTION_CODE_HOURS" | "CODE_REPOSITORY_SAST" | "CODE_REPOSITORY_IAC" | "CODE_REPOSITORY_SCA" | "EC2_AGENTLESS_INSTANCE_HOURS" | "AZURE_CONTAINER_IMAGE_INITIAL_SCAN" | "AZURE_CONTAINER_IMAGE_RESCAN" | "AZURE_VM_AGENT_BASED_INSTANCE_HOURS" | "AZURE_SERVERLESS_FUNCTION_HOURS")
3084
+ attr_accessor type: ("EC2_INSTANCE_HOURS" | "ECR_INITIAL_SCAN" | "ECR_RESCAN" | "LAMBDA_FUNCTION_HOURS" | "LAMBDA_FUNCTION_CODE_HOURS" | "CODE_REPOSITORY_SAST" | "CODE_REPOSITORY_IAC" | "CODE_REPOSITORY_SCA" | "EC2_AGENTLESS_INSTANCE_HOURS" | "AZURE_CONTAINER_IMAGE_INITIAL_SCAN" | "AZURE_CONTAINER_IMAGE_RESCAN" | "AZURE_VM_AGENT_BASED_INSTANCE_HOURS" | "AZURE_SERVERLESS_FUNCTION_HOURS" | "EC2_AMI_HOURS")
2963
3085
  attr_accessor total: ::Float
2964
3086
  attr_accessor estimated_monthly_cost: ::Float
2965
3087
  attr_accessor currency: ("USD")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-inspector2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.86.0
4
+ version: 1.88.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
@@ -18,7 +18,7 @@ dependencies:
18
18
  version: '3'
19
19
  - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: 3.258.0
21
+ version: 3.260.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -28,7 +28,7 @@ dependencies:
28
28
  version: '3'
29
29
  - - ">="
30
30
  - !ruby/object:Gem::Version
31
- version: 3.258.0
31
+ version: 3.260.0
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: aws-sigv4
34
34
  requirement: !ruby/object:Gem::Requirement