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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-inspector2/client.rb +350 -10
- data/lib/aws-sdk-inspector2/client_api.rb +178 -0
- data/lib/aws-sdk-inspector2/types.rb +512 -9
- data/lib/aws-sdk-inspector2.rb +1 -1
- data/sig/client.rbs +73 -8
- data/sig/params.rbs +31 -0
- data/sig/types.rbs +130 -8
- metadata +3 -3
|
@@ -390,12 +390,17 @@ module Aws::Inspector2
|
|
|
390
390
|
# The value to sort results by.
|
|
391
391
|
# @return [String]
|
|
392
392
|
#
|
|
393
|
+
# @!attribute [rw] scan_sources
|
|
394
|
+
# The scan sources to filter the aggregation results by.
|
|
395
|
+
# @return [Array<String>]
|
|
396
|
+
#
|
|
393
397
|
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/AmiAggregation AWS API Documentation
|
|
394
398
|
#
|
|
395
399
|
class AmiAggregation < Struct.new(
|
|
396
400
|
:amis,
|
|
397
401
|
:sort_order,
|
|
398
|
-
:sort_by
|
|
402
|
+
:sort_by,
|
|
403
|
+
:scan_sources)
|
|
399
404
|
SENSITIVE = []
|
|
400
405
|
include Aws::Structure
|
|
401
406
|
end
|
|
@@ -457,6 +462,11 @@ module Aws::Inspector2
|
|
|
457
462
|
# The IDs of Amazon EC2 instances using this AMI.
|
|
458
463
|
# @return [Integer]
|
|
459
464
|
#
|
|
465
|
+
# @!attribute [rw] scan_source
|
|
466
|
+
# The source of the scan that generated the findings for the Amazon
|
|
467
|
+
# Machine Image (AMI).
|
|
468
|
+
# @return [String]
|
|
469
|
+
#
|
|
460
470
|
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/AmiAggregationResponse AWS API Documentation
|
|
461
471
|
#
|
|
462
472
|
class AmiAggregationResponse < Struct.new(
|
|
@@ -468,7 +478,126 @@ module Aws::Inspector2
|
|
|
468
478
|
:cloud_org_id,
|
|
469
479
|
:cloud_account_id,
|
|
470
480
|
:severity_counts,
|
|
471
|
-
:affected_instances
|
|
481
|
+
:affected_instances,
|
|
482
|
+
:scan_source)
|
|
483
|
+
SENSITIVE = []
|
|
484
|
+
include Aws::Structure
|
|
485
|
+
end
|
|
486
|
+
|
|
487
|
+
# The configuration that controls how Amazon Machine Images (AMIs) are
|
|
488
|
+
# scanned for an account.
|
|
489
|
+
#
|
|
490
|
+
# @!attribute [rw] last_launched_within
|
|
491
|
+
# Restricts scanning to AMIs that were last launched within the
|
|
492
|
+
# specified duration.
|
|
493
|
+
# @return [String]
|
|
494
|
+
#
|
|
495
|
+
# @!attribute [rw] created_within
|
|
496
|
+
# Restricts scanning to AMIs that were created within the specified
|
|
497
|
+
# duration.
|
|
498
|
+
# @return [String]
|
|
499
|
+
#
|
|
500
|
+
# @!attribute [rw] scan_mode_configuration
|
|
501
|
+
# The scan mode configuration that determines which AMIs are scanned.
|
|
502
|
+
# @return [Types::AmiScanModeConfiguration]
|
|
503
|
+
#
|
|
504
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/AmiConfiguration AWS API Documentation
|
|
505
|
+
#
|
|
506
|
+
class AmiConfiguration < Struct.new(
|
|
507
|
+
:last_launched_within,
|
|
508
|
+
:created_within,
|
|
509
|
+
:scan_mode_configuration)
|
|
510
|
+
SENSITIVE = []
|
|
511
|
+
include Aws::Structure
|
|
512
|
+
end
|
|
513
|
+
|
|
514
|
+
# The current state of the Amazon Machine Image (AMI) scan configuration
|
|
515
|
+
# for an account.
|
|
516
|
+
#
|
|
517
|
+
# @!attribute [rw] last_launched_within
|
|
518
|
+
# Restricts scanning to AMIs that were last launched within the
|
|
519
|
+
# specified duration.
|
|
520
|
+
# @return [String]
|
|
521
|
+
#
|
|
522
|
+
# @!attribute [rw] created_within
|
|
523
|
+
# Restricts scanning to AMIs that were created within the specified
|
|
524
|
+
# duration.
|
|
525
|
+
# @return [String]
|
|
526
|
+
#
|
|
527
|
+
# @!attribute [rw] scan_mode_configuration
|
|
528
|
+
# The scan mode configuration that determines which AMIs are scanned.
|
|
529
|
+
# @return [Types::AmiScanModeConfiguration]
|
|
530
|
+
#
|
|
531
|
+
# @!attribute [rw] status
|
|
532
|
+
# The status of the AMI scan configuration.
|
|
533
|
+
# @return [String]
|
|
534
|
+
#
|
|
535
|
+
# @!attribute [rw] updated_at
|
|
536
|
+
# The date and time when the AMI scan configuration was last updated.
|
|
537
|
+
# @return [Time]
|
|
538
|
+
#
|
|
539
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/AmiConfigurationState AWS API Documentation
|
|
540
|
+
#
|
|
541
|
+
class AmiConfigurationState < Struct.new(
|
|
542
|
+
:last_launched_within,
|
|
543
|
+
:created_within,
|
|
544
|
+
:scan_mode_configuration,
|
|
545
|
+
:status,
|
|
546
|
+
:updated_at)
|
|
547
|
+
SENSITIVE = []
|
|
548
|
+
include Aws::Structure
|
|
549
|
+
end
|
|
550
|
+
|
|
551
|
+
# The scan mode configuration that determines which Amazon Machine
|
|
552
|
+
# Images (AMIs) are scanned.
|
|
553
|
+
#
|
|
554
|
+
# @!attribute [rw] scan_mode
|
|
555
|
+
# The scan mode that determines whether all AMIs are scanned or only
|
|
556
|
+
# those matching the specified tags.
|
|
557
|
+
# @return [String]
|
|
558
|
+
#
|
|
559
|
+
# @!attribute [rw] tags
|
|
560
|
+
# The tag filters used to select which AMIs are scanned when using
|
|
561
|
+
# targeted scanning.
|
|
562
|
+
# @return [Array<Types::AmiTagFilter>]
|
|
563
|
+
#
|
|
564
|
+
# @!attribute [rw] exclude_copied_amis
|
|
565
|
+
# Whether to exclude AMIs that are copies of other AMIs from scanning.
|
|
566
|
+
# @return [Boolean]
|
|
567
|
+
#
|
|
568
|
+
# @!attribute [rw] exclude_backup_dlm_amis
|
|
569
|
+
# Whether to exclude AMIs created by Amazon Data Lifecycle Manager
|
|
570
|
+
# (DLM) backups from scanning.
|
|
571
|
+
# @return [Boolean]
|
|
572
|
+
#
|
|
573
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/AmiScanModeConfiguration AWS API Documentation
|
|
574
|
+
#
|
|
575
|
+
class AmiScanModeConfiguration < Struct.new(
|
|
576
|
+
:scan_mode,
|
|
577
|
+
:tags,
|
|
578
|
+
:exclude_copied_amis,
|
|
579
|
+
:exclude_backup_dlm_amis)
|
|
580
|
+
SENSITIVE = []
|
|
581
|
+
include Aws::Structure
|
|
582
|
+
end
|
|
583
|
+
|
|
584
|
+
# A filter that matches Amazon Machine Images (AMIs) by tag key and,
|
|
585
|
+
# optionally, tag value.
|
|
586
|
+
#
|
|
587
|
+
# @!attribute [rw] key
|
|
588
|
+
# The tag key to match against an AMI's tags.
|
|
589
|
+
# @return [String]
|
|
590
|
+
#
|
|
591
|
+
# @!attribute [rw] value
|
|
592
|
+
# The tag value to match against an AMI's tags. If omitted, the
|
|
593
|
+
# filter matches on the tag key alone.
|
|
594
|
+
# @return [String]
|
|
595
|
+
#
|
|
596
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/AmiTagFilter AWS API Documentation
|
|
597
|
+
#
|
|
598
|
+
class AmiTagFilter < Struct.new(
|
|
599
|
+
:key,
|
|
600
|
+
:value)
|
|
472
601
|
SENSITIVE = []
|
|
473
602
|
include Aws::Structure
|
|
474
603
|
end
|
|
@@ -584,6 +713,12 @@ module Aws::Inspector2
|
|
|
584
713
|
# for new members of your Amazon Inspector organization.
|
|
585
714
|
# @return [Boolean]
|
|
586
715
|
#
|
|
716
|
+
# @!attribute [rw] ami
|
|
717
|
+
# Represents whether Amazon Machine Image (AMI) scans are
|
|
718
|
+
# automatically enabled for new members of your Amazon Inspector
|
|
719
|
+
# organization.
|
|
720
|
+
# @return [Boolean]
|
|
721
|
+
#
|
|
587
722
|
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/AutoEnable AWS API Documentation
|
|
588
723
|
#
|
|
589
724
|
class AutoEnable < Struct.new(
|
|
@@ -591,7 +726,8 @@ module Aws::Inspector2
|
|
|
591
726
|
:ecr,
|
|
592
727
|
:lambda,
|
|
593
728
|
:lambda_code,
|
|
594
|
-
:code_repository
|
|
729
|
+
:code_repository,
|
|
730
|
+
:ami)
|
|
595
731
|
SENSITIVE = []
|
|
596
732
|
include Aws::Structure
|
|
597
733
|
end
|
|
@@ -3384,6 +3520,10 @@ module Aws::Inspector2
|
|
|
3384
3520
|
# filtered by runtime.
|
|
3385
3521
|
# @return [Array<Types::CoverageStringFilter>]
|
|
3386
3522
|
#
|
|
3523
|
+
# @!attribute [rw] machine_image_tags
|
|
3524
|
+
# The machine image tags to filter coverage results by.
|
|
3525
|
+
# @return [Array<Types::CoverageMapFilter>]
|
|
3526
|
+
#
|
|
3387
3527
|
# @!attribute [rw] last_scanned_at
|
|
3388
3528
|
# Filters Amazon Web Services resources based on whether Amazon
|
|
3389
3529
|
# Inspector has checked them for vulnerabilities within the specified
|
|
@@ -3486,6 +3626,7 @@ module Aws::Inspector2
|
|
|
3486
3626
|
:lambda_function_name,
|
|
3487
3627
|
:lambda_function_tags,
|
|
3488
3628
|
:lambda_function_runtime,
|
|
3629
|
+
:machine_image_tags,
|
|
3489
3630
|
:last_scanned_at,
|
|
3490
3631
|
:scan_mode,
|
|
3491
3632
|
:image_pulled_at,
|
|
@@ -4415,12 +4556,19 @@ module Aws::Inspector2
|
|
|
4415
4556
|
# The ARN of the KMS key used to encrypt data when exporting findings.
|
|
4416
4557
|
# @return [String]
|
|
4417
4558
|
#
|
|
4559
|
+
# @!attribute [rw] expected_bucket_owner
|
|
4560
|
+
# The Amazon Web Services account ID of the expected owner of the
|
|
4561
|
+
# Amazon S3 bucket. If the actual bucket owner does not match, the
|
|
4562
|
+
# export request fails.
|
|
4563
|
+
# @return [String]
|
|
4564
|
+
#
|
|
4418
4565
|
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/Destination AWS API Documentation
|
|
4419
4566
|
#
|
|
4420
4567
|
class Destination < Struct.new(
|
|
4421
4568
|
:bucket_name,
|
|
4422
4569
|
:key_prefix,
|
|
4423
|
-
:kms_key_arn
|
|
4570
|
+
:kms_key_arn,
|
|
4571
|
+
:expected_bucket_owner)
|
|
4424
4572
|
SENSITIVE = []
|
|
4425
4573
|
include Aws::Structure
|
|
4426
4574
|
end
|
|
@@ -5398,6 +5546,24 @@ module Aws::Inspector2
|
|
|
5398
5546
|
# (such as GitHub, GitLab, etc.).
|
|
5399
5547
|
# @return [Array<Types::StringFilter>]
|
|
5400
5548
|
#
|
|
5549
|
+
# @!attribute [rw] machine_image_id
|
|
5550
|
+
# The ID of the Amazon Machine Image (AMI) used to filter findings.
|
|
5551
|
+
# @return [Array<Types::StringFilter>]
|
|
5552
|
+
#
|
|
5553
|
+
# @!attribute [rw] machine_image_name
|
|
5554
|
+
# The name of the Amazon Machine Image (AMI) used to filter findings.
|
|
5555
|
+
# @return [Array<Types::StringFilter>]
|
|
5556
|
+
#
|
|
5557
|
+
# @!attribute [rw] machine_image_owner_account_id
|
|
5558
|
+
# The ID of the Amazon Web Services account that owns the Amazon
|
|
5559
|
+
# Machine Image (AMI) used to filter findings.
|
|
5560
|
+
# @return [Array<Types::StringFilter>]
|
|
5561
|
+
#
|
|
5562
|
+
# @!attribute [rw] machine_image_platform
|
|
5563
|
+
# The platform of the Amazon Machine Image (AMI) used to filter
|
|
5564
|
+
# findings.
|
|
5565
|
+
# @return [Array<Types::StringFilter>]
|
|
5566
|
+
#
|
|
5401
5567
|
# @!attribute [rw] cloud_provider
|
|
5402
5568
|
# Filter criteria for the cloud provider.
|
|
5403
5569
|
# @return [Array<Types::StringFilter>]
|
|
@@ -5523,6 +5689,10 @@ module Aws::Inspector2
|
|
|
5523
5689
|
:epss_score,
|
|
5524
5690
|
:code_repository_project_name,
|
|
5525
5691
|
:code_repository_provider_type,
|
|
5692
|
+
:machine_image_id,
|
|
5693
|
+
:machine_image_name,
|
|
5694
|
+
:machine_image_owner_account_id,
|
|
5695
|
+
:machine_image_platform,
|
|
5526
5696
|
:cloud_provider,
|
|
5527
5697
|
:cloud_provider_region,
|
|
5528
5698
|
:cloud_provider_account_id,
|
|
@@ -6340,11 +6510,17 @@ module Aws::Inspector2
|
|
|
6340
6510
|
# configured for your environment.
|
|
6341
6511
|
# @return [Types::Ec2ConfigurationState]
|
|
6342
6512
|
#
|
|
6513
|
+
# @!attribute [rw] ami_configuration
|
|
6514
|
+
# The current state of the Amazon Machine Image (AMI) scan
|
|
6515
|
+
# configuration for the account.
|
|
6516
|
+
# @return [Types::AmiConfigurationState]
|
|
6517
|
+
#
|
|
6343
6518
|
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/GetConfigurationResponse AWS API Documentation
|
|
6344
6519
|
#
|
|
6345
6520
|
class GetConfigurationResponse < Struct.new(
|
|
6346
6521
|
:ecr_configuration,
|
|
6347
|
-
:ec2_configuration
|
|
6522
|
+
:ec2_configuration,
|
|
6523
|
+
:ami_configuration)
|
|
6348
6524
|
SENSITIVE = []
|
|
6349
6525
|
include Aws::Structure
|
|
6350
6526
|
end
|
|
@@ -6507,6 +6683,75 @@ module Aws::Inspector2
|
|
|
6507
6683
|
include Aws::Structure
|
|
6508
6684
|
end
|
|
6509
6685
|
|
|
6686
|
+
# @!attribute [rw] resource_id
|
|
6687
|
+
# The ID of the resource whose on-demand scan status is being
|
|
6688
|
+
# requested.
|
|
6689
|
+
# @return [String]
|
|
6690
|
+
#
|
|
6691
|
+
# @!attribute [rw] scan_id
|
|
6692
|
+
# The unique identifier of the on-demand scan whose status is being
|
|
6693
|
+
# requested.
|
|
6694
|
+
# @return [String]
|
|
6695
|
+
#
|
|
6696
|
+
# @!attribute [rw] resource_type
|
|
6697
|
+
# The type of the resource whose on-demand scan status is being
|
|
6698
|
+
# requested.
|
|
6699
|
+
# @return [String]
|
|
6700
|
+
#
|
|
6701
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/GetOnDemandScanStatusRequest AWS API Documentation
|
|
6702
|
+
#
|
|
6703
|
+
class GetOnDemandScanStatusRequest < Struct.new(
|
|
6704
|
+
:resource_id,
|
|
6705
|
+
:scan_id,
|
|
6706
|
+
:resource_type)
|
|
6707
|
+
SENSITIVE = []
|
|
6708
|
+
include Aws::Structure
|
|
6709
|
+
end
|
|
6710
|
+
|
|
6711
|
+
# @!attribute [rw] scan_id
|
|
6712
|
+
# The unique identifier of the on-demand scan.
|
|
6713
|
+
# @return [String]
|
|
6714
|
+
#
|
|
6715
|
+
# @!attribute [rw] resource_id
|
|
6716
|
+
# The ID of the resource that was scanned.
|
|
6717
|
+
# @return [String]
|
|
6718
|
+
#
|
|
6719
|
+
# @!attribute [rw] resource_type
|
|
6720
|
+
# The type of the resource that was scanned.
|
|
6721
|
+
# @return [String]
|
|
6722
|
+
#
|
|
6723
|
+
# @!attribute [rw] scan_status
|
|
6724
|
+
# The current status of the on-demand scan.
|
|
6725
|
+
# @return [String]
|
|
6726
|
+
#
|
|
6727
|
+
# @!attribute [rw] scan_status_reason
|
|
6728
|
+
# The reason associated with the current on-demand scan status.
|
|
6729
|
+
# @return [String]
|
|
6730
|
+
#
|
|
6731
|
+
# @!attribute [rw] started_at
|
|
6732
|
+
# The date and time, in ISO 8601 format, when the on-demand scan
|
|
6733
|
+
# started.
|
|
6734
|
+
# @return [Time]
|
|
6735
|
+
#
|
|
6736
|
+
# @!attribute [rw] completed_at
|
|
6737
|
+
# The date and time, in ISO 8601 format, when the on-demand scan
|
|
6738
|
+
# completed. This field is absent if the scan has not completed.
|
|
6739
|
+
# @return [Time]
|
|
6740
|
+
#
|
|
6741
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/GetOnDemandScanStatusResponse AWS API Documentation
|
|
6742
|
+
#
|
|
6743
|
+
class GetOnDemandScanStatusResponse < Struct.new(
|
|
6744
|
+
:scan_id,
|
|
6745
|
+
:resource_id,
|
|
6746
|
+
:resource_type,
|
|
6747
|
+
:scan_status,
|
|
6748
|
+
:scan_status_reason,
|
|
6749
|
+
:started_at,
|
|
6750
|
+
:completed_at)
|
|
6751
|
+
SENSITIVE = []
|
|
6752
|
+
include Aws::Structure
|
|
6753
|
+
end
|
|
6754
|
+
|
|
6510
6755
|
# @!attribute [rw] report_id
|
|
6511
6756
|
# The report ID of the SBOM export to get details for.
|
|
6512
6757
|
# @return [String]
|
|
@@ -8012,6 +8257,54 @@ module Aws::Inspector2
|
|
|
8012
8257
|
include Aws::Structure
|
|
8013
8258
|
end
|
|
8014
8259
|
|
|
8260
|
+
# @!attribute [rw] resource_id
|
|
8261
|
+
# The ID of the resource whose on-demand scans are being listed.
|
|
8262
|
+
# @return [String]
|
|
8263
|
+
#
|
|
8264
|
+
# @!attribute [rw] resource_type
|
|
8265
|
+
# The type of the resource whose on-demand scans are being listed.
|
|
8266
|
+
# @return [String]
|
|
8267
|
+
#
|
|
8268
|
+
# @!attribute [rw] max_results
|
|
8269
|
+
# The maximum number of results to return in a single page of the
|
|
8270
|
+
# response.
|
|
8271
|
+
# @return [Integer]
|
|
8272
|
+
#
|
|
8273
|
+
# @!attribute [rw] next_token
|
|
8274
|
+
# A pagination token from a previous response used to retrieve the
|
|
8275
|
+
# next page of results.
|
|
8276
|
+
# @return [String]
|
|
8277
|
+
#
|
|
8278
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/ListOnDemandScansRequest AWS API Documentation
|
|
8279
|
+
#
|
|
8280
|
+
class ListOnDemandScansRequest < Struct.new(
|
|
8281
|
+
:resource_id,
|
|
8282
|
+
:resource_type,
|
|
8283
|
+
:max_results,
|
|
8284
|
+
:next_token)
|
|
8285
|
+
SENSITIVE = []
|
|
8286
|
+
include Aws::Structure
|
|
8287
|
+
end
|
|
8288
|
+
|
|
8289
|
+
# @!attribute [rw] items
|
|
8290
|
+
# The list of on-demand scans that match the request.
|
|
8291
|
+
# @return [Array<Types::OnDemandScan>]
|
|
8292
|
+
#
|
|
8293
|
+
# @!attribute [rw] next_token
|
|
8294
|
+
# A pagination token to use in a subsequent request to retrieve the
|
|
8295
|
+
# next page of results. This field is absent when there are no more
|
|
8296
|
+
# results.
|
|
8297
|
+
# @return [String]
|
|
8298
|
+
#
|
|
8299
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/ListOnDemandScansResponse AWS API Documentation
|
|
8300
|
+
#
|
|
8301
|
+
class ListOnDemandScansResponse < Struct.new(
|
|
8302
|
+
:items,
|
|
8303
|
+
:next_token)
|
|
8304
|
+
SENSITIVE = []
|
|
8305
|
+
include Aws::Structure
|
|
8306
|
+
end
|
|
8307
|
+
|
|
8015
8308
|
# @!attribute [rw] resource_arn
|
|
8016
8309
|
# The Amazon resource number (ARN) of the resource to list tags of.
|
|
8017
8310
|
# @return [String]
|
|
@@ -8084,6 +8377,90 @@ module Aws::Inspector2
|
|
|
8084
8377
|
include Aws::Structure
|
|
8085
8378
|
end
|
|
8086
8379
|
|
|
8380
|
+
# Details about a machine image resource scanned directly by Inspector.
|
|
8381
|
+
#
|
|
8382
|
+
# @!attribute [rw] machine_image_id
|
|
8383
|
+
# The machine image ID (e.g., ami-0abcdef1234567890)
|
|
8384
|
+
# @return [String]
|
|
8385
|
+
#
|
|
8386
|
+
# @!attribute [rw] name
|
|
8387
|
+
# Human-readable image name
|
|
8388
|
+
# @return [String]
|
|
8389
|
+
#
|
|
8390
|
+
# @!attribute [rw] owner_account_id
|
|
8391
|
+
# Account ID that owns the image
|
|
8392
|
+
# @return [String]
|
|
8393
|
+
#
|
|
8394
|
+
# @!attribute [rw] platform
|
|
8395
|
+
# OS platform (Linux/Windows)
|
|
8396
|
+
# @return [String]
|
|
8397
|
+
#
|
|
8398
|
+
# @!attribute [rw] architecture
|
|
8399
|
+
# CPU architecture (x86\_64/arm64)
|
|
8400
|
+
# @return [String]
|
|
8401
|
+
#
|
|
8402
|
+
# @!attribute [rw] creation_date
|
|
8403
|
+
# When the image was created
|
|
8404
|
+
# @return [Time]
|
|
8405
|
+
#
|
|
8406
|
+
# @!attribute [rw] state
|
|
8407
|
+
# Image state (available/pending/deregistered)
|
|
8408
|
+
# @return [String]
|
|
8409
|
+
#
|
|
8410
|
+
# @!attribute [rw] is_public
|
|
8411
|
+
# Whether the image is publicly shared
|
|
8412
|
+
# @return [Boolean]
|
|
8413
|
+
#
|
|
8414
|
+
# @!attribute [rw] root_device_type
|
|
8415
|
+
# Root device type (ebs/instance-store) — AWS-specific
|
|
8416
|
+
# @return [String]
|
|
8417
|
+
#
|
|
8418
|
+
# @!attribute [rw] virtualization_type
|
|
8419
|
+
# Virtualization type (hvm/paravirtual) — AWS-specific
|
|
8420
|
+
# @return [String]
|
|
8421
|
+
#
|
|
8422
|
+
# @!attribute [rw] source_resource_id
|
|
8423
|
+
# Source resource the image was created from (nullable)
|
|
8424
|
+
# @return [String]
|
|
8425
|
+
#
|
|
8426
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/MachineImageDetails AWS API Documentation
|
|
8427
|
+
#
|
|
8428
|
+
class MachineImageDetails < Struct.new(
|
|
8429
|
+
:machine_image_id,
|
|
8430
|
+
:name,
|
|
8431
|
+
:owner_account_id,
|
|
8432
|
+
:platform,
|
|
8433
|
+
:architecture,
|
|
8434
|
+
:creation_date,
|
|
8435
|
+
:state,
|
|
8436
|
+
:is_public,
|
|
8437
|
+
:root_device_type,
|
|
8438
|
+
:virtualization_type,
|
|
8439
|
+
:source_resource_id)
|
|
8440
|
+
SENSITIVE = []
|
|
8441
|
+
include Aws::Structure
|
|
8442
|
+
end
|
|
8443
|
+
|
|
8444
|
+
# Contains metadata about a machine image associated with a covered
|
|
8445
|
+
# resource.
|
|
8446
|
+
#
|
|
8447
|
+
# @!attribute [rw] tags
|
|
8448
|
+
# The tags associated with the machine image.
|
|
8449
|
+
# @return [Hash<String,String>]
|
|
8450
|
+
#
|
|
8451
|
+
# @!attribute [rw] platform
|
|
8452
|
+
# The platform of the machine image.
|
|
8453
|
+
# @return [String]
|
|
8454
|
+
#
|
|
8455
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/MachineImageMetadata AWS API Documentation
|
|
8456
|
+
#
|
|
8457
|
+
class MachineImageMetadata < Struct.new(
|
|
8458
|
+
:tags,
|
|
8459
|
+
:platform)
|
|
8460
|
+
SENSITIVE = []
|
|
8461
|
+
include Aws::Structure
|
|
8462
|
+
end
|
|
8463
|
+
|
|
8087
8464
|
# An object that describes details of a map filter.
|
|
8088
8465
|
#
|
|
8089
8466
|
# @!attribute [rw] comparison
|
|
@@ -8266,6 +8643,52 @@ module Aws::Inspector2
|
|
|
8266
8643
|
include Aws::Structure
|
|
8267
8644
|
end
|
|
8268
8645
|
|
|
8646
|
+
# Details of a single on-demand scan of a resource.
|
|
8647
|
+
#
|
|
8648
|
+
# @!attribute [rw] scan_id
|
|
8649
|
+
# The unique identifier of the on-demand scan.
|
|
8650
|
+
# @return [String]
|
|
8651
|
+
#
|
|
8652
|
+
# @!attribute [rw] resource_id
|
|
8653
|
+
# The ID of the resource that was scanned.
|
|
8654
|
+
# @return [String]
|
|
8655
|
+
#
|
|
8656
|
+
# @!attribute [rw] resource_type
|
|
8657
|
+
# The type of the resource that was scanned.
|
|
8658
|
+
# @return [String]
|
|
8659
|
+
#
|
|
8660
|
+
# @!attribute [rw] scan_status
|
|
8661
|
+
# The current status of the on-demand scan.
|
|
8662
|
+
# @return [String]
|
|
8663
|
+
#
|
|
8664
|
+
# @!attribute [rw] scan_status_reason
|
|
8665
|
+
# The reason associated with the current on-demand scan status.
|
|
8666
|
+
# @return [String]
|
|
8667
|
+
#
|
|
8668
|
+
# @!attribute [rw] started_at
|
|
8669
|
+
# The date and time, in ISO 8601 format, when the on-demand scan
|
|
8670
|
+
# started.
|
|
8671
|
+
# @return [Time]
|
|
8672
|
+
#
|
|
8673
|
+
# @!attribute [rw] completed_at
|
|
8674
|
+
# The date and time, in ISO 8601 format, when the on-demand scan
|
|
8675
|
+
# completed. This field is absent if the scan has not completed.
|
|
8676
|
+
# @return [Time]
|
|
8677
|
+
#
|
|
8678
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/OnDemandScan AWS API Documentation
|
|
8679
|
+
#
|
|
8680
|
+
class OnDemandScan < Struct.new(
|
|
8681
|
+
:scan_id,
|
|
8682
|
+
:resource_id,
|
|
8683
|
+
:resource_type,
|
|
8684
|
+
:scan_status,
|
|
8685
|
+
:scan_status_reason,
|
|
8686
|
+
:started_at,
|
|
8687
|
+
:completed_at)
|
|
8688
|
+
SENSITIVE = []
|
|
8689
|
+
include Aws::Structure
|
|
8690
|
+
end
|
|
8691
|
+
|
|
8269
8692
|
# A one time schedule.
|
|
8270
8693
|
#
|
|
8271
8694
|
# @api private
|
|
@@ -8883,6 +9306,11 @@ module Aws::Inspector2
|
|
|
8883
9306
|
# finding.
|
|
8884
9307
|
# @return [Types::CodeRepositoryDetails]
|
|
8885
9308
|
#
|
|
9309
|
+
# @!attribute [rw] machine_image
|
|
9310
|
+
# Details about a machine image resource scanned directly by
|
|
9311
|
+
# Inspector.
|
|
9312
|
+
# @return [Types::MachineImageDetails]
|
|
9313
|
+
#
|
|
8886
9314
|
# @!attribute [rw] vm
|
|
8887
9315
|
# An object that contains details about a VM instance involved in the
|
|
8888
9316
|
# finding.
|
|
@@ -8905,6 +9333,7 @@ module Aws::Inspector2
|
|
|
8905
9333
|
:aws_ecr_container_image,
|
|
8906
9334
|
:aws_lambda_function,
|
|
8907
9335
|
:code_repository,
|
|
9336
|
+
:machine_image,
|
|
8908
9337
|
:vm,
|
|
8909
9338
|
:image,
|
|
8910
9339
|
:serverless_function)
|
|
@@ -9109,6 +9538,10 @@ module Aws::Inspector2
|
|
|
9109
9538
|
# The serverless function metadata associated with a covered resource.
|
|
9110
9539
|
# @return [Types::ServerlessFunctionMetadata]
|
|
9111
9540
|
#
|
|
9541
|
+
# @!attribute [rw] machine_image
|
|
9542
|
+
# The machine image metadata associated with a covered resource.
|
|
9543
|
+
# @return [Types::MachineImageMetadata]
|
|
9544
|
+
#
|
|
9112
9545
|
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/ResourceScanMetadata AWS API Documentation
|
|
9113
9546
|
#
|
|
9114
9547
|
class ResourceScanMetadata < Struct.new(
|
|
@@ -9121,7 +9554,8 @@ module Aws::Inspector2
|
|
|
9121
9554
|
:container_image,
|
|
9122
9555
|
:container_repository,
|
|
9123
9556
|
:container_registry,
|
|
9124
|
-
:serverless_function
|
|
9557
|
+
:serverless_function,
|
|
9558
|
+
:machine_image)
|
|
9125
9559
|
SENSITIVE = []
|
|
9126
9560
|
include Aws::Structure
|
|
9127
9561
|
end
|
|
@@ -9154,6 +9588,11 @@ module Aws::Inspector2
|
|
|
9154
9588
|
# account.
|
|
9155
9589
|
# @return [Types::State]
|
|
9156
9590
|
#
|
|
9591
|
+
# @!attribute [rw] ami
|
|
9592
|
+
# An object that described the state of Amazon Inspector scans for an
|
|
9593
|
+
# account.
|
|
9594
|
+
# @return [Types::State]
|
|
9595
|
+
#
|
|
9157
9596
|
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/ResourceState AWS API Documentation
|
|
9158
9597
|
#
|
|
9159
9598
|
class ResourceState < Struct.new(
|
|
@@ -9161,7 +9600,8 @@ module Aws::Inspector2
|
|
|
9161
9600
|
:ecr,
|
|
9162
9601
|
:lambda,
|
|
9163
9602
|
:lambda_code,
|
|
9164
|
-
:code_repository
|
|
9603
|
+
:code_repository,
|
|
9604
|
+
:ami)
|
|
9165
9605
|
SENSITIVE = []
|
|
9166
9606
|
include Aws::Structure
|
|
9167
9607
|
end
|
|
@@ -9191,6 +9631,10 @@ module Aws::Inspector2
|
|
|
9191
9631
|
# The status of Amazon Inspector scanning for code repositories.
|
|
9192
9632
|
# @return [String]
|
|
9193
9633
|
#
|
|
9634
|
+
# @!attribute [rw] ami
|
|
9635
|
+
# The status of Amazon Machine Image (AMI) scanning for the account.
|
|
9636
|
+
# @return [String]
|
|
9637
|
+
#
|
|
9194
9638
|
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/ResourceStatus AWS API Documentation
|
|
9195
9639
|
#
|
|
9196
9640
|
class ResourceStatus < Struct.new(
|
|
@@ -9198,7 +9642,8 @@ module Aws::Inspector2
|
|
|
9198
9642
|
:ecr,
|
|
9199
9643
|
:lambda,
|
|
9200
9644
|
:lambda_code,
|
|
9201
|
-
:code_repository
|
|
9645
|
+
:code_repository,
|
|
9646
|
+
:ami)
|
|
9202
9647
|
SENSITIVE = []
|
|
9203
9648
|
include Aws::Structure
|
|
9204
9649
|
end
|
|
@@ -9278,6 +9723,9 @@ module Aws::Inspector2
|
|
|
9278
9723
|
# resolve the issue and resume the scanning. No action required from
|
|
9279
9724
|
# the user.
|
|
9280
9725
|
#
|
|
9726
|
+
# `INVALID_ARTIFACT` - Amazon Inspector couldn't scan this resource
|
|
9727
|
+
# because its artifact is malformed and couldn't be safely extracted.
|
|
9728
|
+
#
|
|
9281
9729
|
# `NO_INVENTORY` - Amazon Inspector couldn't find software
|
|
9282
9730
|
# application inventory to scan for vulnerabilities. This might be
|
|
9283
9731
|
# caused due to required Amazon Inspector associations being deleted
|
|
@@ -10019,6 +10467,45 @@ module Aws::Inspector2
|
|
|
10019
10467
|
include Aws::Structure
|
|
10020
10468
|
end
|
|
10021
10469
|
|
|
10470
|
+
# @!attribute [rw] resource_id
|
|
10471
|
+
# The ID of the resource to scan on demand.
|
|
10472
|
+
# @return [String]
|
|
10473
|
+
#
|
|
10474
|
+
# @!attribute [rw] resource_type
|
|
10475
|
+
# The type of the resource to scan on demand.
|
|
10476
|
+
# @return [String]
|
|
10477
|
+
#
|
|
10478
|
+
# @!attribute [rw] client_token
|
|
10479
|
+
# A unique, case-sensitive identifier that you provide to ensure the
|
|
10480
|
+
# idempotency of the request.
|
|
10481
|
+
#
|
|
10482
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
10483
|
+
# not need to pass this option.
|
|
10484
|
+
# @return [String]
|
|
10485
|
+
#
|
|
10486
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/StartOnDemandScanRequest AWS API Documentation
|
|
10487
|
+
#
|
|
10488
|
+
class StartOnDemandScanRequest < Struct.new(
|
|
10489
|
+
:resource_id,
|
|
10490
|
+
:resource_type,
|
|
10491
|
+
:client_token)
|
|
10492
|
+
SENSITIVE = []
|
|
10493
|
+
include Aws::Structure
|
|
10494
|
+
end
|
|
10495
|
+
|
|
10496
|
+
# @!attribute [rw] scan_id
|
|
10497
|
+
# The unique identifier assigned to the on-demand scan that was
|
|
10498
|
+
# started.
|
|
10499
|
+
# @return [String]
|
|
10500
|
+
#
|
|
10501
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/StartOnDemandScanResponse AWS API Documentation
|
|
10502
|
+
#
|
|
10503
|
+
class StartOnDemandScanResponse < Struct.new(
|
|
10504
|
+
:scan_id)
|
|
10505
|
+
SENSITIVE = []
|
|
10506
|
+
include Aws::Structure
|
|
10507
|
+
end
|
|
10508
|
+
|
|
10022
10509
|
# An object that described the state of Amazon Inspector scans for an
|
|
10023
10510
|
# account.
|
|
10024
10511
|
#
|
|
@@ -10593,11 +11080,21 @@ module Aws::Inspector2
|
|
|
10593
11080
|
# configuration is not changed.
|
|
10594
11081
|
# @return [String]
|
|
10595
11082
|
#
|
|
11083
|
+
# @!attribute [rw] ami_configuration
|
|
11084
|
+
# The inheritance behavior for a scan-type configuration. Used with
|
|
11085
|
+
# `UpdateConfigurationInheritance` to reset a member account's
|
|
11086
|
+
# configuration to inherit from the delegated administrator. The only
|
|
11087
|
+
# valid value is `INHERIT_FROM_ADMIN`, which resets the member
|
|
11088
|
+
# account's configuration so that it inherits scan settings from the
|
|
11089
|
+
# delegated administrator.
|
|
11090
|
+
# @return [String]
|
|
11091
|
+
#
|
|
10596
11092
|
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/UpdateConfigurationInheritance AWS API Documentation
|
|
10597
11093
|
#
|
|
10598
11094
|
class UpdateConfigurationInheritance < Struct.new(
|
|
10599
11095
|
:ec2_configuration,
|
|
10600
|
-
:ecr_configuration
|
|
11096
|
+
:ecr_configuration,
|
|
11097
|
+
:ami_configuration)
|
|
10601
11098
|
SENSITIVE = []
|
|
10602
11099
|
include Aws::Structure
|
|
10603
11100
|
end
|
|
@@ -10621,6 +11118,11 @@ module Aws::Inspector2
|
|
|
10621
11118
|
# environment.
|
|
10622
11119
|
# @return [Types::Ec2Configuration]
|
|
10623
11120
|
#
|
|
11121
|
+
# @!attribute [rw] ami_configuration
|
|
11122
|
+
# The Amazon Machine Image (AMI) scan configuration to apply to the
|
|
11123
|
+
# account.
|
|
11124
|
+
# @return [Types::AmiConfiguration]
|
|
11125
|
+
#
|
|
10624
11126
|
# @!attribute [rw] update_configuration_inheritance
|
|
10625
11127
|
# Specifies which scan-type configurations to reset to the delegated
|
|
10626
11128
|
# administrator's inherited values for the targeted member account.
|
|
@@ -10637,6 +11139,7 @@ module Aws::Inspector2
|
|
|
10637
11139
|
:account_id,
|
|
10638
11140
|
:ecr_configuration,
|
|
10639
11141
|
:ec2_configuration,
|
|
11142
|
+
:ami_configuration,
|
|
10640
11143
|
:update_configuration_inheritance)
|
|
10641
11144
|
SENSITIVE = []
|
|
10642
11145
|
include Aws::Structure
|