#[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 an input resource used to create a scan.
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. If not specified, it will be auto generated.
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 an input resource used to create a scan.
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. If not specified, it will be auto generated.
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<CreateScanInput> for CreateScanInput
impl PartialEq<CreateScanInput> for CreateScanInput
source§fn eq(&self, other: &CreateScanInput) -> bool
fn eq(&self, other: &CreateScanInput) -> bool
self
and other
values to be equal, and is used
by ==
.