#[non_exhaustive]pub struct VulnerabilityCodeVulnerabilities {
pub cwes: Option<Vec<String>>,
pub file_path: Option<CodeVulnerabilitiesFilePath>,
pub source_arn: Option<String>,
}
Expand description
Provides details about the vulnerabilities found in your Lambda function code. This field pertains to findings that Security Hub receives from Amazon Inspector.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.cwes: Option<Vec<String>>
The Common Weakness Enumeration (CWE) item associated with the detected code vulnerability.
file_path: Option<CodeVulnerabilitiesFilePath>
Provides details about where a code vulnerability is located in your Lambda function.
source_arn: Option<String>
The Amazon Resource Name (ARN) of the Lambda layer in which the code vulnerability is located.
Implementations§
source§impl VulnerabilityCodeVulnerabilities
impl VulnerabilityCodeVulnerabilities
sourcepub fn cwes(&self) -> Option<&[String]>
pub fn cwes(&self) -> Option<&[String]>
The Common Weakness Enumeration (CWE) item associated with the detected code vulnerability.
sourcepub fn file_path(&self) -> Option<&CodeVulnerabilitiesFilePath>
pub fn file_path(&self) -> Option<&CodeVulnerabilitiesFilePath>
Provides details about where a code vulnerability is located in your Lambda function.
sourcepub fn source_arn(&self) -> Option<&str>
pub fn source_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the Lambda layer in which the code vulnerability is located.
source§impl VulnerabilityCodeVulnerabilities
impl VulnerabilityCodeVulnerabilities
sourcepub fn builder() -> VulnerabilityCodeVulnerabilitiesBuilder
pub fn builder() -> VulnerabilityCodeVulnerabilitiesBuilder
Creates a new builder-style object to manufacture VulnerabilityCodeVulnerabilities
.
Trait Implementations§
source§impl Clone for VulnerabilityCodeVulnerabilities
impl Clone for VulnerabilityCodeVulnerabilities
source§fn clone(&self) -> VulnerabilityCodeVulnerabilities
fn clone(&self) -> VulnerabilityCodeVulnerabilities
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for VulnerabilityCodeVulnerabilities
impl PartialEq for VulnerabilityCodeVulnerabilities
source§fn eq(&self, other: &VulnerabilityCodeVulnerabilities) -> bool
fn eq(&self, other: &VulnerabilityCodeVulnerabilities) -> bool
self
and other
values to be equal, and is used
by ==
.