#[non_exhaustive]pub struct CreateScanInput {
pub client_token: Option<String>,
pub resource_id: Option<ResourceId>,
pub scan_name: Option<String>,
pub scan_type: Option<ScanType>,
pub analysis_type: Option<AnalysisType>,
pub tags: Option<HashMap<String, String>>,
}
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.client_token: Option<String>
The idempotency token for the request. Amazon CodeGuru Security uses this value to prevent the accidental creation of duplicate scans if there are failures and retries.
resource_id: Option<ResourceId>
The identifier for the resource object to be scanned.
scan_name: Option<String>
The unique name that CodeGuru Security uses to track revisions across multiple scans of the same resource. Only allowed for a STANDARD
scan type.
scan_type: Option<ScanType>
The type of scan, either Standard
or Express
. Defaults to Standard
type if missing.
Express
scans run on limited resources and use a limited set of detectors to analyze your code in near-real time. Standard
scans have standard resource limits and use the full set of detectors to analyze your code.
analysis_type: Option<AnalysisType>
The type of analysis you want CodeGuru Security to perform in the scan, either Security
or All
. The Security
type only generates findings related to security. The All
type generates both security findings and quality findings. Defaults to Security
type if missing.
An array of key-value pairs used to tag a scan. A tag is a custom attribute label with two parts:
-
A tag key. For example,
CostCenter
,Environment
, orSecret
. Tag keys are case sensitive. -
An optional tag value field. For example,
111122223333
,Production
, or a team name. Omitting the tag value is the same as using an empty string. Tag values are case sensitive.
Implementations§
source§impl CreateScanInput
impl CreateScanInput
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
The idempotency token for the request. Amazon CodeGuru Security uses this value to prevent the accidental creation of duplicate scans if there are failures and retries.
sourcepub fn resource_id(&self) -> Option<&ResourceId>
pub fn resource_id(&self) -> Option<&ResourceId>
The identifier for the resource object to be scanned.
sourcepub fn scan_name(&self) -> Option<&str>
pub fn scan_name(&self) -> Option<&str>
The unique name that CodeGuru Security uses to track revisions across multiple scans of the same resource. Only allowed for a STANDARD
scan type.
sourcepub fn scan_type(&self) -> Option<&ScanType>
pub fn scan_type(&self) -> Option<&ScanType>
The type of scan, either Standard
or Express
. Defaults to Standard
type if missing.
Express
scans run on limited resources and use a limited set of detectors to analyze your code in near-real time. Standard
scans have standard resource limits and use the full set of detectors to analyze your code.
sourcepub fn analysis_type(&self) -> Option<&AnalysisType>
pub fn analysis_type(&self) -> Option<&AnalysisType>
The type of analysis you want CodeGuru Security to perform in the scan, either Security
or All
. The Security
type only generates findings related to security. The All
type generates both security findings and quality findings. Defaults to Security
type if missing.
An array of key-value pairs used to tag a scan. A tag is a custom attribute label with two parts:
-
A tag key. For example,
CostCenter
,Environment
, orSecret
. Tag keys are case sensitive. -
An optional tag value field. For example,
111122223333
,Production
, or a team name. Omitting the tag value is the same as using an empty string. Tag values are case sensitive.
source§impl CreateScanInput
impl CreateScanInput
sourcepub fn builder() -> CreateScanInputBuilder
pub fn builder() -> CreateScanInputBuilder
Creates a new builder-style object to manufacture CreateScanInput
.
Trait Implementations§
source§impl Clone for CreateScanInput
impl Clone for CreateScanInput
source§fn clone(&self) -> CreateScanInput
fn clone(&self) -> CreateScanInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateScanInput
impl Debug for CreateScanInput
source§impl PartialEq for CreateScanInput
impl PartialEq for CreateScanInput
impl StructuralPartialEq for CreateScanInput
Auto Trait Implementations§
impl Freeze for CreateScanInput
impl RefUnwindSafe for CreateScanInput
impl Send for CreateScanInput
impl Sync for CreateScanInput
impl Unpin for CreateScanInput
impl UnwindSafe for CreateScanInput
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