aws-sdk-inspector2 1.87.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.
@@ -650,6 +650,9 @@ module Aws::Inspector2
650
650
  # resp.accounts[0].resource_state.code_repository.status #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
651
651
  # resp.accounts[0].resource_state.code_repository.error_code #=> String, one of "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"
652
652
  # resp.accounts[0].resource_state.code_repository.error_message #=> String
653
+ # resp.accounts[0].resource_state.ami.status #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
654
+ # resp.accounts[0].resource_state.ami.error_code #=> String, one of "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"
655
+ # resp.accounts[0].resource_state.ami.error_message #=> String
653
656
  # resp.failed_accounts #=> Array
654
657
  # resp.failed_accounts[0].account_id #=> String
655
658
  # resp.failed_accounts[0].status #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
@@ -658,6 +661,7 @@ module Aws::Inspector2
658
661
  # resp.failed_accounts[0].resource_status.lambda #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
659
662
  # resp.failed_accounts[0].resource_status.lambda_code #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
660
663
  # resp.failed_accounts[0].resource_status.code_repository #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
664
+ # resp.failed_accounts[0].resource_status.ami #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
661
665
  # resp.failed_accounts[0].error_code #=> String, one of "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"
662
666
  # resp.failed_accounts[0].error_message #=> String
663
667
  #
@@ -845,7 +849,7 @@ module Aws::Inspector2
845
849
  # resp.accounts #=> Array
846
850
  # resp.accounts[0].account_id #=> String
847
851
  # resp.accounts[0].free_trial_info #=> Array
848
- # resp.accounts[0].free_trial_info[0].type #=> String, one of "EC2", "ECR", "LAMBDA", "LAMBDA_CODE", "CODE_REPOSITORY", "VM", "CONTAINER_IMAGE", "SERVERLESS_FUNCTION"
852
+ # resp.accounts[0].free_trial_info[0].type #=> String, one of "EC2", "ECR", "LAMBDA", "LAMBDA_CODE", "CODE_REPOSITORY", "VM", "CONTAINER_IMAGE", "SERVERLESS_FUNCTION", "MACHINE_IMAGE"
849
853
  # resp.accounts[0].free_trial_info[0].start #=> Time
850
854
  # resp.accounts[0].free_trial_info[0].end #=> Time
851
855
  # resp.accounts[0].free_trial_info[0].status #=> String, one of "ACTIVE", "INACTIVE"
@@ -1686,6 +1690,30 @@ module Aws::Inspector2
1686
1690
  # value: "StringInput", # required
1687
1691
  # },
1688
1692
  # ],
1693
+ # machine_image_id: [
1694
+ # {
1695
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
1696
+ # value: "StringInput", # required
1697
+ # },
1698
+ # ],
1699
+ # machine_image_name: [
1700
+ # {
1701
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
1702
+ # value: "StringInput", # required
1703
+ # },
1704
+ # ],
1705
+ # machine_image_owner_account_id: [
1706
+ # {
1707
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
1708
+ # value: "StringInput", # required
1709
+ # },
1710
+ # ],
1711
+ # machine_image_platform: [
1712
+ # {
1713
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
1714
+ # value: "StringInput", # required
1715
+ # },
1716
+ # ],
1689
1717
  # cloud_provider: [
1690
1718
  # {
1691
1719
  # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
@@ -2149,6 +2177,30 @@ module Aws::Inspector2
2149
2177
  # value: "StringInput", # required
2150
2178
  # },
2151
2179
  # ],
2180
+ # machine_image_id: [
2181
+ # {
2182
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
2183
+ # value: "StringInput", # required
2184
+ # },
2185
+ # ],
2186
+ # machine_image_name: [
2187
+ # {
2188
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
2189
+ # value: "StringInput", # required
2190
+ # },
2191
+ # ],
2192
+ # machine_image_owner_account_id: [
2193
+ # {
2194
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
2195
+ # value: "StringInput", # required
2196
+ # },
2197
+ # ],
2198
+ # machine_image_platform: [
2199
+ # {
2200
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
2201
+ # value: "StringInput", # required
2202
+ # },
2203
+ # ],
2152
2204
  # cloud_provider: [
2153
2205
  # {
2154
2206
  # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
@@ -2269,6 +2321,7 @@ module Aws::Inspector2
2269
2321
  # bucket_name: "String", # required
2270
2322
  # key_prefix: "String",
2271
2323
  # kms_key_arn: "String", # required
2324
+ # expected_bucket_owner: "AccountId",
2272
2325
  # },
2273
2326
  # })
2274
2327
  #
@@ -2430,6 +2483,7 @@ module Aws::Inspector2
2430
2483
  # bucket_name: "String", # required
2431
2484
  # key_prefix: "String",
2432
2485
  # kms_key_arn: "String", # required
2486
+ # expected_bucket_owner: "AccountId",
2433
2487
  # },
2434
2488
  # })
2435
2489
  #
@@ -2619,6 +2673,7 @@ module Aws::Inspector2
2619
2673
  # resp.auto_enable.lambda #=> Boolean
2620
2674
  # resp.auto_enable.lambda_code #=> Boolean
2621
2675
  # resp.auto_enable.code_repository #=> Boolean
2676
+ # resp.auto_enable.ami #=> Boolean
2622
2677
  # resp.max_account_limit_reached #=> Boolean
2623
2678
  #
2624
2679
  # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/DescribeOrganizationConfiguration AWS API Documentation
@@ -2663,6 +2718,7 @@ module Aws::Inspector2
2663
2718
  # resp.accounts[0].resource_status.lambda #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
2664
2719
  # resp.accounts[0].resource_status.lambda_code #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
2665
2720
  # resp.accounts[0].resource_status.code_repository #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
2721
+ # resp.accounts[0].resource_status.ami #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
2666
2722
  # resp.failed_accounts #=> Array
2667
2723
  # resp.failed_accounts[0].account_id #=> String
2668
2724
  # resp.failed_accounts[0].status #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
@@ -2671,6 +2727,7 @@ module Aws::Inspector2
2671
2727
  # resp.failed_accounts[0].resource_status.lambda #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
2672
2728
  # resp.failed_accounts[0].resource_status.lambda_code #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
2673
2729
  # resp.failed_accounts[0].resource_status.code_repository #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
2730
+ # resp.failed_accounts[0].resource_status.ami #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
2674
2731
  # resp.failed_accounts[0].error_code #=> String, one of "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"
2675
2732
  # resp.failed_accounts[0].error_message #=> String
2676
2733
  #
@@ -2781,6 +2838,7 @@ module Aws::Inspector2
2781
2838
  # resp.accounts[0].resource_status.lambda #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
2782
2839
  # resp.accounts[0].resource_status.lambda_code #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
2783
2840
  # resp.accounts[0].resource_status.code_repository #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
2841
+ # resp.accounts[0].resource_status.ami #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
2784
2842
  # resp.failed_accounts #=> Array
2785
2843
  # resp.failed_accounts[0].account_id #=> String
2786
2844
  # resp.failed_accounts[0].status #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
@@ -2789,6 +2847,7 @@ module Aws::Inspector2
2789
2847
  # resp.failed_accounts[0].resource_status.lambda #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
2790
2848
  # resp.failed_accounts[0].resource_status.lambda_code #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
2791
2849
  # resp.failed_accounts[0].resource_status.code_repository #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
2850
+ # resp.failed_accounts[0].resource_status.ami #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
2792
2851
  # resp.failed_accounts[0].error_code #=> String, one of "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"
2793
2852
  # resp.failed_accounts[0].error_message #=> String
2794
2853
  #
@@ -3242,6 +3301,7 @@ module Aws::Inspector2
3242
3301
  #
3243
3302
  # * {Types::GetConfigurationResponse#ecr_configuration #ecr_configuration} => Types::EcrConfigurationState
3244
3303
  # * {Types::GetConfigurationResponse#ec2_configuration #ec2_configuration} => Types::Ec2ConfigurationState
3304
+ # * {Types::GetConfigurationResponse#ami_configuration #ami_configuration} => Types::AmiConfigurationState
3245
3305
  #
3246
3306
  # @example Request syntax with placeholder values
3247
3307
  #
@@ -3261,6 +3321,16 @@ module Aws::Inspector2
3261
3321
  # resp.ec2_configuration.vm_scanner_state.activated #=> Boolean
3262
3322
  # resp.ec2_configuration.vm_scanner_state.activated_at #=> Time
3263
3323
  # resp.ec2_configuration.vm_scanner_state.status #=> String, one of "SUCCESS", "PENDING", "FAILED"
3324
+ # resp.ami_configuration.last_launched_within #=> String, one of "DAYS_180", "DAYS_90", "DAYS_60", "DAYS_30", "DAYS_14", "DAYS_7"
3325
+ # resp.ami_configuration.created_within #=> String, one of "DAYS_180", "DAYS_90", "DAYS_60", "DAYS_30", "DAYS_14", "DAYS_7"
3326
+ # resp.ami_configuration.scan_mode_configuration.scan_mode #=> String, one of "SCAN_ALL", "TARGET_SCANNING"
3327
+ # resp.ami_configuration.scan_mode_configuration.tags #=> Array
3328
+ # resp.ami_configuration.scan_mode_configuration.tags[0].key #=> String
3329
+ # resp.ami_configuration.scan_mode_configuration.tags[0].value #=> String
3330
+ # resp.ami_configuration.scan_mode_configuration.exclude_copied_amis #=> Boolean
3331
+ # resp.ami_configuration.scan_mode_configuration.exclude_backup_dlm_amis #=> Boolean
3332
+ # resp.ami_configuration.status #=> String, one of "SUCCESS", "PENDING", "FAILED"
3333
+ # resp.ami_configuration.updated_at #=> Time
3264
3334
  #
3265
3335
  # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/GetConfiguration AWS API Documentation
3266
3336
  #
@@ -3336,7 +3406,7 @@ module Aws::Inspector2
3336
3406
  #
3337
3407
  # resp = client.get_encryption_key({
3338
3408
  # scan_type: "NETWORK", # required, accepts NETWORK, PACKAGE, CODE
3339
- # resource_type: "AWS_EC2_INSTANCE", # required, accepts 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
3409
+ # resource_type: "AWS_EC2_INSTANCE", # required, accepts 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
3340
3410
  # })
3341
3411
  #
3342
3412
  # @example Response structure
@@ -3381,6 +3451,7 @@ module Aws::Inspector2
3381
3451
  # resp.destination.bucket_name #=> String
3382
3452
  # resp.destination.key_prefix #=> String
3383
3453
  # resp.destination.kms_key_arn #=> String
3454
+ # resp.destination.expected_bucket_owner #=> String
3384
3455
  # resp.filter_criteria.finding_arn #=> Array
3385
3456
  # resp.filter_criteria.finding_arn[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
3386
3457
  # resp.filter_criteria.finding_arn[0].value #=> String
@@ -3534,6 +3605,18 @@ module Aws::Inspector2
3534
3605
  # resp.filter_criteria.code_repository_provider_type #=> Array
3535
3606
  # resp.filter_criteria.code_repository_provider_type[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
3536
3607
  # resp.filter_criteria.code_repository_provider_type[0].value #=> String
3608
+ # resp.filter_criteria.machine_image_id #=> Array
3609
+ # resp.filter_criteria.machine_image_id[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
3610
+ # resp.filter_criteria.machine_image_id[0].value #=> String
3611
+ # resp.filter_criteria.machine_image_name #=> Array
3612
+ # resp.filter_criteria.machine_image_name[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
3613
+ # resp.filter_criteria.machine_image_name[0].value #=> String
3614
+ # resp.filter_criteria.machine_image_owner_account_id #=> Array
3615
+ # resp.filter_criteria.machine_image_owner_account_id[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
3616
+ # resp.filter_criteria.machine_image_owner_account_id[0].value #=> String
3617
+ # resp.filter_criteria.machine_image_platform #=> Array
3618
+ # resp.filter_criteria.machine_image_platform[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
3619
+ # resp.filter_criteria.machine_image_platform[0].value #=> String
3537
3620
  # resp.filter_criteria.cloud_provider #=> Array
3538
3621
  # resp.filter_criteria.cloud_provider[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
3539
3622
  # resp.filter_criteria.cloud_provider[0].value #=> String
@@ -3633,6 +3716,56 @@ module Aws::Inspector2
3633
3716
  req.send_request(options)
3634
3717
  end
3635
3718
 
3719
+ # Retrieves the status of a specific on-demand scan for a resource.
3720
+ #
3721
+ # @option params [required, String] :resource_id
3722
+ # The ID of the resource whose on-demand scan status is being requested.
3723
+ #
3724
+ # @option params [required, String] :scan_id
3725
+ # The unique identifier of the on-demand scan whose status is being
3726
+ # requested.
3727
+ #
3728
+ # @option params [required, String] :resource_type
3729
+ # The type of the resource whose on-demand scan status is being
3730
+ # requested.
3731
+ #
3732
+ # @return [Types::GetOnDemandScanStatusResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3733
+ #
3734
+ # * {Types::GetOnDemandScanStatusResponse#scan_id #scan_id} => String
3735
+ # * {Types::GetOnDemandScanStatusResponse#resource_id #resource_id} => String
3736
+ # * {Types::GetOnDemandScanStatusResponse#resource_type #resource_type} => String
3737
+ # * {Types::GetOnDemandScanStatusResponse#scan_status #scan_status} => String
3738
+ # * {Types::GetOnDemandScanStatusResponse#scan_status_reason #scan_status_reason} => String
3739
+ # * {Types::GetOnDemandScanStatusResponse#started_at #started_at} => Time
3740
+ # * {Types::GetOnDemandScanStatusResponse#completed_at #completed_at} => Time
3741
+ #
3742
+ # @example Request syntax with placeholder values
3743
+ #
3744
+ # resp = client.get_on_demand_scan_status({
3745
+ # resource_id: "ResourceId", # required
3746
+ # scan_id: "ScanId", # required
3747
+ # resource_type: "AMI", # required, accepts AMI
3748
+ # })
3749
+ #
3750
+ # @example Response structure
3751
+ #
3752
+ # resp.scan_id #=> String
3753
+ # resp.resource_id #=> String
3754
+ # resp.resource_type #=> String, one of "AMI"
3755
+ # resp.scan_status #=> String, one of "IN_PROGRESS", "SUCCESSFUL", "FAILED"
3756
+ # resp.scan_status_reason #=> String, one of "ACCESS_DENIED", "INTERNAL_ERROR", "STORAGE_LIMIT_EXCEEDED", "EXTRACTION_COLLECTION_TIME_LIMIT_EXCEEDED", "UNSUPPORTED_OS", "RESOURCE_TERMINATED"
3757
+ # resp.started_at #=> Time
3758
+ # resp.completed_at #=> Time
3759
+ #
3760
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/GetOnDemandScanStatus AWS API Documentation
3761
+ #
3762
+ # @overload get_on_demand_scan_status(params = {})
3763
+ # @param [Hash] params ({})
3764
+ def get_on_demand_scan_status(params = {}, options = {})
3765
+ req = build_request(:get_on_demand_scan_status, params)
3766
+ req.send_request(options)
3767
+ end
3768
+
3636
3769
  # Gets details of a software bill of materials (SBOM) report.
3637
3770
  #
3638
3771
  # @option params [required, String] :report_id
@@ -3664,6 +3797,7 @@ module Aws::Inspector2
3664
3797
  # resp.s3_destination.bucket_name #=> String
3665
3798
  # resp.s3_destination.key_prefix #=> String
3666
3799
  # resp.s3_destination.kms_key_arn #=> String
3800
+ # resp.s3_destination.expected_bucket_owner #=> String
3667
3801
  # resp.filter_criteria.account_id #=> Array
3668
3802
  # resp.filter_criteria.account_id[0].comparison #=> String, one of "EQUALS", "NOT_EQUALS"
3669
3803
  # resp.filter_criteria.account_id[0].value #=> String
@@ -4850,6 +4984,13 @@ module Aws::Inspector2
4850
4984
  # value: "CoverageStringInput", # required
4851
4985
  # },
4852
4986
  # ],
4987
+ # machine_image_tags: [
4988
+ # {
4989
+ # comparison: "EQUALS", # required, accepts EQUALS
4990
+ # key: "NonEmptyString", # required
4991
+ # value: "NonEmptyString",
4992
+ # },
4993
+ # ],
4853
4994
  # last_scanned_at: [
4854
4995
  # {
4855
4996
  # start_inclusive: Time.now,
@@ -4979,12 +5120,12 @@ module Aws::Inspector2
4979
5120
  #
4980
5121
  # resp.next_token #=> String
4981
5122
  # resp.covered_resources #=> Array
4982
- # resp.covered_resources[0].resource_type #=> String, one of "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"
5123
+ # resp.covered_resources[0].resource_type #=> String, one of "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"
4983
5124
  # resp.covered_resources[0].resource_id #=> String
4984
5125
  # resp.covered_resources[0].account_id #=> String
4985
5126
  # resp.covered_resources[0].scan_type #=> String, one of "NETWORK", "PACKAGE", "CODE"
4986
5127
  # resp.covered_resources[0].scan_status.status_code #=> String, one of "ACTIVE", "INACTIVE"
4987
- # resp.covered_resources[0].scan_status.reason #=> String, one of "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"
5128
+ # resp.covered_resources[0].scan_status.reason #=> String, one of "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"
4988
5129
  # resp.covered_resources[0].resource_metadata.ecr_repository.name #=> String
4989
5130
  # resp.covered_resources[0].resource_metadata.ecr_repository.scan_frequency #=> String, one of "MANUAL", "SCAN_ON_PUSH", "CONTINUOUS_SCAN"
4990
5131
  # resp.covered_resources[0].resource_metadata.ecr_image.tags #=> Array
@@ -5018,7 +5159,7 @@ module Aws::Inspector2
5018
5159
  # resp.covered_resources[0].resource_metadata.code_repository.on_demand_scan.last_scanned_commit_id #=> String
5019
5160
  # resp.covered_resources[0].resource_metadata.code_repository.on_demand_scan.last_scan_at #=> Time
5020
5161
  # resp.covered_resources[0].resource_metadata.code_repository.on_demand_scan.scan_status.status_code #=> String, one of "ACTIVE", "INACTIVE"
5021
- # resp.covered_resources[0].resource_metadata.code_repository.on_demand_scan.scan_status.reason #=> String, one of "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"
5162
+ # resp.covered_resources[0].resource_metadata.code_repository.on_demand_scan.scan_status.reason #=> String, one of "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"
5022
5163
  # resp.covered_resources[0].resource_metadata.vm_instance.tags #=> Hash
5023
5164
  # resp.covered_resources[0].resource_metadata.vm_instance.tags["MapKey"] #=> String
5024
5165
  # resp.covered_resources[0].resource_metadata.vm_instance.platform #=> String, one of "WINDOWS", "LINUX", "UNKNOWN"
@@ -5036,6 +5177,9 @@ module Aws::Inspector2
5036
5177
  # resp.covered_resources[0].resource_metadata.serverless_function.runtime #=> String
5037
5178
  # resp.covered_resources[0].resource_metadata.serverless_function.function_tags #=> Hash
5038
5179
  # resp.covered_resources[0].resource_metadata.serverless_function.function_tags["MapKey"] #=> String
5180
+ # resp.covered_resources[0].resource_metadata.machine_image.tags #=> Hash
5181
+ # resp.covered_resources[0].resource_metadata.machine_image.tags["MapKey"] #=> String
5182
+ # resp.covered_resources[0].resource_metadata.machine_image.platform #=> String, one of "WINDOWS", "LINUX", "UNKNOWN"
5039
5183
  # resp.covered_resources[0].last_scanned_at #=> Time
5040
5184
  # resp.covered_resources[0].scan_mode #=> String, one of "EC2_SSM_AGENT_BASED", "EC2_AGENTLESS", "EC2_INSPECTOR_AGENT_BASED", "VM_INSPECTOR_AGENT_BASED"
5041
5185
  # resp.covered_resources[0].provider #=> String, one of "AWS", "AZURE"
@@ -5155,6 +5299,13 @@ module Aws::Inspector2
5155
5299
  # value: "CoverageStringInput", # required
5156
5300
  # },
5157
5301
  # ],
5302
+ # machine_image_tags: [
5303
+ # {
5304
+ # comparison: "EQUALS", # required, accepts EQUALS
5305
+ # key: "NonEmptyString", # required
5306
+ # value: "NonEmptyString",
5307
+ # },
5308
+ # ],
5158
5309
  # last_scanned_at: [
5159
5310
  # {
5160
5311
  # start_inclusive: Time.now,
@@ -5543,6 +5694,18 @@ module Aws::Inspector2
5543
5694
  # resp.filters[0].criteria.code_repository_provider_type #=> Array
5544
5695
  # resp.filters[0].criteria.code_repository_provider_type[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
5545
5696
  # resp.filters[0].criteria.code_repository_provider_type[0].value #=> String
5697
+ # resp.filters[0].criteria.machine_image_id #=> Array
5698
+ # resp.filters[0].criteria.machine_image_id[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
5699
+ # resp.filters[0].criteria.machine_image_id[0].value #=> String
5700
+ # resp.filters[0].criteria.machine_image_name #=> Array
5701
+ # resp.filters[0].criteria.machine_image_name[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
5702
+ # resp.filters[0].criteria.machine_image_name[0].value #=> String
5703
+ # resp.filters[0].criteria.machine_image_owner_account_id #=> Array
5704
+ # resp.filters[0].criteria.machine_image_owner_account_id[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
5705
+ # resp.filters[0].criteria.machine_image_owner_account_id[0].value #=> String
5706
+ # resp.filters[0].criteria.machine_image_platform #=> Array
5707
+ # resp.filters[0].criteria.machine_image_platform[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
5708
+ # resp.filters[0].criteria.machine_image_platform[0].value #=> String
5546
5709
  # resp.filters[0].criteria.cloud_provider #=> Array
5547
5710
  # resp.filters[0].criteria.cloud_provider[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
5548
5711
  # resp.filters[0].criteria.cloud_provider[0].value #=> String
@@ -5682,6 +5845,7 @@ module Aws::Inspector2
5682
5845
  # ],
5683
5846
  # sort_order: "ASC", # accepts ASC, DESC
5684
5847
  # sort_by: "CRITICAL", # accepts CRITICAL, HIGH, ALL, AFFECTED_INSTANCES
5848
+ # scan_sources: ["INSTANCE_SCAN"], # accepts INSTANCE_SCAN, MACHINE_IMAGE_SCAN
5685
5849
  # },
5686
5850
  # aws_ecr_container_aggregation: {
5687
5851
  # resource_ids: [
@@ -6159,6 +6323,7 @@ module Aws::Inspector2
6159
6323
  # resp.responses[0].ami_aggregation.severity_counts.informational #=> Integer
6160
6324
  # resp.responses[0].ami_aggregation.severity_counts.untriaged #=> Integer
6161
6325
  # resp.responses[0].ami_aggregation.affected_instances #=> Integer
6326
+ # resp.responses[0].ami_aggregation.scan_source #=> String, one of "INSTANCE_SCAN", "MACHINE_IMAGE_SCAN"
6162
6327
  # resp.responses[0].aws_ecr_container_aggregation.resource_id #=> String
6163
6328
  # resp.responses[0].aws_ecr_container_aggregation.image_sha #=> String
6164
6329
  # resp.responses[0].aws_ecr_container_aggregation.repository #=> String
@@ -6711,6 +6876,30 @@ module Aws::Inspector2
6711
6876
  # value: "StringInput", # required
6712
6877
  # },
6713
6878
  # ],
6879
+ # machine_image_id: [
6880
+ # {
6881
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
6882
+ # value: "StringInput", # required
6883
+ # },
6884
+ # ],
6885
+ # machine_image_name: [
6886
+ # {
6887
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
6888
+ # value: "StringInput", # required
6889
+ # },
6890
+ # ],
6891
+ # machine_image_owner_account_id: [
6892
+ # {
6893
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
6894
+ # value: "StringInput", # required
6895
+ # },
6896
+ # ],
6897
+ # machine_image_platform: [
6898
+ # {
6899
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
6900
+ # value: "StringInput", # required
6901
+ # },
6902
+ # ],
6714
6903
  # cloud_provider: [
6715
6904
  # {
6716
6905
  # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
@@ -6849,7 +7038,7 @@ module Aws::Inspector2
6849
7038
  # resp.findings[0].updated_at #=> Time
6850
7039
  # resp.findings[0].status #=> String, one of "ACTIVE", "SUPPRESSED", "CLOSED"
6851
7040
  # resp.findings[0].resources #=> Array
6852
- # resp.findings[0].resources[0].type #=> String, one of "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"
7041
+ # resp.findings[0].resources[0].type #=> String, one of "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"
6853
7042
  # resp.findings[0].resources[0].id #=> String
6854
7043
  # resp.findings[0].resources[0].partition #=> String
6855
7044
  # resp.findings[0].resources[0].region #=> String
@@ -6897,6 +7086,17 @@ module Aws::Inspector2
6897
7086
  # resp.findings[0].resources[0].details.code_repository.project_name #=> String
6898
7087
  # resp.findings[0].resources[0].details.code_repository.integration_arn #=> String
6899
7088
  # resp.findings[0].resources[0].details.code_repository.provider_type #=> String, one of "GITHUB", "GITLAB_SELF_MANAGED"
7089
+ # resp.findings[0].resources[0].details.machine_image.machine_image_id #=> String
7090
+ # resp.findings[0].resources[0].details.machine_image.name #=> String
7091
+ # resp.findings[0].resources[0].details.machine_image.owner_account_id #=> String
7092
+ # resp.findings[0].resources[0].details.machine_image.platform #=> String
7093
+ # resp.findings[0].resources[0].details.machine_image.architecture #=> String, one of "X86_64", "ARM64"
7094
+ # resp.findings[0].resources[0].details.machine_image.creation_date #=> Time
7095
+ # resp.findings[0].resources[0].details.machine_image.state #=> String
7096
+ # resp.findings[0].resources[0].details.machine_image.is_public #=> Boolean
7097
+ # resp.findings[0].resources[0].details.machine_image.root_device_type #=> String
7098
+ # resp.findings[0].resources[0].details.machine_image.virtualization_type #=> String
7099
+ # resp.findings[0].resources[0].details.machine_image.source_resource_id #=> String
6900
7100
  # resp.findings[0].resources[0].details.vm.type #=> String
6901
7101
  # resp.findings[0].resources[0].details.vm.vm_name #=> String
6902
7102
  # resp.findings[0].resources[0].details.vm.vm_image_reference #=> String
@@ -7068,6 +7268,59 @@ module Aws::Inspector2
7068
7268
  req.send_request(options)
7069
7269
  end
7070
7270
 
7271
+ # Lists the on-demand scans for a resource.
7272
+ #
7273
+ # @option params [required, String] :resource_id
7274
+ # The ID of the resource whose on-demand scans are being listed.
7275
+ #
7276
+ # @option params [required, String] :resource_type
7277
+ # The type of the resource whose on-demand scans are being listed.
7278
+ #
7279
+ # @option params [Integer] :max_results
7280
+ # The maximum number of results to return in a single page of the
7281
+ # response.
7282
+ #
7283
+ # @option params [String] :next_token
7284
+ # A pagination token from a previous response used to retrieve the next
7285
+ # page of results.
7286
+ #
7287
+ # @return [Types::ListOnDemandScansResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
7288
+ #
7289
+ # * {Types::ListOnDemandScansResponse#items #items} => Array<Types::OnDemandScan>
7290
+ # * {Types::ListOnDemandScansResponse#next_token #next_token} => String
7291
+ #
7292
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7293
+ #
7294
+ # @example Request syntax with placeholder values
7295
+ #
7296
+ # resp = client.list_on_demand_scans({
7297
+ # resource_id: "ResourceId", # required
7298
+ # resource_type: "AMI", # required, accepts AMI
7299
+ # max_results: 1,
7300
+ # next_token: "OnDemandScanNextToken",
7301
+ # })
7302
+ #
7303
+ # @example Response structure
7304
+ #
7305
+ # resp.items #=> Array
7306
+ # resp.items[0].scan_id #=> String
7307
+ # resp.items[0].resource_id #=> String
7308
+ # resp.items[0].resource_type #=> String, one of "AMI"
7309
+ # resp.items[0].scan_status #=> String, one of "IN_PROGRESS", "SUCCESSFUL", "FAILED"
7310
+ # resp.items[0].scan_status_reason #=> String, one of "ACCESS_DENIED", "INTERNAL_ERROR", "STORAGE_LIMIT_EXCEEDED", "EXTRACTION_COLLECTION_TIME_LIMIT_EXCEEDED", "UNSUPPORTED_OS", "RESOURCE_TERMINATED"
7311
+ # resp.items[0].started_at #=> Time
7312
+ # resp.items[0].completed_at #=> Time
7313
+ # resp.next_token #=> String
7314
+ #
7315
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/ListOnDemandScans AWS API Documentation
7316
+ #
7317
+ # @overload list_on_demand_scans(params = {})
7318
+ # @param [Hash] params ({})
7319
+ def list_on_demand_scans(params = {}, options = {})
7320
+ req = build_request(:list_on_demand_scans, params)
7321
+ req.send_request(options)
7322
+ end
7323
+
7071
7324
  # Lists all tags attached to a given resource.
7072
7325
  #
7073
7326
  # @option params [required, String] :resource_arn
@@ -7137,7 +7390,7 @@ module Aws::Inspector2
7137
7390
  # resp.totals #=> Array
7138
7391
  # resp.totals[0].account_id #=> String
7139
7392
  # resp.totals[0].usage #=> Array
7140
- # resp.totals[0].usage[0].type #=> String, one of "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"
7393
+ # resp.totals[0].usage[0].type #=> String, one of "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"
7141
7394
  # resp.totals[0].usage[0].total #=> Float
7142
7395
  # resp.totals[0].usage[0].estimated_monthly_cost #=> Float
7143
7396
  # resp.totals[0].usage[0].currency #=> String, one of "USD"
@@ -7167,7 +7420,7 @@ module Aws::Inspector2
7167
7420
  #
7168
7421
  # resp = client.reset_encryption_key({
7169
7422
  # scan_type: "NETWORK", # required, accepts NETWORK, PACKAGE, CODE
7170
- # resource_type: "AWS_EC2_INSTANCE", # required, accepts 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
7423
+ # resource_type: "AWS_EC2_INSTANCE", # required, accepts 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
7171
7424
  # })
7172
7425
  #
7173
7426
  # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/ResetEncryptionKey AWS API Documentation
@@ -7443,6 +7696,47 @@ module Aws::Inspector2
7443
7696
  req.send_request(options)
7444
7697
  end
7445
7698
 
7699
+ # Starts an on-demand scan of the specified resource, such as an Amazon
7700
+ # Machine Image (AMI).
7701
+ #
7702
+ # @option params [required, String] :resource_id
7703
+ # The ID of the resource to scan on demand.
7704
+ #
7705
+ # @option params [required, String] :resource_type
7706
+ # The type of the resource to scan on demand.
7707
+ #
7708
+ # @option params [String] :client_token
7709
+ # A unique, case-sensitive identifier that you provide to ensure the
7710
+ # idempotency of the request.
7711
+ #
7712
+ # **A suitable default value is auto-generated.** You should normally
7713
+ # not need to pass this option.**
7714
+ #
7715
+ # @return [Types::StartOnDemandScanResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
7716
+ #
7717
+ # * {Types::StartOnDemandScanResponse#scan_id #scan_id} => String
7718
+ #
7719
+ # @example Request syntax with placeholder values
7720
+ #
7721
+ # resp = client.start_on_demand_scan({
7722
+ # resource_id: "ResourceId", # required
7723
+ # resource_type: "AMI", # required, accepts AMI
7724
+ # client_token: "String",
7725
+ # })
7726
+ #
7727
+ # @example Response structure
7728
+ #
7729
+ # resp.scan_id #=> String
7730
+ #
7731
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/StartOnDemandScan AWS API Documentation
7732
+ #
7733
+ # @overload start_on_demand_scan(params = {})
7734
+ # @param [Hash] params ({})
7735
+ def start_on_demand_scan(params = {}, options = {})
7736
+ req = build_request(:start_on_demand_scan, params)
7737
+ req.send_request(options)
7738
+ end
7739
+
7446
7740
  # Stops a CIS session. This API is used by the Amazon Inspector SSM
7447
7741
  # plugin to communicate with the Amazon Inspector service. The Amazon
7448
7742
  # Inspector SSM plugin calls this API to stop a CIS scan session for the
@@ -7802,6 +8096,10 @@ module Aws::Inspector2
7802
8096
  # Specifies how the Amazon EC2 automated scan will be updated for your
7803
8097
  # environment.
7804
8098
  #
8099
+ # @option params [Types::AmiConfiguration] :ami_configuration
8100
+ # The Amazon Machine Image (AMI) scan configuration to apply to the
8101
+ # account.
8102
+ #
7805
8103
  # @option params [Types::UpdateConfigurationInheritance] :update_configuration_inheritance
7806
8104
  # Specifies which scan-type configurations to reset to the delegated
7807
8105
  # administrator's inherited values for the targeted member account.
@@ -7826,9 +8124,25 @@ module Aws::Inspector2
7826
8124
  # scan_mode: "EC2_SSM_AGENT_BASED", # required, accepts EC2_SSM_AGENT_BASED, EC2_HYBRID
7827
8125
  # activate_vm_scanner: false,
7828
8126
  # },
8127
+ # ami_configuration: {
8128
+ # last_launched_within: "DAYS_180", # accepts DAYS_180, DAYS_90, DAYS_60, DAYS_30, DAYS_14, DAYS_7
8129
+ # created_within: "DAYS_180", # accepts DAYS_180, DAYS_90, DAYS_60, DAYS_30, DAYS_14, DAYS_7
8130
+ # scan_mode_configuration: { # required
8131
+ # scan_mode: "SCAN_ALL", # required, accepts SCAN_ALL, TARGET_SCANNING
8132
+ # tags: [
8133
+ # {
8134
+ # key: "AmiTagKey", # required
8135
+ # value: "AmiTagValue",
8136
+ # },
8137
+ # ],
8138
+ # exclude_copied_amis: false,
8139
+ # exclude_backup_dlm_amis: false,
8140
+ # },
8141
+ # },
7829
8142
  # update_configuration_inheritance: {
7830
8143
  # ec2_configuration: "INHERIT_FROM_ADMIN", # accepts INHERIT_FROM_ADMIN
7831
8144
  # ecr_configuration: "INHERIT_FROM_ADMIN", # accepts INHERIT_FROM_ADMIN
8145
+ # ami_configuration: "INHERIT_FROM_ADMIN", # accepts INHERIT_FROM_ADMIN
7832
8146
  # },
7833
8147
  # })
7834
8148
  #
@@ -8035,7 +8349,7 @@ module Aws::Inspector2
8035
8349
  # resp = client.update_encryption_key({
8036
8350
  # kms_key_id: "KmsKeyArn", # required
8037
8351
  # scan_type: "NETWORK", # required, accepts NETWORK, PACKAGE, CODE
8038
- # resource_type: "AWS_EC2_INSTANCE", # required, accepts 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
8352
+ # resource_type: "AWS_EC2_INSTANCE", # required, accepts 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
8039
8353
  # })
8040
8354
  #
8041
8355
  # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/UpdateEncryptionKey AWS API Documentation
@@ -8386,6 +8700,30 @@ module Aws::Inspector2
8386
8700
  # value: "StringInput", # required
8387
8701
  # },
8388
8702
  # ],
8703
+ # machine_image_id: [
8704
+ # {
8705
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
8706
+ # value: "StringInput", # required
8707
+ # },
8708
+ # ],
8709
+ # machine_image_name: [
8710
+ # {
8711
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
8712
+ # value: "StringInput", # required
8713
+ # },
8714
+ # ],
8715
+ # machine_image_owner_account_id: [
8716
+ # {
8717
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
8718
+ # value: "StringInput", # required
8719
+ # },
8720
+ # ],
8721
+ # machine_image_platform: [
8722
+ # {
8723
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
8724
+ # value: "StringInput", # required
8725
+ # },
8726
+ # ],
8389
8727
  # cloud_provider: [
8390
8728
  # {
8391
8729
  # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
@@ -8563,6 +8901,7 @@ module Aws::Inspector2
8563
8901
  # lambda: false,
8564
8902
  # lambda_code: false,
8565
8903
  # code_repository: false,
8904
+ # ami: false,
8566
8905
  # },
8567
8906
  # })
8568
8907
  #
@@ -8573,6 +8912,7 @@ module Aws::Inspector2
8573
8912
  # resp.auto_enable.lambda #=> Boolean
8574
8913
  # resp.auto_enable.lambda_code #=> Boolean
8575
8914
  # resp.auto_enable.code_repository #=> Boolean
8915
+ # resp.auto_enable.ami #=> Boolean
8576
8916
  #
8577
8917
  # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/UpdateOrganizationConfiguration AWS API Documentation
8578
8918
  #
@@ -8601,7 +8941,7 @@ module Aws::Inspector2
8601
8941
  tracer: tracer
8602
8942
  )
8603
8943
  context[:gem_name] = 'aws-sdk-inspector2'
8604
- context[:gem_version] = '1.87.0'
8944
+ context[:gem_version] = '1.88.0'
8605
8945
  Seahorse::Client::Request.new(handlers, context)
8606
8946
  end
8607
8947