aws-sdk-ec2 1.660.0 → 1.661.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/client.rb +135 -1
- data/lib/aws-sdk-ec2/client_api.rb +80 -0
- data/lib/aws-sdk-ec2/image.rb +11 -0
- data/lib/aws-sdk-ec2/resource.rb +43 -0
- data/lib/aws-sdk-ec2/types.rb +574 -2
- data/lib/aws-sdk-ec2.rb +1 -1
- data/sig/client.rbs +24 -1
- data/sig/image.rbs +3 -0
- data/sig/types.rbs +62 -0
- 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: 1ec5ea630cb025e3ca63864e7a15a3078f2c114d8ff627cc91657d1bd37d5479
|
|
4
|
+
data.tar.gz: f5793d6aa809d79badd207f984ffbc101a749b84840eb8774f0f9c798ce2844e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5c7fb21a15f183e8f8db3fcd77a8a13edb6d9744c7133a832bc8b80dc8e29b0dc32a0ae36600cddb36c935c119edaedd71480bd3f123d5bbb975c89d77d654d2
|
|
7
|
+
data.tar.gz: 101123997e8482c5f4ce2fdb96da573a3695cb6946af8705d5936ae9e48fb51bbdfca477ceaeb94ad4b6c45e24bfbc687a072105ecc2ba324fa449ee6595f060
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.661.0
|
data/lib/aws-sdk-ec2/client.rb
CHANGED
|
@@ -32271,6 +32271,49 @@ module Aws::EC2
|
|
|
32271
32271
|
# * `root-device-type` - The type of the root device volume (`ebs` \|
|
|
32272
32272
|
# `instance-store`).
|
|
32273
32273
|
#
|
|
32274
|
+
# * `scan-result.critical-fix-available-since` - The earliest date and
|
|
32275
|
+
# time, in the ISO 8601 format in the UTC time zone
|
|
32276
|
+
# (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix
|
|
32277
|
+
# as available for a `critical` severity finding on the AMI.
|
|
32278
|
+
#
|
|
32279
|
+
# * `scan-result.finding-scan-date` - The date and time, in the ISO 8601
|
|
32280
|
+
# format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), of the most
|
|
32281
|
+
# recent Amazon Inspector scan of the AMI.
|
|
32282
|
+
#
|
|
32283
|
+
# * `scan-result.high-fix-available-since` - The earliest date and time,
|
|
32284
|
+
# in the ISO 8601 format in the UTC time zone
|
|
32285
|
+
# (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix
|
|
32286
|
+
# as available for a `high` severity finding on the AMI.
|
|
32287
|
+
#
|
|
32288
|
+
# * `scan-result.highest-finding-severity-label` - The highest severity
|
|
32289
|
+
# among the AMI's Amazon Inspector findings, whether or not a fix is
|
|
32290
|
+
# available. The valid values are the following Amazon Inspector
|
|
32291
|
+
# severity levels:
|
|
32292
|
+
#
|
|
32293
|
+
# * `informational` - CVSS score of 0.
|
|
32294
|
+
#
|
|
32295
|
+
# * `low` - CVSS score of 0.1 to 3.9.
|
|
32296
|
+
#
|
|
32297
|
+
# * `medium` - CVSS score of 4.0 to 6.9.
|
|
32298
|
+
#
|
|
32299
|
+
# * `high` - CVSS score of 7.0 to 8.9.
|
|
32300
|
+
#
|
|
32301
|
+
# * `critical` - CVSS score of 9.0 to 10.0.
|
|
32302
|
+
# * `scan-result.informational-fix-available-since` - The earliest date
|
|
32303
|
+
# and time, in the ISO 8601 format in the UTC time zone
|
|
32304
|
+
# (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix
|
|
32305
|
+
# as available for an `informational` severity finding on the AMI.
|
|
32306
|
+
#
|
|
32307
|
+
# * `scan-result.low-fix-available-since` - The earliest date and time,
|
|
32308
|
+
# in the ISO 8601 format in the UTC time zone
|
|
32309
|
+
# (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix
|
|
32310
|
+
# as available for a `low` severity finding on the AMI.
|
|
32311
|
+
#
|
|
32312
|
+
# * `scan-result.medium-fix-available-since` - The earliest date and
|
|
32313
|
+
# time, in the ISO 8601 format in the UTC time zone
|
|
32314
|
+
# (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix
|
|
32315
|
+
# as available for a `medium` severity finding on the AMI.
|
|
32316
|
+
#
|
|
32274
32317
|
# * `source-image-id` - The ID of the source AMI from which the AMI was
|
|
32275
32318
|
# created.
|
|
32276
32319
|
#
|
|
@@ -32432,6 +32475,13 @@ module Aws::EC2
|
|
|
32432
32475
|
# resp.images[0].image_watermarks[0].source_image_id #=> String
|
|
32433
32476
|
# resp.images[0].image_watermarks[0].source_image_creation_time #=> Time
|
|
32434
32477
|
# resp.images[0].image_watermarks[0].watermark_creation_time #=> Time
|
|
32478
|
+
# resp.images[0].scan_results.highest_finding_severity_label #=> String, one of "informational", "low", "medium", "high", "critical"
|
|
32479
|
+
# resp.images[0].scan_results.finding_scan_date #=> Time
|
|
32480
|
+
# resp.images[0].scan_results.informational_fix_available_since #=> Time
|
|
32481
|
+
# resp.images[0].scan_results.low_fix_available_since #=> Time
|
|
32482
|
+
# resp.images[0].scan_results.medium_fix_available_since #=> Time
|
|
32483
|
+
# resp.images[0].scan_results.high_fix_available_since #=> Time
|
|
32484
|
+
# resp.images[0].scan_results.critical_fix_available_since #=> Time
|
|
32435
32485
|
# resp.images[0].instance_type_specification.supported_instance_types #=> Array
|
|
32436
32486
|
# resp.images[0].instance_type_specification.supported_instance_types[0].instance_type #=> String
|
|
32437
32487
|
# resp.images[0].instance_type_specification.unsupported_instance_types #=> Array
|
|
@@ -54311,6 +54361,13 @@ module Aws::EC2
|
|
|
54311
54361
|
# resp.image_criteria[0].image_watermarks[0].source_image_region #=> String
|
|
54312
54362
|
# resp.image_criteria[0].image_watermarks[0].maximum_days_since_source_image_created #=> Integer
|
|
54313
54363
|
# resp.image_criteria[0].image_watermarks[0].maximum_days_since_watermark_created #=> Integer
|
|
54364
|
+
# resp.image_criteria[0].scan_result_condition.max_days_since_last_finding_scan #=> Integer
|
|
54365
|
+
# resp.image_criteria[0].scan_result_condition.maximum_severity_label #=> String, one of "informational", "low", "medium", "high", "critical"
|
|
54366
|
+
# resp.image_criteria[0].scan_result_condition.max_days_since_informational_fix_available #=> Integer
|
|
54367
|
+
# resp.image_criteria[0].scan_result_condition.max_days_since_low_fix_available #=> Integer
|
|
54368
|
+
# resp.image_criteria[0].scan_result_condition.max_days_since_medium_fix_available #=> Integer
|
|
54369
|
+
# resp.image_criteria[0].scan_result_condition.max_days_since_high_fix_available #=> Integer
|
|
54370
|
+
# resp.image_criteria[0].scan_result_condition.max_days_since_critical_fix_available #=> Integer
|
|
54314
54371
|
# resp.managed_by #=> String, one of "account", "declarative-policy"
|
|
54315
54372
|
#
|
|
54316
54373
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetAllowedImagesSettings AWS API Documentation
|
|
@@ -55654,6 +55711,74 @@ module Aws::EC2
|
|
|
55654
55711
|
req.send_request(options)
|
|
55655
55712
|
end
|
|
55656
55713
|
|
|
55714
|
+
# Describes the Amazon Inspector vulnerability findings for the
|
|
55715
|
+
# specified AMI.
|
|
55716
|
+
#
|
|
55717
|
+
# You can get findings for AMIs that you own, AMIs that are shared with
|
|
55718
|
+
# you, and public AMIs. Amazon Inspector returns findings only for AMIs
|
|
55719
|
+
# that it has scanned.
|
|
55720
|
+
#
|
|
55721
|
+
# @option params [required, String] :image_id
|
|
55722
|
+
# The ID of the AMI.
|
|
55723
|
+
#
|
|
55724
|
+
# @option params [Integer] :max_results
|
|
55725
|
+
# The maximum number of items to return for this request. To get the
|
|
55726
|
+
# next page of items, make another request with the token returned in
|
|
55727
|
+
# the output. For more information, see [Pagination][1].
|
|
55728
|
+
#
|
|
55729
|
+
#
|
|
55730
|
+
#
|
|
55731
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
|
|
55732
|
+
#
|
|
55733
|
+
# @option params [String] :next_token
|
|
55734
|
+
# The token returned from a previous paginated request. Pagination
|
|
55735
|
+
# continues from the end of the items returned by the previous request.
|
|
55736
|
+
#
|
|
55737
|
+
# @option params [Boolean] :dry_run
|
|
55738
|
+
# Checks whether you have the required permissions for the action,
|
|
55739
|
+
# without actually making the request, and provides an error response.
|
|
55740
|
+
# If you have the required permissions, the error response is
|
|
55741
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
|
55742
|
+
#
|
|
55743
|
+
# @return [Types::GetImageFindingsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
55744
|
+
#
|
|
55745
|
+
# * {Types::GetImageFindingsResult#image_findings #image_findings} => Array<Types::ImageFinding>
|
|
55746
|
+
# * {Types::GetImageFindingsResult#next_token #next_token} => String
|
|
55747
|
+
#
|
|
55748
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
55749
|
+
#
|
|
55750
|
+
# @example Request syntax with placeholder values
|
|
55751
|
+
#
|
|
55752
|
+
# resp = client.get_image_findings({
|
|
55753
|
+
# image_id: "ImageId", # required
|
|
55754
|
+
# max_results: 1,
|
|
55755
|
+
# next_token: "String",
|
|
55756
|
+
# dry_run: false,
|
|
55757
|
+
# })
|
|
55758
|
+
#
|
|
55759
|
+
# @example Response structure
|
|
55760
|
+
#
|
|
55761
|
+
# resp.image_findings #=> Array
|
|
55762
|
+
# resp.image_findings[0].fix_available #=> Boolean
|
|
55763
|
+
# resp.image_findings[0].score #=> Float
|
|
55764
|
+
# resp.image_findings[0].first_observed_at #=> Time
|
|
55765
|
+
# resp.image_findings[0].updated_at #=> Time
|
|
55766
|
+
# resp.image_findings[0].title #=> String
|
|
55767
|
+
# resp.image_findings[0].paths #=> Array
|
|
55768
|
+
# resp.image_findings[0].paths[0] #=> String
|
|
55769
|
+
# resp.image_findings[0].severity_label #=> String, one of "informational", "low", "medium", "high", "critical"
|
|
55770
|
+
# resp.image_findings[0].snapshot_id #=> String
|
|
55771
|
+
# resp.next_token #=> String
|
|
55772
|
+
#
|
|
55773
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetImageFindings AWS API Documentation
|
|
55774
|
+
#
|
|
55775
|
+
# @overload get_image_findings(params = {})
|
|
55776
|
+
# @param [Hash] params ({})
|
|
55777
|
+
def get_image_findings(params = {}, options = {})
|
|
55778
|
+
req = build_request(:get_image_findings, params)
|
|
55779
|
+
req.send_request(options)
|
|
55780
|
+
end
|
|
55781
|
+
|
|
55657
55782
|
# Gets the default instance metadata service (IMDS) settings that are
|
|
55658
55783
|
# set at the account level in the specified Amazon Web Services
Region.
|
|
55659
55784
|
#
|
|
@@ -71726,6 +71851,15 @@ module Aws::EC2
|
|
|
71726
71851
|
# maximum_days_since_watermark_created: 1,
|
|
71727
71852
|
# },
|
|
71728
71853
|
# ],
|
|
71854
|
+
# scan_result_condition: {
|
|
71855
|
+
# max_days_since_last_finding_scan: 1,
|
|
71856
|
+
# maximum_severity_label: "informational", # accepts informational, low, medium, high, critical
|
|
71857
|
+
# max_days_since_informational_fix_available: 1,
|
|
71858
|
+
# max_days_since_low_fix_available: 1,
|
|
71859
|
+
# max_days_since_medium_fix_available: 1,
|
|
71860
|
+
# max_days_since_high_fix_available: 1,
|
|
71861
|
+
# max_days_since_critical_fix_available: 1,
|
|
71862
|
+
# },
|
|
71729
71863
|
# },
|
|
71730
71864
|
# ],
|
|
71731
71865
|
# dry_run: false,
|
|
@@ -78224,7 +78358,7 @@ module Aws::EC2
|
|
|
78224
78358
|
tracer: tracer
|
|
78225
78359
|
)
|
|
78226
78360
|
context[:gem_name] = 'aws-sdk-ec2'
|
|
78227
|
-
context[:gem_version] = '1.
|
|
78361
|
+
context[:gem_version] = '1.661.0'
|
|
78228
78362
|
Seahorse::Client::Request.new(handlers, context)
|
|
78229
78363
|
end
|
|
78230
78364
|
|
|
@@ -1958,6 +1958,10 @@ module Aws::EC2
|
|
|
1958
1958
|
GetImageAncestryResult = Shapes::StructureShape.new(name: 'GetImageAncestryResult')
|
|
1959
1959
|
GetImageBlockPublicAccessStateRequest = Shapes::StructureShape.new(name: 'GetImageBlockPublicAccessStateRequest')
|
|
1960
1960
|
GetImageBlockPublicAccessStateResult = Shapes::StructureShape.new(name: 'GetImageBlockPublicAccessStateResult')
|
|
1961
|
+
GetImageFindingsEntrySet = Shapes::ListShape.new(name: 'GetImageFindingsEntrySet')
|
|
1962
|
+
GetImageFindingsMaxResults = Shapes::IntegerShape.new(name: 'GetImageFindingsMaxResults')
|
|
1963
|
+
GetImageFindingsRequest = Shapes::StructureShape.new(name: 'GetImageFindingsRequest')
|
|
1964
|
+
GetImageFindingsResult = Shapes::StructureShape.new(name: 'GetImageFindingsResult')
|
|
1961
1965
|
GetInstanceMetadataDefaultsRequest = Shapes::StructureShape.new(name: 'GetInstanceMetadataDefaultsRequest')
|
|
1962
1966
|
GetInstanceMetadataDefaultsResult = Shapes::StructureShape.new(name: 'GetInstanceMetadataDefaultsResult')
|
|
1963
1967
|
GetInstanceTpmEkPubRequest = Shapes::StructureShape.new(name: 'GetInstanceTpmEkPubRequest')
|
|
@@ -2159,6 +2163,8 @@ module Aws::EC2
|
|
|
2159
2163
|
ImageDescriptionRequest = Shapes::StringShape.new(name: 'ImageDescriptionRequest')
|
|
2160
2164
|
ImageDiskContainer = Shapes::StructureShape.new(name: 'ImageDiskContainer')
|
|
2161
2165
|
ImageDiskContainerList = Shapes::ListShape.new(name: 'ImageDiskContainerList')
|
|
2166
|
+
ImageFinding = Shapes::StructureShape.new(name: 'ImageFinding')
|
|
2167
|
+
ImageFindingPathSet = Shapes::ListShape.new(name: 'ImageFindingPathSet')
|
|
2162
2168
|
ImageId = Shapes::StringShape.new(name: 'ImageId')
|
|
2163
2169
|
ImageIdList = Shapes::ListShape.new(name: 'ImageIdList')
|
|
2164
2170
|
ImageIdStringList = Shapes::ListShape.new(name: 'ImageIdStringList')
|
|
@@ -2792,6 +2798,8 @@ module Aws::EC2
|
|
|
2792
2798
|
MarketplaceProductCodeList = Shapes::ListShape.new(name: 'MarketplaceProductCodeList')
|
|
2793
2799
|
MarketplaceProductCodeRequest = Shapes::StringShape.new(name: 'MarketplaceProductCodeRequest')
|
|
2794
2800
|
MarketplaceProductCodeRequestList = Shapes::ListShape.new(name: 'MarketplaceProductCodeRequestList')
|
|
2801
|
+
MaxDaysSinceFixAvailableValue = Shapes::IntegerShape.new(name: 'MaxDaysSinceFixAvailableValue')
|
|
2802
|
+
MaxDaysSinceLastFindingScanValue = Shapes::IntegerShape.new(name: 'MaxDaysSinceLastFindingScanValue')
|
|
2795
2803
|
MaxIpv4AddrPerInterface = Shapes::IntegerShape.new(name: 'MaxIpv4AddrPerInterface')
|
|
2796
2804
|
MaxIpv6AddrPerInterface = Shapes::IntegerShape.new(name: 'MaxIpv6AddrPerInterface')
|
|
2797
2805
|
MaxNetworkInterfaces = Shapes::IntegerShape.new(name: 'MaxNetworkInterfaces')
|
|
@@ -3583,6 +3591,9 @@ module Aws::EC2
|
|
|
3583
3591
|
S3StorageUploadPolicy = Shapes::StringShape.new(name: 'S3StorageUploadPolicy')
|
|
3584
3592
|
S3StorageUploadPolicySignature = Shapes::StringShape.new(name: 'S3StorageUploadPolicySignature')
|
|
3585
3593
|
SSEType = Shapes::StringShape.new(name: 'SSEType')
|
|
3594
|
+
ScanResultCondition = Shapes::StructureShape.new(name: 'ScanResultCondition')
|
|
3595
|
+
ScanResultConditionRequest = Shapes::StructureShape.new(name: 'ScanResultConditionRequest')
|
|
3596
|
+
ScanResults = Shapes::StructureShape.new(name: 'ScanResults')
|
|
3586
3597
|
Schedule = Shapes::StringShape.new(name: 'Schedule')
|
|
3587
3598
|
ScheduledInstance = Shapes::StructureShape.new(name: 'ScheduledInstance')
|
|
3588
3599
|
ScheduledInstanceAvailability = Shapes::StructureShape.new(name: 'ScheduledInstanceAvailability')
|
|
@@ -3697,6 +3708,7 @@ module Aws::EC2
|
|
|
3697
3708
|
ServiceType = Shapes::StringShape.new(name: 'ServiceType')
|
|
3698
3709
|
ServiceTypeDetail = Shapes::StructureShape.new(name: 'ServiceTypeDetail')
|
|
3699
3710
|
ServiceTypeDetailSet = Shapes::ListShape.new(name: 'ServiceTypeDetailSet')
|
|
3711
|
+
SeverityLabel = Shapes::StringShape.new(name: 'SeverityLabel')
|
|
3700
3712
|
ShutdownBehavior = Shapes::StringShape.new(name: 'ShutdownBehavior')
|
|
3701
3713
|
SlotDateTimeRangeRequest = Shapes::StructureShape.new(name: 'SlotDateTimeRangeRequest')
|
|
3702
3714
|
SlotStartTimeRangeRequest = Shapes::StructureShape.new(name: 'SlotStartTimeRangeRequest')
|
|
@@ -12290,6 +12302,18 @@ module Aws::EC2
|
|
|
12290
12302
|
GetImageBlockPublicAccessStateResult.add_member(:managed_by, Shapes::ShapeRef.new(shape: ManagedBy, location_name: "managedBy"))
|
|
12291
12303
|
GetImageBlockPublicAccessStateResult.struct_class = Types::GetImageBlockPublicAccessStateResult
|
|
12292
12304
|
|
|
12305
|
+
GetImageFindingsEntrySet.member = Shapes::ShapeRef.new(shape: ImageFinding, location_name: "item")
|
|
12306
|
+
|
|
12307
|
+
GetImageFindingsRequest.add_member(:image_id, Shapes::ShapeRef.new(shape: ImageId, required: true, location_name: "ImageId"))
|
|
12308
|
+
GetImageFindingsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: GetImageFindingsMaxResults, location_name: "MaxResults"))
|
|
12309
|
+
GetImageFindingsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
|
12310
|
+
GetImageFindingsRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
|
12311
|
+
GetImageFindingsRequest.struct_class = Types::GetImageFindingsRequest
|
|
12312
|
+
|
|
12313
|
+
GetImageFindingsResult.add_member(:image_findings, Shapes::ShapeRef.new(shape: GetImageFindingsEntrySet, location_name: "imageFindingSet"))
|
|
12314
|
+
GetImageFindingsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
|
12315
|
+
GetImageFindingsResult.struct_class = Types::GetImageFindingsResult
|
|
12316
|
+
|
|
12293
12317
|
GetInstanceMetadataDefaultsRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
|
12294
12318
|
GetInstanceMetadataDefaultsRequest.struct_class = Types::GetInstanceMetadataDefaultsRequest
|
|
12295
12319
|
|
|
@@ -13110,6 +13134,7 @@ module Aws::EC2
|
|
|
13110
13134
|
Image.add_member(:free_tier_eligible, Shapes::ShapeRef.new(shape: Boolean, location_name: "freeTierEligible"))
|
|
13111
13135
|
Image.add_member(:public_ssm_parameter_name, Shapes::ShapeRef.new(shape: String, location_name: "publicSsmParameterName"))
|
|
13112
13136
|
Image.add_member(:image_watermarks, Shapes::ShapeRef.new(shape: ImageWatermarkList, location_name: "imageWatermarkSet"))
|
|
13137
|
+
Image.add_member(:scan_results, Shapes::ShapeRef.new(shape: ScanResults, location_name: "scanResults"))
|
|
13113
13138
|
Image.add_member(:instance_type_specification, Shapes::ShapeRef.new(shape: InstanceTypeSpecification, location_name: "instanceTypeSpecification"))
|
|
13114
13139
|
Image.add_member(:image_id, Shapes::ShapeRef.new(shape: String, location_name: "imageId"))
|
|
13115
13140
|
Image.add_member(:image_location, Shapes::ShapeRef.new(shape: String, location_name: "imageLocation"))
|
|
@@ -13156,6 +13181,7 @@ module Aws::EC2
|
|
|
13156
13181
|
ImageCriterion.add_member(:deprecation_time_condition, Shapes::ShapeRef.new(shape: DeprecationTimeCondition, location_name: "deprecationTimeCondition"))
|
|
13157
13182
|
ImageCriterion.add_member(:creation_date_condition, Shapes::ShapeRef.new(shape: CreationDateCondition, location_name: "creationDateCondition"))
|
|
13158
13183
|
ImageCriterion.add_member(:image_watermarks, Shapes::ShapeRef.new(shape: ImageWatermarkFilterResponseList, location_name: "imageWatermarkSet"))
|
|
13184
|
+
ImageCriterion.add_member(:scan_result_condition, Shapes::ShapeRef.new(shape: ScanResultCondition, location_name: "scanResultCondition"))
|
|
13159
13185
|
ImageCriterion.struct_class = Types::ImageCriterion
|
|
13160
13186
|
|
|
13161
13187
|
ImageCriterionList.member = Shapes::ShapeRef.new(shape: ImageCriterion, location_name: "item")
|
|
@@ -13166,6 +13192,7 @@ module Aws::EC2
|
|
|
13166
13192
|
ImageCriterionRequest.add_member(:deprecation_time_condition, Shapes::ShapeRef.new(shape: DeprecationTimeConditionRequest, location_name: "DeprecationTimeCondition"))
|
|
13167
13193
|
ImageCriterionRequest.add_member(:creation_date_condition, Shapes::ShapeRef.new(shape: CreationDateConditionRequest, location_name: "CreationDateCondition"))
|
|
13168
13194
|
ImageCriterionRequest.add_member(:image_watermarks, Shapes::ShapeRef.new(shape: ImageWatermarkFilterRequestList, location_name: "ImageWatermark"))
|
|
13195
|
+
ImageCriterionRequest.add_member(:scan_result_condition, Shapes::ShapeRef.new(shape: ScanResultConditionRequest, location_name: "ScanResultCondition"))
|
|
13169
13196
|
ImageCriterionRequest.struct_class = Types::ImageCriterionRequest
|
|
13170
13197
|
|
|
13171
13198
|
ImageCriterionRequestList.member = Shapes::ShapeRef.new(shape: ImageCriterionRequest, location_name: "ImageCriterion")
|
|
@@ -13180,6 +13207,18 @@ module Aws::EC2
|
|
|
13180
13207
|
|
|
13181
13208
|
ImageDiskContainerList.member = Shapes::ShapeRef.new(shape: ImageDiskContainer, location_name: "item")
|
|
13182
13209
|
|
|
13210
|
+
ImageFinding.add_member(:fix_available, Shapes::ShapeRef.new(shape: Boolean, location_name: "fixAvailable"))
|
|
13211
|
+
ImageFinding.add_member(:score, Shapes::ShapeRef.new(shape: Double, location_name: "score"))
|
|
13212
|
+
ImageFinding.add_member(:first_observed_at, Shapes::ShapeRef.new(shape: MillisecondDateTime, location_name: "firstObservedAt"))
|
|
13213
|
+
ImageFinding.add_member(:updated_at, Shapes::ShapeRef.new(shape: MillisecondDateTime, location_name: "updatedAt"))
|
|
13214
|
+
ImageFinding.add_member(:title, Shapes::ShapeRef.new(shape: String, location_name: "title"))
|
|
13215
|
+
ImageFinding.add_member(:paths, Shapes::ShapeRef.new(shape: ImageFindingPathSet, location_name: "pathSet"))
|
|
13216
|
+
ImageFinding.add_member(:severity_label, Shapes::ShapeRef.new(shape: SeverityLabel, location_name: "severityLabel"))
|
|
13217
|
+
ImageFinding.add_member(:snapshot_id, Shapes::ShapeRef.new(shape: SnapshotId, location_name: "snapshotId"))
|
|
13218
|
+
ImageFinding.struct_class = Types::ImageFinding
|
|
13219
|
+
|
|
13220
|
+
ImageFindingPathSet.member = Shapes::ShapeRef.new(shape: String, location_name: "item")
|
|
13221
|
+
|
|
13183
13222
|
ImageIdList.member = Shapes::ShapeRef.new(shape: ImageId, location_name: "item")
|
|
13184
13223
|
|
|
13185
13224
|
ImageIdStringList.member = Shapes::ShapeRef.new(shape: ImageId, location_name: "ImageId")
|
|
@@ -18508,6 +18547,33 @@ module Aws::EC2
|
|
|
18508
18547
|
S3Storage.add_member(:upload_policy_signature, Shapes::ShapeRef.new(shape: S3StorageUploadPolicySignature, location_name: "uploadPolicySignature"))
|
|
18509
18548
|
S3Storage.struct_class = Types::S3Storage
|
|
18510
18549
|
|
|
18550
|
+
ScanResultCondition.add_member(:max_days_since_last_finding_scan, Shapes::ShapeRef.new(shape: MaxDaysSinceLastFindingScanValue, location_name: "maxDaysSinceLastFindingScan"))
|
|
18551
|
+
ScanResultCondition.add_member(:maximum_severity_label, Shapes::ShapeRef.new(shape: SeverityLabel, location_name: "maximumSeverityLabel"))
|
|
18552
|
+
ScanResultCondition.add_member(:max_days_since_informational_fix_available, Shapes::ShapeRef.new(shape: MaxDaysSinceFixAvailableValue, location_name: "maxDaysSinceInformationalFixAvailable"))
|
|
18553
|
+
ScanResultCondition.add_member(:max_days_since_low_fix_available, Shapes::ShapeRef.new(shape: MaxDaysSinceFixAvailableValue, location_name: "maxDaysSinceLowFixAvailable"))
|
|
18554
|
+
ScanResultCondition.add_member(:max_days_since_medium_fix_available, Shapes::ShapeRef.new(shape: MaxDaysSinceFixAvailableValue, location_name: "maxDaysSinceMediumFixAvailable"))
|
|
18555
|
+
ScanResultCondition.add_member(:max_days_since_high_fix_available, Shapes::ShapeRef.new(shape: MaxDaysSinceFixAvailableValue, location_name: "maxDaysSinceHighFixAvailable"))
|
|
18556
|
+
ScanResultCondition.add_member(:max_days_since_critical_fix_available, Shapes::ShapeRef.new(shape: MaxDaysSinceFixAvailableValue, location_name: "maxDaysSinceCriticalFixAvailable"))
|
|
18557
|
+
ScanResultCondition.struct_class = Types::ScanResultCondition
|
|
18558
|
+
|
|
18559
|
+
ScanResultConditionRequest.add_member(:max_days_since_last_finding_scan, Shapes::ShapeRef.new(shape: MaxDaysSinceLastFindingScanValue, location_name: "MaxDaysSinceLastFindingScan"))
|
|
18560
|
+
ScanResultConditionRequest.add_member(:maximum_severity_label, Shapes::ShapeRef.new(shape: SeverityLabel, location_name: "MaximumSeverityLabel"))
|
|
18561
|
+
ScanResultConditionRequest.add_member(:max_days_since_informational_fix_available, Shapes::ShapeRef.new(shape: MaxDaysSinceFixAvailableValue, location_name: "MaxDaysSinceInformationalFixAvailable"))
|
|
18562
|
+
ScanResultConditionRequest.add_member(:max_days_since_low_fix_available, Shapes::ShapeRef.new(shape: MaxDaysSinceFixAvailableValue, location_name: "MaxDaysSinceLowFixAvailable"))
|
|
18563
|
+
ScanResultConditionRequest.add_member(:max_days_since_medium_fix_available, Shapes::ShapeRef.new(shape: MaxDaysSinceFixAvailableValue, location_name: "MaxDaysSinceMediumFixAvailable"))
|
|
18564
|
+
ScanResultConditionRequest.add_member(:max_days_since_high_fix_available, Shapes::ShapeRef.new(shape: MaxDaysSinceFixAvailableValue, location_name: "MaxDaysSinceHighFixAvailable"))
|
|
18565
|
+
ScanResultConditionRequest.add_member(:max_days_since_critical_fix_available, Shapes::ShapeRef.new(shape: MaxDaysSinceFixAvailableValue, location_name: "MaxDaysSinceCriticalFixAvailable"))
|
|
18566
|
+
ScanResultConditionRequest.struct_class = Types::ScanResultConditionRequest
|
|
18567
|
+
|
|
18568
|
+
ScanResults.add_member(:highest_finding_severity_label, Shapes::ShapeRef.new(shape: SeverityLabel, location_name: "highestFindingSeverityLabel"))
|
|
18569
|
+
ScanResults.add_member(:finding_scan_date, Shapes::ShapeRef.new(shape: MillisecondDateTime, location_name: "findingScanDate"))
|
|
18570
|
+
ScanResults.add_member(:informational_fix_available_since, Shapes::ShapeRef.new(shape: MillisecondDateTime, location_name: "informationalFixAvailableSince"))
|
|
18571
|
+
ScanResults.add_member(:low_fix_available_since, Shapes::ShapeRef.new(shape: MillisecondDateTime, location_name: "lowFixAvailableSince"))
|
|
18572
|
+
ScanResults.add_member(:medium_fix_available_since, Shapes::ShapeRef.new(shape: MillisecondDateTime, location_name: "mediumFixAvailableSince"))
|
|
18573
|
+
ScanResults.add_member(:high_fix_available_since, Shapes::ShapeRef.new(shape: MillisecondDateTime, location_name: "highFixAvailableSince"))
|
|
18574
|
+
ScanResults.add_member(:critical_fix_available_since, Shapes::ShapeRef.new(shape: MillisecondDateTime, location_name: "criticalFixAvailableSince"))
|
|
18575
|
+
ScanResults.struct_class = Types::ScanResults
|
|
18576
|
+
|
|
18511
18577
|
ScheduledInstance.add_member(:availability_zone, Shapes::ShapeRef.new(shape: String, location_name: "availabilityZone"))
|
|
18512
18578
|
ScheduledInstance.add_member(:create_date, Shapes::ShapeRef.new(shape: DateTime, location_name: "createDate"))
|
|
18513
18579
|
ScheduledInstance.add_member(:hourly_price, Shapes::ShapeRef.new(shape: String, location_name: "hourlyPrice"))
|
|
@@ -26533,6 +26599,20 @@ module Aws::EC2
|
|
|
26533
26599
|
o.output = Shapes::ShapeRef.new(shape: GetImageBlockPublicAccessStateResult)
|
|
26534
26600
|
end)
|
|
26535
26601
|
|
|
26602
|
+
api.add_operation(:get_image_findings, Seahorse::Model::Operation.new.tap do |o|
|
|
26603
|
+
o.name = "GetImageFindings"
|
|
26604
|
+
o.http_method = "POST"
|
|
26605
|
+
o.http_request_uri = "/"
|
|
26606
|
+
o.input = Shapes::ShapeRef.new(shape: GetImageFindingsRequest)
|
|
26607
|
+
o.output = Shapes::ShapeRef.new(shape: GetImageFindingsResult)
|
|
26608
|
+
o[:pager] = Aws::Pager.new(
|
|
26609
|
+
limit_key: "max_results",
|
|
26610
|
+
tokens: {
|
|
26611
|
+
"next_token" => "next_token"
|
|
26612
|
+
}
|
|
26613
|
+
)
|
|
26614
|
+
end)
|
|
26615
|
+
|
|
26536
26616
|
api.add_operation(:get_instance_metadata_defaults, Seahorse::Model::Operation.new.tap do |o|
|
|
26537
26617
|
o.name = "GetInstanceMetadataDefaults"
|
|
26538
26618
|
o.http_method = "POST"
|
data/lib/aws-sdk-ec2/image.rb
CHANGED
|
@@ -277,6 +277,17 @@ module Aws::EC2
|
|
|
277
277
|
data[:image_watermarks]
|
|
278
278
|
end
|
|
279
279
|
|
|
280
|
+
# The Amazon Inspector scan results for the AMI. This information is
|
|
281
|
+
# present only for AMIs that Amazon Inspector has scanned.
|
|
282
|
+
#
|
|
283
|
+
# When you share an AMI with other accounts, organizations, or
|
|
284
|
+
# organizational units (OUs), or make it public, its scan results are
|
|
285
|
+
# available to the accounts that can use the AMI.
|
|
286
|
+
# @return [Types::ScanResults]
|
|
287
|
+
def scan_results
|
|
288
|
+
data[:scan_results]
|
|
289
|
+
end
|
|
290
|
+
|
|
280
291
|
# The instance type specification for the AMI, which defines which
|
|
281
292
|
# instance types are compatible with this image.
|
|
282
293
|
# @return [Types::InstanceTypeSpecification]
|
data/lib/aws-sdk-ec2/resource.rb
CHANGED
|
@@ -2574,6 +2574,49 @@ module Aws::EC2
|
|
|
2574
2574
|
# * `root-device-type` - The type of the root device volume (`ebs` \|
|
|
2575
2575
|
# `instance-store`).
|
|
2576
2576
|
#
|
|
2577
|
+
# * `scan-result.critical-fix-available-since` - The earliest date and
|
|
2578
|
+
# time, in the ISO 8601 format in the UTC time zone
|
|
2579
|
+
# (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix
|
|
2580
|
+
# as available for a `critical` severity finding on the AMI.
|
|
2581
|
+
#
|
|
2582
|
+
# * `scan-result.finding-scan-date` - The date and time, in the ISO 8601
|
|
2583
|
+
# format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), of the most
|
|
2584
|
+
# recent Amazon Inspector scan of the AMI.
|
|
2585
|
+
#
|
|
2586
|
+
# * `scan-result.high-fix-available-since` - The earliest date and time,
|
|
2587
|
+
# in the ISO 8601 format in the UTC time zone
|
|
2588
|
+
# (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix
|
|
2589
|
+
# as available for a `high` severity finding on the AMI.
|
|
2590
|
+
#
|
|
2591
|
+
# * `scan-result.highest-finding-severity-label` - The highest severity
|
|
2592
|
+
# among the AMI's Amazon Inspector findings, whether or not a fix is
|
|
2593
|
+
# available. The valid values are the following Amazon Inspector
|
|
2594
|
+
# severity levels:
|
|
2595
|
+
#
|
|
2596
|
+
# * `informational` - CVSS score of 0.
|
|
2597
|
+
#
|
|
2598
|
+
# * `low` - CVSS score of 0.1 to 3.9.
|
|
2599
|
+
#
|
|
2600
|
+
# * `medium` - CVSS score of 4.0 to 6.9.
|
|
2601
|
+
#
|
|
2602
|
+
# * `high` - CVSS score of 7.0 to 8.9.
|
|
2603
|
+
#
|
|
2604
|
+
# * `critical` - CVSS score of 9.0 to 10.0.
|
|
2605
|
+
# * `scan-result.informational-fix-available-since` - The earliest date
|
|
2606
|
+
# and time, in the ISO 8601 format in the UTC time zone
|
|
2607
|
+
# (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix
|
|
2608
|
+
# as available for an `informational` severity finding on the AMI.
|
|
2609
|
+
#
|
|
2610
|
+
# * `scan-result.low-fix-available-since` - The earliest date and time,
|
|
2611
|
+
# in the ISO 8601 format in the UTC time zone
|
|
2612
|
+
# (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix
|
|
2613
|
+
# as available for a `low` severity finding on the AMI.
|
|
2614
|
+
#
|
|
2615
|
+
# * `scan-result.medium-fix-available-since` - The earliest date and
|
|
2616
|
+
# time, in the ISO 8601 format in the UTC time zone
|
|
2617
|
+
# (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix
|
|
2618
|
+
# as available for a `medium` severity finding on the AMI.
|
|
2619
|
+
#
|
|
2577
2620
|
# * `source-image-id` - The ID of the source AMI from which the AMI was
|
|
2578
2621
|
# created.
|
|
2579
2622
|
#
|
data/lib/aws-sdk-ec2/types.rb
CHANGED
|
@@ -27770,6 +27770,50 @@ module Aws::EC2
|
|
|
27770
27770
|
# * `root-device-type` - The type of the root device volume (`ebs` \|
|
|
27771
27771
|
# `instance-store`).
|
|
27772
27772
|
#
|
|
27773
|
+
# * `scan-result.critical-fix-available-since` - The earliest date and
|
|
27774
|
+
# time, in the ISO 8601 format in the UTC time zone
|
|
27775
|
+
# (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a
|
|
27776
|
+
# fix as available for a `critical` severity finding on the AMI.
|
|
27777
|
+
#
|
|
27778
|
+
# * `scan-result.finding-scan-date` - The date and time, in the ISO
|
|
27779
|
+
# 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), of
|
|
27780
|
+
# the most recent Amazon Inspector scan of the AMI.
|
|
27781
|
+
#
|
|
27782
|
+
# * `scan-result.high-fix-available-since` - The earliest date and
|
|
27783
|
+
# time, in the ISO 8601 format in the UTC time zone
|
|
27784
|
+
# (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a
|
|
27785
|
+
# fix as available for a `high` severity finding on the AMI.
|
|
27786
|
+
#
|
|
27787
|
+
# * `scan-result.highest-finding-severity-label` - The highest
|
|
27788
|
+
# severity among the AMI's Amazon Inspector findings, whether or
|
|
27789
|
+
# not a fix is available. The valid values are the following Amazon
|
|
27790
|
+
# Inspector severity levels:
|
|
27791
|
+
#
|
|
27792
|
+
# * `informational` - CVSS score of 0.
|
|
27793
|
+
#
|
|
27794
|
+
# * `low` - CVSS score of 0.1 to 3.9.
|
|
27795
|
+
#
|
|
27796
|
+
# * `medium` - CVSS score of 4.0 to 6.9.
|
|
27797
|
+
#
|
|
27798
|
+
# * `high` - CVSS score of 7.0 to 8.9.
|
|
27799
|
+
#
|
|
27800
|
+
# * `critical` - CVSS score of 9.0 to 10.0.
|
|
27801
|
+
# * `scan-result.informational-fix-available-since` - The earliest
|
|
27802
|
+
# date and time, in the ISO 8601 format in the UTC time zone
|
|
27803
|
+
# (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a
|
|
27804
|
+
# fix as available for an `informational` severity finding on the
|
|
27805
|
+
# AMI.
|
|
27806
|
+
#
|
|
27807
|
+
# * `scan-result.low-fix-available-since` - The earliest date and
|
|
27808
|
+
# time, in the ISO 8601 format in the UTC time zone
|
|
27809
|
+
# (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a
|
|
27810
|
+
# fix as available for a `low` severity finding on the AMI.
|
|
27811
|
+
#
|
|
27812
|
+
# * `scan-result.medium-fix-available-since` - The earliest date and
|
|
27813
|
+
# time, in the ISO 8601 format in the UTC time zone
|
|
27814
|
+
# (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a
|
|
27815
|
+
# fix as available for a `medium` severity finding on the AMI.
|
|
27816
|
+
#
|
|
27773
27817
|
# * `source-image-id` - The ID of the source AMI from which the AMI
|
|
27774
27818
|
# was created.
|
|
27775
27819
|
#
|
|
@@ -47633,6 +47677,62 @@ module Aws::EC2
|
|
|
47633
47677
|
include Aws::Structure
|
|
47634
47678
|
end
|
|
47635
47679
|
|
|
47680
|
+
# @!attribute [rw] image_id
|
|
47681
|
+
# The ID of the AMI.
|
|
47682
|
+
# @return [String]
|
|
47683
|
+
#
|
|
47684
|
+
# @!attribute [rw] max_results
|
|
47685
|
+
# The maximum number of items to return for this request. To get the
|
|
47686
|
+
# next page of items, make another request with the token returned in
|
|
47687
|
+
# the output. For more information, see [Pagination][1].
|
|
47688
|
+
#
|
|
47689
|
+
#
|
|
47690
|
+
#
|
|
47691
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
|
|
47692
|
+
# @return [Integer]
|
|
47693
|
+
#
|
|
47694
|
+
# @!attribute [rw] next_token
|
|
47695
|
+
# The token returned from a previous paginated request. Pagination
|
|
47696
|
+
# continues from the end of the items returned by the previous
|
|
47697
|
+
# request.
|
|
47698
|
+
# @return [String]
|
|
47699
|
+
#
|
|
47700
|
+
# @!attribute [rw] dry_run
|
|
47701
|
+
# Checks whether you have the required permissions for the action,
|
|
47702
|
+
# without actually making the request, and provides an error response.
|
|
47703
|
+
# If you have the required permissions, the error response is
|
|
47704
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
|
47705
|
+
# @return [Boolean]
|
|
47706
|
+
#
|
|
47707
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetImageFindingsRequest AWS API Documentation
|
|
47708
|
+
#
|
|
47709
|
+
class GetImageFindingsRequest < Struct.new(
|
|
47710
|
+
:image_id,
|
|
47711
|
+
:max_results,
|
|
47712
|
+
:next_token,
|
|
47713
|
+
:dry_run)
|
|
47714
|
+
SENSITIVE = []
|
|
47715
|
+
include Aws::Structure
|
|
47716
|
+
end
|
|
47717
|
+
|
|
47718
|
+
# @!attribute [rw] image_findings
|
|
47719
|
+
# The Amazon Inspector findings for the AMI.
|
|
47720
|
+
# @return [Array<Types::ImageFinding>]
|
|
47721
|
+
#
|
|
47722
|
+
# @!attribute [rw] next_token
|
|
47723
|
+
# The token to include in another request to get the next page of
|
|
47724
|
+
# items. This value is `null` when there are no more items to return.
|
|
47725
|
+
# @return [String]
|
|
47726
|
+
#
|
|
47727
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetImageFindingsResult AWS API Documentation
|
|
47728
|
+
#
|
|
47729
|
+
class GetImageFindingsResult < Struct.new(
|
|
47730
|
+
:image_findings,
|
|
47731
|
+
:next_token)
|
|
47732
|
+
SENSITIVE = []
|
|
47733
|
+
include Aws::Structure
|
|
47734
|
+
end
|
|
47735
|
+
|
|
47636
47736
|
# @!attribute [rw] dry_run
|
|
47637
47737
|
# Checks whether you have the required permissions for the operation,
|
|
47638
47738
|
# without actually making the request, and provides an error response.
|
|
@@ -51887,6 +51987,15 @@ module Aws::EC2
|
|
|
51887
51987
|
# The watermarks attached to the AMI.
|
|
51888
51988
|
# @return [Array<Types::ImageWatermark>]
|
|
51889
51989
|
#
|
|
51990
|
+
# @!attribute [rw] scan_results
|
|
51991
|
+
# The Amazon Inspector scan results for the AMI. This information is
|
|
51992
|
+
# present only for AMIs that Amazon Inspector has scanned.
|
|
51993
|
+
#
|
|
51994
|
+
# When you share an AMI with other accounts, organizations, or
|
|
51995
|
+
# organizational units (OUs), or make it public, its scan results are
|
|
51996
|
+
# available to the accounts that can use the AMI.
|
|
51997
|
+
# @return [Types::ScanResults]
|
|
51998
|
+
#
|
|
51890
51999
|
# @!attribute [rw] instance_type_specification
|
|
51891
52000
|
# The instance type specification for the AMI, which defines which
|
|
51892
52001
|
# instance types are compatible with this image.
|
|
@@ -51976,6 +52085,7 @@ module Aws::EC2
|
|
|
51976
52085
|
:free_tier_eligible,
|
|
51977
52086
|
:public_ssm_parameter_name,
|
|
51978
52087
|
:image_watermarks,
|
|
52088
|
+
:scan_results,
|
|
51979
52089
|
:instance_type_specification,
|
|
51980
52090
|
:image_id,
|
|
51981
52091
|
:image_location,
|
|
@@ -52222,6 +52332,13 @@ module Aws::EC2
|
|
|
52222
52332
|
# Maximum: 50 values
|
|
52223
52333
|
# @return [Array<Types::ImageWatermarkFilterResponse>]
|
|
52224
52334
|
#
|
|
52335
|
+
# @!attribute [rw] scan_result_condition
|
|
52336
|
+
# The Amazon Inspector scan-result criteria that an AMI must meet to
|
|
52337
|
+
# be allowed. The criteria can limit the highest finding severity, the
|
|
52338
|
+
# number of days since Amazon Inspector last scanned the AMI, and the
|
|
52339
|
+
# number of days since Amazon Inspector reported a fix as available.
|
|
52340
|
+
# @return [Types::ScanResultCondition]
|
|
52341
|
+
#
|
|
52225
52342
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImageCriterion AWS API Documentation
|
|
52226
52343
|
#
|
|
52227
52344
|
class ImageCriterion < Struct.new(
|
|
@@ -52230,7 +52347,8 @@ module Aws::EC2
|
|
|
52230
52347
|
:image_names,
|
|
52231
52348
|
:deprecation_time_condition,
|
|
52232
52349
|
:creation_date_condition,
|
|
52233
|
-
:image_watermarks
|
|
52350
|
+
:image_watermarks,
|
|
52351
|
+
:scan_result_condition)
|
|
52234
52352
|
SENSITIVE = []
|
|
52235
52353
|
include Aws::Structure
|
|
52236
52354
|
end
|
|
@@ -52332,6 +52450,13 @@ module Aws::EC2
|
|
|
52332
52450
|
# Maximum: 50 values
|
|
52333
52451
|
# @return [Array<Types::ImageWatermarkFilterRequest>]
|
|
52334
52452
|
#
|
|
52453
|
+
# @!attribute [rw] scan_result_condition
|
|
52454
|
+
# The Amazon Inspector scan-result criteria that an AMI must meet to
|
|
52455
|
+
# be allowed. The criteria can limit the highest finding severity, the
|
|
52456
|
+
# number of days since Amazon Inspector last scanned the AMI, and the
|
|
52457
|
+
# number of days since Amazon Inspector reported a fix as available.
|
|
52458
|
+
# @return [Types::ScanResultConditionRequest]
|
|
52459
|
+
#
|
|
52335
52460
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImageCriterionRequest AWS API Documentation
|
|
52336
52461
|
#
|
|
52337
52462
|
class ImageCriterionRequest < Struct.new(
|
|
@@ -52340,7 +52465,8 @@ module Aws::EC2
|
|
|
52340
52465
|
:image_names,
|
|
52341
52466
|
:deprecation_time_condition,
|
|
52342
52467
|
:creation_date_condition,
|
|
52343
|
-
:image_watermarks
|
|
52468
|
+
:image_watermarks,
|
|
52469
|
+
:scan_result_condition)
|
|
52344
52470
|
SENSITIVE = []
|
|
52345
52471
|
include Aws::Structure
|
|
52346
52472
|
end
|
|
@@ -52387,6 +52513,83 @@ module Aws::EC2
|
|
|
52387
52513
|
include Aws::Structure
|
|
52388
52514
|
end
|
|
52389
52515
|
|
|
52516
|
+
# Describes an Amazon Inspector vulnerability finding for an AMI.
|
|
52517
|
+
#
|
|
52518
|
+
# @!attribute [rw] fix_available
|
|
52519
|
+
# Specifies whether a fix is available for the finding. This value is
|
|
52520
|
+
# `true` when Amazon Inspector reports a full or partial fix for the
|
|
52521
|
+
# finding.
|
|
52522
|
+
# @return [Boolean]
|
|
52523
|
+
#
|
|
52524
|
+
# @!attribute [rw] score
|
|
52525
|
+
# The Amazon Inspector score for the finding.
|
|
52526
|
+
# @return [Float]
|
|
52527
|
+
#
|
|
52528
|
+
# @!attribute [rw] first_observed_at
|
|
52529
|
+
# The date and time, in the ISO 8601 format in the UTC time zone
|
|
52530
|
+
# (YYYY-MM-DDThh:mm:ss.sssZ), when Amazon Inspector first observed the
|
|
52531
|
+
# finding.
|
|
52532
|
+
# @return [Time]
|
|
52533
|
+
#
|
|
52534
|
+
# @!attribute [rw] updated_at
|
|
52535
|
+
# The date and time, in the ISO 8601 format in the UTC time zone
|
|
52536
|
+
# (YYYY-MM-DDThh:mm:ss.sssZ), when Amazon Inspector last updated the
|
|
52537
|
+
# finding.
|
|
52538
|
+
# @return [Time]
|
|
52539
|
+
#
|
|
52540
|
+
# @!attribute [rw] title
|
|
52541
|
+
# The title of the finding.
|
|
52542
|
+
# @return [String]
|
|
52543
|
+
#
|
|
52544
|
+
# @!attribute [rw] paths
|
|
52545
|
+
# The file paths in the AMI that are affected by the finding. Amazon
|
|
52546
|
+
# EC2 returns up to 10 file paths for each finding.
|
|
52547
|
+
# @return [Array<String>]
|
|
52548
|
+
#
|
|
52549
|
+
# @!attribute [rw] severity_label
|
|
52550
|
+
# The severity of the finding.
|
|
52551
|
+
#
|
|
52552
|
+
# The valid values are the following Amazon Inspector severity levels,
|
|
52553
|
+
# which correspond to CVSS score ranges:
|
|
52554
|
+
#
|
|
52555
|
+
# * `informational` - CVSS score of 0.
|
|
52556
|
+
#
|
|
52557
|
+
# * `low` - CVSS score of 0.1 to 3.9.
|
|
52558
|
+
#
|
|
52559
|
+
# * `medium` - CVSS score of 4.0 to 6.9.
|
|
52560
|
+
#
|
|
52561
|
+
# * `high` - CVSS score of 7.0 to 8.9.
|
|
52562
|
+
#
|
|
52563
|
+
# * `critical` - CVSS score of 9.0 to 10.0.
|
|
52564
|
+
#
|
|
52565
|
+
# For more information, see [Software package vulnerability
|
|
52566
|
+
# severity][1] in the *Amazon Inspector User Guide*.
|
|
52567
|
+
#
|
|
52568
|
+
#
|
|
52569
|
+
#
|
|
52570
|
+
# [1]: https://docs.aws.amazon.com/inspector/latest/user/findings-understanding-severity.html#findings-understanding-package-score
|
|
52571
|
+
# @return [String]
|
|
52572
|
+
#
|
|
52573
|
+
# @!attribute [rw] snapshot_id
|
|
52574
|
+
# The ID of the Amazon EBS snapshot of the AMI in which the finding
|
|
52575
|
+
# was detected.
|
|
52576
|
+
# @return [String]
|
|
52577
|
+
#
|
|
52578
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImageFinding AWS API Documentation
|
|
52579
|
+
#
|
|
52580
|
+
class ImageFinding < Struct.new(
|
|
52581
|
+
:fix_available,
|
|
52582
|
+
:score,
|
|
52583
|
+
:first_observed_at,
|
|
52584
|
+
:updated_at,
|
|
52585
|
+
:title,
|
|
52586
|
+
:paths,
|
|
52587
|
+
:severity_label,
|
|
52588
|
+
:snapshot_id)
|
|
52589
|
+
SENSITIVE = []
|
|
52590
|
+
include Aws::Structure
|
|
52591
|
+
end
|
|
52592
|
+
|
|
52390
52593
|
# Information about the AMI.
|
|
52391
52594
|
#
|
|
52392
52595
|
# @!attribute [rw] image_id
|
|
@@ -81560,6 +81763,375 @@ module Aws::EC2
|
|
|
81560
81763
|
include Aws::Structure
|
|
81561
81764
|
end
|
|
81562
81765
|
|
|
81766
|
+
# The Amazon Inspector scan-result criteria that an AMI must meet to be
|
|
81767
|
+
# allowed. The criteria can limit the highest finding severity. They can
|
|
81768
|
+
# also limit, for each severity, the days since Amazon Inspector
|
|
81769
|
+
# reported a fix as available.
|
|
81770
|
+
#
|
|
81771
|
+
# The severity limit applies to all findings, whether or not a fix is
|
|
81772
|
+
# available. The day limits for each severity apply only to findings
|
|
81773
|
+
# that have a fix available. A scanned AMI that has no fix-available
|
|
81774
|
+
# finding of a given severity meets that severity's day limit. AMIs
|
|
81775
|
+
# that Amazon Inspector has not scanned are not allowed when you specify
|
|
81776
|
+
# this condition.
|
|
81777
|
+
#
|
|
81778
|
+
# @!attribute [rw] max_days_since_last_finding_scan
|
|
81779
|
+
# The maximum number of days that have elapsed since Amazon Inspector
|
|
81780
|
+
# last scanned the AMI. For example, a value of `7` allows AMIs that
|
|
81781
|
+
# were scanned within the last 7 days. AMIs that Amazon Inspector has
|
|
81782
|
+
# not scanned are not allowed.
|
|
81783
|
+
#
|
|
81784
|
+
# Constraints: Minimum value of 0. Maximum value of 2147483647.
|
|
81785
|
+
# @return [Integer]
|
|
81786
|
+
#
|
|
81787
|
+
# @!attribute [rw] maximum_severity_label
|
|
81788
|
+
# The maximum severity that an AMI's Amazon Inspector findings can
|
|
81789
|
+
# have for the AMI to be allowed. Findings count whether or not a fix
|
|
81790
|
+
# is available. For example, a value of `medium` allows AMIs whose
|
|
81791
|
+
# highest severity is `informational`, `low`, or `medium`.
|
|
81792
|
+
#
|
|
81793
|
+
# The valid values are the following Amazon Inspector severity levels,
|
|
81794
|
+
# which correspond to CVSS score ranges:
|
|
81795
|
+
#
|
|
81796
|
+
# * `informational` - CVSS score of 0.
|
|
81797
|
+
#
|
|
81798
|
+
# * `low` - CVSS score of 0.1 to 3.9.
|
|
81799
|
+
#
|
|
81800
|
+
# * `medium` - CVSS score of 4.0 to 6.9.
|
|
81801
|
+
#
|
|
81802
|
+
# * `high` - CVSS score of 7.0 to 8.9.
|
|
81803
|
+
#
|
|
81804
|
+
# * `critical` - CVSS score of 9.0 to 10.0.
|
|
81805
|
+
#
|
|
81806
|
+
# For more information, see [Software package vulnerability
|
|
81807
|
+
# severity][1] in the *Amazon Inspector User Guide*.
|
|
81808
|
+
#
|
|
81809
|
+
# A scanned AMI that has no findings meets this limit.
|
|
81810
|
+
#
|
|
81811
|
+
# AMIs that Amazon Inspector has not scanned are not allowed when you
|
|
81812
|
+
# specify this condition.
|
|
81813
|
+
#
|
|
81814
|
+
#
|
|
81815
|
+
#
|
|
81816
|
+
# [1]: https://docs.aws.amazon.com/inspector/latest/user/findings-understanding-severity.html#findings-understanding-package-score
|
|
81817
|
+
# @return [String]
|
|
81818
|
+
#
|
|
81819
|
+
# @!attribute [rw] max_days_since_informational_fix_available
|
|
81820
|
+
# The maximum number of days since Amazon Inspector reported a fix as
|
|
81821
|
+
# available for an `informational` severity finding on the AMI. For
|
|
81822
|
+
# example, a value of `7` does not allow an AMI if Amazon Inspector
|
|
81823
|
+
# reported such a fix more than 7 days ago.
|
|
81824
|
+
#
|
|
81825
|
+
# A scanned AMI that has no `informational` severity finding with a
|
|
81826
|
+
# fix available meets this limit. AMIs that Amazon Inspector has not
|
|
81827
|
+
# scanned are not allowed.
|
|
81828
|
+
#
|
|
81829
|
+
# Constraints: Minimum value of 0. Maximum value of 2147483647.
|
|
81830
|
+
# @return [Integer]
|
|
81831
|
+
#
|
|
81832
|
+
# @!attribute [rw] max_days_since_low_fix_available
|
|
81833
|
+
# The maximum number of days since Amazon Inspector reported a fix as
|
|
81834
|
+
# available for a `low` severity finding on the AMI. For example, a
|
|
81835
|
+
# value of `7` does not allow an AMI if Amazon Inspector reported such
|
|
81836
|
+
# a fix more than 7 days ago.
|
|
81837
|
+
#
|
|
81838
|
+
# A scanned AMI that has no `low` severity finding with a fix
|
|
81839
|
+
# available meets this limit. AMIs that Amazon Inspector has not
|
|
81840
|
+
# scanned are not allowed.
|
|
81841
|
+
#
|
|
81842
|
+
# Constraints: Minimum value of 0. Maximum value of 2147483647.
|
|
81843
|
+
# @return [Integer]
|
|
81844
|
+
#
|
|
81845
|
+
# @!attribute [rw] max_days_since_medium_fix_available
|
|
81846
|
+
# The maximum number of days since Amazon Inspector reported a fix as
|
|
81847
|
+
# available for a `medium` severity finding on the AMI. For example, a
|
|
81848
|
+
# value of `7` does not allow an AMI if Amazon Inspector reported such
|
|
81849
|
+
# a fix more than 7 days ago.
|
|
81850
|
+
#
|
|
81851
|
+
# A scanned AMI that has no `medium` severity finding with a fix
|
|
81852
|
+
# available meets this limit. AMIs that Amazon Inspector has not
|
|
81853
|
+
# scanned are not allowed.
|
|
81854
|
+
#
|
|
81855
|
+
# Constraints: Minimum value of 0. Maximum value of 2147483647.
|
|
81856
|
+
# @return [Integer]
|
|
81857
|
+
#
|
|
81858
|
+
# @!attribute [rw] max_days_since_high_fix_available
|
|
81859
|
+
# The maximum number of days since Amazon Inspector reported a fix as
|
|
81860
|
+
# available for a `high` severity finding on the AMI. For example, a
|
|
81861
|
+
# value of `7` does not allow an AMI if Amazon Inspector reported such
|
|
81862
|
+
# a fix more than 7 days ago.
|
|
81863
|
+
#
|
|
81864
|
+
# A scanned AMI that has no `high` severity finding with a fix
|
|
81865
|
+
# available meets this limit. AMIs that Amazon Inspector has not
|
|
81866
|
+
# scanned are not allowed.
|
|
81867
|
+
#
|
|
81868
|
+
# Constraints: Minimum value of 0. Maximum value of 2147483647.
|
|
81869
|
+
# @return [Integer]
|
|
81870
|
+
#
|
|
81871
|
+
# @!attribute [rw] max_days_since_critical_fix_available
|
|
81872
|
+
# The maximum number of days since Amazon Inspector reported a fix as
|
|
81873
|
+
# available for a `critical` severity finding on the AMI. For example,
|
|
81874
|
+
# a value of `7` does not allow an AMI if Amazon Inspector reported
|
|
81875
|
+
# such a fix more than 7 days ago.
|
|
81876
|
+
#
|
|
81877
|
+
# A scanned AMI that has no `critical` severity finding with a fix
|
|
81878
|
+
# available meets this limit. AMIs that Amazon Inspector has not
|
|
81879
|
+
# scanned are not allowed.
|
|
81880
|
+
#
|
|
81881
|
+
# Constraints: Minimum value of 0. Maximum value of 2147483647.
|
|
81882
|
+
# @return [Integer]
|
|
81883
|
+
#
|
|
81884
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScanResultCondition AWS API Documentation
|
|
81885
|
+
#
|
|
81886
|
+
class ScanResultCondition < Struct.new(
|
|
81887
|
+
:max_days_since_last_finding_scan,
|
|
81888
|
+
:maximum_severity_label,
|
|
81889
|
+
:max_days_since_informational_fix_available,
|
|
81890
|
+
:max_days_since_low_fix_available,
|
|
81891
|
+
:max_days_since_medium_fix_available,
|
|
81892
|
+
:max_days_since_high_fix_available,
|
|
81893
|
+
:max_days_since_critical_fix_available)
|
|
81894
|
+
SENSITIVE = []
|
|
81895
|
+
include Aws::Structure
|
|
81896
|
+
end
|
|
81897
|
+
|
|
81898
|
+
# The Amazon Inspector scan-result criteria that an AMI must meet to be
|
|
81899
|
+
# allowed. The criteria can limit the highest finding severity. They can
|
|
81900
|
+
# also limit, for each severity, the days since Amazon Inspector
|
|
81901
|
+
# reported a fix as available.
|
|
81902
|
+
#
|
|
81903
|
+
# The severity limit applies to all findings, whether or not a fix is
|
|
81904
|
+
# available. The day limits for each severity apply only to findings
|
|
81905
|
+
# that have a fix available. A scanned AMI that has no fix-available
|
|
81906
|
+
# finding of a given severity meets that severity's day limit. AMIs
|
|
81907
|
+
# that Amazon Inspector has not scanned are not allowed when you specify
|
|
81908
|
+
# this condition.
|
|
81909
|
+
#
|
|
81910
|
+
# @!attribute [rw] max_days_since_last_finding_scan
|
|
81911
|
+
# The maximum number of days that have elapsed since Amazon Inspector
|
|
81912
|
+
# last scanned the AMI. For example, a value of `7` allows AMIs that
|
|
81913
|
+
# were scanned within the last 7 days. AMIs that Amazon Inspector has
|
|
81914
|
+
# not scanned are not allowed.
|
|
81915
|
+
#
|
|
81916
|
+
# Constraints: Minimum value of 0. Maximum value of 2147483647.
|
|
81917
|
+
# @return [Integer]
|
|
81918
|
+
#
|
|
81919
|
+
# @!attribute [rw] maximum_severity_label
|
|
81920
|
+
# The maximum severity that an AMI's Amazon Inspector findings can
|
|
81921
|
+
# have for the AMI to be allowed. Findings count whether or not a fix
|
|
81922
|
+
# is available. For example, a value of `medium` allows AMIs whose
|
|
81923
|
+
# highest severity is `informational`, `low`, or `medium`.
|
|
81924
|
+
#
|
|
81925
|
+
# The valid values are the following Amazon Inspector severity levels,
|
|
81926
|
+
# which correspond to CVSS score ranges:
|
|
81927
|
+
#
|
|
81928
|
+
# * `informational` - CVSS score of 0.
|
|
81929
|
+
#
|
|
81930
|
+
# * `low` - CVSS score of 0.1 to 3.9.
|
|
81931
|
+
#
|
|
81932
|
+
# * `medium` - CVSS score of 4.0 to 6.9.
|
|
81933
|
+
#
|
|
81934
|
+
# * `high` - CVSS score of 7.0 to 8.9.
|
|
81935
|
+
#
|
|
81936
|
+
# * `critical` - CVSS score of 9.0 to 10.0.
|
|
81937
|
+
#
|
|
81938
|
+
# For more information, see [Software package vulnerability
|
|
81939
|
+
# severity][1] in the *Amazon Inspector User Guide*.
|
|
81940
|
+
#
|
|
81941
|
+
# A scanned AMI that has no findings meets this limit.
|
|
81942
|
+
#
|
|
81943
|
+
# AMIs that Amazon Inspector has not scanned are not allowed when you
|
|
81944
|
+
# specify this condition.
|
|
81945
|
+
#
|
|
81946
|
+
#
|
|
81947
|
+
#
|
|
81948
|
+
# [1]: https://docs.aws.amazon.com/inspector/latest/user/findings-understanding-severity.html#findings-understanding-package-score
|
|
81949
|
+
# @return [String]
|
|
81950
|
+
#
|
|
81951
|
+
# @!attribute [rw] max_days_since_informational_fix_available
|
|
81952
|
+
# The maximum number of days since Amazon Inspector reported a fix as
|
|
81953
|
+
# available for an `informational` severity finding on the AMI. For
|
|
81954
|
+
# example, a value of `7` does not allow an AMI if Amazon Inspector
|
|
81955
|
+
# reported such a fix more than 7 days ago.
|
|
81956
|
+
#
|
|
81957
|
+
# A scanned AMI that has no `informational` severity finding with a
|
|
81958
|
+
# fix available meets this limit. AMIs that Amazon Inspector has not
|
|
81959
|
+
# scanned are not allowed.
|
|
81960
|
+
#
|
|
81961
|
+
# Constraints: Minimum value of 0. Maximum value of 2147483647.
|
|
81962
|
+
# @return [Integer]
|
|
81963
|
+
#
|
|
81964
|
+
# @!attribute [rw] max_days_since_low_fix_available
|
|
81965
|
+
# The maximum number of days since Amazon Inspector reported a fix as
|
|
81966
|
+
# available for a `low` severity finding on the AMI. For example, a
|
|
81967
|
+
# value of `7` does not allow an AMI if Amazon Inspector reported such
|
|
81968
|
+
# a fix more than 7 days ago.
|
|
81969
|
+
#
|
|
81970
|
+
# A scanned AMI that has no `low` severity finding with a fix
|
|
81971
|
+
# available meets this limit. AMIs that Amazon Inspector has not
|
|
81972
|
+
# scanned are not allowed.
|
|
81973
|
+
#
|
|
81974
|
+
# Constraints: Minimum value of 0. Maximum value of 2147483647.
|
|
81975
|
+
# @return [Integer]
|
|
81976
|
+
#
|
|
81977
|
+
# @!attribute [rw] max_days_since_medium_fix_available
|
|
81978
|
+
# The maximum number of days since Amazon Inspector reported a fix as
|
|
81979
|
+
# available for a `medium` severity finding on the AMI. For example, a
|
|
81980
|
+
# value of `7` does not allow an AMI if Amazon Inspector reported such
|
|
81981
|
+
# a fix more than 7 days ago.
|
|
81982
|
+
#
|
|
81983
|
+
# A scanned AMI that has no `medium` severity finding with a fix
|
|
81984
|
+
# available meets this limit. AMIs that Amazon Inspector has not
|
|
81985
|
+
# scanned are not allowed.
|
|
81986
|
+
#
|
|
81987
|
+
# Constraints: Minimum value of 0. Maximum value of 2147483647.
|
|
81988
|
+
# @return [Integer]
|
|
81989
|
+
#
|
|
81990
|
+
# @!attribute [rw] max_days_since_high_fix_available
|
|
81991
|
+
# The maximum number of days since Amazon Inspector reported a fix as
|
|
81992
|
+
# available for a `high` severity finding on the AMI. For example, a
|
|
81993
|
+
# value of `7` does not allow an AMI if Amazon Inspector reported such
|
|
81994
|
+
# a fix more than 7 days ago.
|
|
81995
|
+
#
|
|
81996
|
+
# A scanned AMI that has no `high` severity finding with a fix
|
|
81997
|
+
# available meets this limit. AMIs that Amazon Inspector has not
|
|
81998
|
+
# scanned are not allowed.
|
|
81999
|
+
#
|
|
82000
|
+
# Constraints: Minimum value of 0. Maximum value of 2147483647.
|
|
82001
|
+
# @return [Integer]
|
|
82002
|
+
#
|
|
82003
|
+
# @!attribute [rw] max_days_since_critical_fix_available
|
|
82004
|
+
# The maximum number of days since Amazon Inspector reported a fix as
|
|
82005
|
+
# available for a `critical` severity finding on the AMI. For example,
|
|
82006
|
+
# a value of `7` does not allow an AMI if Amazon Inspector reported
|
|
82007
|
+
# such a fix more than 7 days ago.
|
|
82008
|
+
#
|
|
82009
|
+
# A scanned AMI that has no `critical` severity finding with a fix
|
|
82010
|
+
# available meets this limit. AMIs that Amazon Inspector has not
|
|
82011
|
+
# scanned are not allowed.
|
|
82012
|
+
#
|
|
82013
|
+
# Constraints: Minimum value of 0. Maximum value of 2147483647.
|
|
82014
|
+
# @return [Integer]
|
|
82015
|
+
#
|
|
82016
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScanResultConditionRequest AWS API Documentation
|
|
82017
|
+
#
|
|
82018
|
+
class ScanResultConditionRequest < Struct.new(
|
|
82019
|
+
:max_days_since_last_finding_scan,
|
|
82020
|
+
:maximum_severity_label,
|
|
82021
|
+
:max_days_since_informational_fix_available,
|
|
82022
|
+
:max_days_since_low_fix_available,
|
|
82023
|
+
:max_days_since_medium_fix_available,
|
|
82024
|
+
:max_days_since_high_fix_available,
|
|
82025
|
+
:max_days_since_critical_fix_available)
|
|
82026
|
+
SENSITIVE = []
|
|
82027
|
+
include Aws::Structure
|
|
82028
|
+
end
|
|
82029
|
+
|
|
82030
|
+
# The Amazon Inspector scan results for an AMI. This information is
|
|
82031
|
+
# present only for AMIs that Amazon Inspector has scanned.
|
|
82032
|
+
#
|
|
82033
|
+
# When you share an AMI with other accounts, organizations, or
|
|
82034
|
+
# organizational units (OUs), or make it public, its scan results are
|
|
82035
|
+
# available to the accounts that can use the AMI.
|
|
82036
|
+
#
|
|
82037
|
+
# The fix-available dates are specific to the AMI. Each date reflects
|
|
82038
|
+
# when a fix became available for a finding on that AMI, not when the
|
|
82039
|
+
# vendor released the fix. As a result, a date can be later than the
|
|
82040
|
+
# vendor's release date, and AMIs with the same vulnerability can have
|
|
82041
|
+
# different dates.
|
|
82042
|
+
#
|
|
82043
|
+
# @!attribute [rw] highest_finding_severity_label
|
|
82044
|
+
# The highest severity among the AMI's Amazon Inspector findings,
|
|
82045
|
+
# whether or not a fix is available.
|
|
82046
|
+
#
|
|
82047
|
+
# The valid values are the following Amazon Inspector severity levels,
|
|
82048
|
+
# which correspond to CVSS score ranges:
|
|
82049
|
+
#
|
|
82050
|
+
# * `informational` - CVSS score of 0.
|
|
82051
|
+
#
|
|
82052
|
+
# * `low` - CVSS score of 0.1 to 3.9.
|
|
82053
|
+
#
|
|
82054
|
+
# * `medium` - CVSS score of 4.0 to 6.9.
|
|
82055
|
+
#
|
|
82056
|
+
# * `high` - CVSS score of 7.0 to 8.9.
|
|
82057
|
+
#
|
|
82058
|
+
# * `critical` - CVSS score of 9.0 to 10.0.
|
|
82059
|
+
#
|
|
82060
|
+
# For more information, see [Software package vulnerability
|
|
82061
|
+
# severity][1] in the *Amazon Inspector User Guide*.
|
|
82062
|
+
#
|
|
82063
|
+
# This value is present only if the AMI has at least one finding.
|
|
82064
|
+
#
|
|
82065
|
+
#
|
|
82066
|
+
#
|
|
82067
|
+
# [1]: https://docs.aws.amazon.com/inspector/latest/user/findings-understanding-severity.html#findings-understanding-package-score
|
|
82068
|
+
# @return [String]
|
|
82069
|
+
#
|
|
82070
|
+
# @!attribute [rw] finding_scan_date
|
|
82071
|
+
# The date and time, in the ISO 8601 format in the UTC time zone
|
|
82072
|
+
# (YYYY-MM-DDThh:mm:ss.sssZ), of the most recent Amazon Inspector scan
|
|
82073
|
+
# of the AMI.
|
|
82074
|
+
# @return [Time]
|
|
82075
|
+
#
|
|
82076
|
+
# @!attribute [rw] informational_fix_available_since
|
|
82077
|
+
# The earliest date and time, in the ISO 8601 format in the UTC time
|
|
82078
|
+
# zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported
|
|
82079
|
+
# a fix as available for an `informational` severity finding on the
|
|
82080
|
+
# AMI. This value is present only if the AMI has at least one
|
|
82081
|
+
# `informational` severity finding with a fix available. Amazon
|
|
82082
|
+
# Inspector recomputes this value on each scan.
|
|
82083
|
+
# @return [Time]
|
|
82084
|
+
#
|
|
82085
|
+
# @!attribute [rw] low_fix_available_since
|
|
82086
|
+
# The earliest date and time, in the ISO 8601 format in the UTC time
|
|
82087
|
+
# zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported
|
|
82088
|
+
# a fix as available for a `low` severity finding on the AMI. This
|
|
82089
|
+
# value is present only if the AMI has at least one `low` severity
|
|
82090
|
+
# finding with a fix available. Amazon Inspector recomputes this value
|
|
82091
|
+
# on each scan.
|
|
82092
|
+
# @return [Time]
|
|
82093
|
+
#
|
|
82094
|
+
# @!attribute [rw] medium_fix_available_since
|
|
82095
|
+
# The earliest date and time, in the ISO 8601 format in the UTC time
|
|
82096
|
+
# zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported
|
|
82097
|
+
# a fix as available for a `medium` severity finding on the AMI. This
|
|
82098
|
+
# value is present only if the AMI has at least one `medium` severity
|
|
82099
|
+
# finding with a fix available. Amazon Inspector recomputes this value
|
|
82100
|
+
# on each scan.
|
|
82101
|
+
# @return [Time]
|
|
82102
|
+
#
|
|
82103
|
+
# @!attribute [rw] high_fix_available_since
|
|
82104
|
+
# The earliest date and time, in the ISO 8601 format in the UTC time
|
|
82105
|
+
# zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported
|
|
82106
|
+
# a fix as available for a `high` severity finding on the AMI. This
|
|
82107
|
+
# value is present only if the AMI has at least one `high` severity
|
|
82108
|
+
# finding with a fix available. Amazon Inspector recomputes this value
|
|
82109
|
+
# on each scan.
|
|
82110
|
+
# @return [Time]
|
|
82111
|
+
#
|
|
82112
|
+
# @!attribute [rw] critical_fix_available_since
|
|
82113
|
+
# The earliest date and time, in the ISO 8601 format in the UTC time
|
|
82114
|
+
# zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported
|
|
82115
|
+
# a fix as available for a `critical` severity finding on the AMI.
|
|
82116
|
+
# This value is present only if the AMI has at least one `critical`
|
|
82117
|
+
# severity finding with a fix available. Amazon Inspector recomputes
|
|
82118
|
+
# this value on each scan.
|
|
82119
|
+
# @return [Time]
|
|
82120
|
+
#
|
|
82121
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScanResults AWS API Documentation
|
|
82122
|
+
#
|
|
82123
|
+
class ScanResults < Struct.new(
|
|
82124
|
+
:highest_finding_severity_label,
|
|
82125
|
+
:finding_scan_date,
|
|
82126
|
+
:informational_fix_available_since,
|
|
82127
|
+
:low_fix_available_since,
|
|
82128
|
+
:medium_fix_available_since,
|
|
82129
|
+
:high_fix_available_since,
|
|
82130
|
+
:critical_fix_available_since)
|
|
82131
|
+
SENSITIVE = []
|
|
82132
|
+
include Aws::Structure
|
|
82133
|
+
end
|
|
82134
|
+
|
|
81563
82135
|
# Describes a Scheduled Instance.
|
|
81564
82136
|
#
|
|
81565
82137
|
# @!attribute [rw] availability_zone
|
data/lib/aws-sdk-ec2.rb
CHANGED
data/sig/client.rbs
CHANGED
|
@@ -10538,6 +10538,20 @@ module Aws
|
|
|
10538
10538
|
) -> _GetImageBlockPublicAccessStateResponseSuccess
|
|
10539
10539
|
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetImageBlockPublicAccessStateResponseSuccess
|
|
10540
10540
|
|
|
10541
|
+
interface _GetImageFindingsResponseSuccess
|
|
10542
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetImageFindingsResult]
|
|
10543
|
+
def image_findings: () -> ::Array[Types::ImageFinding]
|
|
10544
|
+
def next_token: () -> ::String
|
|
10545
|
+
end
|
|
10546
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Client.html#get_image_findings-instance_method
|
|
10547
|
+
def get_image_findings: (
|
|
10548
|
+
image_id: ::String,
|
|
10549
|
+
?max_results: ::Integer,
|
|
10550
|
+
?next_token: ::String,
|
|
10551
|
+
?dry_run: bool
|
|
10552
|
+
) -> _GetImageFindingsResponseSuccess
|
|
10553
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetImageFindingsResponseSuccess
|
|
10554
|
+
|
|
10541
10555
|
interface _GetInstanceMetadataDefaultsResponseSuccess
|
|
10542
10556
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetInstanceMetadataDefaultsResult]
|
|
10543
10557
|
def account_level: () -> Types::InstanceMetadataDefaultsResponse
|
|
@@ -13926,7 +13940,16 @@ module Aws
|
|
|
13926
13940
|
maximum_days_since_source_image_created: ::Integer?,
|
|
13927
13941
|
maximum_days_since_watermark_created: ::Integer?
|
|
13928
13942
|
}
|
|
13929
|
-
]
|
|
13943
|
+
]?,
|
|
13944
|
+
scan_result_condition: {
|
|
13945
|
+
max_days_since_last_finding_scan: ::Integer?,
|
|
13946
|
+
maximum_severity_label: ("informational" | "low" | "medium" | "high" | "critical")?,
|
|
13947
|
+
max_days_since_informational_fix_available: ::Integer?,
|
|
13948
|
+
max_days_since_low_fix_available: ::Integer?,
|
|
13949
|
+
max_days_since_medium_fix_available: ::Integer?,
|
|
13950
|
+
max_days_since_high_fix_available: ::Integer?,
|
|
13951
|
+
max_days_since_critical_fix_available: ::Integer?
|
|
13952
|
+
}?
|
|
13930
13953
|
}
|
|
13931
13954
|
],
|
|
13932
13955
|
?dry_run: bool
|
data/sig/image.rbs
CHANGED
|
@@ -99,6 +99,9 @@ module Aws
|
|
|
99
99
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#image_watermarks-instance_method
|
|
100
100
|
def image_watermarks: () -> ::Array[Types::ImageWatermark]
|
|
101
101
|
|
|
102
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#scan_results-instance_method
|
|
103
|
+
def scan_results: () -> Types::ScanResults
|
|
104
|
+
|
|
102
105
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#instance_type_specification-instance_method
|
|
103
106
|
def instance_type_specification: () -> Types::InstanceTypeSpecification
|
|
104
107
|
|
data/sig/types.rbs
CHANGED
|
@@ -10411,6 +10411,20 @@ module Aws::EC2
|
|
|
10411
10411
|
SENSITIVE: []
|
|
10412
10412
|
end
|
|
10413
10413
|
|
|
10414
|
+
class GetImageFindingsRequest
|
|
10415
|
+
attr_accessor image_id: ::String
|
|
10416
|
+
attr_accessor max_results: ::Integer
|
|
10417
|
+
attr_accessor next_token: ::String
|
|
10418
|
+
attr_accessor dry_run: bool
|
|
10419
|
+
SENSITIVE: []
|
|
10420
|
+
end
|
|
10421
|
+
|
|
10422
|
+
class GetImageFindingsResult
|
|
10423
|
+
attr_accessor image_findings: ::Array[Types::ImageFinding]
|
|
10424
|
+
attr_accessor next_token: ::String
|
|
10425
|
+
SENSITIVE: []
|
|
10426
|
+
end
|
|
10427
|
+
|
|
10414
10428
|
class GetInstanceMetadataDefaultsRequest
|
|
10415
10429
|
attr_accessor dry_run: bool
|
|
10416
10430
|
SENSITIVE: []
|
|
@@ -11464,6 +11478,7 @@ module Aws::EC2
|
|
|
11464
11478
|
attr_accessor free_tier_eligible: bool
|
|
11465
11479
|
attr_accessor public_ssm_parameter_name: ::String
|
|
11466
11480
|
attr_accessor image_watermarks: ::Array[Types::ImageWatermark]
|
|
11481
|
+
attr_accessor scan_results: Types::ScanResults
|
|
11467
11482
|
attr_accessor instance_type_specification: Types::InstanceTypeSpecification
|
|
11468
11483
|
attr_accessor image_id: ::String
|
|
11469
11484
|
attr_accessor image_location: ::String
|
|
@@ -11514,6 +11529,7 @@ module Aws::EC2
|
|
|
11514
11529
|
attr_accessor deprecation_time_condition: Types::DeprecationTimeCondition
|
|
11515
11530
|
attr_accessor creation_date_condition: Types::CreationDateCondition
|
|
11516
11531
|
attr_accessor image_watermarks: ::Array[Types::ImageWatermarkFilterResponse]
|
|
11532
|
+
attr_accessor scan_result_condition: Types::ScanResultCondition
|
|
11517
11533
|
SENSITIVE: []
|
|
11518
11534
|
end
|
|
11519
11535
|
|
|
@@ -11524,6 +11540,7 @@ module Aws::EC2
|
|
|
11524
11540
|
attr_accessor deprecation_time_condition: Types::DeprecationTimeConditionRequest
|
|
11525
11541
|
attr_accessor creation_date_condition: Types::CreationDateConditionRequest
|
|
11526
11542
|
attr_accessor image_watermarks: ::Array[Types::ImageWatermarkFilterRequest]
|
|
11543
|
+
attr_accessor scan_result_condition: Types::ScanResultConditionRequest
|
|
11527
11544
|
SENSITIVE: []
|
|
11528
11545
|
end
|
|
11529
11546
|
|
|
@@ -11537,6 +11554,18 @@ module Aws::EC2
|
|
|
11537
11554
|
SENSITIVE: [:url]
|
|
11538
11555
|
end
|
|
11539
11556
|
|
|
11557
|
+
class ImageFinding
|
|
11558
|
+
attr_accessor fix_available: bool
|
|
11559
|
+
attr_accessor score: ::Float
|
|
11560
|
+
attr_accessor first_observed_at: ::Time
|
|
11561
|
+
attr_accessor updated_at: ::Time
|
|
11562
|
+
attr_accessor title: ::String
|
|
11563
|
+
attr_accessor paths: ::Array[::String]
|
|
11564
|
+
attr_accessor severity_label: ("informational" | "low" | "medium" | "high" | "critical")
|
|
11565
|
+
attr_accessor snapshot_id: ::String
|
|
11566
|
+
SENSITIVE: []
|
|
11567
|
+
end
|
|
11568
|
+
|
|
11540
11569
|
class ImageMetadata
|
|
11541
11570
|
attr_accessor image_id: ::String
|
|
11542
11571
|
attr_accessor name: ::String
|
|
@@ -17573,6 +17602,39 @@ module Aws::EC2
|
|
|
17573
17602
|
SENSITIVE: [:upload_policy, :upload_policy_signature]
|
|
17574
17603
|
end
|
|
17575
17604
|
|
|
17605
|
+
class ScanResultCondition
|
|
17606
|
+
attr_accessor max_days_since_last_finding_scan: ::Integer
|
|
17607
|
+
attr_accessor maximum_severity_label: ("informational" | "low" | "medium" | "high" | "critical")
|
|
17608
|
+
attr_accessor max_days_since_informational_fix_available: ::Integer
|
|
17609
|
+
attr_accessor max_days_since_low_fix_available: ::Integer
|
|
17610
|
+
attr_accessor max_days_since_medium_fix_available: ::Integer
|
|
17611
|
+
attr_accessor max_days_since_high_fix_available: ::Integer
|
|
17612
|
+
attr_accessor max_days_since_critical_fix_available: ::Integer
|
|
17613
|
+
SENSITIVE: []
|
|
17614
|
+
end
|
|
17615
|
+
|
|
17616
|
+
class ScanResultConditionRequest
|
|
17617
|
+
attr_accessor max_days_since_last_finding_scan: ::Integer
|
|
17618
|
+
attr_accessor maximum_severity_label: ("informational" | "low" | "medium" | "high" | "critical")
|
|
17619
|
+
attr_accessor max_days_since_informational_fix_available: ::Integer
|
|
17620
|
+
attr_accessor max_days_since_low_fix_available: ::Integer
|
|
17621
|
+
attr_accessor max_days_since_medium_fix_available: ::Integer
|
|
17622
|
+
attr_accessor max_days_since_high_fix_available: ::Integer
|
|
17623
|
+
attr_accessor max_days_since_critical_fix_available: ::Integer
|
|
17624
|
+
SENSITIVE: []
|
|
17625
|
+
end
|
|
17626
|
+
|
|
17627
|
+
class ScanResults
|
|
17628
|
+
attr_accessor highest_finding_severity_label: ("informational" | "low" | "medium" | "high" | "critical")
|
|
17629
|
+
attr_accessor finding_scan_date: ::Time
|
|
17630
|
+
attr_accessor informational_fix_available_since: ::Time
|
|
17631
|
+
attr_accessor low_fix_available_since: ::Time
|
|
17632
|
+
attr_accessor medium_fix_available_since: ::Time
|
|
17633
|
+
attr_accessor high_fix_available_since: ::Time
|
|
17634
|
+
attr_accessor critical_fix_available_since: ::Time
|
|
17635
|
+
SENSITIVE: []
|
|
17636
|
+
end
|
|
17637
|
+
|
|
17576
17638
|
class ScheduledInstance
|
|
17577
17639
|
attr_accessor availability_zone: ::String
|
|
17578
17640
|
attr_accessor create_date: ::Time
|