aws-sdk-inspector2 1.74.0 → 1.76.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 +1868 -105
- data/lib/aws-sdk-inspector2/client_api.rb +627 -1
- data/lib/aws-sdk-inspector2/types.rb +2383 -151
- data/lib/aws-sdk-inspector2/waiters.rb +225 -0
- data/lib/aws-sdk-inspector2.rb +2 -1
- data/sig/client.rbs +483 -12
- data/sig/params.rbs +197 -0
- data/sig/types.rbs +527 -20
- data/sig/waiters.rbs +129 -0
- metadata +2 -1
data/sig/client.rbs
CHANGED
|
@@ -268,6 +268,28 @@ module Aws
|
|
|
268
268
|
) -> _CreateCodeSecurityScanConfigurationResponseSuccess
|
|
269
269
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateCodeSecurityScanConfigurationResponseSuccess
|
|
270
270
|
|
|
271
|
+
interface _CreateConnectorResponseSuccess
|
|
272
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::CreateConnectorResponse]
|
|
273
|
+
def connector_arn: () -> ::String
|
|
274
|
+
end
|
|
275
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#create_connector-instance_method
|
|
276
|
+
def create_connector: (
|
|
277
|
+
?client_token: ::String,
|
|
278
|
+
name: ::String,
|
|
279
|
+
provider: ("AZURE"),
|
|
280
|
+
?description: ::String,
|
|
281
|
+
provider_detail: {
|
|
282
|
+
azure: {
|
|
283
|
+
aws_config_connector_arn: ::String,
|
|
284
|
+
scope_configuration: Params::azure_scope_configuration_input,
|
|
285
|
+
azure_regions: Array[::String],
|
|
286
|
+
auto_install_vm_scanner: bool?
|
|
287
|
+
}?
|
|
288
|
+
},
|
|
289
|
+
?tags: Hash[::String, ::String]
|
|
290
|
+
) -> _CreateConnectorResponseSuccess
|
|
291
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateConnectorResponseSuccess
|
|
292
|
+
|
|
271
293
|
interface _CreateFilterResponseSuccess
|
|
272
294
|
include ::Seahorse::Client::_ResponseSuccess[Types::CreateFilterResponse]
|
|
273
295
|
def arn: () -> ::String
|
|
@@ -396,6 +418,15 @@ module Aws
|
|
|
396
418
|
) -> _DeleteCodeSecurityScanConfigurationResponseSuccess
|
|
397
419
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteCodeSecurityScanConfigurationResponseSuccess
|
|
398
420
|
|
|
421
|
+
interface _DeleteConnectorResponseSuccess
|
|
422
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DeleteConnectorResponse]
|
|
423
|
+
end
|
|
424
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#delete_connector-instance_method
|
|
425
|
+
def delete_connector: (
|
|
426
|
+
connector_arn: ::String
|
|
427
|
+
) -> _DeleteConnectorResponseSuccess
|
|
428
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteConnectorResponseSuccess
|
|
429
|
+
|
|
399
430
|
interface _DeleteFilterResponseSuccess
|
|
400
431
|
include ::Seahorse::Client::_ResponseSuccess[Types::DeleteFilterResponse]
|
|
401
432
|
def arn: () -> ::String
|
|
@@ -612,6 +643,7 @@ module Aws
|
|
|
612
643
|
end
|
|
613
644
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#get_configuration-instance_method
|
|
614
645
|
def get_configuration: (
|
|
646
|
+
?account_id: ::String
|
|
615
647
|
) -> _GetConfigurationResponseSuccess
|
|
616
648
|
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetConfigurationResponseSuccess
|
|
617
649
|
|
|
@@ -643,7 +675,7 @@ module Aws
|
|
|
643
675
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#get_encryption_key-instance_method
|
|
644
676
|
def get_encryption_key: (
|
|
645
677
|
scan_type: ("NETWORK" | "PACKAGE" | "CODE"),
|
|
646
|
-
resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY")
|
|
678
|
+
resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY" | "Microsoft.Compute/virtualMachines" | "Microsoft.ContainerRegistry/registry/containerImage" | "Microsoft.Web/sites")
|
|
647
679
|
) -> _GetEncryptionKeyResponseSuccess
|
|
648
680
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetEncryptionKeyResponseSuccess
|
|
649
681
|
|
|
@@ -976,6 +1008,63 @@ module Aws
|
|
|
976
1008
|
) -> _ListCodeSecurityScanConfigurationsResponseSuccess
|
|
977
1009
|
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListCodeSecurityScanConfigurationsResponseSuccess
|
|
978
1010
|
|
|
1011
|
+
interface _ListConnectorScanConfigurationsResponseSuccess
|
|
1012
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListConnectorScanConfigurationsResponse]
|
|
1013
|
+
def scan_configurations: () -> ::Array[Types::ConnectorScanConfigurationItem]
|
|
1014
|
+
def next_token: () -> ::String
|
|
1015
|
+
end
|
|
1016
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#list_connector_scan_configurations-instance_method
|
|
1017
|
+
def list_connector_scan_configurations: (
|
|
1018
|
+
?aws_config_connector_arns: Array[::String],
|
|
1019
|
+
?max_results: ::Integer,
|
|
1020
|
+
?next_token: ::String
|
|
1021
|
+
) -> _ListConnectorScanConfigurationsResponseSuccess
|
|
1022
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListConnectorScanConfigurationsResponseSuccess
|
|
1023
|
+
|
|
1024
|
+
interface _ListConnectorsResponseSuccess
|
|
1025
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListConnectorsResponse]
|
|
1026
|
+
def items: () -> ::Array[Types::Connector]
|
|
1027
|
+
def next_token: () -> ::String
|
|
1028
|
+
end
|
|
1029
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#list_connectors-instance_method
|
|
1030
|
+
def list_connectors: (
|
|
1031
|
+
?max_results: ::Integer,
|
|
1032
|
+
?next_token: ::String,
|
|
1033
|
+
?filter_criteria: {
|
|
1034
|
+
connector_arns: Array[
|
|
1035
|
+
{
|
|
1036
|
+
comparison: ("EQUALS"),
|
|
1037
|
+
value: ::String
|
|
1038
|
+
}
|
|
1039
|
+
]?,
|
|
1040
|
+
accounts: Array[
|
|
1041
|
+
{
|
|
1042
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
1043
|
+
value: ::String
|
|
1044
|
+
}
|
|
1045
|
+
]?,
|
|
1046
|
+
aws_config_connector_arns: Array[
|
|
1047
|
+
{
|
|
1048
|
+
comparison: ("EQUALS"),
|
|
1049
|
+
value: ::String
|
|
1050
|
+
}
|
|
1051
|
+
]?,
|
|
1052
|
+
connector_type: Array[
|
|
1053
|
+
{
|
|
1054
|
+
comparison: ("EQUALS"),
|
|
1055
|
+
value: ("CUSTOMER_MANAGED" | "SERVICE_LINKED")
|
|
1056
|
+
}
|
|
1057
|
+
]?,
|
|
1058
|
+
provider: Array[
|
|
1059
|
+
{
|
|
1060
|
+
comparison: ("EQUALS"),
|
|
1061
|
+
value: ("AZURE")
|
|
1062
|
+
}
|
|
1063
|
+
]?
|
|
1064
|
+
}
|
|
1065
|
+
) -> _ListConnectorsResponseSuccess
|
|
1066
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListConnectorsResponseSuccess
|
|
1067
|
+
|
|
979
1068
|
interface _ListCoverageResponseSuccess
|
|
980
1069
|
include ::Seahorse::Client::_ResponseSuccess[Types::ListCoverageResponse]
|
|
981
1070
|
def next_token: () -> ::String
|
|
@@ -998,7 +1087,7 @@ module Aws
|
|
|
998
1087
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#list_coverage_statistics-instance_method
|
|
999
1088
|
def list_coverage_statistics: (
|
|
1000
1089
|
?filter_criteria: Params::coverage_filter_criteria,
|
|
1001
|
-
?group_by: ("SCAN_STATUS_CODE" | "SCAN_STATUS_REASON" | "ACCOUNT_ID" | "RESOURCE_TYPE" | "ECR_REPOSITORY_NAME"),
|
|
1090
|
+
?group_by: ("SCAN_STATUS_CODE" | "SCAN_STATUS_REASON" | "ACCOUNT_ID" | "RESOURCE_TYPE" | "ECR_REPOSITORY_NAME" | "PROVIDER" | "PROVIDER_ACCOUNT_ID" | "PROVIDER_REGION" | "PROVIDER_ORG_ID"),
|
|
1002
1091
|
?next_token: ::String
|
|
1003
1092
|
) -> _ListCoverageStatisticsResponseSuccess
|
|
1004
1093
|
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListCoverageStatisticsResponseSuccess
|
|
@@ -1031,13 +1120,13 @@ module Aws
|
|
|
1031
1120
|
|
|
1032
1121
|
interface _ListFindingAggregationsResponseSuccess
|
|
1033
1122
|
include ::Seahorse::Client::_ResponseSuccess[Types::ListFindingAggregationsResponse]
|
|
1034
|
-
def aggregation_type: () -> ("FINDING_TYPE" | "PACKAGE" | "TITLE" | "REPOSITORY" | "AMI" | "AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER" | "IMAGE_LAYER" | "ACCOUNT" | "AWS_LAMBDA_FUNCTION" | "LAMBDA_LAYER" | "CODE_REPOSITORY")
|
|
1123
|
+
def aggregation_type: () -> ("FINDING_TYPE" | "PACKAGE" | "TITLE" | "REPOSITORY" | "AMI" | "AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER" | "IMAGE_LAYER" | "ACCOUNT" | "AWS_LAMBDA_FUNCTION" | "LAMBDA_LAYER" | "CODE_REPOSITORY" | "VM_INSTANCE" | "CONTAINER_IMAGE" | "SERVERLESS_FUNCTION")
|
|
1035
1124
|
def responses: () -> ::Array[Types::AggregationResponse]
|
|
1036
1125
|
def next_token: () -> ::String
|
|
1037
1126
|
end
|
|
1038
1127
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#list_finding_aggregations-instance_method
|
|
1039
1128
|
def list_finding_aggregations: (
|
|
1040
|
-
aggregation_type: ("FINDING_TYPE" | "PACKAGE" | "TITLE" | "REPOSITORY" | "AMI" | "AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER" | "IMAGE_LAYER" | "ACCOUNT" | "AWS_LAMBDA_FUNCTION" | "LAMBDA_LAYER" | "CODE_REPOSITORY"),
|
|
1129
|
+
aggregation_type: ("FINDING_TYPE" | "PACKAGE" | "TITLE" | "REPOSITORY" | "AMI" | "AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER" | "IMAGE_LAYER" | "ACCOUNT" | "AWS_LAMBDA_FUNCTION" | "LAMBDA_LAYER" | "CODE_REPOSITORY" | "VM_INSTANCE" | "CONTAINER_IMAGE" | "SERVERLESS_FUNCTION"),
|
|
1041
1130
|
?next_token: ::String,
|
|
1042
1131
|
?max_results: ::Integer,
|
|
1043
1132
|
?account_ids: Array[
|
|
@@ -1049,7 +1138,7 @@ module Aws
|
|
|
1049
1138
|
?aggregation_request: {
|
|
1050
1139
|
account_aggregation: {
|
|
1051
1140
|
finding_type: ("NETWORK_REACHABILITY" | "PACKAGE_VULNERABILITY" | "CODE_VULNERABILITY")?,
|
|
1052
|
-
resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY")?,
|
|
1141
|
+
resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY" | "Microsoft.Compute/virtualMachines" | "Microsoft.ContainerRegistry/registry/containerImage" | "Microsoft.Web/sites")?,
|
|
1053
1142
|
sort_order: ("ASC" | "DESC")?,
|
|
1054
1143
|
sort_by: ("CRITICAL" | "HIGH" | "ALL")?
|
|
1055
1144
|
}?,
|
|
@@ -1140,7 +1229,7 @@ module Aws
|
|
|
1140
1229
|
}?,
|
|
1141
1230
|
finding_type_aggregation: {
|
|
1142
1231
|
finding_type: ("NETWORK_REACHABILITY" | "PACKAGE_VULNERABILITY" | "CODE_VULNERABILITY")?,
|
|
1143
|
-
resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY")?,
|
|
1232
|
+
resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY" | "Microsoft.Compute/virtualMachines" | "Microsoft.ContainerRegistry/registry/containerImage" | "Microsoft.Web/sites")?,
|
|
1144
1233
|
sort_order: ("ASC" | "DESC")?,
|
|
1145
1234
|
sort_by: ("CRITICAL" | "HIGH" | "ALL")?
|
|
1146
1235
|
}?,
|
|
@@ -1163,6 +1252,36 @@ module Aws
|
|
|
1163
1252
|
value: ::String
|
|
1164
1253
|
}
|
|
1165
1254
|
]?,
|
|
1255
|
+
cloud_providers: Array[
|
|
1256
|
+
{
|
|
1257
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
1258
|
+
value: ::String
|
|
1259
|
+
}
|
|
1260
|
+
]?,
|
|
1261
|
+
cloud_account_ids: Array[
|
|
1262
|
+
{
|
|
1263
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
1264
|
+
value: ::String
|
|
1265
|
+
}
|
|
1266
|
+
]?,
|
|
1267
|
+
cloud_org_ids: Array[
|
|
1268
|
+
{
|
|
1269
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
1270
|
+
value: ::String
|
|
1271
|
+
}
|
|
1272
|
+
]?,
|
|
1273
|
+
cloud_regions: Array[
|
|
1274
|
+
{
|
|
1275
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
1276
|
+
value: ::String
|
|
1277
|
+
}
|
|
1278
|
+
]?,
|
|
1279
|
+
cloud_partitions: Array[
|
|
1280
|
+
{
|
|
1281
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
1282
|
+
value: ::String
|
|
1283
|
+
}
|
|
1284
|
+
]?,
|
|
1166
1285
|
sort_order: ("ASC" | "DESC")?,
|
|
1167
1286
|
sort_by: ("CRITICAL" | "HIGH" | "ALL")?
|
|
1168
1287
|
}?,
|
|
@@ -1199,10 +1318,10 @@ module Aws
|
|
|
1199
1318
|
value: ::String
|
|
1200
1319
|
}
|
|
1201
1320
|
]?,
|
|
1202
|
-
resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY")?,
|
|
1321
|
+
resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY" | "Microsoft.Compute/virtualMachines" | "Microsoft.ContainerRegistry/registry/containerImage" | "Microsoft.Web/sites")?,
|
|
1322
|
+
finding_type: ("NETWORK_REACHABILITY" | "PACKAGE_VULNERABILITY" | "CODE_VULNERABILITY")?,
|
|
1203
1323
|
sort_order: ("ASC" | "DESC")?,
|
|
1204
|
-
sort_by: ("CRITICAL" | "HIGH" | "ALL")
|
|
1205
|
-
finding_type: ("NETWORK_REACHABILITY" | "PACKAGE_VULNERABILITY" | "CODE_VULNERABILITY")?
|
|
1324
|
+
sort_by: ("CRITICAL" | "HIGH" | "ALL")?
|
|
1206
1325
|
}?,
|
|
1207
1326
|
lambda_layer_aggregation: {
|
|
1208
1327
|
function_names: Array[
|
|
@@ -1276,6 +1395,206 @@ module Aws
|
|
|
1276
1395
|
value: ::String
|
|
1277
1396
|
}
|
|
1278
1397
|
]?
|
|
1398
|
+
}?,
|
|
1399
|
+
vm_instance_aggregation: {
|
|
1400
|
+
resource_ids: Array[
|
|
1401
|
+
{
|
|
1402
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
1403
|
+
value: ::String
|
|
1404
|
+
}
|
|
1405
|
+
]?,
|
|
1406
|
+
operating_systems: Array[
|
|
1407
|
+
{
|
|
1408
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
1409
|
+
value: ::String
|
|
1410
|
+
}
|
|
1411
|
+
]?,
|
|
1412
|
+
instance_tags: Array[
|
|
1413
|
+
{
|
|
1414
|
+
comparison: ("EQUALS"),
|
|
1415
|
+
key: ::String,
|
|
1416
|
+
value: ::String?
|
|
1417
|
+
}
|
|
1418
|
+
]?,
|
|
1419
|
+
vm_image_references: Array[
|
|
1420
|
+
{
|
|
1421
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
1422
|
+
value: ::String
|
|
1423
|
+
}
|
|
1424
|
+
]?,
|
|
1425
|
+
cloud_providers: Array[
|
|
1426
|
+
{
|
|
1427
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
1428
|
+
value: ::String
|
|
1429
|
+
}
|
|
1430
|
+
]?,
|
|
1431
|
+
cloud_partitions: Array[
|
|
1432
|
+
{
|
|
1433
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
1434
|
+
value: ::String
|
|
1435
|
+
}
|
|
1436
|
+
]?,
|
|
1437
|
+
cloud_regions: Array[
|
|
1438
|
+
{
|
|
1439
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
1440
|
+
value: ::String
|
|
1441
|
+
}
|
|
1442
|
+
]?,
|
|
1443
|
+
cloud_org_ids: Array[
|
|
1444
|
+
{
|
|
1445
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
1446
|
+
value: ::String
|
|
1447
|
+
}
|
|
1448
|
+
]?,
|
|
1449
|
+
cloud_account_ids: Array[
|
|
1450
|
+
{
|
|
1451
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
1452
|
+
value: ::String
|
|
1453
|
+
}
|
|
1454
|
+
]?,
|
|
1455
|
+
sort_order: ("ASC" | "DESC")?,
|
|
1456
|
+
sort_by: ("CRITICAL" | "HIGH" | "ALL" | "NETWORK_FINDINGS")?
|
|
1457
|
+
}?,
|
|
1458
|
+
container_image_aggregation: {
|
|
1459
|
+
resource_ids: Array[
|
|
1460
|
+
{
|
|
1461
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
1462
|
+
value: ::String
|
|
1463
|
+
}
|
|
1464
|
+
]?,
|
|
1465
|
+
image_digests: Array[
|
|
1466
|
+
{
|
|
1467
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
1468
|
+
value: ::String
|
|
1469
|
+
}
|
|
1470
|
+
]?,
|
|
1471
|
+
repositories: Array[
|
|
1472
|
+
{
|
|
1473
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
1474
|
+
value: ::String
|
|
1475
|
+
}
|
|
1476
|
+
]?,
|
|
1477
|
+
registries: Array[
|
|
1478
|
+
{
|
|
1479
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
1480
|
+
value: ::String
|
|
1481
|
+
}
|
|
1482
|
+
]?,
|
|
1483
|
+
architectures: Array[
|
|
1484
|
+
{
|
|
1485
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
1486
|
+
value: ::String
|
|
1487
|
+
}
|
|
1488
|
+
]?,
|
|
1489
|
+
image_tags: Array[
|
|
1490
|
+
{
|
|
1491
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
1492
|
+
value: ::String
|
|
1493
|
+
}
|
|
1494
|
+
]?,
|
|
1495
|
+
cloud_providers: Array[
|
|
1496
|
+
{
|
|
1497
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
1498
|
+
value: ::String
|
|
1499
|
+
}
|
|
1500
|
+
]?,
|
|
1501
|
+
cloud_partitions: Array[
|
|
1502
|
+
{
|
|
1503
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
1504
|
+
value: ::String
|
|
1505
|
+
}
|
|
1506
|
+
]?,
|
|
1507
|
+
cloud_regions: Array[
|
|
1508
|
+
{
|
|
1509
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
1510
|
+
value: ::String
|
|
1511
|
+
}
|
|
1512
|
+
]?,
|
|
1513
|
+
cloud_org_ids: Array[
|
|
1514
|
+
{
|
|
1515
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
1516
|
+
value: ::String
|
|
1517
|
+
}
|
|
1518
|
+
]?,
|
|
1519
|
+
cloud_account_ids: Array[
|
|
1520
|
+
{
|
|
1521
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
1522
|
+
value: ::String
|
|
1523
|
+
}
|
|
1524
|
+
]?,
|
|
1525
|
+
last_in_use_at: Array[
|
|
1526
|
+
{
|
|
1527
|
+
start_inclusive: ::Time?,
|
|
1528
|
+
end_inclusive: ::Time?
|
|
1529
|
+
}
|
|
1530
|
+
]?,
|
|
1531
|
+
in_use_count: Array[
|
|
1532
|
+
{
|
|
1533
|
+
upper_inclusive: ::Float?,
|
|
1534
|
+
lower_inclusive: ::Float?
|
|
1535
|
+
}
|
|
1536
|
+
]?,
|
|
1537
|
+
sort_order: ("ASC" | "DESC")?,
|
|
1538
|
+
sort_by: ("CRITICAL" | "HIGH" | "ALL")?
|
|
1539
|
+
}?,
|
|
1540
|
+
serverless_function_aggregation: {
|
|
1541
|
+
resource_ids: Array[
|
|
1542
|
+
{
|
|
1543
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
1544
|
+
value: ::String
|
|
1545
|
+
}
|
|
1546
|
+
]?,
|
|
1547
|
+
function_names: Array[
|
|
1548
|
+
{
|
|
1549
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
1550
|
+
value: ::String
|
|
1551
|
+
}
|
|
1552
|
+
]?,
|
|
1553
|
+
runtimes: Array[
|
|
1554
|
+
{
|
|
1555
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
1556
|
+
value: ::String
|
|
1557
|
+
}
|
|
1558
|
+
]?,
|
|
1559
|
+
function_tags: Array[
|
|
1560
|
+
{
|
|
1561
|
+
comparison: ("EQUALS"),
|
|
1562
|
+
key: ::String,
|
|
1563
|
+
value: ::String?
|
|
1564
|
+
}
|
|
1565
|
+
]?,
|
|
1566
|
+
cloud_providers: Array[
|
|
1567
|
+
{
|
|
1568
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
1569
|
+
value: ::String
|
|
1570
|
+
}
|
|
1571
|
+
]?,
|
|
1572
|
+
cloud_partitions: Array[
|
|
1573
|
+
{
|
|
1574
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
1575
|
+
value: ::String
|
|
1576
|
+
}
|
|
1577
|
+
]?,
|
|
1578
|
+
cloud_regions: Array[
|
|
1579
|
+
{
|
|
1580
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
1581
|
+
value: ::String
|
|
1582
|
+
}
|
|
1583
|
+
]?,
|
|
1584
|
+
cloud_org_ids: Array[
|
|
1585
|
+
{
|
|
1586
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
1587
|
+
value: ::String
|
|
1588
|
+
}
|
|
1589
|
+
]?,
|
|
1590
|
+
cloud_account_ids: Array[
|
|
1591
|
+
{
|
|
1592
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
1593
|
+
value: ::String
|
|
1594
|
+
}
|
|
1595
|
+
]?,
|
|
1596
|
+
sort_order: ("ASC" | "DESC")?,
|
|
1597
|
+
sort_by: ("CRITICAL" | "HIGH" | "ALL")?
|
|
1279
1598
|
}?
|
|
1280
1599
|
}
|
|
1281
1600
|
) -> _ListFindingAggregationsResponseSuccess
|
|
@@ -1340,7 +1659,7 @@ module Aws
|
|
|
1340
1659
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#reset_encryption_key-instance_method
|
|
1341
1660
|
def reset_encryption_key: (
|
|
1342
1661
|
scan_type: ("NETWORK" | "PACKAGE" | "CODE"),
|
|
1343
|
-
resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY")
|
|
1662
|
+
resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY" | "Microsoft.Compute/virtualMachines" | "Microsoft.ContainerRegistry/registry/containerImage" | "Microsoft.Web/sites")
|
|
1344
1663
|
) -> _ResetEncryptionKeyResponseSuccess
|
|
1345
1664
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ResetEncryptionKeyResponseSuccess
|
|
1346
1665
|
|
|
@@ -1515,17 +1834,56 @@ module Aws
|
|
|
1515
1834
|
end
|
|
1516
1835
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#update_configuration-instance_method
|
|
1517
1836
|
def update_configuration: (
|
|
1837
|
+
?account_id: ::String,
|
|
1518
1838
|
?ecr_configuration: {
|
|
1519
1839
|
rescan_duration: ("LIFETIME" | "DAYS_30" | "DAYS_180" | "DAYS_14" | "DAYS_60" | "DAYS_90"),
|
|
1520
1840
|
pull_date_rescan_duration: ("DAYS_14" | "DAYS_30" | "DAYS_60" | "DAYS_90" | "DAYS_180")?,
|
|
1521
1841
|
pull_date_rescan_mode: ("LAST_PULL_DATE" | "LAST_IN_USE_AT")?
|
|
1522
1842
|
},
|
|
1523
1843
|
?ec2_configuration: {
|
|
1524
|
-
scan_mode: ("EC2_SSM_AGENT_BASED" | "EC2_HYBRID")
|
|
1844
|
+
scan_mode: ("EC2_SSM_AGENT_BASED" | "EC2_HYBRID"),
|
|
1845
|
+
activate_vm_scanner: bool?
|
|
1846
|
+
},
|
|
1847
|
+
?update_configuration_inheritance: {
|
|
1848
|
+
ec2_configuration: ("INHERIT_FROM_ADMIN")?,
|
|
1849
|
+
ecr_configuration: ("INHERIT_FROM_ADMIN")?
|
|
1525
1850
|
}
|
|
1526
1851
|
) -> _UpdateConfigurationResponseSuccess
|
|
1527
1852
|
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateConfigurationResponseSuccess
|
|
1528
1853
|
|
|
1854
|
+
interface _UpdateConnectorResponseSuccess
|
|
1855
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::UpdateConnectorResponse]
|
|
1856
|
+
def connector_arn: () -> ::String
|
|
1857
|
+
end
|
|
1858
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#update_connector-instance_method
|
|
1859
|
+
def update_connector: (
|
|
1860
|
+
connector_arn: ::String,
|
|
1861
|
+
?description: ::String,
|
|
1862
|
+
?provider_detail: {
|
|
1863
|
+
azure: {
|
|
1864
|
+
azure_regions: Array[::String]?,
|
|
1865
|
+
scope_configuration: Params::azure_scope_configuration_input?,
|
|
1866
|
+
auto_install_vm_scanner: bool?
|
|
1867
|
+
}?
|
|
1868
|
+
}
|
|
1869
|
+
) -> _UpdateConnectorResponseSuccess
|
|
1870
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateConnectorResponseSuccess
|
|
1871
|
+
|
|
1872
|
+
interface _UpdateConnectorScanConfigurationResponseSuccess
|
|
1873
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::UpdateConnectorScanConfigurationResponse]
|
|
1874
|
+
end
|
|
1875
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#update_connector_scan_configuration-instance_method
|
|
1876
|
+
def update_connector_scan_configuration: (
|
|
1877
|
+
aws_config_connector_arn: ::String,
|
|
1878
|
+
scan_configuration: {
|
|
1879
|
+
container_image_scanning: {
|
|
1880
|
+
push_duration: ("LIFETIME" | "DAYS_3" | "DAYS_7" | "DAYS_30" | "DAYS_180" | "DAYS_14" | "DAYS_60" | "DAYS_90")?,
|
|
1881
|
+
pull_duration: ("DAYS_3" | "DAYS_7" | "DAYS_14" | "DAYS_30" | "DAYS_60" | "DAYS_90" | "DAYS_180")?
|
|
1882
|
+
}?
|
|
1883
|
+
}
|
|
1884
|
+
) -> _UpdateConnectorScanConfigurationResponseSuccess
|
|
1885
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateConnectorScanConfigurationResponseSuccess
|
|
1886
|
+
|
|
1529
1887
|
interface _UpdateEc2DeepInspectionConfigurationResponseSuccess
|
|
1530
1888
|
include ::Seahorse::Client::_ResponseSuccess[Types::UpdateEc2DeepInspectionConfigurationResponse]
|
|
1531
1889
|
def package_paths: () -> ::Array[::String]
|
|
@@ -1547,7 +1905,7 @@ module Aws
|
|
|
1547
1905
|
def update_encryption_key: (
|
|
1548
1906
|
kms_key_id: ::String,
|
|
1549
1907
|
scan_type: ("NETWORK" | "PACKAGE" | "CODE"),
|
|
1550
|
-
resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY")
|
|
1908
|
+
resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY" | "Microsoft.Compute/virtualMachines" | "Microsoft.ContainerRegistry/registry/containerImage" | "Microsoft.Web/sites")
|
|
1551
1909
|
) -> _UpdateEncryptionKeyResponseSuccess
|
|
1552
1910
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateEncryptionKeyResponseSuccess
|
|
1553
1911
|
|
|
@@ -1590,6 +1948,119 @@ module Aws
|
|
|
1590
1948
|
}
|
|
1591
1949
|
) -> _UpdateOrganizationConfigurationResponseSuccess
|
|
1592
1950
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateOrganizationConfigurationResponseSuccess
|
|
1951
|
+
|
|
1952
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#wait_until-instance_method
|
|
1953
|
+
def wait_until: (:connector_connected waiter_name,
|
|
1954
|
+
?max_results: ::Integer,
|
|
1955
|
+
?next_token: ::String,
|
|
1956
|
+
?filter_criteria: {
|
|
1957
|
+
connector_arns: Array[
|
|
1958
|
+
{
|
|
1959
|
+
comparison: ("EQUALS"),
|
|
1960
|
+
value: ::String
|
|
1961
|
+
}
|
|
1962
|
+
]?,
|
|
1963
|
+
accounts: Array[
|
|
1964
|
+
{
|
|
1965
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
1966
|
+
value: ::String
|
|
1967
|
+
}
|
|
1968
|
+
]?,
|
|
1969
|
+
aws_config_connector_arns: Array[
|
|
1970
|
+
{
|
|
1971
|
+
comparison: ("EQUALS"),
|
|
1972
|
+
value: ::String
|
|
1973
|
+
}
|
|
1974
|
+
]?,
|
|
1975
|
+
connector_type: Array[
|
|
1976
|
+
{
|
|
1977
|
+
comparison: ("EQUALS"),
|
|
1978
|
+
value: ("CUSTOMER_MANAGED" | "SERVICE_LINKED")
|
|
1979
|
+
}
|
|
1980
|
+
]?,
|
|
1981
|
+
provider: Array[
|
|
1982
|
+
{
|
|
1983
|
+
comparison: ("EQUALS"),
|
|
1984
|
+
value: ("AZURE")
|
|
1985
|
+
}
|
|
1986
|
+
]?
|
|
1987
|
+
}
|
|
1988
|
+
) -> Client::_ListConnectorsResponseSuccess
|
|
1989
|
+
| (:connector_connected waiter_name, ?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_ListConnectorsResponseSuccess
|
|
1990
|
+
| (:connector_deleted waiter_name,
|
|
1991
|
+
?max_results: ::Integer,
|
|
1992
|
+
?next_token: ::String,
|
|
1993
|
+
?filter_criteria: {
|
|
1994
|
+
connector_arns: Array[
|
|
1995
|
+
{
|
|
1996
|
+
comparison: ("EQUALS"),
|
|
1997
|
+
value: ::String
|
|
1998
|
+
}
|
|
1999
|
+
]?,
|
|
2000
|
+
accounts: Array[
|
|
2001
|
+
{
|
|
2002
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
2003
|
+
value: ::String
|
|
2004
|
+
}
|
|
2005
|
+
]?,
|
|
2006
|
+
aws_config_connector_arns: Array[
|
|
2007
|
+
{
|
|
2008
|
+
comparison: ("EQUALS"),
|
|
2009
|
+
value: ::String
|
|
2010
|
+
}
|
|
2011
|
+
]?,
|
|
2012
|
+
connector_type: Array[
|
|
2013
|
+
{
|
|
2014
|
+
comparison: ("EQUALS"),
|
|
2015
|
+
value: ("CUSTOMER_MANAGED" | "SERVICE_LINKED")
|
|
2016
|
+
}
|
|
2017
|
+
]?,
|
|
2018
|
+
provider: Array[
|
|
2019
|
+
{
|
|
2020
|
+
comparison: ("EQUALS"),
|
|
2021
|
+
value: ("AZURE")
|
|
2022
|
+
}
|
|
2023
|
+
]?
|
|
2024
|
+
}
|
|
2025
|
+
) -> Client::_ListConnectorsResponseSuccess
|
|
2026
|
+
| (:connector_deleted waiter_name, ?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_ListConnectorsResponseSuccess
|
|
2027
|
+
| (:connector_enabled waiter_name,
|
|
2028
|
+
?max_results: ::Integer,
|
|
2029
|
+
?next_token: ::String,
|
|
2030
|
+
?filter_criteria: {
|
|
2031
|
+
connector_arns: Array[
|
|
2032
|
+
{
|
|
2033
|
+
comparison: ("EQUALS"),
|
|
2034
|
+
value: ::String
|
|
2035
|
+
}
|
|
2036
|
+
]?,
|
|
2037
|
+
accounts: Array[
|
|
2038
|
+
{
|
|
2039
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
|
2040
|
+
value: ::String
|
|
2041
|
+
}
|
|
2042
|
+
]?,
|
|
2043
|
+
aws_config_connector_arns: Array[
|
|
2044
|
+
{
|
|
2045
|
+
comparison: ("EQUALS"),
|
|
2046
|
+
value: ::String
|
|
2047
|
+
}
|
|
2048
|
+
]?,
|
|
2049
|
+
connector_type: Array[
|
|
2050
|
+
{
|
|
2051
|
+
comparison: ("EQUALS"),
|
|
2052
|
+
value: ("CUSTOMER_MANAGED" | "SERVICE_LINKED")
|
|
2053
|
+
}
|
|
2054
|
+
]?,
|
|
2055
|
+
provider: Array[
|
|
2056
|
+
{
|
|
2057
|
+
comparison: ("EQUALS"),
|
|
2058
|
+
value: ("AZURE")
|
|
2059
|
+
}
|
|
2060
|
+
]?
|
|
2061
|
+
}
|
|
2062
|
+
) -> Client::_ListConnectorsResponseSuccess
|
|
2063
|
+
| (:connector_enabled waiter_name, ?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_ListConnectorsResponseSuccess
|
|
1593
2064
|
end
|
|
1594
2065
|
end
|
|
1595
2066
|
end
|