Class ScanStatus
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<ScanStatus.Builder,
ScanStatus>
The status of the scan.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ScanStatus.Builder
builder()
final boolean
final boolean
equalsBySdkFields
(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 int
hashCode()
final ScanStatusReason
reason()
The scan status.final String
The scan status.static Class
<? extends ScanStatus.Builder> final ScanStatusCode
The status code of the scan.final String
The status code of the scan.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
reason
The scan status. Possible return values and descriptions are:
ACCESS_DENIED
- Resource access policy restricting Amazon Inspector access. Please update the IAM policy.ACCESS_DENIED_TO_ENCRYPTION_KEY
- The KMS key policy doesn't allow Amazon Inspector access. Update the key policy.DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED
- Amazon Inspector failed to extract the package inventory because the package collection time exceeding the maximum threshold of 15 minutes.DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED
- The SSM agent couldn't send inventory to Amazon Inspector because the SSM quota for Inventory data collected per instance per day has already been reached for this instance.DEEP_INSPECTION_NO_INVENTORY
- The Amazon Inspector plugin hasn't yet been able to collect an inventory of packages for this instance. This is usually the result of a pending scan, however, if this status persists after 6 hours, use SSM to ensure that the required Amazon Inspector associations exist and are running for the instance.DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED
- The instance has exceeded the 5000 package limit for Amazon Inspector Deep inspection. To resume Deep inspection for this instance you can try to adjust the custom paths associated with the account.EC2_INSTANCE_STOPPED
- This EC2 instance is in a stopped state, therefore, Amazon Inspector will pause scanning. The existing findings will continue to exist until the instance is terminated. Once the instance is re-started, Inspector will automatically start scanning the instance again. Please note that you will not be charged for this instance while it's in a stopped state.EXCLUDED_BY_TAG
- This resource was not scanned because it has been excluded by a tag.IMAGE_SIZE_EXCEEDED
- Reserved for future use.INTEGRATION_CONNNECTION_LOST
- Amazon Inspector couldn't communicate with the source code management platform.INTERNAL_ERROR
- Amazon Inspector has encountered an internal error for this resource. Amazon Inspector service will automatically resolve the issue and resume the scanning. No action required from the user.NO INVENTORY
- Amazon Inspector couldn't find software application inventory to scan for vulnerabilities. This might be caused due to required Amazon Inspector associations being deleted or failing to run on your resource. Please verify the status ofInspectorInventoryCollection-do-not-delete
association in the SSM console for the resource. Additionally, you can verify the instance's inventory in the SSM Fleet Manager console.NO_RESOURCES_FOUND
- Reserved for future use.NO_SCAN_CONFIGURATION_ASSOCIATED
- The code repository resource doesn't have an associated scan configuration.PENDING_DISABLE
- This resource is pending cleanup during disablement. The customer will not be billed while a resource is in the pending disable status.PENDING_INITIAL_SCAN
- This resource has been identified for scanning, results will be available soon.RESOURCE_TERMINATED
- This resource has been terminated. The findings and coverage associated with this resource are in the process of being cleaned up.SCAN_ELIGIBILITY_EXPIRED
- The configured scan duration has lapsed for this image.SCAN_FREQUENCY_MANUAL
- This image will not be covered by Amazon Inspector due to the repository scan frequency configuration.SCAN_FREQUENCY_SCAN_ON_PUSH
- This image will be scanned one time and will not new findings because of the scan frequency configuration.SCAN_IN_PROGRESS
- The resource is currently being scanned.STALE_INVENTORY
- Amazon Inspector wasn't able to collect an updated software application inventory in the last 7 days. Please confirm the required Amazon Inspector associations still exist and you can still see an updated inventory in the SSM console.SUCCESSFUL
- The scan was successful.UNMANAGED_EC2_INSTANCE
- The EC2 instance is not managed by SSM, please use the following SSM automation to remediate the issue: https://docs.aws.amazon.com/systems-manager-automation-runbooks/latest/userguide/automation-awssupport- troubleshoot-managed-instance.html. Once the instance becomes managed by SSM, Inspector will automatically begin scanning this instance.UNSUPPORTED_CONFIG_FILE
- Reserved for future use.UNSUPPORTED_LANGUAGE
- The scan was unsuccessful because the repository contains files in an unsupported programming language.UNSUPPORTED_MEDIA_TYPE
- The ECR image has an unsupported media type.UNSUPPORTED_OS
- Amazon Inspector does not support this OS, architecture, or image manifest type at this time. To see a complete list of supported operating systems see: https://docs.aws.amazon.com/inspector/latest/user/supported.html.UNSUPPORTED_RUNTIME
- The function was not scanned because it has an unsupported runtime. To see a complete list of supported runtimes see: https://docs.aws.amazon.com/inspector/latest/user/supported.html.If the service returns an enum value that is not available in the current SDK version,
reason
will returnScanStatusReason.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromreasonAsString()
.- Returns:
- The scan status. Possible return values and descriptions are:
ACCESS_DENIED
- Resource access policy restricting Amazon Inspector access. Please update the IAM policy.ACCESS_DENIED_TO_ENCRYPTION_KEY
- The KMS key policy doesn't allow Amazon Inspector access. Update the key policy.DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED
- Amazon Inspector failed to extract the package inventory because the package collection time exceeding the maximum threshold of 15 minutes.DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED
- The SSM agent couldn't send inventory to Amazon Inspector because the SSM quota for Inventory data collected per instance per day has already been reached for this instance.DEEP_INSPECTION_NO_INVENTORY
- The Amazon Inspector plugin hasn't yet been able to collect an inventory of packages for this instance. This is usually the result of a pending scan, however, if this status persists after 6 hours, use SSM to ensure that the required Amazon Inspector associations exist and are running for the instance.DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED
- The instance has exceeded the 5000 package limit for Amazon Inspector Deep inspection. To resume Deep inspection for this instance you can try to adjust the custom paths associated with the account.EC2_INSTANCE_STOPPED
- This EC2 instance is in a stopped state, therefore, Amazon Inspector will pause scanning. The existing findings will continue to exist until the instance is terminated. Once the instance is re-started, Inspector will automatically start scanning the instance again. Please note that you will not be charged for this instance while it's in a stopped state.EXCLUDED_BY_TAG
- This resource was not scanned because it has been excluded by a tag.IMAGE_SIZE_EXCEEDED
- Reserved for future use.INTEGRATION_CONNNECTION_LOST
- Amazon Inspector couldn't communicate with the source code management platform.INTERNAL_ERROR
- Amazon Inspector has encountered an internal error for this resource. Amazon Inspector service will automatically resolve the issue and resume the scanning. No action required from the user.NO INVENTORY
- Amazon Inspector couldn't find software application inventory to scan for vulnerabilities. This might be caused due to required Amazon Inspector associations being deleted or failing to run on your resource. Please verify the status ofInspectorInventoryCollection-do-not-delete
association in the SSM console for the resource. Additionally, you can verify the instance's inventory in the SSM Fleet Manager console.NO_RESOURCES_FOUND
- Reserved for future use.NO_SCAN_CONFIGURATION_ASSOCIATED
- The code repository resource doesn't have an associated scan configuration.PENDING_DISABLE
- This resource is pending cleanup during disablement. The customer will not be billed while a resource is in the pending disable status.PENDING_INITIAL_SCAN
- This resource has been identified for scanning, results will be available soon.RESOURCE_TERMINATED
- This resource has been terminated. The findings and coverage associated with this resource are in the process of being cleaned up.SCAN_ELIGIBILITY_EXPIRED
- The configured scan duration has lapsed for this image.SCAN_FREQUENCY_MANUAL
- This image will not be covered by Amazon Inspector due to the repository scan frequency configuration.SCAN_FREQUENCY_SCAN_ON_PUSH
- This image will be scanned one time and will not new findings because of the scan frequency configuration.SCAN_IN_PROGRESS
- The resource is currently being scanned.STALE_INVENTORY
- Amazon Inspector wasn't able to collect an updated software application inventory in the last 7 days. Please confirm the required Amazon Inspector associations still exist and you can still see an updated inventory in the SSM console.SUCCESSFUL
- The scan was successful.UNMANAGED_EC2_INSTANCE
- The EC2 instance is not managed by SSM, please use the following SSM automation to remediate the issue: https://docs.aws.amazon.com/systems-manager-automation-runbooks/latest/userguide/automation-awssupport- troubleshoot-managed-instance.html. Once the instance becomes managed by SSM, Inspector will automatically begin scanning this instance.UNSUPPORTED_CONFIG_FILE
- Reserved for future use.UNSUPPORTED_LANGUAGE
- The scan was unsuccessful because the repository contains files in an unsupported programming language.UNSUPPORTED_MEDIA_TYPE
- The ECR image has an unsupported media type.UNSUPPORTED_OS
- Amazon Inspector does not support this OS, architecture, or image manifest type at this time. To see a complete list of supported operating systems see: https://docs.aws.amazon.com/inspector/latest/user/supported.html.UNSUPPORTED_RUNTIME
- The function was not scanned because it has an unsupported runtime. To see a complete list of supported runtimes see: https://docs.aws.amazon.com/inspector/latest/user/supported.html. - See Also:
-
reasonAsString
The scan status. Possible return values and descriptions are:
ACCESS_DENIED
- Resource access policy restricting Amazon Inspector access. Please update the IAM policy.ACCESS_DENIED_TO_ENCRYPTION_KEY
- The KMS key policy doesn't allow Amazon Inspector access. Update the key policy.DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED
- Amazon Inspector failed to extract the package inventory because the package collection time exceeding the maximum threshold of 15 minutes.DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED
- The SSM agent couldn't send inventory to Amazon Inspector because the SSM quota for Inventory data collected per instance per day has already been reached for this instance.DEEP_INSPECTION_NO_INVENTORY
- The Amazon Inspector plugin hasn't yet been able to collect an inventory of packages for this instance. This is usually the result of a pending scan, however, if this status persists after 6 hours, use SSM to ensure that the required Amazon Inspector associations exist and are running for the instance.DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED
- The instance has exceeded the 5000 package limit for Amazon Inspector Deep inspection. To resume Deep inspection for this instance you can try to adjust the custom paths associated with the account.EC2_INSTANCE_STOPPED
- This EC2 instance is in a stopped state, therefore, Amazon Inspector will pause scanning. The existing findings will continue to exist until the instance is terminated. Once the instance is re-started, Inspector will automatically start scanning the instance again. Please note that you will not be charged for this instance while it's in a stopped state.EXCLUDED_BY_TAG
- This resource was not scanned because it has been excluded by a tag.IMAGE_SIZE_EXCEEDED
- Reserved for future use.INTEGRATION_CONNNECTION_LOST
- Amazon Inspector couldn't communicate with the source code management platform.INTERNAL_ERROR
- Amazon Inspector has encountered an internal error for this resource. Amazon Inspector service will automatically resolve the issue and resume the scanning. No action required from the user.NO INVENTORY
- Amazon Inspector couldn't find software application inventory to scan for vulnerabilities. This might be caused due to required Amazon Inspector associations being deleted or failing to run on your resource. Please verify the status ofInspectorInventoryCollection-do-not-delete
association in the SSM console for the resource. Additionally, you can verify the instance's inventory in the SSM Fleet Manager console.NO_RESOURCES_FOUND
- Reserved for future use.NO_SCAN_CONFIGURATION_ASSOCIATED
- The code repository resource doesn't have an associated scan configuration.PENDING_DISABLE
- This resource is pending cleanup during disablement. The customer will not be billed while a resource is in the pending disable status.PENDING_INITIAL_SCAN
- This resource has been identified for scanning, results will be available soon.RESOURCE_TERMINATED
- This resource has been terminated. The findings and coverage associated with this resource are in the process of being cleaned up.SCAN_ELIGIBILITY_EXPIRED
- The configured scan duration has lapsed for this image.SCAN_FREQUENCY_MANUAL
- This image will not be covered by Amazon Inspector due to the repository scan frequency configuration.SCAN_FREQUENCY_SCAN_ON_PUSH
- This image will be scanned one time and will not new findings because of the scan frequency configuration.SCAN_IN_PROGRESS
- The resource is currently being scanned.STALE_INVENTORY
- Amazon Inspector wasn't able to collect an updated software application inventory in the last 7 days. Please confirm the required Amazon Inspector associations still exist and you can still see an updated inventory in the SSM console.SUCCESSFUL
- The scan was successful.UNMANAGED_EC2_INSTANCE
- The EC2 instance is not managed by SSM, please use the following SSM automation to remediate the issue: https://docs.aws.amazon.com/systems-manager-automation-runbooks/latest/userguide/automation-awssupport- troubleshoot-managed-instance.html. Once the instance becomes managed by SSM, Inspector will automatically begin scanning this instance.UNSUPPORTED_CONFIG_FILE
- Reserved for future use.UNSUPPORTED_LANGUAGE
- The scan was unsuccessful because the repository contains files in an unsupported programming language.UNSUPPORTED_MEDIA_TYPE
- The ECR image has an unsupported media type.UNSUPPORTED_OS
- Amazon Inspector does not support this OS, architecture, or image manifest type at this time. To see a complete list of supported operating systems see: https://docs.aws.amazon.com/inspector/latest/user/supported.html.UNSUPPORTED_RUNTIME
- The function was not scanned because it has an unsupported runtime. To see a complete list of supported runtimes see: https://docs.aws.amazon.com/inspector/latest/user/supported.html.If the service returns an enum value that is not available in the current SDK version,
reason
will returnScanStatusReason.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromreasonAsString()
.- Returns:
- The scan status. Possible return values and descriptions are:
ACCESS_DENIED
- Resource access policy restricting Amazon Inspector access. Please update the IAM policy.ACCESS_DENIED_TO_ENCRYPTION_KEY
- The KMS key policy doesn't allow Amazon Inspector access. Update the key policy.DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED
- Amazon Inspector failed to extract the package inventory because the package collection time exceeding the maximum threshold of 15 minutes.DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED
- The SSM agent couldn't send inventory to Amazon Inspector because the SSM quota for Inventory data collected per instance per day has already been reached for this instance.DEEP_INSPECTION_NO_INVENTORY
- The Amazon Inspector plugin hasn't yet been able to collect an inventory of packages for this instance. This is usually the result of a pending scan, however, if this status persists after 6 hours, use SSM to ensure that the required Amazon Inspector associations exist and are running for the instance.DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED
- The instance has exceeded the 5000 package limit for Amazon Inspector Deep inspection. To resume Deep inspection for this instance you can try to adjust the custom paths associated with the account.EC2_INSTANCE_STOPPED
- This EC2 instance is in a stopped state, therefore, Amazon Inspector will pause scanning. The existing findings will continue to exist until the instance is terminated. Once the instance is re-started, Inspector will automatically start scanning the instance again. Please note that you will not be charged for this instance while it's in a stopped state.EXCLUDED_BY_TAG
- This resource was not scanned because it has been excluded by a tag.IMAGE_SIZE_EXCEEDED
- Reserved for future use.INTEGRATION_CONNNECTION_LOST
- Amazon Inspector couldn't communicate with the source code management platform.INTERNAL_ERROR
- Amazon Inspector has encountered an internal error for this resource. Amazon Inspector service will automatically resolve the issue and resume the scanning. No action required from the user.NO INVENTORY
- Amazon Inspector couldn't find software application inventory to scan for vulnerabilities. This might be caused due to required Amazon Inspector associations being deleted or failing to run on your resource. Please verify the status ofInspectorInventoryCollection-do-not-delete
association in the SSM console for the resource. Additionally, you can verify the instance's inventory in the SSM Fleet Manager console.NO_RESOURCES_FOUND
- Reserved for future use.NO_SCAN_CONFIGURATION_ASSOCIATED
- The code repository resource doesn't have an associated scan configuration.PENDING_DISABLE
- This resource is pending cleanup during disablement. The customer will not be billed while a resource is in the pending disable status.PENDING_INITIAL_SCAN
- This resource has been identified for scanning, results will be available soon.RESOURCE_TERMINATED
- This resource has been terminated. The findings and coverage associated with this resource are in the process of being cleaned up.SCAN_ELIGIBILITY_EXPIRED
- The configured scan duration has lapsed for this image.SCAN_FREQUENCY_MANUAL
- This image will not be covered by Amazon Inspector due to the repository scan frequency configuration.SCAN_FREQUENCY_SCAN_ON_PUSH
- This image will be scanned one time and will not new findings because of the scan frequency configuration.SCAN_IN_PROGRESS
- The resource is currently being scanned.STALE_INVENTORY
- Amazon Inspector wasn't able to collect an updated software application inventory in the last 7 days. Please confirm the required Amazon Inspector associations still exist and you can still see an updated inventory in the SSM console.SUCCESSFUL
- The scan was successful.UNMANAGED_EC2_INSTANCE
- The EC2 instance is not managed by SSM, please use the following SSM automation to remediate the issue: https://docs.aws.amazon.com/systems-manager-automation-runbooks/latest/userguide/automation-awssupport- troubleshoot-managed-instance.html. Once the instance becomes managed by SSM, Inspector will automatically begin scanning this instance.UNSUPPORTED_CONFIG_FILE
- Reserved for future use.UNSUPPORTED_LANGUAGE
- The scan was unsuccessful because the repository contains files in an unsupported programming language.UNSUPPORTED_MEDIA_TYPE
- The ECR image has an unsupported media type.UNSUPPORTED_OS
- Amazon Inspector does not support this OS, architecture, or image manifest type at this time. To see a complete list of supported operating systems see: https://docs.aws.amazon.com/inspector/latest/user/supported.html.UNSUPPORTED_RUNTIME
- The function was not scanned because it has an unsupported runtime. To see a complete list of supported runtimes see: https://docs.aws.amazon.com/inspector/latest/user/supported.html. - See Also:
-
statusCode
The status code of the scan.
If the service returns an enum value that is not available in the current SDK version,
statusCode()
will returnScanStatusCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusCodeAsString()
.- Returns:
- The status code of the scan.
- See Also:
-
statusCodeAsString
The status code of the scan.
If the service returns an enum value that is not available in the current SDK version,
statusCode()
will returnScanStatusCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusCodeAsString()
.- Returns:
- The status code of the scan.
- See Also:
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<ScanStatus.Builder,
ScanStatus> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in 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:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-