#[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) -> &[String]
pub fn cwes(&self) -> &[String]
The Common Weakness Enumeration (CWE) item associated with the detected code vulnerability.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .cwes.is_none().
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 ==.impl StructuralPartialEq for VulnerabilityCodeVulnerabilities
Auto Trait Implementations§
impl Freeze for VulnerabilityCodeVulnerabilities
impl RefUnwindSafe for VulnerabilityCodeVulnerabilities
impl Send for VulnerabilityCodeVulnerabilities
impl Sync for VulnerabilityCodeVulnerabilities
impl Unpin for VulnerabilityCodeVulnerabilities
impl UnwindSafe for VulnerabilityCodeVulnerabilities
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more