Class ScanResultCondition
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ScanResultCondition.Builder,ScanResultCondition>
The Amazon Inspector scan-result criteria that an AMI must meet to be allowed. The criteria can limit the highest finding severity. They can also limit, for each severity, the days since Amazon Inspector reported a fix as available.
The severity limit applies to all findings, whether or not a fix is available. The day limits for each severity apply only to findings that have a fix available. A scanned AMI that has no fix-available finding of a given severity meets that severity's day limit. AMIs that Amazon Inspector has not scanned are not allowed when you specify this condition.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ScanResultCondition.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final IntegerThe maximum number of days since Amazon Inspector reported a fix as available for acriticalseverity finding on the AMI.final IntegerThe maximum number of days since Amazon Inspector reported a fix as available for ahighseverity finding on the AMI.final IntegerThe maximum number of days since Amazon Inspector reported a fix as available for aninformationalseverity finding on the AMI.final IntegerThe maximum number of days that have elapsed since Amazon Inspector last scanned the AMI.final IntegerThe maximum number of days since Amazon Inspector reported a fix as available for alowseverity finding on the AMI.final IntegerThe maximum number of days since Amazon Inspector reported a fix as available for amediumseverity finding on the AMI.final SeverityLabelThe maximum severity that an AMI's Amazon Inspector findings can have for the AMI to be allowed.final StringThe maximum severity that an AMI's Amazon Inspector findings can have for the AMI to be allowed.static Class<? extends ScanResultCondition.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
-
maxDaysSinceLastFindingScan
The maximum number of days that have elapsed since Amazon Inspector last scanned the AMI. For example, a value of
7allows AMIs that were scanned within the last 7 days. AMIs that Amazon Inspector has not scanned are not allowed.Constraints: Minimum value of 0. Maximum value of 2147483647.
- Returns:
- The maximum number of days that have elapsed since Amazon Inspector last scanned the AMI. For example, a
value of
7allows AMIs that were scanned within the last 7 days. AMIs that Amazon Inspector has not scanned are not allowed.Constraints: Minimum value of 0. Maximum value of 2147483647.
-
maximumSeverityLabel
The maximum severity that an AMI's Amazon Inspector findings can have for the AMI to be allowed. Findings count whether or not a fix is available. For example, a value of
mediumallows AMIs whose highest severity isinformational,low, ormedium.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.
A scanned AMI that has no findings meets this limit.
AMIs that Amazon Inspector has not scanned are not allowed when you specify this condition.
If the service returns an enum value that is not available in the current SDK version,
maximumSeverityLabelwill returnSeverityLabel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommaximumSeverityLabelAsString().- Returns:
- The maximum severity that an AMI's Amazon Inspector findings can have for the AMI to be allowed. Findings
count whether or not a fix is available. For example, a value of
mediumallows AMIs whose highest severity isinformational,low, ormedium.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.
A scanned AMI that has no findings meets this limit.
AMIs that Amazon Inspector has not scanned are not allowed when you specify this condition.
-
- See Also:
-
-
maximumSeverityLabelAsString
The maximum severity that an AMI's Amazon Inspector findings can have for the AMI to be allowed. Findings count whether or not a fix is available. For example, a value of
mediumallows AMIs whose highest severity isinformational,low, ormedium.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.
A scanned AMI that has no findings meets this limit.
AMIs that Amazon Inspector has not scanned are not allowed when you specify this condition.
If the service returns an enum value that is not available in the current SDK version,
maximumSeverityLabelwill returnSeverityLabel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommaximumSeverityLabelAsString().- Returns:
- The maximum severity that an AMI's Amazon Inspector findings can have for the AMI to be allowed. Findings
count whether or not a fix is available. For example, a value of
mediumallows AMIs whose highest severity isinformational,low, ormedium.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.
A scanned AMI that has no findings meets this limit.
AMIs that Amazon Inspector has not scanned are not allowed when you specify this condition.
-
- See Also:
-
-
maxDaysSinceInformationalFixAvailable
The maximum number of days since Amazon Inspector reported a fix as available for an
informationalseverity finding on the AMI. For example, a value of7does not allow an AMI if Amazon Inspector reported such a fix more than 7 days ago.A scanned AMI that has no
informationalseverity finding with a fix available meets this limit. AMIs that Amazon Inspector has not scanned are not allowed.Constraints: Minimum value of 0. Maximum value of 2147483647.
- Returns:
- The maximum number of days since Amazon Inspector reported a fix as available for an
informationalseverity finding on the AMI. For example, a value of7does not allow an AMI if Amazon Inspector reported such a fix more than 7 days ago.A scanned AMI that has no
informationalseverity finding with a fix available meets this limit. AMIs that Amazon Inspector has not scanned are not allowed.Constraints: Minimum value of 0. Maximum value of 2147483647.
-
maxDaysSinceLowFixAvailable
The maximum number of days since Amazon Inspector reported a fix as available for a
lowseverity finding on the AMI. For example, a value of7does not allow an AMI if Amazon Inspector reported such a fix more than 7 days ago.A scanned AMI that has no
lowseverity finding with a fix available meets this limit. AMIs that Amazon Inspector has not scanned are not allowed.Constraints: Minimum value of 0. Maximum value of 2147483647.
- Returns:
- The maximum number of days since Amazon Inspector reported a fix as available for a
lowseverity finding on the AMI. For example, a value of7does not allow an AMI if Amazon Inspector reported such a fix more than 7 days ago.A scanned AMI that has no
lowseverity finding with a fix available meets this limit. AMIs that Amazon Inspector has not scanned are not allowed.Constraints: Minimum value of 0. Maximum value of 2147483647.
-
maxDaysSinceMediumFixAvailable
The maximum number of days since Amazon Inspector reported a fix as available for a
mediumseverity finding on the AMI. For example, a value of7does not allow an AMI if Amazon Inspector reported such a fix more than 7 days ago.A scanned AMI that has no
mediumseverity finding with a fix available meets this limit. AMIs that Amazon Inspector has not scanned are not allowed.Constraints: Minimum value of 0. Maximum value of 2147483647.
- Returns:
- The maximum number of days since Amazon Inspector reported a fix as available for a
mediumseverity finding on the AMI. For example, a value of7does not allow an AMI if Amazon Inspector reported such a fix more than 7 days ago.A scanned AMI that has no
mediumseverity finding with a fix available meets this limit. AMIs that Amazon Inspector has not scanned are not allowed.Constraints: Minimum value of 0. Maximum value of 2147483647.
-
maxDaysSinceHighFixAvailable
The maximum number of days since Amazon Inspector reported a fix as available for a
highseverity finding on the AMI. For example, a value of7does not allow an AMI if Amazon Inspector reported such a fix more than 7 days ago.A scanned AMI that has no
highseverity finding with a fix available meets this limit. AMIs that Amazon Inspector has not scanned are not allowed.Constraints: Minimum value of 0. Maximum value of 2147483647.
- Returns:
- The maximum number of days since Amazon Inspector reported a fix as available for a
highseverity finding on the AMI. For example, a value of7does not allow an AMI if Amazon Inspector reported such a fix more than 7 days ago.A scanned AMI that has no
highseverity finding with a fix available meets this limit. AMIs that Amazon Inspector has not scanned are not allowed.Constraints: Minimum value of 0. Maximum value of 2147483647.
-
maxDaysSinceCriticalFixAvailable
The maximum number of days since Amazon Inspector reported a fix as available for a
criticalseverity finding on the AMI. For example, a value of7does not allow an AMI if Amazon Inspector reported such a fix more than 7 days ago.A scanned AMI that has no
criticalseverity finding with a fix available meets this limit. AMIs that Amazon Inspector has not scanned are not allowed.Constraints: Minimum value of 0. Maximum value of 2147483647.
- Returns:
- The maximum number of days since Amazon Inspector reported a fix as available for a
criticalseverity finding on the AMI. For example, a value of7does not allow an AMI if Amazon Inspector reported such a fix more than 7 days ago.A scanned AMI that has no
criticalseverity finding with a fix available meets this limit. AMIs that Amazon Inspector has not scanned are not allowed.Constraints: Minimum value of 0. Maximum value of 2147483647.
-
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<ScanResultCondition.Builder,ScanResultCondition> - 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.
-