aws-sdk-ec2 1.660.0 → 1.662.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.
@@ -6513,6 +6513,35 @@ module Aws::EC2
6513
6513
  include Aws::Structure
6514
6514
  end
6515
6515
 
6516
+ # The supportability score for a single instance type and Availability
6517
+ # Zone combination.
6518
+ #
6519
+ # @!attribute [rw] instance_type
6520
+ # The instance type.
6521
+ # @return [String]
6522
+ #
6523
+ # @!attribute [rw] availability_zone_id
6524
+ # The ID of the Availability Zone.
6525
+ # @return [String]
6526
+ #
6527
+ # @!attribute [rw] score
6528
+ # How well the combination can support the requested capacity right
6529
+ # now. `high` means that the combination holds several times the
6530
+ # requested amount. `medium` means that it can cover the request with
6531
+ # little to spare. `low` means that it holds less than the requested
6532
+ # amount.
6533
+ # @return [String]
6534
+ #
6535
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CapacityManagerSupportabilityScore AWS API Documentation
6536
+ #
6537
+ class CapacityManagerSupportabilityScore < Struct.new(
6538
+ :instance_type,
6539
+ :availability_zone_id,
6540
+ :score)
6541
+ SENSITIVE = []
6542
+ include Aws::Structure
6543
+ end
6544
+
6516
6545
  # A key-value pair representing a tag associated with a capacity
6517
6546
  # resource in Capacity Manager.
6518
6547
  #
@@ -7186,6 +7215,18 @@ module Aws::EC2
7186
7215
  # capacity.
7187
7216
  # @return [Array<Types::FleetCapacityReservation>]
7188
7217
  #
7218
+ # @!attribute [rw] instance_requirements
7219
+ # Reserved for internal use.
7220
+ # @return [Types::InstanceRequirementsRequest]
7221
+ #
7222
+ # @!attribute [rw] availability_zone
7223
+ # Reserved for internal use.
7224
+ # @return [String]
7225
+ #
7226
+ # @!attribute [rw] availability_zone_id
7227
+ # Reserved for internal use.
7228
+ # @return [String]
7229
+ #
7189
7230
  # @!attribute [rw] tags
7190
7231
  # The tags assigned to the Capacity Reservation Fleet.
7191
7232
  # @return [Array<Types::Tag>]
@@ -7204,6 +7245,9 @@ module Aws::EC2
7204
7245
  :instance_match_criteria,
7205
7246
  :allocation_strategy,
7206
7247
  :instance_type_specifications,
7248
+ :instance_requirements,
7249
+ :availability_zone,
7250
+ :availability_zone_id,
7207
7251
  :tags)
7208
7252
  SENSITIVE = []
7209
7253
  include Aws::Structure
@@ -10337,6 +10381,18 @@ module Aws::EC2
10337
10381
  # capacity.
10338
10382
  # @return [Array<Types::ReservationFleetInstanceSpecification>]
10339
10383
  #
10384
+ # @!attribute [rw] instance_requirements
10385
+ # Reserved for internal use.
10386
+ # @return [Types::InstanceRequirementsRequest]
10387
+ #
10388
+ # @!attribute [rw] availability_zone
10389
+ # Reserved for internal use.
10390
+ # @return [String]
10391
+ #
10392
+ # @!attribute [rw] availability_zone_id
10393
+ # Reserved for internal use.
10394
+ # @return [String]
10395
+ #
10340
10396
  # @!attribute [rw] tenancy
10341
10397
  # Indicates the tenancy of the Capacity Reservation Fleet. All
10342
10398
  # Capacity Reservations in the Fleet inherit this tenancy. The
@@ -10407,6 +10463,9 @@ module Aws::EC2
10407
10463
  :allocation_strategy,
10408
10464
  :client_token,
10409
10465
  :instance_type_specifications,
10466
+ :instance_requirements,
10467
+ :availability_zone,
10468
+ :availability_zone_id,
10410
10469
  :tenancy,
10411
10470
  :total_target_capacity,
10412
10471
  :end_date,
@@ -27770,6 +27829,50 @@ module Aws::EC2
27770
27829
  # * `root-device-type` - The type of the root device volume (`ebs` \|
27771
27830
  # `instance-store`).
27772
27831
  #
27832
+ # * `scan-result.critical-fix-available-since` - The earliest date and
27833
+ # time, in the ISO 8601 format in the UTC time zone
27834
+ # (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a
27835
+ # fix as available for a `critical` severity finding on the AMI.
27836
+ #
27837
+ # * `scan-result.finding-scan-date` - The date and time, in the ISO
27838
+ # 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), of
27839
+ # the most recent Amazon Inspector scan of the AMI.
27840
+ #
27841
+ # * `scan-result.high-fix-available-since` - The earliest date and
27842
+ # time, in the ISO 8601 format in the UTC time zone
27843
+ # (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a
27844
+ # fix as available for a `high` severity finding on the AMI.
27845
+ #
27846
+ # * `scan-result.highest-finding-severity-label` - The highest
27847
+ # severity among the AMI's Amazon Inspector findings, whether or
27848
+ # not a fix is available. The valid values are the following Amazon
27849
+ # Inspector severity levels:
27850
+ #
27851
+ # * `informational` - CVSS score of 0.
27852
+ #
27853
+ # * `low` - CVSS score of 0.1 to 3.9.
27854
+ #
27855
+ # * `medium` - CVSS score of 4.0 to 6.9.
27856
+ #
27857
+ # * `high` - CVSS score of 7.0 to 8.9.
27858
+ #
27859
+ # * `critical` - CVSS score of 9.0 to 10.0.
27860
+ # * `scan-result.informational-fix-available-since` - The earliest
27861
+ # date and time, in the ISO 8601 format in the UTC time zone
27862
+ # (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a
27863
+ # fix as available for an `informational` severity finding on the
27864
+ # AMI.
27865
+ #
27866
+ # * `scan-result.low-fix-available-since` - The earliest date and
27867
+ # time, in the ISO 8601 format in the UTC time zone
27868
+ # (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a
27869
+ # fix as available for a `low` severity finding on the AMI.
27870
+ #
27871
+ # * `scan-result.medium-fix-available-since` - The earliest date and
27872
+ # time, in the ISO 8601 format in the UTC time zone
27873
+ # (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a
27874
+ # fix as available for a `medium` severity finding on the AMI.
27875
+ #
27773
27876
  # * `source-image-id` - The ID of the source AMI from which the AMI
27774
27877
  # was created.
27775
27878
  #
@@ -46816,6 +46919,84 @@ module Aws::EC2
46816
46919
  include Aws::Structure
46817
46920
  end
46818
46921
 
46922
+ # @!attribute [rw] market_type
46923
+ # The capacity market to score.
46924
+ # @return [String]
46925
+ #
46926
+ # @!attribute [rw] capacity_amount
46927
+ # The amount of capacity that you need, in the unit that you specify
46928
+ # for `CapacityUnit`. Each score is relative to this amount.
46929
+ # @return [Integer]
46930
+ #
46931
+ # @!attribute [rw] capacity_unit
46932
+ # The unit for `CapacityAmount`.
46933
+ # @return [String]
46934
+ #
46935
+ # @!attribute [rw] capacity_availability_zone_ids
46936
+ # The IDs of the Availability Zones to score, such as `use1-az1`. You
46937
+ # can specify Availability Zones in different Regions. You can specify
46938
+ # up to 10 Availability Zones.
46939
+ # @return [Array<String>]
46940
+ #
46941
+ # @!attribute [rw] instance_types
46942
+ # The instance types to score. You can specify up to 50 instance
46943
+ # types.
46944
+ #
46945
+ # Specify either `InstanceTypes` or
46946
+ # `InstanceRequirementsWithMetadata`, but not both.
46947
+ # @return [Array<String>]
46948
+ #
46949
+ # @!attribute [rw] instance_requirements_with_metadata
46950
+ # The attributes that the instance types must have, such as vCPU and
46951
+ # memory ranges. Capacity Manager resolves the attributes into
46952
+ # matching instance types and scores each one.
46953
+ #
46954
+ # Specify either `InstanceTypes` or
46955
+ # `InstanceRequirementsWithMetadata`, but not both.
46956
+ # @return [Types::InstanceRequirementsWithMetadataRequest]
46957
+ #
46958
+ # @!attribute [rw] dry_run
46959
+ # Checks whether you have the required permissions for the action,
46960
+ # without actually making the request, and provides an error response.
46961
+ # If you have the required permissions, the error response is
46962
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
46963
+ # @return [Boolean]
46964
+ #
46965
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetCapacityManagerSupportabilityScoresRequest AWS API Documentation
46966
+ #
46967
+ class GetCapacityManagerSupportabilityScoresRequest < Struct.new(
46968
+ :market_type,
46969
+ :capacity_amount,
46970
+ :capacity_unit,
46971
+ :capacity_availability_zone_ids,
46972
+ :instance_types,
46973
+ :instance_requirements_with_metadata,
46974
+ :dry_run)
46975
+ SENSITIVE = []
46976
+ include Aws::Structure
46977
+ end
46978
+
46979
+ # @!attribute [rw] aggregate_score
46980
+ # The score for all instance type and Availability Zone combinations
46981
+ # in the request together. A `high` aggregate score with lower
46982
+ # individual scores means that no single combination can support the
46983
+ # full request, but the combinations together can.
46984
+ # @return [String]
46985
+ #
46986
+ # @!attribute [rw] capacity_manager_supportability_scores
46987
+ # The score for each instance type and Availability Zone combination
46988
+ # in the request.
46989
+ # @return [Array<Types::CapacityManagerSupportabilityScore>]
46990
+ #
46991
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetCapacityManagerSupportabilityScoresResult AWS API Documentation
46992
+ #
46993
+ class GetCapacityManagerSupportabilityScoresResult < Struct.new(
46994
+ :aggregate_score,
46995
+ :capacity_manager_supportability_scores)
46996
+ SENSITIVE = []
46997
+ include Aws::Structure
46998
+ end
46999
+
46819
47000
  # @!attribute [rw] capacity_reservation_id
46820
47001
  # The ID of the Capacity Reservation.
46821
47002
  # @return [String]
@@ -47633,6 +47814,62 @@ module Aws::EC2
47633
47814
  include Aws::Structure
47634
47815
  end
47635
47816
 
47817
+ # @!attribute [rw] image_id
47818
+ # The ID of the AMI.
47819
+ # @return [String]
47820
+ #
47821
+ # @!attribute [rw] max_results
47822
+ # The maximum number of items to return for this request. To get the
47823
+ # next page of items, make another request with the token returned in
47824
+ # the output. For more information, see [Pagination][1].
47825
+ #
47826
+ #
47827
+ #
47828
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
47829
+ # @return [Integer]
47830
+ #
47831
+ # @!attribute [rw] next_token
47832
+ # The token returned from a previous paginated request. Pagination
47833
+ # continues from the end of the items returned by the previous
47834
+ # request.
47835
+ # @return [String]
47836
+ #
47837
+ # @!attribute [rw] dry_run
47838
+ # Checks whether you have the required permissions for the action,
47839
+ # without actually making the request, and provides an error response.
47840
+ # If you have the required permissions, the error response is
47841
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
47842
+ # @return [Boolean]
47843
+ #
47844
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetImageFindingsRequest AWS API Documentation
47845
+ #
47846
+ class GetImageFindingsRequest < Struct.new(
47847
+ :image_id,
47848
+ :max_results,
47849
+ :next_token,
47850
+ :dry_run)
47851
+ SENSITIVE = []
47852
+ include Aws::Structure
47853
+ end
47854
+
47855
+ # @!attribute [rw] image_findings
47856
+ # The Amazon Inspector findings for the AMI.
47857
+ # @return [Array<Types::ImageFinding>]
47858
+ #
47859
+ # @!attribute [rw] next_token
47860
+ # The token to include in another request to get the next page of
47861
+ # items. This value is `null` when there are no more items to return.
47862
+ # @return [String]
47863
+ #
47864
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetImageFindingsResult AWS API Documentation
47865
+ #
47866
+ class GetImageFindingsResult < Struct.new(
47867
+ :image_findings,
47868
+ :next_token)
47869
+ SENSITIVE = []
47870
+ include Aws::Structure
47871
+ end
47872
+
47636
47873
  # @!attribute [rw] dry_run
47637
47874
  # Checks whether you have the required permissions for the operation,
47638
47875
  # without actually making the request, and provides an error response.
@@ -51887,6 +52124,15 @@ module Aws::EC2
51887
52124
  # The watermarks attached to the AMI.
51888
52125
  # @return [Array<Types::ImageWatermark>]
51889
52126
  #
52127
+ # @!attribute [rw] scan_results
52128
+ # The Amazon Inspector scan results for the AMI. This information is
52129
+ # present only for AMIs that Amazon Inspector has scanned.
52130
+ #
52131
+ # When you share an AMI with other accounts, organizations, or
52132
+ # organizational units (OUs), or make it public, its scan results are
52133
+ # available to the accounts that can use the AMI.
52134
+ # @return [Types::ScanResults]
52135
+ #
51890
52136
  # @!attribute [rw] instance_type_specification
51891
52137
  # The instance type specification for the AMI, which defines which
51892
52138
  # instance types are compatible with this image.
@@ -51976,6 +52222,7 @@ module Aws::EC2
51976
52222
  :free_tier_eligible,
51977
52223
  :public_ssm_parameter_name,
51978
52224
  :image_watermarks,
52225
+ :scan_results,
51979
52226
  :instance_type_specification,
51980
52227
  :image_id,
51981
52228
  :image_location,
@@ -52222,6 +52469,13 @@ module Aws::EC2
52222
52469
  # Maximum: 50 values
52223
52470
  # @return [Array<Types::ImageWatermarkFilterResponse>]
52224
52471
  #
52472
+ # @!attribute [rw] scan_result_condition
52473
+ # The Amazon Inspector scan-result criteria that an AMI must meet to
52474
+ # be allowed. The criteria can limit the highest finding severity, the
52475
+ # number of days since Amazon Inspector last scanned the AMI, and the
52476
+ # number of days since Amazon Inspector reported a fix as available.
52477
+ # @return [Types::ScanResultCondition]
52478
+ #
52225
52479
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImageCriterion AWS API Documentation
52226
52480
  #
52227
52481
  class ImageCriterion < Struct.new(
@@ -52230,7 +52484,8 @@ module Aws::EC2
52230
52484
  :image_names,
52231
52485
  :deprecation_time_condition,
52232
52486
  :creation_date_condition,
52233
- :image_watermarks)
52487
+ :image_watermarks,
52488
+ :scan_result_condition)
52234
52489
  SENSITIVE = []
52235
52490
  include Aws::Structure
52236
52491
  end
@@ -52332,6 +52587,13 @@ module Aws::EC2
52332
52587
  # Maximum: 50 values
52333
52588
  # @return [Array<Types::ImageWatermarkFilterRequest>]
52334
52589
  #
52590
+ # @!attribute [rw] scan_result_condition
52591
+ # The Amazon Inspector scan-result criteria that an AMI must meet to
52592
+ # be allowed. The criteria can limit the highest finding severity, the
52593
+ # number of days since Amazon Inspector last scanned the AMI, and the
52594
+ # number of days since Amazon Inspector reported a fix as available.
52595
+ # @return [Types::ScanResultConditionRequest]
52596
+ #
52335
52597
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImageCriterionRequest AWS API Documentation
52336
52598
  #
52337
52599
  class ImageCriterionRequest < Struct.new(
@@ -52340,7 +52602,8 @@ module Aws::EC2
52340
52602
  :image_names,
52341
52603
  :deprecation_time_condition,
52342
52604
  :creation_date_condition,
52343
- :image_watermarks)
52605
+ :image_watermarks,
52606
+ :scan_result_condition)
52344
52607
  SENSITIVE = []
52345
52608
  include Aws::Structure
52346
52609
  end
@@ -52387,6 +52650,83 @@ module Aws::EC2
52387
52650
  include Aws::Structure
52388
52651
  end
52389
52652
 
52653
+ # Describes an Amazon Inspector vulnerability finding for an AMI.
52654
+ #
52655
+ # @!attribute [rw] fix_available
52656
+ # Specifies whether a fix is available for the finding. This value is
52657
+ # `true` when Amazon Inspector reports a full or partial fix for the
52658
+ # finding.
52659
+ # @return [Boolean]
52660
+ #
52661
+ # @!attribute [rw] score
52662
+ # The Amazon Inspector score for the finding.
52663
+ # @return [Float]
52664
+ #
52665
+ # @!attribute [rw] first_observed_at
52666
+ # The date and time, in the ISO 8601 format in the UTC time zone
52667
+ # (YYYY-MM-DDThh:mm:ss.sssZ), when Amazon Inspector first observed the
52668
+ # finding.
52669
+ # @return [Time]
52670
+ #
52671
+ # @!attribute [rw] updated_at
52672
+ # The date and time, in the ISO 8601 format in the UTC time zone
52673
+ # (YYYY-MM-DDThh:mm:ss.sssZ), when Amazon Inspector last updated the
52674
+ # finding.
52675
+ # @return [Time]
52676
+ #
52677
+ # @!attribute [rw] title
52678
+ # The title of the finding.
52679
+ # @return [String]
52680
+ #
52681
+ # @!attribute [rw] paths
52682
+ # The file paths in the AMI that are affected by the finding. Amazon
52683
+ # EC2 returns up to 10 file paths for each finding.
52684
+ # @return [Array<String>]
52685
+ #
52686
+ # @!attribute [rw] severity_label
52687
+ # The severity of the finding.
52688
+ #
52689
+ # The valid values are the following Amazon Inspector severity levels,
52690
+ # which correspond to CVSS score ranges:
52691
+ #
52692
+ # * `informational` - CVSS score of 0.
52693
+ #
52694
+ # * `low` - CVSS score of 0.1 to 3.9.
52695
+ #
52696
+ # * `medium` - CVSS score of 4.0 to 6.9.
52697
+ #
52698
+ # * `high` - CVSS score of 7.0 to 8.9.
52699
+ #
52700
+ # * `critical` - CVSS score of 9.0 to 10.0.
52701
+ #
52702
+ # For more information, see [Software package vulnerability
52703
+ # severity][1] in the *Amazon Inspector User Guide*.
52704
+ #
52705
+ #
52706
+ #
52707
+ # [1]: https://docs.aws.amazon.com/inspector/latest/user/findings-understanding-severity.html#findings-understanding-package-score
52708
+ # @return [String]
52709
+ #
52710
+ # @!attribute [rw] snapshot_id
52711
+ # The ID of the Amazon EBS snapshot of the AMI in which the finding
52712
+ # was detected.
52713
+ # @return [String]
52714
+ #
52715
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImageFinding AWS API Documentation
52716
+ #
52717
+ class ImageFinding < Struct.new(
52718
+ :fix_available,
52719
+ :score,
52720
+ :first_observed_at,
52721
+ :updated_at,
52722
+ :title,
52723
+ :paths,
52724
+ :severity_label,
52725
+ :snapshot_id)
52726
+ SENSITIVE = []
52727
+ include Aws::Structure
52728
+ end
52729
+
52390
52730
  # Information about the AMI.
52391
52731
  #
52392
52732
  # @!attribute [rw] image_id
@@ -81560,6 +81900,375 @@ module Aws::EC2
81560
81900
  include Aws::Structure
81561
81901
  end
81562
81902
 
81903
+ # The Amazon Inspector scan-result criteria that an AMI must meet to be
81904
+ # allowed. The criteria can limit the highest finding severity. They can
81905
+ # also limit, for each severity, the days since Amazon Inspector
81906
+ # reported a fix as available.
81907
+ #
81908
+ # The severity limit applies to all findings, whether or not a fix is
81909
+ # available. The day limits for each severity apply only to findings
81910
+ # that have a fix available. A scanned AMI that has no fix-available
81911
+ # finding of a given severity meets that severity's day limit. AMIs
81912
+ # that Amazon Inspector has not scanned are not allowed when you specify
81913
+ # this condition.
81914
+ #
81915
+ # @!attribute [rw] max_days_since_last_finding_scan
81916
+ # The maximum number of days that have elapsed since Amazon Inspector
81917
+ # last scanned the AMI. For example, a value of `7` allows AMIs that
81918
+ # were scanned within the last 7 days. AMIs that Amazon Inspector has
81919
+ # not scanned are not allowed.
81920
+ #
81921
+ # Constraints: Minimum value of 0. Maximum value of 2147483647.
81922
+ # @return [Integer]
81923
+ #
81924
+ # @!attribute [rw] maximum_severity_label
81925
+ # The maximum severity that an AMI's Amazon Inspector findings can
81926
+ # have for the AMI to be allowed. Findings count whether or not a fix
81927
+ # is available. For example, a value of `medium` allows AMIs whose
81928
+ # highest severity is `informational`, `low`, or `medium`.
81929
+ #
81930
+ # The valid values are the following Amazon Inspector severity levels,
81931
+ # which correspond to CVSS score ranges:
81932
+ #
81933
+ # * `informational` - CVSS score of 0.
81934
+ #
81935
+ # * `low` - CVSS score of 0.1 to 3.9.
81936
+ #
81937
+ # * `medium` - CVSS score of 4.0 to 6.9.
81938
+ #
81939
+ # * `high` - CVSS score of 7.0 to 8.9.
81940
+ #
81941
+ # * `critical` - CVSS score of 9.0 to 10.0.
81942
+ #
81943
+ # For more information, see [Software package vulnerability
81944
+ # severity][1] in the *Amazon Inspector User Guide*.
81945
+ #
81946
+ # A scanned AMI that has no findings meets this limit.
81947
+ #
81948
+ # AMIs that Amazon Inspector has not scanned are not allowed when you
81949
+ # specify this condition.
81950
+ #
81951
+ #
81952
+ #
81953
+ # [1]: https://docs.aws.amazon.com/inspector/latest/user/findings-understanding-severity.html#findings-understanding-package-score
81954
+ # @return [String]
81955
+ #
81956
+ # @!attribute [rw] max_days_since_informational_fix_available
81957
+ # The maximum number of days since Amazon Inspector reported a fix as
81958
+ # available for an `informational` severity finding on the AMI. For
81959
+ # example, a value of `7` does not allow an AMI if Amazon Inspector
81960
+ # reported such a fix more than 7 days ago.
81961
+ #
81962
+ # A scanned AMI that has no `informational` severity finding with a
81963
+ # fix available meets this limit. AMIs that Amazon Inspector has not
81964
+ # scanned are not allowed.
81965
+ #
81966
+ # Constraints: Minimum value of 0. Maximum value of 2147483647.
81967
+ # @return [Integer]
81968
+ #
81969
+ # @!attribute [rw] max_days_since_low_fix_available
81970
+ # The maximum number of days since Amazon Inspector reported a fix as
81971
+ # available for a `low` severity finding on the AMI. For example, a
81972
+ # value of `7` does not allow an AMI if Amazon Inspector reported such
81973
+ # a fix more than 7 days ago.
81974
+ #
81975
+ # A scanned AMI that has no `low` severity finding with a fix
81976
+ # available meets this limit. AMIs that Amazon Inspector has not
81977
+ # scanned are not allowed.
81978
+ #
81979
+ # Constraints: Minimum value of 0. Maximum value of 2147483647.
81980
+ # @return [Integer]
81981
+ #
81982
+ # @!attribute [rw] max_days_since_medium_fix_available
81983
+ # The maximum number of days since Amazon Inspector reported a fix as
81984
+ # available for a `medium` severity finding on the AMI. For example, a
81985
+ # value of `7` does not allow an AMI if Amazon Inspector reported such
81986
+ # a fix more than 7 days ago.
81987
+ #
81988
+ # A scanned AMI that has no `medium` severity finding with a fix
81989
+ # available meets this limit. AMIs that Amazon Inspector has not
81990
+ # scanned are not allowed.
81991
+ #
81992
+ # Constraints: Minimum value of 0. Maximum value of 2147483647.
81993
+ # @return [Integer]
81994
+ #
81995
+ # @!attribute [rw] max_days_since_high_fix_available
81996
+ # The maximum number of days since Amazon Inspector reported a fix as
81997
+ # available for a `high` severity finding on the AMI. For example, a
81998
+ # value of `7` does not allow an AMI if Amazon Inspector reported such
81999
+ # a fix more than 7 days ago.
82000
+ #
82001
+ # A scanned AMI that has no `high` severity finding with a fix
82002
+ # available meets this limit. AMIs that Amazon Inspector has not
82003
+ # scanned are not allowed.
82004
+ #
82005
+ # Constraints: Minimum value of 0. Maximum value of 2147483647.
82006
+ # @return [Integer]
82007
+ #
82008
+ # @!attribute [rw] max_days_since_critical_fix_available
82009
+ # The maximum number of days since Amazon Inspector reported a fix as
82010
+ # available for a `critical` severity finding on the AMI. For example,
82011
+ # a value of `7` does not allow an AMI if Amazon Inspector reported
82012
+ # such a fix more than 7 days ago.
82013
+ #
82014
+ # A scanned AMI that has no `critical` severity finding with a fix
82015
+ # available meets this limit. AMIs that Amazon Inspector has not
82016
+ # scanned are not allowed.
82017
+ #
82018
+ # Constraints: Minimum value of 0. Maximum value of 2147483647.
82019
+ # @return [Integer]
82020
+ #
82021
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScanResultCondition AWS API Documentation
82022
+ #
82023
+ class ScanResultCondition < Struct.new(
82024
+ :max_days_since_last_finding_scan,
82025
+ :maximum_severity_label,
82026
+ :max_days_since_informational_fix_available,
82027
+ :max_days_since_low_fix_available,
82028
+ :max_days_since_medium_fix_available,
82029
+ :max_days_since_high_fix_available,
82030
+ :max_days_since_critical_fix_available)
82031
+ SENSITIVE = []
82032
+ include Aws::Structure
82033
+ end
82034
+
82035
+ # The Amazon Inspector scan-result criteria that an AMI must meet to be
82036
+ # allowed. The criteria can limit the highest finding severity. They can
82037
+ # also limit, for each severity, the days since Amazon Inspector
82038
+ # reported a fix as available.
82039
+ #
82040
+ # The severity limit applies to all findings, whether or not a fix is
82041
+ # available. The day limits for each severity apply only to findings
82042
+ # that have a fix available. A scanned AMI that has no fix-available
82043
+ # finding of a given severity meets that severity's day limit. AMIs
82044
+ # that Amazon Inspector has not scanned are not allowed when you specify
82045
+ # this condition.
82046
+ #
82047
+ # @!attribute [rw] max_days_since_last_finding_scan
82048
+ # The maximum number of days that have elapsed since Amazon Inspector
82049
+ # last scanned the AMI. For example, a value of `7` allows AMIs that
82050
+ # were scanned within the last 7 days. AMIs that Amazon Inspector has
82051
+ # not scanned are not allowed.
82052
+ #
82053
+ # Constraints: Minimum value of 0. Maximum value of 2147483647.
82054
+ # @return [Integer]
82055
+ #
82056
+ # @!attribute [rw] maximum_severity_label
82057
+ # The maximum severity that an AMI's Amazon Inspector findings can
82058
+ # have for the AMI to be allowed. Findings count whether or not a fix
82059
+ # is available. For example, a value of `medium` allows AMIs whose
82060
+ # highest severity is `informational`, `low`, or `medium`.
82061
+ #
82062
+ # The valid values are the following Amazon Inspector severity levels,
82063
+ # which correspond to CVSS score ranges:
82064
+ #
82065
+ # * `informational` - CVSS score of 0.
82066
+ #
82067
+ # * `low` - CVSS score of 0.1 to 3.9.
82068
+ #
82069
+ # * `medium` - CVSS score of 4.0 to 6.9.
82070
+ #
82071
+ # * `high` - CVSS score of 7.0 to 8.9.
82072
+ #
82073
+ # * `critical` - CVSS score of 9.0 to 10.0.
82074
+ #
82075
+ # For more information, see [Software package vulnerability
82076
+ # severity][1] in the *Amazon Inspector User Guide*.
82077
+ #
82078
+ # A scanned AMI that has no findings meets this limit.
82079
+ #
82080
+ # AMIs that Amazon Inspector has not scanned are not allowed when you
82081
+ # specify this condition.
82082
+ #
82083
+ #
82084
+ #
82085
+ # [1]: https://docs.aws.amazon.com/inspector/latest/user/findings-understanding-severity.html#findings-understanding-package-score
82086
+ # @return [String]
82087
+ #
82088
+ # @!attribute [rw] max_days_since_informational_fix_available
82089
+ # The maximum number of days since Amazon Inspector reported a fix as
82090
+ # available for an `informational` severity finding on the AMI. For
82091
+ # example, a value of `7` does not allow an AMI if Amazon Inspector
82092
+ # reported such a fix more than 7 days ago.
82093
+ #
82094
+ # A scanned AMI that has no `informational` severity finding with a
82095
+ # fix available meets this limit. AMIs that Amazon Inspector has not
82096
+ # scanned are not allowed.
82097
+ #
82098
+ # Constraints: Minimum value of 0. Maximum value of 2147483647.
82099
+ # @return [Integer]
82100
+ #
82101
+ # @!attribute [rw] max_days_since_low_fix_available
82102
+ # The maximum number of days since Amazon Inspector reported a fix as
82103
+ # available for a `low` severity finding on the AMI. For example, a
82104
+ # value of `7` does not allow an AMI if Amazon Inspector reported such
82105
+ # a fix more than 7 days ago.
82106
+ #
82107
+ # A scanned AMI that has no `low` severity finding with a fix
82108
+ # available meets this limit. AMIs that Amazon Inspector has not
82109
+ # scanned are not allowed.
82110
+ #
82111
+ # Constraints: Minimum value of 0. Maximum value of 2147483647.
82112
+ # @return [Integer]
82113
+ #
82114
+ # @!attribute [rw] max_days_since_medium_fix_available
82115
+ # The maximum number of days since Amazon Inspector reported a fix as
82116
+ # available for a `medium` severity finding on the AMI. For example, a
82117
+ # value of `7` does not allow an AMI if Amazon Inspector reported such
82118
+ # a fix more than 7 days ago.
82119
+ #
82120
+ # A scanned AMI that has no `medium` severity finding with a fix
82121
+ # available meets this limit. AMIs that Amazon Inspector has not
82122
+ # scanned are not allowed.
82123
+ #
82124
+ # Constraints: Minimum value of 0. Maximum value of 2147483647.
82125
+ # @return [Integer]
82126
+ #
82127
+ # @!attribute [rw] max_days_since_high_fix_available
82128
+ # The maximum number of days since Amazon Inspector reported a fix as
82129
+ # available for a `high` severity finding on the AMI. For example, a
82130
+ # value of `7` does not allow an AMI if Amazon Inspector reported such
82131
+ # a fix more than 7 days ago.
82132
+ #
82133
+ # A scanned AMI that has no `high` severity finding with a fix
82134
+ # available meets this limit. AMIs that Amazon Inspector has not
82135
+ # scanned are not allowed.
82136
+ #
82137
+ # Constraints: Minimum value of 0. Maximum value of 2147483647.
82138
+ # @return [Integer]
82139
+ #
82140
+ # @!attribute [rw] max_days_since_critical_fix_available
82141
+ # The maximum number of days since Amazon Inspector reported a fix as
82142
+ # available for a `critical` severity finding on the AMI. For example,
82143
+ # a value of `7` does not allow an AMI if Amazon Inspector reported
82144
+ # such a fix more than 7 days ago.
82145
+ #
82146
+ # A scanned AMI that has no `critical` severity finding with a fix
82147
+ # available meets this limit. AMIs that Amazon Inspector has not
82148
+ # scanned are not allowed.
82149
+ #
82150
+ # Constraints: Minimum value of 0. Maximum value of 2147483647.
82151
+ # @return [Integer]
82152
+ #
82153
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScanResultConditionRequest AWS API Documentation
82154
+ #
82155
+ class ScanResultConditionRequest < Struct.new(
82156
+ :max_days_since_last_finding_scan,
82157
+ :maximum_severity_label,
82158
+ :max_days_since_informational_fix_available,
82159
+ :max_days_since_low_fix_available,
82160
+ :max_days_since_medium_fix_available,
82161
+ :max_days_since_high_fix_available,
82162
+ :max_days_since_critical_fix_available)
82163
+ SENSITIVE = []
82164
+ include Aws::Structure
82165
+ end
82166
+
82167
+ # The Amazon Inspector scan results for an AMI. This information is
82168
+ # present only for AMIs that Amazon Inspector has scanned.
82169
+ #
82170
+ # When you share an AMI with other accounts, organizations, or
82171
+ # organizational units (OUs), or make it public, its scan results are
82172
+ # available to the accounts that can use the AMI.
82173
+ #
82174
+ # The fix-available dates are specific to the AMI. Each date reflects
82175
+ # when a fix became available for a finding on that AMI, not when the
82176
+ # vendor released the fix. As a result, a date can be later than the
82177
+ # vendor's release date, and AMIs with the same vulnerability can have
82178
+ # different dates.
82179
+ #
82180
+ # @!attribute [rw] highest_finding_severity_label
82181
+ # The highest severity among the AMI's Amazon Inspector findings,
82182
+ # whether or not a fix is available.
82183
+ #
82184
+ # The valid values are the following Amazon Inspector severity levels,
82185
+ # which correspond to CVSS score ranges:
82186
+ #
82187
+ # * `informational` - CVSS score of 0.
82188
+ #
82189
+ # * `low` - CVSS score of 0.1 to 3.9.
82190
+ #
82191
+ # * `medium` - CVSS score of 4.0 to 6.9.
82192
+ #
82193
+ # * `high` - CVSS score of 7.0 to 8.9.
82194
+ #
82195
+ # * `critical` - CVSS score of 9.0 to 10.0.
82196
+ #
82197
+ # For more information, see [Software package vulnerability
82198
+ # severity][1] in the *Amazon Inspector User Guide*.
82199
+ #
82200
+ # This value is present only if the AMI has at least one finding.
82201
+ #
82202
+ #
82203
+ #
82204
+ # [1]: https://docs.aws.amazon.com/inspector/latest/user/findings-understanding-severity.html#findings-understanding-package-score
82205
+ # @return [String]
82206
+ #
82207
+ # @!attribute [rw] finding_scan_date
82208
+ # The date and time, in the ISO 8601 format in the UTC time zone
82209
+ # (YYYY-MM-DDThh:mm:ss.sssZ), of the most recent Amazon Inspector scan
82210
+ # of the AMI.
82211
+ # @return [Time]
82212
+ #
82213
+ # @!attribute [rw] informational_fix_available_since
82214
+ # The earliest date and time, in the ISO 8601 format in the UTC time
82215
+ # zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported
82216
+ # a fix as available for an `informational` severity finding on the
82217
+ # AMI. This value is present only if the AMI has at least one
82218
+ # `informational` severity finding with a fix available. Amazon
82219
+ # Inspector recomputes this value on each scan.
82220
+ # @return [Time]
82221
+ #
82222
+ # @!attribute [rw] low_fix_available_since
82223
+ # The earliest date and time, in the ISO 8601 format in the UTC time
82224
+ # zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported
82225
+ # a fix as available for a `low` severity finding on the AMI. This
82226
+ # value is present only if the AMI has at least one `low` severity
82227
+ # finding with a fix available. Amazon Inspector recomputes this value
82228
+ # on each scan.
82229
+ # @return [Time]
82230
+ #
82231
+ # @!attribute [rw] medium_fix_available_since
82232
+ # The earliest date and time, in the ISO 8601 format in the UTC time
82233
+ # zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported
82234
+ # a fix as available for a `medium` severity finding on the AMI. This
82235
+ # value is present only if the AMI has at least one `medium` severity
82236
+ # finding with a fix available. Amazon Inspector recomputes this value
82237
+ # on each scan.
82238
+ # @return [Time]
82239
+ #
82240
+ # @!attribute [rw] high_fix_available_since
82241
+ # The earliest date and time, in the ISO 8601 format in the UTC time
82242
+ # zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported
82243
+ # a fix as available for a `high` severity finding on the AMI. This
82244
+ # value is present only if the AMI has at least one `high` severity
82245
+ # finding with a fix available. Amazon Inspector recomputes this value
82246
+ # on each scan.
82247
+ # @return [Time]
82248
+ #
82249
+ # @!attribute [rw] critical_fix_available_since
82250
+ # The earliest date and time, in the ISO 8601 format in the UTC time
82251
+ # zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported
82252
+ # a fix as available for a `critical` severity finding on the AMI.
82253
+ # This value is present only if the AMI has at least one `critical`
82254
+ # severity finding with a fix available. Amazon Inspector recomputes
82255
+ # this value on each scan.
82256
+ # @return [Time]
82257
+ #
82258
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScanResults AWS API Documentation
82259
+ #
82260
+ class ScanResults < Struct.new(
82261
+ :highest_finding_severity_label,
82262
+ :finding_scan_date,
82263
+ :informational_fix_available_since,
82264
+ :low_fix_available_since,
82265
+ :medium_fix_available_since,
82266
+ :high_fix_available_since,
82267
+ :critical_fix_available_since)
82268
+ SENSITIVE = []
82269
+ include Aws::Structure
82270
+ end
82271
+
81563
82272
  # Describes a Scheduled Instance.
81564
82273
  #
81565
82274
  # @!attribute [rw] availability_zone