aws-sdk-inspector2 1.50.0 → 1.52.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 +162 -4
- data/lib/aws-sdk-inspector2/client_api.rb +110 -0
- data/lib/aws-sdk-inspector2/types.rb +292 -0
- data/lib/aws-sdk-inspector2.rb +1 -1
- data/sig/client.rbs +100 -0
- data/sig/types.rbs +85 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b08fb343004117293241d31b44e94e8c9327012e47bb6359927d6d36a827d39
|
4
|
+
data.tar.gz: ccd1b632a937f29694fb4db8ebf4f472f98c73c51098976183b267e35d677e6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e063e84997d0394337445723bc0b920dec3ad0cf5dfebe452c1fc5dbb30c47a9c700f12a7eed10f35cc868091c1cd5862cda2cf03a41cbffe0aed4d7d54507fd
|
7
|
+
data.tar.gz: b7243a65f4ff63ccfa2046c22c16fc404b6061734242c3f85cd397e12d8da26692494c4a6e213e2ab8d88b72a333a8e91fb74f1055434c2e0b734a1bd6fe0be2
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.52.0 (2025-05-20)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds GetClustersForImage API and filter updates as part of the mapping of container images to running containers feature.
|
8
|
+
|
9
|
+
1.51.0 (2025-05-12)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
4
14
|
1.50.0 (2025-05-01)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.52.0
|
@@ -200,8 +200,7 @@ module Aws::Inspector2
|
|
200
200
|
# accepted modes and the configuration defaults that are included.
|
201
201
|
#
|
202
202
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
203
|
-
#
|
204
|
-
# to default service endpoint when available.
|
203
|
+
# When `true`, the SDK will not prepend the modeled host prefix to the endpoint.
|
205
204
|
#
|
206
205
|
# @option options [Boolean] :disable_request_compression (false)
|
207
206
|
# When set to 'true' the request body will not be compressed
|
@@ -1019,6 +1018,18 @@ module Aws::Inspector2
|
|
1019
1018
|
# value: "StringInput", # required
|
1020
1019
|
# },
|
1021
1020
|
# ],
|
1021
|
+
# ecr_image_in_use_count: [
|
1022
|
+
# {
|
1023
|
+
# lower_inclusive: 1.0,
|
1024
|
+
# upper_inclusive: 1.0,
|
1025
|
+
# },
|
1026
|
+
# ],
|
1027
|
+
# ecr_image_last_in_use_at: [
|
1028
|
+
# {
|
1029
|
+
# end_inclusive: Time.now,
|
1030
|
+
# start_inclusive: Time.now,
|
1031
|
+
# },
|
1032
|
+
# ],
|
1022
1033
|
# ecr_image_pushed_at: [
|
1023
1034
|
# {
|
1024
1035
|
# end_inclusive: Time.now,
|
@@ -1344,6 +1355,18 @@ module Aws::Inspector2
|
|
1344
1355
|
# value: "StringInput", # required
|
1345
1356
|
# },
|
1346
1357
|
# ],
|
1358
|
+
# ecr_image_in_use_count: [
|
1359
|
+
# {
|
1360
|
+
# lower_inclusive: 1.0,
|
1361
|
+
# upper_inclusive: 1.0,
|
1362
|
+
# },
|
1363
|
+
# ],
|
1364
|
+
# ecr_image_last_in_use_at: [
|
1365
|
+
# {
|
1366
|
+
# end_inclusive: Time.now,
|
1367
|
+
# start_inclusive: Time.now,
|
1368
|
+
# },
|
1369
|
+
# ],
|
1347
1370
|
# ecr_image_pushed_at: [
|
1348
1371
|
# {
|
1349
1372
|
# end_inclusive: Time.now,
|
@@ -2105,6 +2128,61 @@ module Aws::Inspector2
|
|
2105
2128
|
req.send_request(options)
|
2106
2129
|
end
|
2107
2130
|
|
2131
|
+
# Returns a list of clusters and metadata associated with an image.
|
2132
|
+
#
|
2133
|
+
# @option params [required, Types::ClusterForImageFilterCriteria] :filter
|
2134
|
+
# The resource Id for the Amazon ECR image.
|
2135
|
+
#
|
2136
|
+
# @option params [Integer] :max_results
|
2137
|
+
# The maximum number of results to be returned in a single page of
|
2138
|
+
# results.
|
2139
|
+
#
|
2140
|
+
# @option params [String] :next_token
|
2141
|
+
# The pagination token from a previous request used to retrieve the next
|
2142
|
+
# page of results.
|
2143
|
+
#
|
2144
|
+
# @return [Types::GetClustersForImageResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2145
|
+
#
|
2146
|
+
# * {Types::GetClustersForImageResponse#cluster #cluster} => Array<Types::ClusterInformation>
|
2147
|
+
# * {Types::GetClustersForImageResponse#next_token #next_token} => String
|
2148
|
+
#
|
2149
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2150
|
+
#
|
2151
|
+
# @example Request syntax with placeholder values
|
2152
|
+
#
|
2153
|
+
# resp = client.get_clusters_for_image({
|
2154
|
+
# filter: { # required
|
2155
|
+
# resource_id: "ClusterForImageFilterCriteriaResourceIdString", # required
|
2156
|
+
# },
|
2157
|
+
# max_results: 1,
|
2158
|
+
# next_token: "GetClustersForImageNextToken",
|
2159
|
+
# })
|
2160
|
+
#
|
2161
|
+
# @example Response structure
|
2162
|
+
#
|
2163
|
+
# resp.cluster #=> Array
|
2164
|
+
# resp.cluster[0].cluster_arn #=> String
|
2165
|
+
# resp.cluster[0].cluster_details #=> Array
|
2166
|
+
# resp.cluster[0].cluster_details[0].cluster_metadata.aws_ecs_metadata_details.details_group #=> String
|
2167
|
+
# resp.cluster[0].cluster_details[0].cluster_metadata.aws_ecs_metadata_details.task_definition_arn #=> String
|
2168
|
+
# resp.cluster[0].cluster_details[0].cluster_metadata.aws_eks_metadata_details.namespace #=> String
|
2169
|
+
# resp.cluster[0].cluster_details[0].cluster_metadata.aws_eks_metadata_details.workload_info_list #=> Array
|
2170
|
+
# resp.cluster[0].cluster_details[0].cluster_metadata.aws_eks_metadata_details.workload_info_list[0].name #=> String
|
2171
|
+
# resp.cluster[0].cluster_details[0].cluster_metadata.aws_eks_metadata_details.workload_info_list[0].type #=> String
|
2172
|
+
# resp.cluster[0].cluster_details[0].last_in_use #=> Time
|
2173
|
+
# resp.cluster[0].cluster_details[0].running_unit_count #=> Integer
|
2174
|
+
# resp.cluster[0].cluster_details[0].stopped_unit_count #=> Integer
|
2175
|
+
# resp.next_token #=> String
|
2176
|
+
#
|
2177
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/GetClustersForImage AWS API Documentation
|
2178
|
+
#
|
2179
|
+
# @overload get_clusters_for_image(params = {})
|
2180
|
+
# @param [Hash] params ({})
|
2181
|
+
def get_clusters_for_image(params = {}, options = {})
|
2182
|
+
req = build_request(:get_clusters_for_image, params)
|
2183
|
+
req.send_request(options)
|
2184
|
+
end
|
2185
|
+
|
2108
2186
|
# Retrieves setting configurations for Inspector scans.
|
2109
2187
|
#
|
2110
2188
|
# @return [Types::GetConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -2117,6 +2195,7 @@ module Aws::Inspector2
|
|
2117
2195
|
# resp.ec2_configuration.scan_mode_state.scan_mode #=> String, one of "EC2_SSM_AGENT_BASED", "EC2_HYBRID"
|
2118
2196
|
# resp.ec2_configuration.scan_mode_state.scan_mode_status #=> String, one of "SUCCESS", "PENDING"
|
2119
2197
|
# resp.ecr_configuration.rescan_duration_state.pull_date_rescan_duration #=> String, one of "DAYS_14", "DAYS_30", "DAYS_60", "DAYS_90", "DAYS_180"
|
2198
|
+
# resp.ecr_configuration.rescan_duration_state.pull_date_rescan_mode #=> String, one of "LAST_PULL_DATE", "LAST_IN_USE_AT"
|
2120
2199
|
# resp.ecr_configuration.rescan_duration_state.rescan_duration #=> String, one of "LIFETIME", "DAYS_30", "DAYS_180", "DAYS_14", "DAYS_60", "DAYS_90"
|
2121
2200
|
# resp.ecr_configuration.rescan_duration_state.status #=> String, one of "SUCCESS", "PENDING", "FAILED"
|
2122
2201
|
# resp.ecr_configuration.rescan_duration_state.updated_at #=> Time
|
@@ -2271,6 +2350,12 @@ module Aws::Inspector2
|
|
2271
2350
|
# resp.filter_criteria.ecr_image_hash #=> Array
|
2272
2351
|
# resp.filter_criteria.ecr_image_hash[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
|
2273
2352
|
# resp.filter_criteria.ecr_image_hash[0].value #=> String
|
2353
|
+
# resp.filter_criteria.ecr_image_in_use_count #=> Array
|
2354
|
+
# resp.filter_criteria.ecr_image_in_use_count[0].lower_inclusive #=> Float
|
2355
|
+
# resp.filter_criteria.ecr_image_in_use_count[0].upper_inclusive #=> Float
|
2356
|
+
# resp.filter_criteria.ecr_image_last_in_use_at #=> Array
|
2357
|
+
# resp.filter_criteria.ecr_image_last_in_use_at[0].end_inclusive #=> Time
|
2358
|
+
# resp.filter_criteria.ecr_image_last_in_use_at[0].start_inclusive #=> Time
|
2274
2359
|
# resp.filter_criteria.ecr_image_pushed_at #=> Array
|
2275
2360
|
# resp.filter_criteria.ecr_image_pushed_at[0].end_inclusive #=> Time
|
2276
2361
|
# resp.filter_criteria.ecr_image_pushed_at[0].start_inclusive #=> Time
|
@@ -3026,6 +3111,18 @@ module Aws::Inspector2
|
|
3026
3111
|
# value: "NonEmptyString",
|
3027
3112
|
# },
|
3028
3113
|
# ],
|
3114
|
+
# ecr_image_in_use_count: [
|
3115
|
+
# {
|
3116
|
+
# lower_inclusive: 1,
|
3117
|
+
# upper_inclusive: 1,
|
3118
|
+
# },
|
3119
|
+
# ],
|
3120
|
+
# ecr_image_last_in_use_at: [
|
3121
|
+
# {
|
3122
|
+
# end_inclusive: Time.now,
|
3123
|
+
# start_inclusive: Time.now,
|
3124
|
+
# },
|
3125
|
+
# ],
|
3029
3126
|
# ecr_image_tags: [
|
3030
3127
|
# {
|
3031
3128
|
# comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
|
@@ -3121,6 +3218,8 @@ module Aws::Inspector2
|
|
3121
3218
|
# resp.covered_resources[0].resource_metadata.ec2.tags #=> Hash
|
3122
3219
|
# resp.covered_resources[0].resource_metadata.ec2.tags["MapKey"] #=> String
|
3123
3220
|
# resp.covered_resources[0].resource_metadata.ecr_image.image_pulled_at #=> Time
|
3221
|
+
# resp.covered_resources[0].resource_metadata.ecr_image.in_use_count #=> Integer
|
3222
|
+
# resp.covered_resources[0].resource_metadata.ecr_image.last_in_use_at #=> Time
|
3124
3223
|
# resp.covered_resources[0].resource_metadata.ecr_image.tags #=> Array
|
3125
3224
|
# resp.covered_resources[0].resource_metadata.ecr_image.tags[0] #=> String
|
3126
3225
|
# resp.covered_resources[0].resource_metadata.ecr_repository.name #=> String
|
@@ -3133,7 +3232,7 @@ module Aws::Inspector2
|
|
3133
3232
|
# 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", "NODEJS_18_X", "GO_1_X", "JAVA_17", "PYTHON_3_10", "PYTHON_3_11", "DOTNETCORE_3_1", "DOTNET_6", "DOTNET_7", "RUBY_2_7", "RUBY_3_2"
|
3134
3233
|
# resp.covered_resources[0].resource_type #=> String, one of "AWS_EC2_INSTANCE", "AWS_ECR_CONTAINER_IMAGE", "AWS_ECR_REPOSITORY", "AWS_LAMBDA_FUNCTION"
|
3135
3234
|
# resp.covered_resources[0].scan_mode #=> String, one of "EC2_SSM_AGENT_BASED", "EC2_AGENTLESS"
|
3136
|
-
# 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"
|
3235
|
+
# 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"
|
3137
3236
|
# resp.covered_resources[0].scan_status.status_code #=> String, one of "ACTIVE", "INACTIVE"
|
3138
3237
|
# resp.covered_resources[0].scan_type #=> String, one of "NETWORK", "PACKAGE", "CODE"
|
3139
3238
|
# resp.next_token #=> String
|
@@ -3188,6 +3287,18 @@ module Aws::Inspector2
|
|
3188
3287
|
# value: "NonEmptyString",
|
3189
3288
|
# },
|
3190
3289
|
# ],
|
3290
|
+
# ecr_image_in_use_count: [
|
3291
|
+
# {
|
3292
|
+
# lower_inclusive: 1,
|
3293
|
+
# upper_inclusive: 1,
|
3294
|
+
# },
|
3295
|
+
# ],
|
3296
|
+
# ecr_image_last_in_use_at: [
|
3297
|
+
# {
|
3298
|
+
# end_inclusive: Time.now,
|
3299
|
+
# start_inclusive: Time.now,
|
3300
|
+
# },
|
3301
|
+
# ],
|
3191
3302
|
# ecr_image_tags: [
|
3192
3303
|
# {
|
3193
3304
|
# comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
|
@@ -3413,6 +3524,12 @@ module Aws::Inspector2
|
|
3413
3524
|
# resp.filters[0].criteria.ecr_image_hash #=> Array
|
3414
3525
|
# resp.filters[0].criteria.ecr_image_hash[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
|
3415
3526
|
# resp.filters[0].criteria.ecr_image_hash[0].value #=> String
|
3527
|
+
# resp.filters[0].criteria.ecr_image_in_use_count #=> Array
|
3528
|
+
# resp.filters[0].criteria.ecr_image_in_use_count[0].lower_inclusive #=> Float
|
3529
|
+
# resp.filters[0].criteria.ecr_image_in_use_count[0].upper_inclusive #=> Float
|
3530
|
+
# resp.filters[0].criteria.ecr_image_last_in_use_at #=> Array
|
3531
|
+
# resp.filters[0].criteria.ecr_image_last_in_use_at[0].end_inclusive #=> Time
|
3532
|
+
# resp.filters[0].criteria.ecr_image_last_in_use_at[0].start_inclusive #=> Time
|
3416
3533
|
# resp.filters[0].criteria.ecr_image_pushed_at #=> Array
|
3417
3534
|
# resp.filters[0].criteria.ecr_image_pushed_at[0].end_inclusive #=> Time
|
3418
3535
|
# resp.filters[0].criteria.ecr_image_pushed_at[0].start_inclusive #=> Time
|
@@ -3620,6 +3737,18 @@ module Aws::Inspector2
|
|
3620
3737
|
# value: "StringInput", # required
|
3621
3738
|
# },
|
3622
3739
|
# ],
|
3740
|
+
# in_use_count: [
|
3741
|
+
# {
|
3742
|
+
# lower_inclusive: 1.0,
|
3743
|
+
# upper_inclusive: 1.0,
|
3744
|
+
# },
|
3745
|
+
# ],
|
3746
|
+
# last_in_use_at: [
|
3747
|
+
# {
|
3748
|
+
# end_inclusive: Time.now,
|
3749
|
+
# start_inclusive: Time.now,
|
3750
|
+
# },
|
3751
|
+
# ],
|
3623
3752
|
# repositories: [
|
3624
3753
|
# {
|
3625
3754
|
# comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
|
@@ -3811,6 +3940,8 @@ module Aws::Inspector2
|
|
3811
3940
|
# resp.responses[0].aws_ecr_container_aggregation.image_sha #=> String
|
3812
3941
|
# resp.responses[0].aws_ecr_container_aggregation.image_tags #=> Array
|
3813
3942
|
# resp.responses[0].aws_ecr_container_aggregation.image_tags[0] #=> String
|
3943
|
+
# resp.responses[0].aws_ecr_container_aggregation.in_use_count #=> Integer
|
3944
|
+
# resp.responses[0].aws_ecr_container_aggregation.last_in_use_at #=> Time
|
3814
3945
|
# resp.responses[0].aws_ecr_container_aggregation.repository #=> String
|
3815
3946
|
# resp.responses[0].aws_ecr_container_aggregation.resource_id #=> String
|
3816
3947
|
# resp.responses[0].aws_ecr_container_aggregation.severity_counts.all #=> Integer
|
@@ -3991,6 +4122,18 @@ module Aws::Inspector2
|
|
3991
4122
|
# value: "StringInput", # required
|
3992
4123
|
# },
|
3993
4124
|
# ],
|
4125
|
+
# ecr_image_in_use_count: [
|
4126
|
+
# {
|
4127
|
+
# lower_inclusive: 1.0,
|
4128
|
+
# upper_inclusive: 1.0,
|
4129
|
+
# },
|
4130
|
+
# ],
|
4131
|
+
# ecr_image_last_in_use_at: [
|
4132
|
+
# {
|
4133
|
+
# end_inclusive: Time.now,
|
4134
|
+
# start_inclusive: Time.now,
|
4135
|
+
# },
|
4136
|
+
# ],
|
3994
4137
|
# ecr_image_pushed_at: [
|
3995
4138
|
# {
|
3996
4139
|
# end_inclusive: Time.now,
|
@@ -4306,6 +4449,8 @@ module Aws::Inspector2
|
|
4306
4449
|
# resp.findings[0].resources[0].details.aws_ecr_container_image.image_hash #=> String
|
4307
4450
|
# resp.findings[0].resources[0].details.aws_ecr_container_image.image_tags #=> Array
|
4308
4451
|
# resp.findings[0].resources[0].details.aws_ecr_container_image.image_tags[0] #=> String
|
4452
|
+
# resp.findings[0].resources[0].details.aws_ecr_container_image.in_use_count #=> Integer
|
4453
|
+
# resp.findings[0].resources[0].details.aws_ecr_container_image.last_in_use_at #=> Time
|
4309
4454
|
# resp.findings[0].resources[0].details.aws_ecr_container_image.platform #=> String
|
4310
4455
|
# resp.findings[0].resources[0].details.aws_ecr_container_image.pushed_at #=> Time
|
4311
4456
|
# resp.findings[0].resources[0].details.aws_ecr_container_image.registry #=> String
|
@@ -4887,6 +5032,7 @@ module Aws::Inspector2
|
|
4887
5032
|
# },
|
4888
5033
|
# ecr_configuration: {
|
4889
5034
|
# pull_date_rescan_duration: "DAYS_14", # accepts DAYS_14, DAYS_30, DAYS_60, DAYS_90, DAYS_180
|
5035
|
+
# pull_date_rescan_mode: "LAST_PULL_DATE", # accepts LAST_PULL_DATE, LAST_IN_USE_AT
|
4890
5036
|
# rescan_duration: "LIFETIME", # required, accepts LIFETIME, DAYS_30, DAYS_180, DAYS_14, DAYS_60, DAYS_90
|
4891
5037
|
# },
|
4892
5038
|
# })
|
@@ -5080,6 +5226,18 @@ module Aws::Inspector2
|
|
5080
5226
|
# value: "StringInput", # required
|
5081
5227
|
# },
|
5082
5228
|
# ],
|
5229
|
+
# ecr_image_in_use_count: [
|
5230
|
+
# {
|
5231
|
+
# lower_inclusive: 1.0,
|
5232
|
+
# upper_inclusive: 1.0,
|
5233
|
+
# },
|
5234
|
+
# ],
|
5235
|
+
# ecr_image_last_in_use_at: [
|
5236
|
+
# {
|
5237
|
+
# end_inclusive: Time.now,
|
5238
|
+
# start_inclusive: Time.now,
|
5239
|
+
# },
|
5240
|
+
# ],
|
5083
5241
|
# ecr_image_pushed_at: [
|
5084
5242
|
# {
|
5085
5243
|
# end_inclusive: Time.now,
|
@@ -5395,7 +5553,7 @@ module Aws::Inspector2
|
|
5395
5553
|
tracer: tracer
|
5396
5554
|
)
|
5397
5555
|
context[:gem_name] = 'aws-sdk-inspector2'
|
5398
|
-
context[:gem_version] = '1.
|
5556
|
+
context[:gem_version] = '1.52.0'
|
5399
5557
|
Seahorse::Client::Request.new(handlers, context)
|
5400
5558
|
end
|
5401
5559
|
|
@@ -48,6 +48,15 @@ module Aws::Inspector2
|
|
48
48
|
AwsEcrContainerAggregationResponse = Shapes::StructureShape.new(name: 'AwsEcrContainerAggregationResponse')
|
49
49
|
AwsEcrContainerImageDetails = Shapes::StructureShape.new(name: 'AwsEcrContainerImageDetails')
|
50
50
|
AwsEcrContainerSortBy = Shapes::StringShape.new(name: 'AwsEcrContainerSortBy')
|
51
|
+
AwsEcsMetadataDetails = Shapes::StructureShape.new(name: 'AwsEcsMetadataDetails')
|
52
|
+
AwsEcsMetadataDetailsDetailsGroupString = Shapes::StringShape.new(name: 'AwsEcsMetadataDetailsDetailsGroupString')
|
53
|
+
AwsEcsMetadataDetailsTaskDefinitionArnString = Shapes::StringShape.new(name: 'AwsEcsMetadataDetailsTaskDefinitionArnString')
|
54
|
+
AwsEksMetadataDetails = Shapes::StructureShape.new(name: 'AwsEksMetadataDetails')
|
55
|
+
AwsEksMetadataDetailsNamespaceString = Shapes::StringShape.new(name: 'AwsEksMetadataDetailsNamespaceString')
|
56
|
+
AwsEksWorkloadInfo = Shapes::StructureShape.new(name: 'AwsEksWorkloadInfo')
|
57
|
+
AwsEksWorkloadInfoList = Shapes::ListShape.new(name: 'AwsEksWorkloadInfoList')
|
58
|
+
AwsEksWorkloadInfoNameString = Shapes::StringShape.new(name: 'AwsEksWorkloadInfoNameString')
|
59
|
+
AwsEksWorkloadInfoTypeString = Shapes::StringShape.new(name: 'AwsEksWorkloadInfoTypeString')
|
51
60
|
AwsLambdaFunctionDetails = Shapes::StructureShape.new(name: 'AwsLambdaFunctionDetails')
|
52
61
|
BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
|
53
62
|
BatchGetAccountStatusRequest = Shapes::StructureShape.new(name: 'BatchGetAccountStatusRequest')
|
@@ -143,6 +152,14 @@ module Aws::Inspector2
|
|
143
152
|
CisaDateAdded = Shapes::TimestampShape.new(name: 'CisaDateAdded')
|
144
153
|
CisaDateDue = Shapes::TimestampShape.new(name: 'CisaDateDue')
|
145
154
|
ClientToken = Shapes::StringShape.new(name: 'ClientToken')
|
155
|
+
ClusterDetails = Shapes::StructureShape.new(name: 'ClusterDetails')
|
156
|
+
ClusterForImageFilterCriteria = Shapes::StructureShape.new(name: 'ClusterForImageFilterCriteria')
|
157
|
+
ClusterForImageFilterCriteriaResourceIdString = Shapes::StringShape.new(name: 'ClusterForImageFilterCriteriaResourceIdString')
|
158
|
+
ClusterInformation = Shapes::StructureShape.new(name: 'ClusterInformation')
|
159
|
+
ClusterInformationClusterArnString = Shapes::StringShape.new(name: 'ClusterInformationClusterArnString')
|
160
|
+
ClusterInformationClusterDetailsList = Shapes::ListShape.new(name: 'ClusterInformationClusterDetailsList')
|
161
|
+
ClusterInformationList = Shapes::ListShape.new(name: 'ClusterInformationList')
|
162
|
+
ClusterMetadata = Shapes::UnionShape.new(name: 'ClusterMetadata')
|
146
163
|
CodeFilePath = Shapes::StructureShape.new(name: 'CodeFilePath')
|
147
164
|
CodeLine = Shapes::StructureShape.new(name: 'CodeLine')
|
148
165
|
CodeLineContentString = Shapes::StringShape.new(name: 'CodeLineContentString')
|
@@ -166,6 +183,8 @@ module Aws::Inspector2
|
|
166
183
|
CoverageMapComparison = Shapes::StringShape.new(name: 'CoverageMapComparison')
|
167
184
|
CoverageMapFilter = Shapes::StructureShape.new(name: 'CoverageMapFilter')
|
168
185
|
CoverageMapFilterList = Shapes::ListShape.new(name: 'CoverageMapFilterList')
|
186
|
+
CoverageNumberFilter = Shapes::StructureShape.new(name: 'CoverageNumberFilter')
|
187
|
+
CoverageNumberFilterList = Shapes::ListShape.new(name: 'CoverageNumberFilterList')
|
169
188
|
CoverageResourceType = Shapes::StringShape.new(name: 'CoverageResourceType')
|
170
189
|
CoverageStringComparison = Shapes::StringShape.new(name: 'CoverageStringComparison')
|
171
190
|
CoverageStringFilter = Shapes::StructureShape.new(name: 'CoverageStringFilter')
|
@@ -239,6 +258,7 @@ module Aws::Inspector2
|
|
239
258
|
EcrConfigurationState = Shapes::StructureShape.new(name: 'EcrConfigurationState')
|
240
259
|
EcrContainerImageMetadata = Shapes::StructureShape.new(name: 'EcrContainerImageMetadata')
|
241
260
|
EcrPullDateRescanDuration = Shapes::StringShape.new(name: 'EcrPullDateRescanDuration')
|
261
|
+
EcrPullDateRescanMode = Shapes::StringShape.new(name: 'EcrPullDateRescanMode')
|
242
262
|
EcrRepositoryMetadata = Shapes::StructureShape.new(name: 'EcrRepositoryMetadata')
|
243
263
|
EcrRescanDuration = Shapes::StringShape.new(name: 'EcrRescanDuration')
|
244
264
|
EcrRescanDurationState = Shapes::StructureShape.new(name: 'EcrRescanDurationState')
|
@@ -312,6 +332,10 @@ module Aws::Inspector2
|
|
312
332
|
GetCisScanResultDetailsMaxResults = Shapes::IntegerShape.new(name: 'GetCisScanResultDetailsMaxResults')
|
313
333
|
GetCisScanResultDetailsRequest = Shapes::StructureShape.new(name: 'GetCisScanResultDetailsRequest')
|
314
334
|
GetCisScanResultDetailsResponse = Shapes::StructureShape.new(name: 'GetCisScanResultDetailsResponse')
|
335
|
+
GetClustersForImageNextToken = Shapes::StringShape.new(name: 'GetClustersForImageNextToken')
|
336
|
+
GetClustersForImageRequest = Shapes::StructureShape.new(name: 'GetClustersForImageRequest')
|
337
|
+
GetClustersForImageRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'GetClustersForImageRequestMaxResultsInteger')
|
338
|
+
GetClustersForImageResponse = Shapes::StructureShape.new(name: 'GetClustersForImageResponse')
|
315
339
|
GetConfigurationRequest = Shapes::StructureShape.new(name: 'GetConfigurationRequest')
|
316
340
|
GetConfigurationResponse = Shapes::StructureShape.new(name: 'GetConfigurationResponse')
|
317
341
|
GetDelegatedAdminAccountRequest = Shapes::StructureShape.new(name: 'GetDelegatedAdminAccountRequest')
|
@@ -751,6 +775,8 @@ module Aws::Inspector2
|
|
751
775
|
AwsEcrContainerAggregation.add_member(:architectures, Shapes::ShapeRef.new(shape: StringFilterList, location_name: "architectures"))
|
752
776
|
AwsEcrContainerAggregation.add_member(:image_shas, Shapes::ShapeRef.new(shape: StringFilterList, location_name: "imageShas"))
|
753
777
|
AwsEcrContainerAggregation.add_member(:image_tags, Shapes::ShapeRef.new(shape: StringFilterList, location_name: "imageTags"))
|
778
|
+
AwsEcrContainerAggregation.add_member(:in_use_count, Shapes::ShapeRef.new(shape: NumberFilterList, location_name: "inUseCount"))
|
779
|
+
AwsEcrContainerAggregation.add_member(:last_in_use_at, Shapes::ShapeRef.new(shape: DateFilterList, location_name: "lastInUseAt"))
|
754
780
|
AwsEcrContainerAggregation.add_member(:repositories, Shapes::ShapeRef.new(shape: StringFilterList, location_name: "repositories"))
|
755
781
|
AwsEcrContainerAggregation.add_member(:resource_ids, Shapes::ShapeRef.new(shape: StringFilterList, location_name: "resourceIds"))
|
756
782
|
AwsEcrContainerAggregation.add_member(:sort_by, Shapes::ShapeRef.new(shape: AwsEcrContainerSortBy, location_name: "sortBy"))
|
@@ -761,6 +787,8 @@ module Aws::Inspector2
|
|
761
787
|
AwsEcrContainerAggregationResponse.add_member(:architecture, Shapes::ShapeRef.new(shape: String, location_name: "architecture"))
|
762
788
|
AwsEcrContainerAggregationResponse.add_member(:image_sha, Shapes::ShapeRef.new(shape: String, location_name: "imageSha"))
|
763
789
|
AwsEcrContainerAggregationResponse.add_member(:image_tags, Shapes::ShapeRef.new(shape: StringList, location_name: "imageTags"))
|
790
|
+
AwsEcrContainerAggregationResponse.add_member(:in_use_count, Shapes::ShapeRef.new(shape: Long, location_name: "inUseCount"))
|
791
|
+
AwsEcrContainerAggregationResponse.add_member(:last_in_use_at, Shapes::ShapeRef.new(shape: DateTimeTimestamp, location_name: "lastInUseAt"))
|
764
792
|
AwsEcrContainerAggregationResponse.add_member(:repository, Shapes::ShapeRef.new(shape: String, location_name: "repository"))
|
765
793
|
AwsEcrContainerAggregationResponse.add_member(:resource_id, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "resourceId"))
|
766
794
|
AwsEcrContainerAggregationResponse.add_member(:severity_counts, Shapes::ShapeRef.new(shape: SeverityCounts, location_name: "severityCounts"))
|
@@ -770,12 +798,28 @@ module Aws::Inspector2
|
|
770
798
|
AwsEcrContainerImageDetails.add_member(:author, Shapes::ShapeRef.new(shape: String, location_name: "author"))
|
771
799
|
AwsEcrContainerImageDetails.add_member(:image_hash, Shapes::ShapeRef.new(shape: ImageHash, required: true, location_name: "imageHash"))
|
772
800
|
AwsEcrContainerImageDetails.add_member(:image_tags, Shapes::ShapeRef.new(shape: ImageTagList, location_name: "imageTags"))
|
801
|
+
AwsEcrContainerImageDetails.add_member(:in_use_count, Shapes::ShapeRef.new(shape: Long, location_name: "inUseCount"))
|
802
|
+
AwsEcrContainerImageDetails.add_member(:last_in_use_at, Shapes::ShapeRef.new(shape: DateTimeTimestamp, location_name: "lastInUseAt"))
|
773
803
|
AwsEcrContainerImageDetails.add_member(:platform, Shapes::ShapeRef.new(shape: Platform, location_name: "platform"))
|
774
804
|
AwsEcrContainerImageDetails.add_member(:pushed_at, Shapes::ShapeRef.new(shape: DateTimeTimestamp, location_name: "pushedAt"))
|
775
805
|
AwsEcrContainerImageDetails.add_member(:registry, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "registry"))
|
776
806
|
AwsEcrContainerImageDetails.add_member(:repository_name, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "repositoryName"))
|
777
807
|
AwsEcrContainerImageDetails.struct_class = Types::AwsEcrContainerImageDetails
|
778
808
|
|
809
|
+
AwsEcsMetadataDetails.add_member(:details_group, Shapes::ShapeRef.new(shape: AwsEcsMetadataDetailsDetailsGroupString, required: true, location_name: "detailsGroup"))
|
810
|
+
AwsEcsMetadataDetails.add_member(:task_definition_arn, Shapes::ShapeRef.new(shape: AwsEcsMetadataDetailsTaskDefinitionArnString, required: true, location_name: "taskDefinitionArn"))
|
811
|
+
AwsEcsMetadataDetails.struct_class = Types::AwsEcsMetadataDetails
|
812
|
+
|
813
|
+
AwsEksMetadataDetails.add_member(:namespace, Shapes::ShapeRef.new(shape: AwsEksMetadataDetailsNamespaceString, location_name: "namespace"))
|
814
|
+
AwsEksMetadataDetails.add_member(:workload_info_list, Shapes::ShapeRef.new(shape: AwsEksWorkloadInfoList, location_name: "workloadInfoList"))
|
815
|
+
AwsEksMetadataDetails.struct_class = Types::AwsEksMetadataDetails
|
816
|
+
|
817
|
+
AwsEksWorkloadInfo.add_member(:name, Shapes::ShapeRef.new(shape: AwsEksWorkloadInfoNameString, required: true, location_name: "name"))
|
818
|
+
AwsEksWorkloadInfo.add_member(:type, Shapes::ShapeRef.new(shape: AwsEksWorkloadInfoTypeString, required: true, location_name: "type"))
|
819
|
+
AwsEksWorkloadInfo.struct_class = Types::AwsEksWorkloadInfo
|
820
|
+
|
821
|
+
AwsEksWorkloadInfoList.member = Shapes::ShapeRef.new(shape: AwsEksWorkloadInfo)
|
822
|
+
|
779
823
|
AwsLambdaFunctionDetails.add_member(:architectures, Shapes::ShapeRef.new(shape: ArchitectureList, location_name: "architectures"))
|
780
824
|
AwsLambdaFunctionDetails.add_member(:code_sha_256, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "codeSha256"))
|
781
825
|
AwsLambdaFunctionDetails.add_member(:execution_role_arn, Shapes::ShapeRef.new(shape: ExecutionRoleArn, required: true, location_name: "executionRoleArn"))
|
@@ -1021,6 +1065,31 @@ module Aws::Inspector2
|
|
1021
1065
|
CisaData.add_member(:date_due, Shapes::ShapeRef.new(shape: CisaDateDue, location_name: "dateDue"))
|
1022
1066
|
CisaData.struct_class = Types::CisaData
|
1023
1067
|
|
1068
|
+
ClusterDetails.add_member(:cluster_metadata, Shapes::ShapeRef.new(shape: ClusterMetadata, required: true, location_name: "clusterMetadata"))
|
1069
|
+
ClusterDetails.add_member(:last_in_use, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "lastInUse"))
|
1070
|
+
ClusterDetails.add_member(:running_unit_count, Shapes::ShapeRef.new(shape: Long, location_name: "runningUnitCount"))
|
1071
|
+
ClusterDetails.add_member(:stopped_unit_count, Shapes::ShapeRef.new(shape: Long, location_name: "stoppedUnitCount"))
|
1072
|
+
ClusterDetails.struct_class = Types::ClusterDetails
|
1073
|
+
|
1074
|
+
ClusterForImageFilterCriteria.add_member(:resource_id, Shapes::ShapeRef.new(shape: ClusterForImageFilterCriteriaResourceIdString, required: true, location_name: "resourceId"))
|
1075
|
+
ClusterForImageFilterCriteria.struct_class = Types::ClusterForImageFilterCriteria
|
1076
|
+
|
1077
|
+
ClusterInformation.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: ClusterInformationClusterArnString, required: true, location_name: "clusterArn"))
|
1078
|
+
ClusterInformation.add_member(:cluster_details, Shapes::ShapeRef.new(shape: ClusterInformationClusterDetailsList, location_name: "clusterDetails"))
|
1079
|
+
ClusterInformation.struct_class = Types::ClusterInformation
|
1080
|
+
|
1081
|
+
ClusterInformationClusterDetailsList.member = Shapes::ShapeRef.new(shape: ClusterDetails)
|
1082
|
+
|
1083
|
+
ClusterInformationList.member = Shapes::ShapeRef.new(shape: ClusterInformation)
|
1084
|
+
|
1085
|
+
ClusterMetadata.add_member(:aws_ecs_metadata_details, Shapes::ShapeRef.new(shape: AwsEcsMetadataDetails, location_name: "awsEcsMetadataDetails"))
|
1086
|
+
ClusterMetadata.add_member(:aws_eks_metadata_details, Shapes::ShapeRef.new(shape: AwsEksMetadataDetails, location_name: "awsEksMetadataDetails"))
|
1087
|
+
ClusterMetadata.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
1088
|
+
ClusterMetadata.add_member_subclass(:aws_ecs_metadata_details, Types::ClusterMetadata::AwsEcsMetadataDetails)
|
1089
|
+
ClusterMetadata.add_member_subclass(:aws_eks_metadata_details, Types::ClusterMetadata::AwsEksMetadataDetails)
|
1090
|
+
ClusterMetadata.add_member_subclass(:unknown, Types::ClusterMetadata::Unknown)
|
1091
|
+
ClusterMetadata.struct_class = Types::ClusterMetadata
|
1092
|
+
|
1024
1093
|
CodeFilePath.add_member(:end_line, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "endLine"))
|
1025
1094
|
CodeFilePath.add_member(:file_name, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "fileName"))
|
1026
1095
|
CodeFilePath.add_member(:file_path, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "filePath"))
|
@@ -1083,6 +1152,8 @@ module Aws::Inspector2
|
|
1083
1152
|
|
1084
1153
|
CoverageFilterCriteria.add_member(:account_id, Shapes::ShapeRef.new(shape: CoverageStringFilterList, location_name: "accountId"))
|
1085
1154
|
CoverageFilterCriteria.add_member(:ec2_instance_tags, Shapes::ShapeRef.new(shape: CoverageMapFilterList, location_name: "ec2InstanceTags"))
|
1155
|
+
CoverageFilterCriteria.add_member(:ecr_image_in_use_count, Shapes::ShapeRef.new(shape: CoverageNumberFilterList, location_name: "ecrImageInUseCount"))
|
1156
|
+
CoverageFilterCriteria.add_member(:ecr_image_last_in_use_at, Shapes::ShapeRef.new(shape: CoverageDateFilterList, location_name: "ecrImageLastInUseAt"))
|
1086
1157
|
CoverageFilterCriteria.add_member(:ecr_image_tags, Shapes::ShapeRef.new(shape: CoverageStringFilterList, location_name: "ecrImageTags"))
|
1087
1158
|
CoverageFilterCriteria.add_member(:ecr_repository_name, Shapes::ShapeRef.new(shape: CoverageStringFilterList, location_name: "ecrRepositoryName"))
|
1088
1159
|
CoverageFilterCriteria.add_member(:image_pulled_at, Shapes::ShapeRef.new(shape: CoverageDateFilterList, location_name: "imagePulledAt"))
|
@@ -1105,6 +1176,12 @@ module Aws::Inspector2
|
|
1105
1176
|
|
1106
1177
|
CoverageMapFilterList.member = Shapes::ShapeRef.new(shape: CoverageMapFilter)
|
1107
1178
|
|
1179
|
+
CoverageNumberFilter.add_member(:lower_inclusive, Shapes::ShapeRef.new(shape: Long, location_name: "lowerInclusive"))
|
1180
|
+
CoverageNumberFilter.add_member(:upper_inclusive, Shapes::ShapeRef.new(shape: Long, location_name: "upperInclusive"))
|
1181
|
+
CoverageNumberFilter.struct_class = Types::CoverageNumberFilter
|
1182
|
+
|
1183
|
+
CoverageNumberFilterList.member = Shapes::ShapeRef.new(shape: CoverageNumberFilter)
|
1184
|
+
|
1108
1185
|
CoverageStringFilter.add_member(:comparison, Shapes::ShapeRef.new(shape: CoverageStringComparison, required: true, location_name: "comparison"))
|
1109
1186
|
CoverageStringFilter.add_member(:value, Shapes::ShapeRef.new(shape: CoverageStringInput, required: true, location_name: "value"))
|
1110
1187
|
CoverageStringFilter.struct_class = Types::CoverageStringFilter
|
@@ -1301,6 +1378,7 @@ module Aws::Inspector2
|
|
1301
1378
|
Ec2ScanModeState.struct_class = Types::Ec2ScanModeState
|
1302
1379
|
|
1303
1380
|
EcrConfiguration.add_member(:pull_date_rescan_duration, Shapes::ShapeRef.new(shape: EcrPullDateRescanDuration, location_name: "pullDateRescanDuration"))
|
1381
|
+
EcrConfiguration.add_member(:pull_date_rescan_mode, Shapes::ShapeRef.new(shape: EcrPullDateRescanMode, location_name: "pullDateRescanMode"))
|
1304
1382
|
EcrConfiguration.add_member(:rescan_duration, Shapes::ShapeRef.new(shape: EcrRescanDuration, required: true, location_name: "rescanDuration"))
|
1305
1383
|
EcrConfiguration.struct_class = Types::EcrConfiguration
|
1306
1384
|
|
@@ -1308,6 +1386,8 @@ module Aws::Inspector2
|
|
1308
1386
|
EcrConfigurationState.struct_class = Types::EcrConfigurationState
|
1309
1387
|
|
1310
1388
|
EcrContainerImageMetadata.add_member(:image_pulled_at, Shapes::ShapeRef.new(shape: DateTimeTimestamp, location_name: "imagePulledAt"))
|
1389
|
+
EcrContainerImageMetadata.add_member(:in_use_count, Shapes::ShapeRef.new(shape: Long, location_name: "inUseCount"))
|
1390
|
+
EcrContainerImageMetadata.add_member(:last_in_use_at, Shapes::ShapeRef.new(shape: DateTimeTimestamp, location_name: "lastInUseAt"))
|
1311
1391
|
EcrContainerImageMetadata.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
|
1312
1392
|
EcrContainerImageMetadata.struct_class = Types::EcrContainerImageMetadata
|
1313
1393
|
|
@@ -1316,6 +1396,7 @@ module Aws::Inspector2
|
|
1316
1396
|
EcrRepositoryMetadata.struct_class = Types::EcrRepositoryMetadata
|
1317
1397
|
|
1318
1398
|
EcrRescanDurationState.add_member(:pull_date_rescan_duration, Shapes::ShapeRef.new(shape: EcrPullDateRescanDuration, location_name: "pullDateRescanDuration"))
|
1399
|
+
EcrRescanDurationState.add_member(:pull_date_rescan_mode, Shapes::ShapeRef.new(shape: EcrPullDateRescanMode, location_name: "pullDateRescanMode"))
|
1319
1400
|
EcrRescanDurationState.add_member(:rescan_duration, Shapes::ShapeRef.new(shape: EcrRescanDuration, location_name: "rescanDuration"))
|
1320
1401
|
EcrRescanDurationState.add_member(:status, Shapes::ShapeRef.new(shape: EcrRescanDurationStatus, location_name: "status"))
|
1321
1402
|
EcrRescanDurationState.add_member(:updated_at, Shapes::ShapeRef.new(shape: DateTimeTimestamp, location_name: "updatedAt"))
|
@@ -1400,6 +1481,8 @@ module Aws::Inspector2
|
|
1400
1481
|
FilterCriteria.add_member(:ec2_instance_vpc_id, Shapes::ShapeRef.new(shape: StringFilterList, location_name: "ec2InstanceVpcId"))
|
1401
1482
|
FilterCriteria.add_member(:ecr_image_architecture, Shapes::ShapeRef.new(shape: StringFilterList, location_name: "ecrImageArchitecture"))
|
1402
1483
|
FilterCriteria.add_member(:ecr_image_hash, Shapes::ShapeRef.new(shape: StringFilterList, location_name: "ecrImageHash"))
|
1484
|
+
FilterCriteria.add_member(:ecr_image_in_use_count, Shapes::ShapeRef.new(shape: NumberFilterList, location_name: "ecrImageInUseCount"))
|
1485
|
+
FilterCriteria.add_member(:ecr_image_last_in_use_at, Shapes::ShapeRef.new(shape: DateFilterList, location_name: "ecrImageLastInUseAt"))
|
1403
1486
|
FilterCriteria.add_member(:ecr_image_pushed_at, Shapes::ShapeRef.new(shape: DateFilterList, location_name: "ecrImagePushedAt"))
|
1404
1487
|
FilterCriteria.add_member(:ecr_image_registry, Shapes::ShapeRef.new(shape: StringFilterList, location_name: "ecrImageRegistry"))
|
1405
1488
|
FilterCriteria.add_member(:ecr_image_repository_name, Shapes::ShapeRef.new(shape: StringFilterList, location_name: "ecrImageRepositoryName"))
|
@@ -1539,6 +1622,15 @@ module Aws::Inspector2
|
|
1539
1622
|
GetCisScanResultDetailsResponse.add_member(:scan_result_details, Shapes::ShapeRef.new(shape: CisScanResultDetailsList, location_name: "scanResultDetails"))
|
1540
1623
|
GetCisScanResultDetailsResponse.struct_class = Types::GetCisScanResultDetailsResponse
|
1541
1624
|
|
1625
|
+
GetClustersForImageRequest.add_member(:filter, Shapes::ShapeRef.new(shape: ClusterForImageFilterCriteria, required: true, location_name: "filter"))
|
1626
|
+
GetClustersForImageRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: GetClustersForImageRequestMaxResultsInteger, location_name: "maxResults"))
|
1627
|
+
GetClustersForImageRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: GetClustersForImageNextToken, location_name: "nextToken"))
|
1628
|
+
GetClustersForImageRequest.struct_class = Types::GetClustersForImageRequest
|
1629
|
+
|
1630
|
+
GetClustersForImageResponse.add_member(:cluster, Shapes::ShapeRef.new(shape: ClusterInformationList, required: true, location_name: "cluster"))
|
1631
|
+
GetClustersForImageResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: GetClustersForImageNextToken, location_name: "nextToken"))
|
1632
|
+
GetClustersForImageResponse.struct_class = Types::GetClustersForImageResponse
|
1633
|
+
|
1542
1634
|
GetConfigurationRequest.struct_class = Types::GetConfigurationRequest
|
1543
1635
|
|
1544
1636
|
GetConfigurationResponse.add_member(:ec2_configuration, Shapes::ShapeRef.new(shape: Ec2ConfigurationState, location_name: "ec2Configuration"))
|
@@ -2662,6 +2754,24 @@ module Aws::Inspector2
|
|
2662
2754
|
)
|
2663
2755
|
end)
|
2664
2756
|
|
2757
|
+
api.add_operation(:get_clusters_for_image, Seahorse::Model::Operation.new.tap do |o|
|
2758
|
+
o.name = "GetClustersForImage"
|
2759
|
+
o.http_method = "POST"
|
2760
|
+
o.http_request_uri = "/cluster/get"
|
2761
|
+
o.input = Shapes::ShapeRef.new(shape: GetClustersForImageRequest)
|
2762
|
+
o.output = Shapes::ShapeRef.new(shape: GetClustersForImageResponse)
|
2763
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
2764
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
2765
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
2766
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
2767
|
+
o[:pager] = Aws::Pager.new(
|
2768
|
+
limit_key: "max_results",
|
2769
|
+
tokens: {
|
2770
|
+
"next_token" => "next_token"
|
2771
|
+
}
|
2772
|
+
)
|
2773
|
+
end)
|
2774
|
+
|
2665
2775
|
api.add_operation(:get_configuration, Seahorse::Model::Operation.new.tap do |o|
|
2666
2776
|
o.name = "GetConfiguration"
|
2667
2777
|
o.http_method = "POST"
|
@@ -539,6 +539,16 @@ module Aws::Inspector2
|
|
539
539
|
# The image tags.
|
540
540
|
# @return [Array<Types::StringFilter>]
|
541
541
|
#
|
542
|
+
# @!attribute [rw] in_use_count
|
543
|
+
# The number of Amazon ECS tasks or Amazon EKS pods where the Amazon
|
544
|
+
# ECR container image is in use.
|
545
|
+
# @return [Array<Types::NumberFilter>]
|
546
|
+
#
|
547
|
+
# @!attribute [rw] last_in_use_at
|
548
|
+
# The last time an Amazon ECR image was used in an Amazon ECS task or
|
549
|
+
# Amazon EKS pod.
|
550
|
+
# @return [Array<Types::DateFilter>]
|
551
|
+
#
|
542
552
|
# @!attribute [rw] repositories
|
543
553
|
# The container repositories.
|
544
554
|
# @return [Array<Types::StringFilter>]
|
@@ -561,6 +571,8 @@ module Aws::Inspector2
|
|
561
571
|
:architectures,
|
562
572
|
:image_shas,
|
563
573
|
:image_tags,
|
574
|
+
:in_use_count,
|
575
|
+
:last_in_use_at,
|
564
576
|
:repositories,
|
565
577
|
:resource_ids,
|
566
578
|
:sort_by,
|
@@ -588,6 +600,16 @@ module Aws::Inspector2
|
|
588
600
|
# The container image stags.
|
589
601
|
# @return [Array<String>]
|
590
602
|
#
|
603
|
+
# @!attribute [rw] in_use_count
|
604
|
+
# The number of Amazon ECS tasks or Amazon EKS pods where the Amazon
|
605
|
+
# ECR container image is in use.
|
606
|
+
# @return [Integer]
|
607
|
+
#
|
608
|
+
# @!attribute [rw] last_in_use_at
|
609
|
+
# The last time an Amazon ECR image was used in an Amazon ECS task or
|
610
|
+
# Amazon EKS pod.
|
611
|
+
# @return [Time]
|
612
|
+
#
|
591
613
|
# @!attribute [rw] repository
|
592
614
|
# The container repository.
|
593
615
|
# @return [String]
|
@@ -607,6 +629,8 @@ module Aws::Inspector2
|
|
607
629
|
:architecture,
|
608
630
|
:image_sha,
|
609
631
|
:image_tags,
|
632
|
+
:in_use_count,
|
633
|
+
:last_in_use_at,
|
610
634
|
:repository,
|
611
635
|
:resource_id,
|
612
636
|
:severity_counts)
|
@@ -632,6 +656,16 @@ module Aws::Inspector2
|
|
632
656
|
# The image tags attached to the Amazon ECR container image.
|
633
657
|
# @return [Array<String>]
|
634
658
|
#
|
659
|
+
# @!attribute [rw] in_use_count
|
660
|
+
# The number of Amazon ECS tasks or Amazon EKS pods where the Amazon
|
661
|
+
# ECR container image is in use.
|
662
|
+
# @return [Integer]
|
663
|
+
#
|
664
|
+
# @!attribute [rw] last_in_use_at
|
665
|
+
# The last time an Amazon ECR image was used in an Amazon ECS task or
|
666
|
+
# Amazon EKS pod.
|
667
|
+
# @return [Time]
|
668
|
+
#
|
635
669
|
# @!attribute [rw] platform
|
636
670
|
# The platform of the Amazon ECR container image.
|
637
671
|
# @return [String]
|
@@ -656,6 +690,8 @@ module Aws::Inspector2
|
|
656
690
|
:author,
|
657
691
|
:image_hash,
|
658
692
|
:image_tags,
|
693
|
+
:in_use_count,
|
694
|
+
:last_in_use_at,
|
659
695
|
:platform,
|
660
696
|
:pushed_at,
|
661
697
|
:registry,
|
@@ -664,6 +700,64 @@ module Aws::Inspector2
|
|
664
700
|
include Aws::Structure
|
665
701
|
end
|
666
702
|
|
703
|
+
# Metadata about tasks where an image was in use.
|
704
|
+
#
|
705
|
+
# @!attribute [rw] details_group
|
706
|
+
# The details group information for a task in a cluster.
|
707
|
+
# @return [String]
|
708
|
+
#
|
709
|
+
# @!attribute [rw] task_definition_arn
|
710
|
+
# The task definition ARN.
|
711
|
+
# @return [String]
|
712
|
+
#
|
713
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/AwsEcsMetadataDetails AWS API Documentation
|
714
|
+
#
|
715
|
+
class AwsEcsMetadataDetails < Struct.new(
|
716
|
+
:details_group,
|
717
|
+
:task_definition_arn)
|
718
|
+
SENSITIVE = []
|
719
|
+
include Aws::Structure
|
720
|
+
end
|
721
|
+
|
722
|
+
# The metadata for an Amazon EKS pod where an Amazon ECR image is in
|
723
|
+
# use.
|
724
|
+
#
|
725
|
+
# @!attribute [rw] namespace
|
726
|
+
# The namespace for an Amazon EKS cluster.
|
727
|
+
# @return [String]
|
728
|
+
#
|
729
|
+
# @!attribute [rw] workload_info_list
|
730
|
+
# The list of workloads.
|
731
|
+
# @return [Array<Types::AwsEksWorkloadInfo>]
|
732
|
+
#
|
733
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/AwsEksMetadataDetails AWS API Documentation
|
734
|
+
#
|
735
|
+
class AwsEksMetadataDetails < Struct.new(
|
736
|
+
:namespace,
|
737
|
+
:workload_info_list)
|
738
|
+
SENSITIVE = []
|
739
|
+
include Aws::Structure
|
740
|
+
end
|
741
|
+
|
742
|
+
# Information about the workload.
|
743
|
+
#
|
744
|
+
# @!attribute [rw] name
|
745
|
+
# The name of the workload.
|
746
|
+
# @return [String]
|
747
|
+
#
|
748
|
+
# @!attribute [rw] type
|
749
|
+
# The workload type.
|
750
|
+
# @return [String]
|
751
|
+
#
|
752
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/AwsEksWorkloadInfo AWS API Documentation
|
753
|
+
#
|
754
|
+
class AwsEksWorkloadInfo < Struct.new(
|
755
|
+
:name,
|
756
|
+
:type)
|
757
|
+
SENSITIVE = []
|
758
|
+
include Aws::Structure
|
759
|
+
end
|
760
|
+
|
667
761
|
# A summary of information about the Amazon Web Services Lambda
|
668
762
|
# function.
|
669
763
|
#
|
@@ -1633,6 +1727,98 @@ module Aws::Inspector2
|
|
1633
1727
|
include Aws::Structure
|
1634
1728
|
end
|
1635
1729
|
|
1730
|
+
# Details about the task or pod in the cluster.
|
1731
|
+
#
|
1732
|
+
# @!attribute [rw] cluster_metadata
|
1733
|
+
# The metadata for a cluster.
|
1734
|
+
# @return [Types::ClusterMetadata]
|
1735
|
+
#
|
1736
|
+
# @!attribute [rw] last_in_use
|
1737
|
+
# The last timestamp when Amazon Inspector recorded the image in use
|
1738
|
+
# in the task or pod in the cluster.
|
1739
|
+
# @return [Time]
|
1740
|
+
#
|
1741
|
+
# @!attribute [rw] running_unit_count
|
1742
|
+
# The number of tasks or pods where an image was running on the
|
1743
|
+
# cluster.
|
1744
|
+
# @return [Integer]
|
1745
|
+
#
|
1746
|
+
# @!attribute [rw] stopped_unit_count
|
1747
|
+
# The number of tasks or pods where an image was stopped on the
|
1748
|
+
# cluster in the last 24 hours.
|
1749
|
+
# @return [Integer]
|
1750
|
+
#
|
1751
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/ClusterDetails AWS API Documentation
|
1752
|
+
#
|
1753
|
+
class ClusterDetails < Struct.new(
|
1754
|
+
:cluster_metadata,
|
1755
|
+
:last_in_use,
|
1756
|
+
:running_unit_count,
|
1757
|
+
:stopped_unit_count)
|
1758
|
+
SENSITIVE = []
|
1759
|
+
include Aws::Structure
|
1760
|
+
end
|
1761
|
+
|
1762
|
+
# The filter criteria to be used.
|
1763
|
+
#
|
1764
|
+
# @!attribute [rw] resource_id
|
1765
|
+
# The resource Id to be used in the filter criteria.
|
1766
|
+
# @return [String]
|
1767
|
+
#
|
1768
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/ClusterForImageFilterCriteria AWS API Documentation
|
1769
|
+
#
|
1770
|
+
class ClusterForImageFilterCriteria < Struct.new(
|
1771
|
+
:resource_id)
|
1772
|
+
SENSITIVE = []
|
1773
|
+
include Aws::Structure
|
1774
|
+
end
|
1775
|
+
|
1776
|
+
# Information about the cluster.
|
1777
|
+
#
|
1778
|
+
# @!attribute [rw] cluster_arn
|
1779
|
+
# The cluster ARN.
|
1780
|
+
# @return [String]
|
1781
|
+
#
|
1782
|
+
# @!attribute [rw] cluster_details
|
1783
|
+
# Details about the cluster.
|
1784
|
+
# @return [Array<Types::ClusterDetails>]
|
1785
|
+
#
|
1786
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/ClusterInformation AWS API Documentation
|
1787
|
+
#
|
1788
|
+
class ClusterInformation < Struct.new(
|
1789
|
+
:cluster_arn,
|
1790
|
+
:cluster_details)
|
1791
|
+
SENSITIVE = []
|
1792
|
+
include Aws::Structure
|
1793
|
+
end
|
1794
|
+
|
1795
|
+
# The metadata for a cluster.
|
1796
|
+
#
|
1797
|
+
# @note ClusterMetadata is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of ClusterMetadata corresponding to the set member.
|
1798
|
+
#
|
1799
|
+
# @!attribute [rw] aws_ecs_metadata_details
|
1800
|
+
# The details for an Amazon ECS cluster in the cluster metadata.
|
1801
|
+
# @return [Types::AwsEcsMetadataDetails]
|
1802
|
+
#
|
1803
|
+
# @!attribute [rw] aws_eks_metadata_details
|
1804
|
+
# The details for an Amazon EKS cluster in the cluster metadata.
|
1805
|
+
# @return [Types::AwsEksMetadataDetails]
|
1806
|
+
#
|
1807
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/ClusterMetadata AWS API Documentation
|
1808
|
+
#
|
1809
|
+
class ClusterMetadata < Struct.new(
|
1810
|
+
:aws_ecs_metadata_details,
|
1811
|
+
:aws_eks_metadata_details,
|
1812
|
+
:unknown)
|
1813
|
+
SENSITIVE = []
|
1814
|
+
include Aws::Structure
|
1815
|
+
include Aws::Structure::Union
|
1816
|
+
|
1817
|
+
class AwsEcsMetadataDetails < ClusterMetadata; end
|
1818
|
+
class AwsEksMetadataDetails < ClusterMetadata; end
|
1819
|
+
class Unknown < ClusterMetadata; end
|
1820
|
+
end
|
1821
|
+
|
1636
1822
|
# Contains information on where a code vulnerability is located in your
|
1637
1823
|
# Lambda function.
|
1638
1824
|
#
|
@@ -1923,6 +2109,14 @@ module Aws::Inspector2
|
|
1923
2109
|
# The Amazon EC2 instance tags to filter on.
|
1924
2110
|
# @return [Array<Types::CoverageMapFilter>]
|
1925
2111
|
#
|
2112
|
+
# @!attribute [rw] ecr_image_in_use_count
|
2113
|
+
# The number of Amazon ECR images in use.
|
2114
|
+
# @return [Array<Types::CoverageNumberFilter>]
|
2115
|
+
#
|
2116
|
+
# @!attribute [rw] ecr_image_last_in_use_at
|
2117
|
+
# The Amazon ECR image that was last in use.
|
2118
|
+
# @return [Array<Types::CoverageDateFilter>]
|
2119
|
+
#
|
1926
2120
|
# @!attribute [rw] ecr_image_tags
|
1927
2121
|
# The Amazon ECR image tags to filter on.
|
1928
2122
|
# @return [Array<Types::CoverageStringFilter>]
|
@@ -1994,6 +2188,8 @@ module Aws::Inspector2
|
|
1994
2188
|
class CoverageFilterCriteria < Struct.new(
|
1995
2189
|
:account_id,
|
1996
2190
|
:ec2_instance_tags,
|
2191
|
+
:ecr_image_in_use_count,
|
2192
|
+
:ecr_image_last_in_use_at,
|
1997
2193
|
:ecr_image_tags,
|
1998
2194
|
:ecr_repository_name,
|
1999
2195
|
:image_pulled_at,
|
@@ -2035,6 +2231,25 @@ module Aws::Inspector2
|
|
2035
2231
|
include Aws::Structure
|
2036
2232
|
end
|
2037
2233
|
|
2234
|
+
# The coverage number to be used in the filter.
|
2235
|
+
#
|
2236
|
+
# @!attribute [rw] lower_inclusive
|
2237
|
+
# The lower inclusive for the coverage number.
|
2238
|
+
# @return [Integer]
|
2239
|
+
#
|
2240
|
+
# @!attribute [rw] upper_inclusive
|
2241
|
+
# The upper inclusive for the coverage number.>
|
2242
|
+
# @return [Integer]
|
2243
|
+
#
|
2244
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/CoverageNumberFilter AWS API Documentation
|
2245
|
+
#
|
2246
|
+
class CoverageNumberFilter < Struct.new(
|
2247
|
+
:lower_inclusive,
|
2248
|
+
:upper_inclusive)
|
2249
|
+
SENSITIVE = []
|
2250
|
+
include Aws::Structure
|
2251
|
+
end
|
2252
|
+
|
2038
2253
|
# Contains details of a coverage string filter.
|
2039
2254
|
#
|
2040
2255
|
# @!attribute [rw] comparison
|
@@ -2851,6 +3066,10 @@ module Aws::Inspector2
|
|
2851
3066
|
# The rescan duration configured for image pull date.
|
2852
3067
|
# @return [String]
|
2853
3068
|
#
|
3069
|
+
# @!attribute [rw] pull_date_rescan_mode
|
3070
|
+
# The pull date for the re-scan mode.
|
3071
|
+
# @return [String]
|
3072
|
+
#
|
2854
3073
|
# @!attribute [rw] rescan_duration
|
2855
3074
|
# The rescan duration configured for image push date.
|
2856
3075
|
# @return [String]
|
@@ -2859,6 +3078,7 @@ module Aws::Inspector2
|
|
2859
3078
|
#
|
2860
3079
|
class EcrConfiguration < Struct.new(
|
2861
3080
|
:pull_date_rescan_duration,
|
3081
|
+
:pull_date_rescan_mode,
|
2862
3082
|
:rescan_duration)
|
2863
3083
|
SENSITIVE = []
|
2864
3084
|
include Aws::Structure
|
@@ -2886,6 +3106,16 @@ module Aws::Inspector2
|
|
2886
3106
|
# The date an image was last pulled at.
|
2887
3107
|
# @return [Time]
|
2888
3108
|
#
|
3109
|
+
# @!attribute [rw] in_use_count
|
3110
|
+
# The number of Amazon ECS tasks or Amazon EKS pods where the Amazon
|
3111
|
+
# ECR container image is in use.
|
3112
|
+
# @return [Integer]
|
3113
|
+
#
|
3114
|
+
# @!attribute [rw] last_in_use_at
|
3115
|
+
# The last time an Amazon ECR image was used in an Amazon ECS task or
|
3116
|
+
# Amazon EKS pod.
|
3117
|
+
# @return [Time]
|
3118
|
+
#
|
2889
3119
|
# @!attribute [rw] tags
|
2890
3120
|
# Tags associated with the Amazon ECR image metadata.
|
2891
3121
|
# @return [Array<String>]
|
@@ -2894,6 +3124,8 @@ module Aws::Inspector2
|
|
2894
3124
|
#
|
2895
3125
|
class EcrContainerImageMetadata < Struct.new(
|
2896
3126
|
:image_pulled_at,
|
3127
|
+
:in_use_count,
|
3128
|
+
:last_in_use_at,
|
2897
3129
|
:tags)
|
2898
3130
|
SENSITIVE = []
|
2899
3131
|
include Aws::Structure
|
@@ -2931,6 +3163,10 @@ module Aws::Inspector2
|
|
2931
3163
|
# The rescan duration configured for image pull date.
|
2932
3164
|
# @return [String]
|
2933
3165
|
#
|
3166
|
+
# @!attribute [rw] pull_date_rescan_mode
|
3167
|
+
# The pull date for the re-scan mode.
|
3168
|
+
# @return [String]
|
3169
|
+
#
|
2934
3170
|
# @!attribute [rw] rescan_duration
|
2935
3171
|
# The rescan duration configured for image push date. </p>
|
2936
3172
|
# @return [String]
|
@@ -2948,6 +3184,7 @@ module Aws::Inspector2
|
|
2948
3184
|
#
|
2949
3185
|
class EcrRescanDurationState < Struct.new(
|
2950
3186
|
:pull_date_rescan_duration,
|
3187
|
+
:pull_date_rescan_mode,
|
2951
3188
|
:rescan_duration,
|
2952
3189
|
:status,
|
2953
3190
|
:updated_at)
|
@@ -3309,6 +3546,16 @@ module Aws::Inspector2
|
|
3309
3546
|
# Details of the Amazon ECR image hashes used to filter findings.
|
3310
3547
|
# @return [Array<Types::StringFilter>]
|
3311
3548
|
#
|
3549
|
+
# @!attribute [rw] ecr_image_in_use_count
|
3550
|
+
# Filter criteria indicating when details for an Amazon ECR image
|
3551
|
+
# include when an Amazon ECR image is in use.
|
3552
|
+
# @return [Array<Types::NumberFilter>]
|
3553
|
+
#
|
3554
|
+
# @!attribute [rw] ecr_image_last_in_use_at
|
3555
|
+
# Filter criteria indicating when an Amazon ECR image was last used in
|
3556
|
+
# an Amazon ECS cluster task or Amazon EKS cluster pod.
|
3557
|
+
# @return [Array<Types::DateFilter>]
|
3558
|
+
#
|
3312
3559
|
# @!attribute [rw] ecr_image_pushed_at
|
3313
3560
|
# Details on the Amazon ECR image push date and time used to filter
|
3314
3561
|
# findings.
|
@@ -3471,6 +3718,8 @@ module Aws::Inspector2
|
|
3471
3718
|
:ec2_instance_vpc_id,
|
3472
3719
|
:ecr_image_architecture,
|
3473
3720
|
:ecr_image_hash,
|
3721
|
+
:ecr_image_in_use_count,
|
3722
|
+
:ecr_image_last_in_use_at,
|
3474
3723
|
:ecr_image_pushed_at,
|
3475
3724
|
:ecr_image_registry,
|
3476
3725
|
:ecr_image_repository_name,
|
@@ -3983,6 +4232,49 @@ module Aws::Inspector2
|
|
3983
4232
|
include Aws::Structure
|
3984
4233
|
end
|
3985
4234
|
|
4235
|
+
# @!attribute [rw] filter
|
4236
|
+
# The resource Id for the Amazon ECR image.
|
4237
|
+
# @return [Types::ClusterForImageFilterCriteria]
|
4238
|
+
#
|
4239
|
+
# @!attribute [rw] max_results
|
4240
|
+
# The maximum number of results to be returned in a single page of
|
4241
|
+
# results.
|
4242
|
+
# @return [Integer]
|
4243
|
+
#
|
4244
|
+
# @!attribute [rw] next_token
|
4245
|
+
# The pagination token from a previous request used to retrieve the
|
4246
|
+
# next page of results.
|
4247
|
+
# @return [String]
|
4248
|
+
#
|
4249
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/GetClustersForImageRequest AWS API Documentation
|
4250
|
+
#
|
4251
|
+
class GetClustersForImageRequest < Struct.new(
|
4252
|
+
:filter,
|
4253
|
+
:max_results,
|
4254
|
+
:next_token)
|
4255
|
+
SENSITIVE = []
|
4256
|
+
include Aws::Structure
|
4257
|
+
end
|
4258
|
+
|
4259
|
+
# @!attribute [rw] cluster
|
4260
|
+
# A unit of work inside of a cluster, which can include metadata about
|
4261
|
+
# the cluster.
|
4262
|
+
# @return [Array<Types::ClusterInformation>]
|
4263
|
+
#
|
4264
|
+
# @!attribute [rw] next_token
|
4265
|
+
# The pagination token from a previous request used to retrieve the
|
4266
|
+
# next page of results.
|
4267
|
+
# @return [String]
|
4268
|
+
#
|
4269
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/GetClustersForImageResponse AWS API Documentation
|
4270
|
+
#
|
4271
|
+
class GetClustersForImageResponse < Struct.new(
|
4272
|
+
:cluster,
|
4273
|
+
:next_token)
|
4274
|
+
SENSITIVE = []
|
4275
|
+
include Aws::Structure
|
4276
|
+
end
|
4277
|
+
|
3986
4278
|
# @api private
|
3987
4279
|
#
|
3988
4280
|
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/GetConfigurationRequest AWS API Documentation
|
data/lib/aws-sdk-inspector2.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -293,6 +293,18 @@ module Aws
|
|
293
293
|
value: ::String
|
294
294
|
},
|
295
295
|
]?,
|
296
|
+
ecr_image_in_use_count: Array[
|
297
|
+
{
|
298
|
+
lower_inclusive: ::Float?,
|
299
|
+
upper_inclusive: ::Float?
|
300
|
+
},
|
301
|
+
]?,
|
302
|
+
ecr_image_last_in_use_at: Array[
|
303
|
+
{
|
304
|
+
end_inclusive: ::Time?,
|
305
|
+
start_inclusive: ::Time?
|
306
|
+
},
|
307
|
+
]?,
|
296
308
|
ecr_image_pushed_at: Array[
|
297
309
|
{
|
298
310
|
end_inclusive: ::Time?,
|
@@ -590,6 +602,18 @@ module Aws
|
|
590
602
|
value: ::String
|
591
603
|
},
|
592
604
|
]?,
|
605
|
+
ecr_image_in_use_count: Array[
|
606
|
+
{
|
607
|
+
lower_inclusive: ::Float?,
|
608
|
+
upper_inclusive: ::Float?
|
609
|
+
},
|
610
|
+
]?,
|
611
|
+
ecr_image_last_in_use_at: Array[
|
612
|
+
{
|
613
|
+
end_inclusive: ::Time?,
|
614
|
+
start_inclusive: ::Time?
|
615
|
+
},
|
616
|
+
]?,
|
593
617
|
ecr_image_pushed_at: Array[
|
594
618
|
{
|
595
619
|
end_inclusive: ::Time?,
|
@@ -1032,6 +1056,21 @@ module Aws
|
|
1032
1056
|
) -> _GetCisScanResultDetailsResponseSuccess
|
1033
1057
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetCisScanResultDetailsResponseSuccess
|
1034
1058
|
|
1059
|
+
interface _GetClustersForImageResponseSuccess
|
1060
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetClustersForImageResponse]
|
1061
|
+
def cluster: () -> ::Array[Types::ClusterInformation]
|
1062
|
+
def next_token: () -> ::String
|
1063
|
+
end
|
1064
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#get_clusters_for_image-instance_method
|
1065
|
+
def get_clusters_for_image: (
|
1066
|
+
filter: {
|
1067
|
+
resource_id: ::String
|
1068
|
+
},
|
1069
|
+
?max_results: ::Integer,
|
1070
|
+
?next_token: ::String
|
1071
|
+
) -> _GetClustersForImageResponseSuccess
|
1072
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetClustersForImageResponseSuccess
|
1073
|
+
|
1035
1074
|
interface _GetConfigurationResponseSuccess
|
1036
1075
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetConfigurationResponse]
|
1037
1076
|
def ec2_configuration: () -> Types::Ec2ConfigurationState
|
@@ -1387,6 +1426,18 @@ module Aws
|
|
1387
1426
|
value: ::String?
|
1388
1427
|
},
|
1389
1428
|
]?,
|
1429
|
+
ecr_image_in_use_count: Array[
|
1430
|
+
{
|
1431
|
+
lower_inclusive: ::Integer?,
|
1432
|
+
upper_inclusive: ::Integer?
|
1433
|
+
},
|
1434
|
+
]?,
|
1435
|
+
ecr_image_last_in_use_at: Array[
|
1436
|
+
{
|
1437
|
+
end_inclusive: ::Time?,
|
1438
|
+
start_inclusive: ::Time?
|
1439
|
+
},
|
1440
|
+
]?,
|
1390
1441
|
ecr_image_tags: Array[
|
1391
1442
|
{
|
1392
1443
|
comparison: ("EQUALS" | "NOT_EQUALS"),
|
@@ -1494,6 +1545,18 @@ module Aws
|
|
1494
1545
|
value: ::String?
|
1495
1546
|
},
|
1496
1547
|
]?,
|
1548
|
+
ecr_image_in_use_count: Array[
|
1549
|
+
{
|
1550
|
+
lower_inclusive: ::Integer?,
|
1551
|
+
upper_inclusive: ::Integer?
|
1552
|
+
},
|
1553
|
+
]?,
|
1554
|
+
ecr_image_last_in_use_at: Array[
|
1555
|
+
{
|
1556
|
+
end_inclusive: ::Time?,
|
1557
|
+
start_inclusive: ::Time?
|
1558
|
+
},
|
1559
|
+
]?,
|
1497
1560
|
ecr_image_tags: Array[
|
1498
1561
|
{
|
1499
1562
|
comparison: ("EQUALS" | "NOT_EQUALS"),
|
@@ -1655,6 +1718,18 @@ module Aws
|
|
1655
1718
|
value: ::String
|
1656
1719
|
},
|
1657
1720
|
]?,
|
1721
|
+
in_use_count: Array[
|
1722
|
+
{
|
1723
|
+
lower_inclusive: ::Float?,
|
1724
|
+
upper_inclusive: ::Float?
|
1725
|
+
},
|
1726
|
+
]?,
|
1727
|
+
last_in_use_at: Array[
|
1728
|
+
{
|
1729
|
+
end_inclusive: ::Time?,
|
1730
|
+
start_inclusive: ::Time?
|
1731
|
+
},
|
1732
|
+
]?,
|
1658
1733
|
repositories: Array[
|
1659
1734
|
{
|
1660
1735
|
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
|
@@ -1897,6 +1972,18 @@ module Aws
|
|
1897
1972
|
value: ::String
|
1898
1973
|
},
|
1899
1974
|
]?,
|
1975
|
+
ecr_image_in_use_count: Array[
|
1976
|
+
{
|
1977
|
+
lower_inclusive: ::Float?,
|
1978
|
+
upper_inclusive: ::Float?
|
1979
|
+
},
|
1980
|
+
]?,
|
1981
|
+
ecr_image_last_in_use_at: Array[
|
1982
|
+
{
|
1983
|
+
end_inclusive: ::Time?,
|
1984
|
+
start_inclusive: ::Time?
|
1985
|
+
},
|
1986
|
+
]?,
|
1900
1987
|
ecr_image_pushed_at: Array[
|
1901
1988
|
{
|
1902
1989
|
end_inclusive: ::Time?,
|
@@ -2324,6 +2411,7 @@ module Aws
|
|
2324
2411
|
},
|
2325
2412
|
?ecr_configuration: {
|
2326
2413
|
pull_date_rescan_duration: ("DAYS_14" | "DAYS_30" | "DAYS_60" | "DAYS_90" | "DAYS_180")?,
|
2414
|
+
pull_date_rescan_mode: ("LAST_PULL_DATE" | "LAST_IN_USE_AT")?,
|
2327
2415
|
rescan_duration: ("LIFETIME" | "DAYS_30" | "DAYS_180" | "DAYS_14" | "DAYS_60" | "DAYS_90")
|
2328
2416
|
}
|
2329
2417
|
) -> _UpdateConfigurationResponseSuccess
|
@@ -2430,6 +2518,18 @@ module Aws
|
|
2430
2518
|
value: ::String
|
2431
2519
|
},
|
2432
2520
|
]?,
|
2521
|
+
ecr_image_in_use_count: Array[
|
2522
|
+
{
|
2523
|
+
lower_inclusive: ::Float?,
|
2524
|
+
upper_inclusive: ::Float?
|
2525
|
+
},
|
2526
|
+
]?,
|
2527
|
+
ecr_image_last_in_use_at: Array[
|
2528
|
+
{
|
2529
|
+
end_inclusive: ::Time?,
|
2530
|
+
start_inclusive: ::Time?
|
2531
|
+
},
|
2532
|
+
]?,
|
2433
2533
|
ecr_image_pushed_at: Array[
|
2434
2534
|
{
|
2435
2535
|
end_inclusive: ::Time?,
|
data/sig/types.rbs
CHANGED
@@ -184,6 +184,8 @@ module Aws::Inspector2
|
|
184
184
|
attr_accessor architectures: ::Array[Types::StringFilter]
|
185
185
|
attr_accessor image_shas: ::Array[Types::StringFilter]
|
186
186
|
attr_accessor image_tags: ::Array[Types::StringFilter]
|
187
|
+
attr_accessor in_use_count: ::Array[Types::NumberFilter]
|
188
|
+
attr_accessor last_in_use_at: ::Array[Types::DateFilter]
|
187
189
|
attr_accessor repositories: ::Array[Types::StringFilter]
|
188
190
|
attr_accessor resource_ids: ::Array[Types::StringFilter]
|
189
191
|
attr_accessor sort_by: ("CRITICAL" | "HIGH" | "ALL")
|
@@ -196,6 +198,8 @@ module Aws::Inspector2
|
|
196
198
|
attr_accessor architecture: ::String
|
197
199
|
attr_accessor image_sha: ::String
|
198
200
|
attr_accessor image_tags: ::Array[::String]
|
201
|
+
attr_accessor in_use_count: ::Integer
|
202
|
+
attr_accessor last_in_use_at: ::Time
|
199
203
|
attr_accessor repository: ::String
|
200
204
|
attr_accessor resource_id: ::String
|
201
205
|
attr_accessor severity_counts: Types::SeverityCounts
|
@@ -207,6 +211,8 @@ module Aws::Inspector2
|
|
207
211
|
attr_accessor author: ::String
|
208
212
|
attr_accessor image_hash: ::String
|
209
213
|
attr_accessor image_tags: ::Array[::String]
|
214
|
+
attr_accessor in_use_count: ::Integer
|
215
|
+
attr_accessor last_in_use_at: ::Time
|
210
216
|
attr_accessor platform: ::String
|
211
217
|
attr_accessor pushed_at: ::Time
|
212
218
|
attr_accessor registry: ::String
|
@@ -214,6 +220,24 @@ module Aws::Inspector2
|
|
214
220
|
SENSITIVE: []
|
215
221
|
end
|
216
222
|
|
223
|
+
class AwsEcsMetadataDetails
|
224
|
+
attr_accessor details_group: ::String
|
225
|
+
attr_accessor task_definition_arn: ::String
|
226
|
+
SENSITIVE: []
|
227
|
+
end
|
228
|
+
|
229
|
+
class AwsEksMetadataDetails
|
230
|
+
attr_accessor namespace: ::String
|
231
|
+
attr_accessor workload_info_list: ::Array[Types::AwsEksWorkloadInfo]
|
232
|
+
SENSITIVE: []
|
233
|
+
end
|
234
|
+
|
235
|
+
class AwsEksWorkloadInfo
|
236
|
+
attr_accessor name: ::String
|
237
|
+
attr_accessor type: ::String
|
238
|
+
SENSITIVE: []
|
239
|
+
end
|
240
|
+
|
217
241
|
class AwsLambdaFunctionDetails
|
218
242
|
attr_accessor architectures: ::Array[("X86_64" | "ARM64")]
|
219
243
|
attr_accessor code_sha_256: ::String
|
@@ -490,6 +514,39 @@ module Aws::Inspector2
|
|
490
514
|
SENSITIVE: []
|
491
515
|
end
|
492
516
|
|
517
|
+
class ClusterDetails
|
518
|
+
attr_accessor cluster_metadata: Types::ClusterMetadata
|
519
|
+
attr_accessor last_in_use: ::Time
|
520
|
+
attr_accessor running_unit_count: ::Integer
|
521
|
+
attr_accessor stopped_unit_count: ::Integer
|
522
|
+
SENSITIVE: []
|
523
|
+
end
|
524
|
+
|
525
|
+
class ClusterForImageFilterCriteria
|
526
|
+
attr_accessor resource_id: ::String
|
527
|
+
SENSITIVE: []
|
528
|
+
end
|
529
|
+
|
530
|
+
class ClusterInformation
|
531
|
+
attr_accessor cluster_arn: ::String
|
532
|
+
attr_accessor cluster_details: ::Array[Types::ClusterDetails]
|
533
|
+
SENSITIVE: []
|
534
|
+
end
|
535
|
+
|
536
|
+
class ClusterMetadata
|
537
|
+
attr_accessor aws_ecs_metadata_details: Types::AwsEcsMetadataDetails
|
538
|
+
attr_accessor aws_eks_metadata_details: Types::AwsEksMetadataDetails
|
539
|
+
attr_accessor unknown: untyped
|
540
|
+
SENSITIVE: []
|
541
|
+
|
542
|
+
class AwsEcsMetadataDetails < ClusterMetadata
|
543
|
+
end
|
544
|
+
class AwsEksMetadataDetails < ClusterMetadata
|
545
|
+
end
|
546
|
+
class Unknown < ClusterMetadata
|
547
|
+
end
|
548
|
+
end
|
549
|
+
|
493
550
|
class CodeFilePath
|
494
551
|
attr_accessor end_line: ::Integer
|
495
552
|
attr_accessor file_name: ::String
|
@@ -561,6 +618,8 @@ module Aws::Inspector2
|
|
561
618
|
class CoverageFilterCriteria
|
562
619
|
attr_accessor account_id: ::Array[Types::CoverageStringFilter]
|
563
620
|
attr_accessor ec2_instance_tags: ::Array[Types::CoverageMapFilter]
|
621
|
+
attr_accessor ecr_image_in_use_count: ::Array[Types::CoverageNumberFilter]
|
622
|
+
attr_accessor ecr_image_last_in_use_at: ::Array[Types::CoverageDateFilter]
|
564
623
|
attr_accessor ecr_image_tags: ::Array[Types::CoverageStringFilter]
|
565
624
|
attr_accessor ecr_repository_name: ::Array[Types::CoverageStringFilter]
|
566
625
|
attr_accessor image_pulled_at: ::Array[Types::CoverageDateFilter]
|
@@ -584,6 +643,12 @@ module Aws::Inspector2
|
|
584
643
|
SENSITIVE: []
|
585
644
|
end
|
586
645
|
|
646
|
+
class CoverageNumberFilter
|
647
|
+
attr_accessor lower_inclusive: ::Integer
|
648
|
+
attr_accessor upper_inclusive: ::Integer
|
649
|
+
SENSITIVE: []
|
650
|
+
end
|
651
|
+
|
587
652
|
class CoverageStringFilter
|
588
653
|
attr_accessor comparison: ("EQUALS" | "NOT_EQUALS")
|
589
654
|
attr_accessor value: ::String
|
@@ -834,6 +899,7 @@ module Aws::Inspector2
|
|
834
899
|
|
835
900
|
class EcrConfiguration
|
836
901
|
attr_accessor pull_date_rescan_duration: ("DAYS_14" | "DAYS_30" | "DAYS_60" | "DAYS_90" | "DAYS_180")
|
902
|
+
attr_accessor pull_date_rescan_mode: ("LAST_PULL_DATE" | "LAST_IN_USE_AT")
|
837
903
|
attr_accessor rescan_duration: ("LIFETIME" | "DAYS_30" | "DAYS_180" | "DAYS_14" | "DAYS_60" | "DAYS_90")
|
838
904
|
SENSITIVE: []
|
839
905
|
end
|
@@ -845,6 +911,8 @@ module Aws::Inspector2
|
|
845
911
|
|
846
912
|
class EcrContainerImageMetadata
|
847
913
|
attr_accessor image_pulled_at: ::Time
|
914
|
+
attr_accessor in_use_count: ::Integer
|
915
|
+
attr_accessor last_in_use_at: ::Time
|
848
916
|
attr_accessor tags: ::Array[::String]
|
849
917
|
SENSITIVE: []
|
850
918
|
end
|
@@ -857,6 +925,7 @@ module Aws::Inspector2
|
|
857
925
|
|
858
926
|
class EcrRescanDurationState
|
859
927
|
attr_accessor pull_date_rescan_duration: ("DAYS_14" | "DAYS_30" | "DAYS_60" | "DAYS_90" | "DAYS_180")
|
928
|
+
attr_accessor pull_date_rescan_mode: ("LAST_PULL_DATE" | "LAST_IN_USE_AT")
|
860
929
|
attr_accessor rescan_duration: ("LIFETIME" | "DAYS_30" | "DAYS_180" | "DAYS_14" | "DAYS_60" | "DAYS_90")
|
861
930
|
attr_accessor status: ("SUCCESS" | "PENDING" | "FAILED")
|
862
931
|
attr_accessor updated_at: ::Time
|
@@ -957,6 +1026,8 @@ module Aws::Inspector2
|
|
957
1026
|
attr_accessor ec2_instance_vpc_id: ::Array[Types::StringFilter]
|
958
1027
|
attr_accessor ecr_image_architecture: ::Array[Types::StringFilter]
|
959
1028
|
attr_accessor ecr_image_hash: ::Array[Types::StringFilter]
|
1029
|
+
attr_accessor ecr_image_in_use_count: ::Array[Types::NumberFilter]
|
1030
|
+
attr_accessor ecr_image_last_in_use_at: ::Array[Types::DateFilter]
|
960
1031
|
attr_accessor ecr_image_pushed_at: ::Array[Types::DateFilter]
|
961
1032
|
attr_accessor ecr_image_registry: ::Array[Types::StringFilter]
|
962
1033
|
attr_accessor ecr_image_repository_name: ::Array[Types::StringFilter]
|
@@ -1105,6 +1176,19 @@ module Aws::Inspector2
|
|
1105
1176
|
SENSITIVE: []
|
1106
1177
|
end
|
1107
1178
|
|
1179
|
+
class GetClustersForImageRequest
|
1180
|
+
attr_accessor filter: Types::ClusterForImageFilterCriteria
|
1181
|
+
attr_accessor max_results: ::Integer
|
1182
|
+
attr_accessor next_token: ::String
|
1183
|
+
SENSITIVE: []
|
1184
|
+
end
|
1185
|
+
|
1186
|
+
class GetClustersForImageResponse
|
1187
|
+
attr_accessor cluster: ::Array[Types::ClusterInformation]
|
1188
|
+
attr_accessor next_token: ::String
|
1189
|
+
SENSITIVE: []
|
1190
|
+
end
|
1191
|
+
|
1108
1192
|
class GetConfigurationRequest < Aws::EmptyStructure
|
1109
1193
|
end
|
1110
1194
|
|
@@ -1704,7 +1788,7 @@ module Aws::Inspector2
|
|
1704
1788
|
end
|
1705
1789
|
|
1706
1790
|
class ScanStatus
|
1707
|
-
attr_accessor reason: ("PENDING_INITIAL_SCAN" | "ACCESS_DENIED" | "INTERNAL_ERROR" | "UNMANAGED_EC2_INSTANCE" | "UNSUPPORTED_OS" | "SCAN_ELIGIBILITY_EXPIRED" | "RESOURCE_TERMINATED" | "SUCCESSFUL" | "NO_RESOURCES_FOUND" | "IMAGE_SIZE_EXCEEDED" | "SCAN_FREQUENCY_MANUAL" | "SCAN_FREQUENCY_SCAN_ON_PUSH" | "EC2_INSTANCE_STOPPED" | "PENDING_DISABLE" | "NO_INVENTORY" | "STALE_INVENTORY" | "EXCLUDED_BY_TAG" | "UNSUPPORTED_RUNTIME" | "UNSUPPORTED_MEDIA_TYPE" | "UNSUPPORTED_CONFIG_FILE" | "DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED" | "DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED" | "DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED" | "DEEP_INSPECTION_NO_INVENTORY" | "AGENTLESS_INSTANCE_STORAGE_LIMIT_EXCEEDED" | "AGENTLESS_INSTANCE_COLLECTION_TIME_LIMIT_EXCEEDED")
|
1791
|
+
attr_accessor reason: ("PENDING_INITIAL_SCAN" | "ACCESS_DENIED" | "INTERNAL_ERROR" | "UNMANAGED_EC2_INSTANCE" | "UNSUPPORTED_OS" | "SCAN_ELIGIBILITY_EXPIRED" | "RESOURCE_TERMINATED" | "SUCCESSFUL" | "NO_RESOURCES_FOUND" | "IMAGE_SIZE_EXCEEDED" | "SCAN_FREQUENCY_MANUAL" | "SCAN_FREQUENCY_SCAN_ON_PUSH" | "EC2_INSTANCE_STOPPED" | "PENDING_DISABLE" | "NO_INVENTORY" | "STALE_INVENTORY" | "EXCLUDED_BY_TAG" | "UNSUPPORTED_RUNTIME" | "UNSUPPORTED_MEDIA_TYPE" | "UNSUPPORTED_CONFIG_FILE" | "DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED" | "DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED" | "DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED" | "DEEP_INSPECTION_NO_INVENTORY" | "AGENTLESS_INSTANCE_STORAGE_LIMIT_EXCEEDED" | "AGENTLESS_INSTANCE_COLLECTION_TIME_LIMIT_EXCEEDED" | "PENDING_REVIVAL_SCAN")
|
1708
1792
|
attr_accessor status_code: ("ACTIVE" | "INACTIVE")
|
1709
1793
|
SENSITIVE: []
|
1710
1794
|
end
|