#[non_exhaustive]pub struct AwsScanOptionsUpdateAttributes {
pub lambda: Option<bool>,
pub sensitive_data: Option<bool>,
pub vuln_containers_os: Option<bool>,
pub vuln_host_os: Option<bool>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Attributes for the AWS scan options to update.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.lambda: Option<bool>
Indicates if scanning of Lambda functions is enabled.
sensitive_data: Option<bool>
Indicates if scanning for sensitive data is enabled.
vuln_containers_os: Option<bool>
Indicates if scanning for vulnerabilities in containers is enabled.
vuln_host_os: Option<bool>
Indicates if scanning for vulnerabilities in hosts is enabled.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl AwsScanOptionsUpdateAttributes
impl AwsScanOptionsUpdateAttributes
Sourcepub fn new() -> AwsScanOptionsUpdateAttributes
pub fn new() -> AwsScanOptionsUpdateAttributes
Examples found in repository?
examples/v2_agentless-scanning_UpdateAwsScanOptions.rs (line 12)
10async fn main() {
11 let body = AwsScanOptionsUpdateRequest::new(AwsScanOptionsUpdateData::new(
12 AwsScanOptionsUpdateAttributes::new()
13 .lambda(false)
14 .vuln_containers_os(true)
15 .vuln_host_os(true),
16 "000000000002".to_string(),
17 AwsScanOptionsType::AWS_SCAN_OPTIONS,
18 ));
19 let configuration = datadog::Configuration::new();
20 let api = AgentlessScanningAPI::with_config(configuration);
21 let resp = api
22 .update_aws_scan_options("000000000002".to_string(), body)
23 .await;
24 if let Ok(value) = resp {
25 println!("{:#?}", value);
26 } else {
27 println!("{:#?}", resp.unwrap_err());
28 }
29}
Sourcepub fn lambda(self, value: bool) -> Self
pub fn lambda(self, value: bool) -> Self
Examples found in repository?
examples/v2_agentless-scanning_UpdateAwsScanOptions.rs (line 13)
10async fn main() {
11 let body = AwsScanOptionsUpdateRequest::new(AwsScanOptionsUpdateData::new(
12 AwsScanOptionsUpdateAttributes::new()
13 .lambda(false)
14 .vuln_containers_os(true)
15 .vuln_host_os(true),
16 "000000000002".to_string(),
17 AwsScanOptionsType::AWS_SCAN_OPTIONS,
18 ));
19 let configuration = datadog::Configuration::new();
20 let api = AgentlessScanningAPI::with_config(configuration);
21 let resp = api
22 .update_aws_scan_options("000000000002".to_string(), body)
23 .await;
24 if let Ok(value) = resp {
25 println!("{:#?}", value);
26 } else {
27 println!("{:#?}", resp.unwrap_err());
28 }
29}
pub fn sensitive_data(self, value: bool) -> Self
Sourcepub fn vuln_containers_os(self, value: bool) -> Self
pub fn vuln_containers_os(self, value: bool) -> Self
Examples found in repository?
examples/v2_agentless-scanning_UpdateAwsScanOptions.rs (line 14)
10async fn main() {
11 let body = AwsScanOptionsUpdateRequest::new(AwsScanOptionsUpdateData::new(
12 AwsScanOptionsUpdateAttributes::new()
13 .lambda(false)
14 .vuln_containers_os(true)
15 .vuln_host_os(true),
16 "000000000002".to_string(),
17 AwsScanOptionsType::AWS_SCAN_OPTIONS,
18 ));
19 let configuration = datadog::Configuration::new();
20 let api = AgentlessScanningAPI::with_config(configuration);
21 let resp = api
22 .update_aws_scan_options("000000000002".to_string(), body)
23 .await;
24 if let Ok(value) = resp {
25 println!("{:#?}", value);
26 } else {
27 println!("{:#?}", resp.unwrap_err());
28 }
29}
Sourcepub fn vuln_host_os(self, value: bool) -> Self
pub fn vuln_host_os(self, value: bool) -> Self
Examples found in repository?
examples/v2_agentless-scanning_UpdateAwsScanOptions.rs (line 15)
10async fn main() {
11 let body = AwsScanOptionsUpdateRequest::new(AwsScanOptionsUpdateData::new(
12 AwsScanOptionsUpdateAttributes::new()
13 .lambda(false)
14 .vuln_containers_os(true)
15 .vuln_host_os(true),
16 "000000000002".to_string(),
17 AwsScanOptionsType::AWS_SCAN_OPTIONS,
18 ));
19 let configuration = datadog::Configuration::new();
20 let api = AgentlessScanningAPI::with_config(configuration);
21 let resp = api
22 .update_aws_scan_options("000000000002".to_string(), body)
23 .await;
24 if let Ok(value) = resp {
25 println!("{:#?}", value);
26 } else {
27 println!("{:#?}", resp.unwrap_err());
28 }
29}
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for AwsScanOptionsUpdateAttributes
impl Clone for AwsScanOptionsUpdateAttributes
Source§fn clone(&self) -> AwsScanOptionsUpdateAttributes
fn clone(&self) -> AwsScanOptionsUpdateAttributes
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de> Deserialize<'de> for AwsScanOptionsUpdateAttributes
impl<'de> Deserialize<'de> for AwsScanOptionsUpdateAttributes
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AwsScanOptionsUpdateAttributes
impl PartialEq for AwsScanOptionsUpdateAttributes
Source§fn eq(&self, other: &AwsScanOptionsUpdateAttributes) -> bool
fn eq(&self, other: &AwsScanOptionsUpdateAttributes) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for AwsScanOptionsUpdateAttributes
Auto Trait Implementations§
impl Freeze for AwsScanOptionsUpdateAttributes
impl RefUnwindSafe for AwsScanOptionsUpdateAttributes
impl Send for AwsScanOptionsUpdateAttributes
impl Sync for AwsScanOptionsUpdateAttributes
impl Unpin for AwsScanOptionsUpdateAttributes
impl UnwindSafe for AwsScanOptionsUpdateAttributes
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
Mutably borrows from an owned value. Read more