

# CodeVulnerabilityDetails
<a name="API_CodeVulnerabilityDetails"></a>

Contains information on the code vulnerability identified in your Lambda function.

## Contents
<a name="API_CodeVulnerabilityDetails_Contents"></a>

 ** cwes **   <a name="inspector2-Type-CodeVulnerabilityDetails-cwes"></a>
The Common Weakness Enumeration (CWE) item associated with the detected vulnerability.  
Type: Array of strings  
Array Members: Minimum number of 1 item. Maximum number of 10 items.  
Length Constraints: Minimum length of 1.  
Required: Yes

 ** detectorId **   <a name="inspector2-Type-CodeVulnerabilityDetails-detectorId"></a>
The ID for the Amazon CodeGuru detector associated with the finding. For more information on detectors see [Amazon CodeGuru Detector Library](https://docs.aws.amazon.com/codeguru/detector-library).  
Type: String  
Length Constraints: Minimum length of 1.  
Required: Yes

 ** detectorName **   <a name="inspector2-Type-CodeVulnerabilityDetails-detectorName"></a>
The name of the detector used to identify the code vulnerability. For more information on detectors see [CodeGuru Detector Library](https://docs.aws.amazon.com/codeguru/detector-library).  
Type: String  
Length Constraints: Minimum length of 1.  
Required: Yes

 ** filePath **   <a name="inspector2-Type-CodeVulnerabilityDetails-filePath"></a>
Contains information on where the code vulnerability is located in your code.  
Type: [CodeFilePath](API_CodeFilePath.md) object  
Required: Yes

 ** detectorTags **   <a name="inspector2-Type-CodeVulnerabilityDetails-detectorTags"></a>
The detector tag associated with the vulnerability. Detector tags group related vulnerabilities by common themes or tactics. For a list of available tags by programming language, see [Java tags](https://docs.aws.amazon.com/codeguru/detector-library/java/tags/), or [Python tags](https://docs.aws.amazon.com/codeguru/detector-library/python/tags/).   
Type: Array of strings  
Array Members: Minimum number of 1 item. Maximum number of 10 items.  
Length Constraints: Minimum length of 1.  
Required: No

 ** referenceUrls **   <a name="inspector2-Type-CodeVulnerabilityDetails-referenceUrls"></a>
A URL containing supporting documentation about the code vulnerability detected.  
Type: Array of strings  
Array Members: Minimum number of 1 item. Maximum number of 10 items.  
Length Constraints: Minimum length of 1.  
Required: No

 ** ruleId **   <a name="inspector2-Type-CodeVulnerabilityDetails-ruleId"></a>
The identifier for a rule that was used to detect the code vulnerability.  
Type: String  
Length Constraints: Minimum length of 1.  
Required: No

 ** sourceLambdaLayerArn **   <a name="inspector2-Type-CodeVulnerabilityDetails-sourceLambdaLayerArn"></a>
The Amazon Resource Name (ARN) of the Lambda layer that the code vulnerability was detected in.  
Type: String  
Pattern: `arn:[a-zA-Z0-9-]+:lambda:[a-zA-Z0-9-]+:\d{12}:layer:[a-zA-Z0-9-_]+:[0-9]+`   
Required: No

## See Also
<a name="API_CodeVulnerabilityDetails_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/inspector2-2020-06-08/CodeVulnerabilityDetails) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/inspector2-2020-06-08/CodeVulnerabilityDetails) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/inspector2-2020-06-08/CodeVulnerabilityDetails) 