aws-sdk-inspector2 1.6.0 → 1.8.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 +379 -18
- data/lib/aws-sdk-inspector2/client_api.rb +154 -34
- data/lib/aws-sdk-inspector2/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-inspector2/endpoint_provider.rb +112 -0
- data/lib/aws-sdk-inspector2/endpoints.rb +463 -0
- data/lib/aws-sdk-inspector2/errors.rb +13 -0
- data/lib/aws-sdk-inspector2/plugins/endpoints.rb +132 -0
- data/lib/aws-sdk-inspector2/types.rb +873 -47
- data/lib/aws-sdk-inspector2.rb +5 -1
- metadata +8 -4
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
|
|
30
30
|
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
31
31
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
32
32
|
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
33
|
-
require 'aws-sdk-core/plugins/
|
33
|
+
require 'aws-sdk-core/plugins/sign.rb'
|
34
34
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
35
35
|
|
36
36
|
Aws::Plugins::GlobalConfiguration.add_identifier(:inspector2)
|
@@ -79,8 +79,9 @@ module Aws::Inspector2
|
|
79
79
|
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
80
80
|
add_plugin(Aws::Plugins::DefaultsMode)
|
81
81
|
add_plugin(Aws::Plugins::RecursionDetection)
|
82
|
-
add_plugin(Aws::Plugins::
|
82
|
+
add_plugin(Aws::Plugins::Sign)
|
83
83
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
84
|
+
add_plugin(Aws::Inspector2::Plugins::Endpoints)
|
84
85
|
|
85
86
|
# @overload initialize(options)
|
86
87
|
# @param [Hash] options
|
@@ -287,6 +288,19 @@ module Aws::Inspector2
|
|
287
288
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
288
289
|
# requests are made, and retries are disabled.
|
289
290
|
#
|
291
|
+
# @option options [Aws::TokenProvider] :token_provider
|
292
|
+
# A Bearer Token Provider. This can be an instance of any one of the
|
293
|
+
# following classes:
|
294
|
+
#
|
295
|
+
# * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
|
296
|
+
# tokens.
|
297
|
+
#
|
298
|
+
# * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
|
299
|
+
# access token generated from `aws login`.
|
300
|
+
#
|
301
|
+
# When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
|
302
|
+
# will be used to search for tokens configured for your profile in shared configuration files.
|
303
|
+
#
|
290
304
|
# @option options [Boolean] :use_dualstack_endpoint
|
291
305
|
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
292
306
|
# will be used if available.
|
@@ -300,6 +314,9 @@ module Aws::Inspector2
|
|
300
314
|
# When `true`, request parameters are validated before
|
301
315
|
# sending the request.
|
302
316
|
#
|
317
|
+
# @option options [Aws::Inspector2::EndpointProvider] :endpoint_provider
|
318
|
+
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::Inspector2::EndpointParameters`
|
319
|
+
#
|
303
320
|
# @option options [URI::HTTP,String] :http_proxy A proxy to send
|
304
321
|
# requests through. Formatted like 'http://proxy.com:123'.
|
305
322
|
#
|
@@ -409,6 +426,9 @@ module Aws::Inspector2
|
|
409
426
|
# resp.accounts[0].resource_state.ecr.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"
|
410
427
|
# resp.accounts[0].resource_state.ecr.error_message #=> String
|
411
428
|
# resp.accounts[0].resource_state.ecr.status #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
|
429
|
+
# resp.accounts[0].resource_state.lambda.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"
|
430
|
+
# resp.accounts[0].resource_state.lambda.error_message #=> String
|
431
|
+
# resp.accounts[0].resource_state.lambda.status #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
|
412
432
|
# resp.accounts[0].state.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"
|
413
433
|
# resp.accounts[0].state.error_message #=> String
|
414
434
|
# resp.accounts[0].state.status #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
|
@@ -418,6 +438,7 @@ module Aws::Inspector2
|
|
418
438
|
# resp.failed_accounts[0].error_message #=> String
|
419
439
|
# resp.failed_accounts[0].resource_status.ec2 #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
|
420
440
|
# resp.failed_accounts[0].resource_status.ecr #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
|
441
|
+
# resp.failed_accounts[0].resource_status.lambda #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
|
421
442
|
# resp.failed_accounts[0].status #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
|
422
443
|
#
|
423
444
|
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/BatchGetAccountStatus AWS API Documentation
|
@@ -453,7 +474,7 @@ module Aws::Inspector2
|
|
453
474
|
# resp.accounts[0].free_trial_info[0].end #=> Time
|
454
475
|
# resp.accounts[0].free_trial_info[0].start #=> Time
|
455
476
|
# resp.accounts[0].free_trial_info[0].status #=> String, one of "ACTIVE", "INACTIVE"
|
456
|
-
# resp.accounts[0].free_trial_info[0].type #=> String, one of "EC2", "ECR"
|
477
|
+
# resp.accounts[0].free_trial_info[0].type #=> String, one of "EC2", "ECR", "LAMBDA"
|
457
478
|
# resp.failed_accounts #=> Array
|
458
479
|
# resp.failed_accounts[0].account_id #=> String
|
459
480
|
# resp.failed_accounts[0].code #=> String, one of "ACCESS_DENIED", "INTERNAL_ERROR"
|
@@ -601,6 +622,12 @@ module Aws::Inspector2
|
|
601
622
|
# value: "StringInput", # required
|
602
623
|
# },
|
603
624
|
# ],
|
625
|
+
# exploit_available: [
|
626
|
+
# {
|
627
|
+
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
628
|
+
# value: "StringInput", # required
|
629
|
+
# },
|
630
|
+
# ],
|
604
631
|
# finding_arn: [
|
605
632
|
# {
|
606
633
|
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
@@ -637,6 +664,36 @@ module Aws::Inspector2
|
|
637
664
|
# upper_inclusive: 1.0,
|
638
665
|
# },
|
639
666
|
# ],
|
667
|
+
# lambda_function_execution_role_arn: [
|
668
|
+
# {
|
669
|
+
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
670
|
+
# value: "StringInput", # required
|
671
|
+
# },
|
672
|
+
# ],
|
673
|
+
# lambda_function_last_modified_at: [
|
674
|
+
# {
|
675
|
+
# end_inclusive: Time.now,
|
676
|
+
# start_inclusive: Time.now,
|
677
|
+
# },
|
678
|
+
# ],
|
679
|
+
# lambda_function_layers: [
|
680
|
+
# {
|
681
|
+
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
682
|
+
# value: "StringInput", # required
|
683
|
+
# },
|
684
|
+
# ],
|
685
|
+
# lambda_function_name: [
|
686
|
+
# {
|
687
|
+
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
688
|
+
# value: "StringInput", # required
|
689
|
+
# },
|
690
|
+
# ],
|
691
|
+
# lambda_function_runtime: [
|
692
|
+
# {
|
693
|
+
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
694
|
+
# value: "StringInput", # required
|
695
|
+
# },
|
696
|
+
# ],
|
640
697
|
# last_observed_at: [
|
641
698
|
# {
|
642
699
|
# end_inclusive: Time.now,
|
@@ -734,6 +791,10 @@ module Aws::Inspector2
|
|
734
791
|
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
735
792
|
# value: "StringInput", # required
|
736
793
|
# },
|
794
|
+
# source_lambda_layer_arn: {
|
795
|
+
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
796
|
+
# value: "StringInput", # required
|
797
|
+
# },
|
737
798
|
# source_layer_hash: {
|
738
799
|
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
739
800
|
# value: "StringInput", # required
|
@@ -856,6 +917,12 @@ module Aws::Inspector2
|
|
856
917
|
# value: "StringInput", # required
|
857
918
|
# },
|
858
919
|
# ],
|
920
|
+
# exploit_available: [
|
921
|
+
# {
|
922
|
+
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
923
|
+
# value: "StringInput", # required
|
924
|
+
# },
|
925
|
+
# ],
|
859
926
|
# finding_arn: [
|
860
927
|
# {
|
861
928
|
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
@@ -892,6 +959,36 @@ module Aws::Inspector2
|
|
892
959
|
# upper_inclusive: 1.0,
|
893
960
|
# },
|
894
961
|
# ],
|
962
|
+
# lambda_function_execution_role_arn: [
|
963
|
+
# {
|
964
|
+
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
965
|
+
# value: "StringInput", # required
|
966
|
+
# },
|
967
|
+
# ],
|
968
|
+
# lambda_function_last_modified_at: [
|
969
|
+
# {
|
970
|
+
# end_inclusive: Time.now,
|
971
|
+
# start_inclusive: Time.now,
|
972
|
+
# },
|
973
|
+
# ],
|
974
|
+
# lambda_function_layers: [
|
975
|
+
# {
|
976
|
+
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
977
|
+
# value: "StringInput", # required
|
978
|
+
# },
|
979
|
+
# ],
|
980
|
+
# lambda_function_name: [
|
981
|
+
# {
|
982
|
+
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
983
|
+
# value: "StringInput", # required
|
984
|
+
# },
|
985
|
+
# ],
|
986
|
+
# lambda_function_runtime: [
|
987
|
+
# {
|
988
|
+
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
989
|
+
# value: "StringInput", # required
|
990
|
+
# },
|
991
|
+
# ],
|
895
992
|
# last_observed_at: [
|
896
993
|
# {
|
897
994
|
# end_inclusive: Time.now,
|
@@ -989,6 +1086,10 @@ module Aws::Inspector2
|
|
989
1086
|
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
990
1087
|
# value: "StringInput", # required
|
991
1088
|
# },
|
1089
|
+
# source_lambda_layer_arn: {
|
1090
|
+
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
1091
|
+
# value: "StringInput", # required
|
1092
|
+
# },
|
992
1093
|
# source_layer_hash: {
|
993
1094
|
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
994
1095
|
# value: "StringInput", # required
|
@@ -1050,7 +1151,7 @@ module Aws::Inspector2
|
|
1050
1151
|
end
|
1051
1152
|
|
1052
1153
|
# Describe Amazon Inspector configuration settings for an Amazon Web
|
1053
|
-
# Services organization
|
1154
|
+
# Services organization.
|
1054
1155
|
#
|
1055
1156
|
# @return [Types::DescribeOrganizationConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1056
1157
|
#
|
@@ -1061,6 +1162,7 @@ module Aws::Inspector2
|
|
1061
1162
|
#
|
1062
1163
|
# resp.auto_enable.ec2 #=> Boolean
|
1063
1164
|
# resp.auto_enable.ecr #=> Boolean
|
1165
|
+
# resp.auto_enable.lambda #=> Boolean
|
1064
1166
|
# resp.max_account_limit_reached #=> Boolean
|
1065
1167
|
#
|
1066
1168
|
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/DescribeOrganizationConfiguration AWS API Documentation
|
@@ -1092,7 +1194,7 @@ module Aws::Inspector2
|
|
1092
1194
|
#
|
1093
1195
|
# resp = client.disable({
|
1094
1196
|
# account_ids: ["AccountId"],
|
1095
|
-
# resource_types: ["EC2"], # accepts EC2, ECR
|
1197
|
+
# resource_types: ["EC2"], # accepts EC2, ECR, LAMBDA
|
1096
1198
|
# })
|
1097
1199
|
#
|
1098
1200
|
# @example Response structure
|
@@ -1101,6 +1203,7 @@ module Aws::Inspector2
|
|
1101
1203
|
# resp.accounts[0].account_id #=> String
|
1102
1204
|
# resp.accounts[0].resource_status.ec2 #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
|
1103
1205
|
# resp.accounts[0].resource_status.ecr #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
|
1206
|
+
# resp.accounts[0].resource_status.lambda #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
|
1104
1207
|
# resp.accounts[0].status #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
|
1105
1208
|
# resp.failed_accounts #=> Array
|
1106
1209
|
# resp.failed_accounts[0].account_id #=> String
|
@@ -1108,6 +1211,7 @@ module Aws::Inspector2
|
|
1108
1211
|
# resp.failed_accounts[0].error_message #=> String
|
1109
1212
|
# resp.failed_accounts[0].resource_status.ec2 #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
|
1110
1213
|
# resp.failed_accounts[0].resource_status.ecr #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
|
1214
|
+
# resp.failed_accounts[0].resource_status.lambda #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
|
1111
1215
|
# resp.failed_accounts[0].status #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
|
1112
1216
|
#
|
1113
1217
|
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/Disable AWS API Documentation
|
@@ -1204,7 +1308,7 @@ module Aws::Inspector2
|
|
1204
1308
|
# resp = client.enable({
|
1205
1309
|
# account_ids: ["AccountId"],
|
1206
1310
|
# client_token: "ClientToken",
|
1207
|
-
# resource_types: ["EC2"], # required, accepts EC2, ECR
|
1311
|
+
# resource_types: ["EC2"], # required, accepts EC2, ECR, LAMBDA
|
1208
1312
|
# })
|
1209
1313
|
#
|
1210
1314
|
# @example Response structure
|
@@ -1213,6 +1317,7 @@ module Aws::Inspector2
|
|
1213
1317
|
# resp.accounts[0].account_id #=> String
|
1214
1318
|
# resp.accounts[0].resource_status.ec2 #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
|
1215
1319
|
# resp.accounts[0].resource_status.ecr #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
|
1320
|
+
# resp.accounts[0].resource_status.lambda #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
|
1216
1321
|
# resp.accounts[0].status #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
|
1217
1322
|
# resp.failed_accounts #=> Array
|
1218
1323
|
# resp.failed_accounts[0].account_id #=> String
|
@@ -1220,6 +1325,7 @@ module Aws::Inspector2
|
|
1220
1325
|
# resp.failed_accounts[0].error_message #=> String
|
1221
1326
|
# resp.failed_accounts[0].resource_status.ec2 #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
|
1222
1327
|
# resp.failed_accounts[0].resource_status.ecr #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
|
1328
|
+
# resp.failed_accounts[0].resource_status.lambda #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
|
1223
1329
|
# resp.failed_accounts[0].status #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
|
1224
1330
|
#
|
1225
1331
|
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/Enable AWS API Documentation
|
@@ -1373,6 +1479,9 @@ module Aws::Inspector2
|
|
1373
1479
|
# resp.filter_criteria.ecr_image_tags #=> Array
|
1374
1480
|
# resp.filter_criteria.ecr_image_tags[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
|
1375
1481
|
# resp.filter_criteria.ecr_image_tags[0].value #=> String
|
1482
|
+
# resp.filter_criteria.exploit_available #=> Array
|
1483
|
+
# resp.filter_criteria.exploit_available[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
|
1484
|
+
# resp.filter_criteria.exploit_available[0].value #=> String
|
1376
1485
|
# resp.filter_criteria.finding_arn #=> Array
|
1377
1486
|
# resp.filter_criteria.finding_arn[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
|
1378
1487
|
# resp.filter_criteria.finding_arn[0].value #=> String
|
@@ -1391,6 +1500,21 @@ module Aws::Inspector2
|
|
1391
1500
|
# resp.filter_criteria.inspector_score #=> Array
|
1392
1501
|
# resp.filter_criteria.inspector_score[0].lower_inclusive #=> Float
|
1393
1502
|
# resp.filter_criteria.inspector_score[0].upper_inclusive #=> Float
|
1503
|
+
# resp.filter_criteria.lambda_function_execution_role_arn #=> Array
|
1504
|
+
# resp.filter_criteria.lambda_function_execution_role_arn[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
|
1505
|
+
# resp.filter_criteria.lambda_function_execution_role_arn[0].value #=> String
|
1506
|
+
# resp.filter_criteria.lambda_function_last_modified_at #=> Array
|
1507
|
+
# resp.filter_criteria.lambda_function_last_modified_at[0].end_inclusive #=> Time
|
1508
|
+
# resp.filter_criteria.lambda_function_last_modified_at[0].start_inclusive #=> Time
|
1509
|
+
# resp.filter_criteria.lambda_function_layers #=> Array
|
1510
|
+
# resp.filter_criteria.lambda_function_layers[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
|
1511
|
+
# resp.filter_criteria.lambda_function_layers[0].value #=> String
|
1512
|
+
# resp.filter_criteria.lambda_function_name #=> Array
|
1513
|
+
# resp.filter_criteria.lambda_function_name[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
|
1514
|
+
# resp.filter_criteria.lambda_function_name[0].value #=> String
|
1515
|
+
# resp.filter_criteria.lambda_function_runtime #=> Array
|
1516
|
+
# resp.filter_criteria.lambda_function_runtime[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
|
1517
|
+
# resp.filter_criteria.lambda_function_runtime[0].value #=> String
|
1394
1518
|
# resp.filter_criteria.last_observed_at #=> Array
|
1395
1519
|
# resp.filter_criteria.last_observed_at[0].end_inclusive #=> Time
|
1396
1520
|
# resp.filter_criteria.last_observed_at[0].start_inclusive #=> Time
|
@@ -1440,6 +1564,8 @@ module Aws::Inspector2
|
|
1440
1564
|
# resp.filter_criteria.vulnerable_packages[0].name.value #=> String
|
1441
1565
|
# resp.filter_criteria.vulnerable_packages[0].release.comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
|
1442
1566
|
# resp.filter_criteria.vulnerable_packages[0].release.value #=> String
|
1567
|
+
# resp.filter_criteria.vulnerable_packages[0].source_lambda_layer_arn.comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
|
1568
|
+
# resp.filter_criteria.vulnerable_packages[0].source_lambda_layer_arn.value #=> String
|
1443
1569
|
# resp.filter_criteria.vulnerable_packages[0].source_layer_hash.comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
|
1444
1570
|
# resp.filter_criteria.vulnerable_packages[0].source_layer_hash.value #=> String
|
1445
1571
|
# resp.filter_criteria.vulnerable_packages[0].version.comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
|
@@ -1515,7 +1641,7 @@ module Aws::Inspector2
|
|
1515
1641
|
# resp = client.list_account_permissions({
|
1516
1642
|
# max_results: 1,
|
1517
1643
|
# next_token: "NextToken",
|
1518
|
-
# service: "EC2", # accepts EC2, ECR
|
1644
|
+
# service: "EC2", # accepts EC2, ECR, LAMBDA
|
1519
1645
|
# })
|
1520
1646
|
#
|
1521
1647
|
# @example Response structure
|
@@ -1523,7 +1649,7 @@ module Aws::Inspector2
|
|
1523
1649
|
# resp.next_token #=> String
|
1524
1650
|
# resp.permissions #=> Array
|
1525
1651
|
# resp.permissions[0].operation #=> String, one of "ENABLE_SCANNING", "DISABLE_SCANNING", "ENABLE_REPOSITORY", "DISABLE_REPOSITORY"
|
1526
|
-
# resp.permissions[0].service #=> String, one of "EC2", "ECR"
|
1652
|
+
# resp.permissions[0].service #=> String, one of "EC2", "ECR", "LAMBDA"
|
1527
1653
|
#
|
1528
1654
|
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/ListAccountPermissions AWS API Documentation
|
1529
1655
|
#
|
@@ -1586,6 +1712,25 @@ module Aws::Inspector2
|
|
1586
1712
|
# value: "CoverageStringInput", # required
|
1587
1713
|
# },
|
1588
1714
|
# ],
|
1715
|
+
# lambda_function_name: [
|
1716
|
+
# {
|
1717
|
+
# comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
|
1718
|
+
# value: "CoverageStringInput", # required
|
1719
|
+
# },
|
1720
|
+
# ],
|
1721
|
+
# lambda_function_runtime: [
|
1722
|
+
# {
|
1723
|
+
# comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
|
1724
|
+
# value: "CoverageStringInput", # required
|
1725
|
+
# },
|
1726
|
+
# ],
|
1727
|
+
# lambda_function_tags: [
|
1728
|
+
# {
|
1729
|
+
# comparison: "EQUALS", # required, accepts EQUALS
|
1730
|
+
# key: "NonEmptyString", # required
|
1731
|
+
# value: "NonEmptyString",
|
1732
|
+
# },
|
1733
|
+
# ],
|
1589
1734
|
# resource_id: [
|
1590
1735
|
# {
|
1591
1736
|
# comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
|
@@ -1634,8 +1779,14 @@ module Aws::Inspector2
|
|
1634
1779
|
# resp.covered_resources[0].resource_metadata.ecr_image.tags[0] #=> String
|
1635
1780
|
# resp.covered_resources[0].resource_metadata.ecr_repository.name #=> String
|
1636
1781
|
# resp.covered_resources[0].resource_metadata.ecr_repository.scan_frequency #=> String, one of "MANUAL", "SCAN_ON_PUSH", "CONTINUOUS_SCAN"
|
1637
|
-
# resp.covered_resources[0].
|
1638
|
-
# resp.covered_resources[0].
|
1782
|
+
# resp.covered_resources[0].resource_metadata.lambda_function.function_name #=> String
|
1783
|
+
# resp.covered_resources[0].resource_metadata.lambda_function.function_tags #=> Hash
|
1784
|
+
# resp.covered_resources[0].resource_metadata.lambda_function.function_tags["MapKey"] #=> String
|
1785
|
+
# resp.covered_resources[0].resource_metadata.lambda_function.layers #=> Array
|
1786
|
+
# resp.covered_resources[0].resource_metadata.lambda_function.layers[0] #=> String
|
1787
|
+
# resp.covered_resources[0].resource_metadata.lambda_function.runtime #=> String, one of "NODEJS", "NODEJS_12_X", "NODEJS_14_X", "NODEJS_16_X", "JAVA_8", "JAVA_8_AL2", "JAVA_11", "PYTHON_3_7", "PYTHON_3_8", "PYTHON_3_9", "UNSUPPORTED"
|
1788
|
+
# resp.covered_resources[0].resource_type #=> String, one of "AWS_EC2_INSTANCE", "AWS_ECR_CONTAINER_IMAGE", "AWS_ECR_REPOSITORY", "AWS_LAMBDA_FUNCTION"
|
1789
|
+
# 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"
|
1639
1790
|
# resp.covered_resources[0].scan_status.status_code #=> String, one of "ACTIVE", "INACTIVE"
|
1640
1791
|
# resp.covered_resources[0].scan_type #=> String, one of "NETWORK", "PACKAGE"
|
1641
1792
|
# resp.next_token #=> String
|
@@ -1702,6 +1853,25 @@ module Aws::Inspector2
|
|
1702
1853
|
# value: "CoverageStringInput", # required
|
1703
1854
|
# },
|
1704
1855
|
# ],
|
1856
|
+
# lambda_function_name: [
|
1857
|
+
# {
|
1858
|
+
# comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
|
1859
|
+
# value: "CoverageStringInput", # required
|
1860
|
+
# },
|
1861
|
+
# ],
|
1862
|
+
# lambda_function_runtime: [
|
1863
|
+
# {
|
1864
|
+
# comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
|
1865
|
+
# value: "CoverageStringInput", # required
|
1866
|
+
# },
|
1867
|
+
# ],
|
1868
|
+
# lambda_function_tags: [
|
1869
|
+
# {
|
1870
|
+
# comparison: "EQUALS", # required, accepts EQUALS
|
1871
|
+
# key: "NonEmptyString", # required
|
1872
|
+
# value: "NonEmptyString",
|
1873
|
+
# },
|
1874
|
+
# ],
|
1705
1875
|
# resource_id: [
|
1706
1876
|
# {
|
1707
1877
|
# comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
|
@@ -1873,6 +2043,9 @@ module Aws::Inspector2
|
|
1873
2043
|
# resp.filters[0].criteria.ecr_image_tags #=> Array
|
1874
2044
|
# resp.filters[0].criteria.ecr_image_tags[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
|
1875
2045
|
# resp.filters[0].criteria.ecr_image_tags[0].value #=> String
|
2046
|
+
# resp.filters[0].criteria.exploit_available #=> Array
|
2047
|
+
# resp.filters[0].criteria.exploit_available[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
|
2048
|
+
# resp.filters[0].criteria.exploit_available[0].value #=> String
|
1876
2049
|
# resp.filters[0].criteria.finding_arn #=> Array
|
1877
2050
|
# resp.filters[0].criteria.finding_arn[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
|
1878
2051
|
# resp.filters[0].criteria.finding_arn[0].value #=> String
|
@@ -1891,6 +2064,21 @@ module Aws::Inspector2
|
|
1891
2064
|
# resp.filters[0].criteria.inspector_score #=> Array
|
1892
2065
|
# resp.filters[0].criteria.inspector_score[0].lower_inclusive #=> Float
|
1893
2066
|
# resp.filters[0].criteria.inspector_score[0].upper_inclusive #=> Float
|
2067
|
+
# resp.filters[0].criteria.lambda_function_execution_role_arn #=> Array
|
2068
|
+
# resp.filters[0].criteria.lambda_function_execution_role_arn[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
|
2069
|
+
# resp.filters[0].criteria.lambda_function_execution_role_arn[0].value #=> String
|
2070
|
+
# resp.filters[0].criteria.lambda_function_last_modified_at #=> Array
|
2071
|
+
# resp.filters[0].criteria.lambda_function_last_modified_at[0].end_inclusive #=> Time
|
2072
|
+
# resp.filters[0].criteria.lambda_function_last_modified_at[0].start_inclusive #=> Time
|
2073
|
+
# resp.filters[0].criteria.lambda_function_layers #=> Array
|
2074
|
+
# resp.filters[0].criteria.lambda_function_layers[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
|
2075
|
+
# resp.filters[0].criteria.lambda_function_layers[0].value #=> String
|
2076
|
+
# resp.filters[0].criteria.lambda_function_name #=> Array
|
2077
|
+
# resp.filters[0].criteria.lambda_function_name[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
|
2078
|
+
# resp.filters[0].criteria.lambda_function_name[0].value #=> String
|
2079
|
+
# resp.filters[0].criteria.lambda_function_runtime #=> Array
|
2080
|
+
# resp.filters[0].criteria.lambda_function_runtime[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
|
2081
|
+
# resp.filters[0].criteria.lambda_function_runtime[0].value #=> String
|
1894
2082
|
# resp.filters[0].criteria.last_observed_at #=> Array
|
1895
2083
|
# resp.filters[0].criteria.last_observed_at[0].end_inclusive #=> Time
|
1896
2084
|
# resp.filters[0].criteria.last_observed_at[0].start_inclusive #=> Time
|
@@ -1940,6 +2128,8 @@ module Aws::Inspector2
|
|
1940
2128
|
# resp.filters[0].criteria.vulnerable_packages[0].name.value #=> String
|
1941
2129
|
# resp.filters[0].criteria.vulnerable_packages[0].release.comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
|
1942
2130
|
# resp.filters[0].criteria.vulnerable_packages[0].release.value #=> String
|
2131
|
+
# resp.filters[0].criteria.vulnerable_packages[0].source_lambda_layer_arn.comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
|
2132
|
+
# resp.filters[0].criteria.vulnerable_packages[0].source_lambda_layer_arn.value #=> String
|
1943
2133
|
# resp.filters[0].criteria.vulnerable_packages[0].source_layer_hash.comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
|
1944
2134
|
# resp.filters[0].criteria.vulnerable_packages[0].source_layer_hash.value #=> String
|
1945
2135
|
# resp.filters[0].criteria.vulnerable_packages[0].version.comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
|
@@ -2006,7 +2196,7 @@ module Aws::Inspector2
|
|
2006
2196
|
# aggregation_request: {
|
2007
2197
|
# account_aggregation: {
|
2008
2198
|
# finding_type: "NETWORK_REACHABILITY", # accepts NETWORK_REACHABILITY, PACKAGE_VULNERABILITY
|
2009
|
-
# resource_type: "AWS_EC2_INSTANCE", # accepts AWS_EC2_INSTANCE, AWS_ECR_CONTAINER_IMAGE
|
2199
|
+
# resource_type: "AWS_EC2_INSTANCE", # accepts AWS_EC2_INSTANCE, AWS_ECR_CONTAINER_IMAGE, AWS_LAMBDA_FUNCTION
|
2010
2200
|
# sort_by: "CRITICAL", # accepts CRITICAL, HIGH, ALL
|
2011
2201
|
# sort_order: "ASC", # accepts ASC, DESC
|
2012
2202
|
# },
|
@@ -2085,7 +2275,7 @@ module Aws::Inspector2
|
|
2085
2275
|
# },
|
2086
2276
|
# finding_type_aggregation: {
|
2087
2277
|
# finding_type: "NETWORK_REACHABILITY", # accepts NETWORK_REACHABILITY, PACKAGE_VULNERABILITY
|
2088
|
-
# resource_type: "AWS_EC2_INSTANCE", # accepts AWS_EC2_INSTANCE, AWS_ECR_CONTAINER_IMAGE
|
2278
|
+
# resource_type: "AWS_EC2_INSTANCE", # accepts AWS_EC2_INSTANCE, AWS_ECR_CONTAINER_IMAGE, AWS_LAMBDA_FUNCTION
|
2089
2279
|
# sort_by: "CRITICAL", # accepts CRITICAL, HIGH, ALL
|
2090
2280
|
# sort_order: "ASC", # accepts ASC, DESC
|
2091
2281
|
# },
|
@@ -2111,6 +2301,57 @@ module Aws::Inspector2
|
|
2111
2301
|
# sort_by: "CRITICAL", # accepts CRITICAL, HIGH, ALL
|
2112
2302
|
# sort_order: "ASC", # accepts ASC, DESC
|
2113
2303
|
# },
|
2304
|
+
# lambda_function_aggregation: {
|
2305
|
+
# function_names: [
|
2306
|
+
# {
|
2307
|
+
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
2308
|
+
# value: "StringInput", # required
|
2309
|
+
# },
|
2310
|
+
# ],
|
2311
|
+
# function_tags: [
|
2312
|
+
# {
|
2313
|
+
# comparison: "EQUALS", # required, accepts EQUALS
|
2314
|
+
# key: "MapKey", # required
|
2315
|
+
# value: "MapValue",
|
2316
|
+
# },
|
2317
|
+
# ],
|
2318
|
+
# resource_ids: [
|
2319
|
+
# {
|
2320
|
+
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
2321
|
+
# value: "StringInput", # required
|
2322
|
+
# },
|
2323
|
+
# ],
|
2324
|
+
# runtimes: [
|
2325
|
+
# {
|
2326
|
+
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
2327
|
+
# value: "StringInput", # required
|
2328
|
+
# },
|
2329
|
+
# ],
|
2330
|
+
# sort_by: "CRITICAL", # accepts CRITICAL, HIGH, ALL
|
2331
|
+
# sort_order: "ASC", # accepts ASC, DESC
|
2332
|
+
# },
|
2333
|
+
# lambda_layer_aggregation: {
|
2334
|
+
# function_names: [
|
2335
|
+
# {
|
2336
|
+
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
2337
|
+
# value: "StringInput", # required
|
2338
|
+
# },
|
2339
|
+
# ],
|
2340
|
+
# layer_arns: [
|
2341
|
+
# {
|
2342
|
+
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
2343
|
+
# value: "StringInput", # required
|
2344
|
+
# },
|
2345
|
+
# ],
|
2346
|
+
# resource_ids: [
|
2347
|
+
# {
|
2348
|
+
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
2349
|
+
# value: "StringInput", # required
|
2350
|
+
# },
|
2351
|
+
# ],
|
2352
|
+
# sort_by: "CRITICAL", # accepts CRITICAL, HIGH, ALL
|
2353
|
+
# sort_order: "ASC", # accepts ASC, DESC
|
2354
|
+
# },
|
2114
2355
|
# package_aggregation: {
|
2115
2356
|
# package_names: [
|
2116
2357
|
# {
|
@@ -2132,7 +2373,7 @@ module Aws::Inspector2
|
|
2132
2373
|
# sort_order: "ASC", # accepts ASC, DESC
|
2133
2374
|
# },
|
2134
2375
|
# title_aggregation: {
|
2135
|
-
# resource_type: "AWS_EC2_INSTANCE", # accepts AWS_EC2_INSTANCE, AWS_ECR_CONTAINER_IMAGE
|
2376
|
+
# resource_type: "AWS_EC2_INSTANCE", # accepts AWS_EC2_INSTANCE, AWS_ECR_CONTAINER_IMAGE, AWS_LAMBDA_FUNCTION
|
2136
2377
|
# sort_by: "CRITICAL", # accepts CRITICAL, HIGH, ALL
|
2137
2378
|
# sort_order: "ASC", # accepts ASC, DESC
|
2138
2379
|
# titles: [
|
@@ -2149,14 +2390,14 @@ module Aws::Inspector2
|
|
2149
2390
|
# ],
|
2150
2391
|
# },
|
2151
2392
|
# },
|
2152
|
-
# aggregation_type: "FINDING_TYPE", # required, accepts FINDING_TYPE, PACKAGE, TITLE, REPOSITORY, AMI, AWS_EC2_INSTANCE, AWS_ECR_CONTAINER, IMAGE_LAYER, ACCOUNT
|
2393
|
+
# aggregation_type: "FINDING_TYPE", # required, accepts FINDING_TYPE, PACKAGE, TITLE, REPOSITORY, AMI, AWS_EC2_INSTANCE, AWS_ECR_CONTAINER, IMAGE_LAYER, ACCOUNT, AWS_LAMBDA_FUNCTION, LAMBDA_LAYER
|
2153
2394
|
# max_results: 1,
|
2154
2395
|
# next_token: "NextToken",
|
2155
2396
|
# })
|
2156
2397
|
#
|
2157
2398
|
# @example Response structure
|
2158
2399
|
#
|
2159
|
-
# resp.aggregation_type #=> String, one of "FINDING_TYPE", "PACKAGE", "TITLE", "REPOSITORY", "AMI", "AWS_EC2_INSTANCE", "AWS_ECR_CONTAINER", "IMAGE_LAYER", "ACCOUNT"
|
2400
|
+
# resp.aggregation_type #=> String, one of "FINDING_TYPE", "PACKAGE", "TITLE", "REPOSITORY", "AMI", "AWS_EC2_INSTANCE", "AWS_ECR_CONTAINER", "IMAGE_LAYER", "ACCOUNT", "AWS_LAMBDA_FUNCTION", "LAMBDA_LAYER"
|
2160
2401
|
# resp.next_token #=> String
|
2161
2402
|
# resp.responses #=> Array
|
2162
2403
|
# resp.responses[0].account_aggregation.account_id #=> String
|
@@ -2206,6 +2447,25 @@ module Aws::Inspector2
|
|
2206
2447
|
# resp.responses[0].image_layer_aggregation.severity_counts.critical #=> Integer
|
2207
2448
|
# resp.responses[0].image_layer_aggregation.severity_counts.high #=> Integer
|
2208
2449
|
# resp.responses[0].image_layer_aggregation.severity_counts.medium #=> Integer
|
2450
|
+
# resp.responses[0].lambda_function_aggregation.account_id #=> String
|
2451
|
+
# resp.responses[0].lambda_function_aggregation.function_name #=> String
|
2452
|
+
# resp.responses[0].lambda_function_aggregation.lambda_tags #=> Hash
|
2453
|
+
# resp.responses[0].lambda_function_aggregation.lambda_tags["MapKey"] #=> String
|
2454
|
+
# resp.responses[0].lambda_function_aggregation.last_modified_at #=> Time
|
2455
|
+
# resp.responses[0].lambda_function_aggregation.resource_id #=> String
|
2456
|
+
# resp.responses[0].lambda_function_aggregation.runtime #=> String
|
2457
|
+
# resp.responses[0].lambda_function_aggregation.severity_counts.all #=> Integer
|
2458
|
+
# resp.responses[0].lambda_function_aggregation.severity_counts.critical #=> Integer
|
2459
|
+
# resp.responses[0].lambda_function_aggregation.severity_counts.high #=> Integer
|
2460
|
+
# resp.responses[0].lambda_function_aggregation.severity_counts.medium #=> Integer
|
2461
|
+
# resp.responses[0].lambda_layer_aggregation.account_id #=> String
|
2462
|
+
# resp.responses[0].lambda_layer_aggregation.function_name #=> String
|
2463
|
+
# resp.responses[0].lambda_layer_aggregation.layer_arn #=> String
|
2464
|
+
# resp.responses[0].lambda_layer_aggregation.resource_id #=> String
|
2465
|
+
# resp.responses[0].lambda_layer_aggregation.severity_counts.all #=> Integer
|
2466
|
+
# resp.responses[0].lambda_layer_aggregation.severity_counts.critical #=> Integer
|
2467
|
+
# resp.responses[0].lambda_layer_aggregation.severity_counts.high #=> Integer
|
2468
|
+
# resp.responses[0].lambda_layer_aggregation.severity_counts.medium #=> Integer
|
2209
2469
|
# resp.responses[0].package_aggregation.account_id #=> String
|
2210
2470
|
# resp.responses[0].package_aggregation.package_name #=> String
|
2211
2471
|
# resp.responses[0].package_aggregation.severity_counts.all #=> Integer
|
@@ -2337,6 +2597,12 @@ module Aws::Inspector2
|
|
2337
2597
|
# value: "StringInput", # required
|
2338
2598
|
# },
|
2339
2599
|
# ],
|
2600
|
+
# exploit_available: [
|
2601
|
+
# {
|
2602
|
+
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
2603
|
+
# value: "StringInput", # required
|
2604
|
+
# },
|
2605
|
+
# ],
|
2340
2606
|
# finding_arn: [
|
2341
2607
|
# {
|
2342
2608
|
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
@@ -2373,6 +2639,36 @@ module Aws::Inspector2
|
|
2373
2639
|
# upper_inclusive: 1.0,
|
2374
2640
|
# },
|
2375
2641
|
# ],
|
2642
|
+
# lambda_function_execution_role_arn: [
|
2643
|
+
# {
|
2644
|
+
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
2645
|
+
# value: "StringInput", # required
|
2646
|
+
# },
|
2647
|
+
# ],
|
2648
|
+
# lambda_function_last_modified_at: [
|
2649
|
+
# {
|
2650
|
+
# end_inclusive: Time.now,
|
2651
|
+
# start_inclusive: Time.now,
|
2652
|
+
# },
|
2653
|
+
# ],
|
2654
|
+
# lambda_function_layers: [
|
2655
|
+
# {
|
2656
|
+
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
2657
|
+
# value: "StringInput", # required
|
2658
|
+
# },
|
2659
|
+
# ],
|
2660
|
+
# lambda_function_name: [
|
2661
|
+
# {
|
2662
|
+
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
2663
|
+
# value: "StringInput", # required
|
2664
|
+
# },
|
2665
|
+
# ],
|
2666
|
+
# lambda_function_runtime: [
|
2667
|
+
# {
|
2668
|
+
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
2669
|
+
# value: "StringInput", # required
|
2670
|
+
# },
|
2671
|
+
# ],
|
2376
2672
|
# last_observed_at: [
|
2377
2673
|
# {
|
2378
2674
|
# end_inclusive: Time.now,
|
@@ -2470,6 +2766,10 @@ module Aws::Inspector2
|
|
2470
2766
|
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
2471
2767
|
# value: "StringInput", # required
|
2472
2768
|
# },
|
2769
|
+
# source_lambda_layer_arn: {
|
2770
|
+
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
2771
|
+
# value: "StringInput", # required
|
2772
|
+
# },
|
2473
2773
|
# source_layer_hash: {
|
2474
2774
|
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
2475
2775
|
# value: "StringInput", # required
|
@@ -2494,6 +2794,8 @@ module Aws::Inspector2
|
|
2494
2794
|
# resp.findings #=> Array
|
2495
2795
|
# resp.findings[0].aws_account_id #=> String
|
2496
2796
|
# resp.findings[0].description #=> String
|
2797
|
+
# resp.findings[0].exploit_available #=> String, one of "YES", "NO"
|
2798
|
+
# resp.findings[0].exploitability_details.last_known_exploit_at #=> Time
|
2497
2799
|
# resp.findings[0].finding_arn #=> String
|
2498
2800
|
# resp.findings[0].first_observed_at #=> Time
|
2499
2801
|
# resp.findings[0].fix_available #=> String, one of "YES", "NO", "PARTIAL"
|
@@ -2537,6 +2839,7 @@ module Aws::Inspector2
|
|
2537
2839
|
# resp.findings[0].package_vulnerability_details.vulnerable_packages[0].package_manager #=> String, one of "BUNDLER", "CARGO", "COMPOSER", "NPM", "NUGET", "PIPENV", "POETRY", "YARN", "GOBINARY", "GOMOD", "JAR", "OS", "PIP", "PYTHONPKG", "NODEPKG", "POM"
|
2538
2840
|
# resp.findings[0].package_vulnerability_details.vulnerable_packages[0].release #=> String
|
2539
2841
|
# resp.findings[0].package_vulnerability_details.vulnerable_packages[0].remediation #=> String
|
2842
|
+
# resp.findings[0].package_vulnerability_details.vulnerable_packages[0].source_lambda_layer_arn #=> String
|
2540
2843
|
# resp.findings[0].package_vulnerability_details.vulnerable_packages[0].source_layer_hash #=> String
|
2541
2844
|
# resp.findings[0].package_vulnerability_details.vulnerable_packages[0].version #=> String
|
2542
2845
|
# resp.findings[0].remediation.recommendation.url #=> String
|
@@ -2563,12 +2866,28 @@ module Aws::Inspector2
|
|
2563
2866
|
# resp.findings[0].resources[0].details.aws_ecr_container_image.pushed_at #=> Time
|
2564
2867
|
# resp.findings[0].resources[0].details.aws_ecr_container_image.registry #=> String
|
2565
2868
|
# resp.findings[0].resources[0].details.aws_ecr_container_image.repository_name #=> String
|
2869
|
+
# resp.findings[0].resources[0].details.aws_lambda_function.architectures #=> Array
|
2870
|
+
# resp.findings[0].resources[0].details.aws_lambda_function.architectures[0] #=> String, one of "X86_64", "ARM64"
|
2871
|
+
# resp.findings[0].resources[0].details.aws_lambda_function.code_sha_256 #=> String
|
2872
|
+
# resp.findings[0].resources[0].details.aws_lambda_function.execution_role_arn #=> String
|
2873
|
+
# resp.findings[0].resources[0].details.aws_lambda_function.function_name #=> String
|
2874
|
+
# resp.findings[0].resources[0].details.aws_lambda_function.last_modified_at #=> Time
|
2875
|
+
# resp.findings[0].resources[0].details.aws_lambda_function.layers #=> Array
|
2876
|
+
# resp.findings[0].resources[0].details.aws_lambda_function.layers[0] #=> String
|
2877
|
+
# resp.findings[0].resources[0].details.aws_lambda_function.package_type #=> String, one of "IMAGE", "ZIP"
|
2878
|
+
# resp.findings[0].resources[0].details.aws_lambda_function.runtime #=> String, one of "NODEJS", "NODEJS_12_X", "NODEJS_14_X", "NODEJS_16_X", "JAVA_8", "JAVA_8_AL2", "JAVA_11", "PYTHON_3_7", "PYTHON_3_8", "PYTHON_3_9", "UNSUPPORTED"
|
2879
|
+
# resp.findings[0].resources[0].details.aws_lambda_function.version #=> String
|
2880
|
+
# resp.findings[0].resources[0].details.aws_lambda_function.vpc_config.security_group_ids #=> Array
|
2881
|
+
# resp.findings[0].resources[0].details.aws_lambda_function.vpc_config.security_group_ids[0] #=> String
|
2882
|
+
# resp.findings[0].resources[0].details.aws_lambda_function.vpc_config.subnet_ids #=> Array
|
2883
|
+
# resp.findings[0].resources[0].details.aws_lambda_function.vpc_config.subnet_ids[0] #=> String
|
2884
|
+
# resp.findings[0].resources[0].details.aws_lambda_function.vpc_config.vpc_id #=> String
|
2566
2885
|
# resp.findings[0].resources[0].id #=> String
|
2567
2886
|
# resp.findings[0].resources[0].partition #=> String
|
2568
2887
|
# resp.findings[0].resources[0].region #=> String
|
2569
2888
|
# resp.findings[0].resources[0].tags #=> Hash
|
2570
2889
|
# resp.findings[0].resources[0].tags["MapKey"] #=> String
|
2571
|
-
# resp.findings[0].resources[0].type #=> String, one of "AWS_EC2_INSTANCE", "AWS_ECR_CONTAINER_IMAGE", "AWS_ECR_REPOSITORY"
|
2890
|
+
# resp.findings[0].resources[0].type #=> String, one of "AWS_EC2_INSTANCE", "AWS_ECR_CONTAINER_IMAGE", "AWS_ECR_REPOSITORY", "AWS_LAMBDA_FUNCTION"
|
2572
2891
|
# resp.findings[0].severity #=> String, one of "INFORMATIONAL", "LOW", "MEDIUM", "HIGH", "CRITICAL", "UNTRIAGED"
|
2573
2892
|
# resp.findings[0].status #=> String, one of "ACTIVE", "SUPPRESSED", "CLOSED"
|
2574
2893
|
# resp.findings[0].title #=> String
|
@@ -2703,7 +3022,7 @@ module Aws::Inspector2
|
|
2703
3022
|
# resp.totals[0].usage[0].currency #=> String, one of "USD"
|
2704
3023
|
# resp.totals[0].usage[0].estimated_monthly_cost #=> Float
|
2705
3024
|
# resp.totals[0].usage[0].total #=> Float
|
2706
|
-
# resp.totals[0].usage[0].type #=> String, one of "EC2_INSTANCE_HOURS", "ECR_INITIAL_SCAN", "ECR_RESCAN"
|
3025
|
+
# resp.totals[0].usage[0].type #=> String, one of "EC2_INSTANCE_HOURS", "ECR_INITIAL_SCAN", "ECR_RESCAN", "LAMBDA_FUNCTION_HOURS"
|
2707
3026
|
#
|
2708
3027
|
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/ListUsageTotals AWS API Documentation
|
2709
3028
|
#
|
@@ -2901,6 +3220,12 @@ module Aws::Inspector2
|
|
2901
3220
|
# value: "StringInput", # required
|
2902
3221
|
# },
|
2903
3222
|
# ],
|
3223
|
+
# exploit_available: [
|
3224
|
+
# {
|
3225
|
+
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
3226
|
+
# value: "StringInput", # required
|
3227
|
+
# },
|
3228
|
+
# ],
|
2904
3229
|
# finding_arn: [
|
2905
3230
|
# {
|
2906
3231
|
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
@@ -2937,6 +3262,36 @@ module Aws::Inspector2
|
|
2937
3262
|
# upper_inclusive: 1.0,
|
2938
3263
|
# },
|
2939
3264
|
# ],
|
3265
|
+
# lambda_function_execution_role_arn: [
|
3266
|
+
# {
|
3267
|
+
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
3268
|
+
# value: "StringInput", # required
|
3269
|
+
# },
|
3270
|
+
# ],
|
3271
|
+
# lambda_function_last_modified_at: [
|
3272
|
+
# {
|
3273
|
+
# end_inclusive: Time.now,
|
3274
|
+
# start_inclusive: Time.now,
|
3275
|
+
# },
|
3276
|
+
# ],
|
3277
|
+
# lambda_function_layers: [
|
3278
|
+
# {
|
3279
|
+
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
3280
|
+
# value: "StringInput", # required
|
3281
|
+
# },
|
3282
|
+
# ],
|
3283
|
+
# lambda_function_name: [
|
3284
|
+
# {
|
3285
|
+
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
3286
|
+
# value: "StringInput", # required
|
3287
|
+
# },
|
3288
|
+
# ],
|
3289
|
+
# lambda_function_runtime: [
|
3290
|
+
# {
|
3291
|
+
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
3292
|
+
# value: "StringInput", # required
|
3293
|
+
# },
|
3294
|
+
# ],
|
2940
3295
|
# last_observed_at: [
|
2941
3296
|
# {
|
2942
3297
|
# end_inclusive: Time.now,
|
@@ -3034,6 +3389,10 @@ module Aws::Inspector2
|
|
3034
3389
|
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
3035
3390
|
# value: "StringInput", # required
|
3036
3391
|
# },
|
3392
|
+
# source_lambda_layer_arn: {
|
3393
|
+
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
3394
|
+
# value: "StringInput", # required
|
3395
|
+
# },
|
3037
3396
|
# source_layer_hash: {
|
3038
3397
|
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
3039
3398
|
# value: "StringInput", # required
|
@@ -3078,6 +3437,7 @@ module Aws::Inspector2
|
|
3078
3437
|
# auto_enable: { # required
|
3079
3438
|
# ec2: false, # required
|
3080
3439
|
# ecr: false, # required
|
3440
|
+
# lambda: false,
|
3081
3441
|
# },
|
3082
3442
|
# })
|
3083
3443
|
#
|
@@ -3085,6 +3445,7 @@ module Aws::Inspector2
|
|
3085
3445
|
#
|
3086
3446
|
# resp.auto_enable.ec2 #=> Boolean
|
3087
3447
|
# resp.auto_enable.ecr #=> Boolean
|
3448
|
+
# resp.auto_enable.lambda #=> Boolean
|
3088
3449
|
#
|
3089
3450
|
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/UpdateOrganizationConfiguration AWS API Documentation
|
3090
3451
|
#
|
@@ -3108,7 +3469,7 @@ module Aws::Inspector2
|
|
3108
3469
|
params: params,
|
3109
3470
|
config: config)
|
3110
3471
|
context[:gem_name] = 'aws-sdk-inspector2'
|
3111
|
-
context[:gem_version] = '1.
|
3472
|
+
context[:gem_version] = '1.8.0'
|
3112
3473
|
Seahorse::Client::Request.new(handlers, context)
|
3113
3474
|
end
|
3114
3475
|
|