Class ScanResults
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ScanResults.Builder,ScanResults>
The Amazon Inspector scan results for an AMI. This information is present only for AMIs that Amazon Inspector has scanned.
When you share an AMI with other accounts, organizations, or organizational units (OUs), or make it public, its scan results are available to the accounts that can use the AMI.
The fix-available dates are specific to the AMI. Each date reflects when a fix became available for a finding on that AMI, not when the vendor released the fix. As a result, a date can be later than the vendor's release date, and AMIs with the same vulnerability can have different dates.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ScanResults.Builderbuilder()final InstantThe earliest date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix as available for acriticalseverity finding on the AMI.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final InstantThe date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), of the most recent Amazon Inspector scan of the AMI.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final SeverityLabelThe highest severity among the AMI's Amazon Inspector findings, whether or not a fix is available.final StringThe highest severity among the AMI's Amazon Inspector findings, whether or not a fix is available.final InstantThe earliest date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix as available for ahighseverity finding on the AMI.final InstantThe earliest date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix as available for aninformationalseverity finding on the AMI.final InstantThe earliest date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix as available for alowseverity finding on the AMI.final InstantThe earliest date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix as available for amediumseverity finding on the AMI.static Class<? extends ScanResults.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
highestFindingSeverityLabel
The highest severity among the AMI's Amazon Inspector findings, whether or not a fix is available.
The valid values are the following Amazon Inspector severity levels, which correspond to CVSS score ranges:
-
informational- CVSS score of 0. -
low- CVSS score of 0.1 to 3.9. -
medium- CVSS score of 4.0 to 6.9. -
high- CVSS score of 7.0 to 8.9. -
critical- CVSS score of 9.0 to 10.0.
For more information, see Software package vulnerability severity in the Amazon Inspector User Guide.
This value is present only if the AMI has at least one finding.
If the service returns an enum value that is not available in the current SDK version,
highestFindingSeverityLabelwill returnSeverityLabel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromhighestFindingSeverityLabelAsString().- Returns:
- The highest severity among the AMI's Amazon Inspector findings, whether or not a fix is available.
The valid values are the following Amazon Inspector severity levels, which correspond to CVSS score ranges:
-
informational- CVSS score of 0. -
low- CVSS score of 0.1 to 3.9. -
medium- CVSS score of 4.0 to 6.9. -
high- CVSS score of 7.0 to 8.9. -
critical- CVSS score of 9.0 to 10.0.
For more information, see Software package vulnerability severity in the Amazon Inspector User Guide.
This value is present only if the AMI has at least one finding.
-
- See Also:
-
-
highestFindingSeverityLabelAsString
The highest severity among the AMI's Amazon Inspector findings, whether or not a fix is available.
The valid values are the following Amazon Inspector severity levels, which correspond to CVSS score ranges:
-
informational- CVSS score of 0. -
low- CVSS score of 0.1 to 3.9. -
medium- CVSS score of 4.0 to 6.9. -
high- CVSS score of 7.0 to 8.9. -
critical- CVSS score of 9.0 to 10.0.
For more information, see Software package vulnerability severity in the Amazon Inspector User Guide.
This value is present only if the AMI has at least one finding.
If the service returns an enum value that is not available in the current SDK version,
highestFindingSeverityLabelwill returnSeverityLabel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromhighestFindingSeverityLabelAsString().- Returns:
- The highest severity among the AMI's Amazon Inspector findings, whether or not a fix is available.
The valid values are the following Amazon Inspector severity levels, which correspond to CVSS score ranges:
-
informational- CVSS score of 0. -
low- CVSS score of 0.1 to 3.9. -
medium- CVSS score of 4.0 to 6.9. -
high- CVSS score of 7.0 to 8.9. -
critical- CVSS score of 9.0 to 10.0.
For more information, see Software package vulnerability severity in the Amazon Inspector User Guide.
This value is present only if the AMI has at least one finding.
-
- See Also:
-
-
findingScanDate
The date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), of the most recent Amazon Inspector scan of the AMI.
- Returns:
- The date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), of the most recent Amazon Inspector scan of the AMI.
-
informationalFixAvailableSince
The earliest date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix as available for an
informationalseverity finding on the AMI. This value is present only if the AMI has at least oneinformationalseverity finding with a fix available. Amazon Inspector recomputes this value on each scan.- Returns:
- The earliest date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), at
which Amazon Inspector reported a fix as available for an
informationalseverity finding on the AMI. This value is present only if the AMI has at least oneinformationalseverity finding with a fix available. Amazon Inspector recomputes this value on each scan.
-
lowFixAvailableSince
The earliest date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix as available for a
lowseverity finding on the AMI. This value is present only if the AMI has at least onelowseverity finding with a fix available. Amazon Inspector recomputes this value on each scan.- Returns:
- The earliest date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), at
which Amazon Inspector reported a fix as available for a
lowseverity finding on the AMI. This value is present only if the AMI has at least onelowseverity finding with a fix available. Amazon Inspector recomputes this value on each scan.
-
mediumFixAvailableSince
The earliest date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix as available for a
mediumseverity finding on the AMI. This value is present only if the AMI has at least onemediumseverity finding with a fix available. Amazon Inspector recomputes this value on each scan.- Returns:
- The earliest date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), at
which Amazon Inspector reported a fix as available for a
mediumseverity finding on the AMI. This value is present only if the AMI has at least onemediumseverity finding with a fix available. Amazon Inspector recomputes this value on each scan.
-
highFixAvailableSince
The earliest date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix as available for a
highseverity finding on the AMI. This value is present only if the AMI has at least onehighseverity finding with a fix available. Amazon Inspector recomputes this value on each scan.- Returns:
- The earliest date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), at
which Amazon Inspector reported a fix as available for a
highseverity finding on the AMI. This value is present only if the AMI has at least onehighseverity finding with a fix available. Amazon Inspector recomputes this value on each scan.
-
criticalFixAvailableSince
The earliest date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix as available for a
criticalseverity finding on the AMI. This value is present only if the AMI has at least onecriticalseverity finding with a fix available. Amazon Inspector recomputes this value on each scan.- Returns:
- The earliest date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), at
which Amazon Inspector reported a fix as available for a
criticalseverity finding on the AMI. This value is present only if the AMI has at least onecriticalseverity finding with a fix available. Amazon Inspector recomputes this value on each scan.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ScanResults.Builder,ScanResults> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-