CodeSnippetError - Inspector

CodeSnippetError

Contains information about any errors encountered while trying to retrieve a code snippet.

Contents

errorCode

The error code for the error that prevented a code snippet from being retrieved.

Type: String

Valid Values: INTERNAL_ERROR | ACCESS_DENIED | CODE_SNIPPET_NOT_FOUND | INVALID_INPUT

Required: Yes

errorMessage

The error message received when Amazon Inspector failed to retrieve a code snippet.

Type: String

Length Constraints: Minimum length of 1.

Required: Yes

findingArn

The ARN of the finding that a code snippet couldn't be retrieved for.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 100.

Pattern: ^arn:(aws[a-zA-Z-]*)?:inspector2:[a-z]{2}(-gov)?-[a-z]+-\d{1}:\d{12}:finding/[a-f0-9]{32}$

Required: Yes

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: