#[non_exhaustive]pub struct AwsOnDemandCreateAttributes {
pub arn: String,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Attributes for the AWS on demand task.
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.arn: String
The arn of the resource to scan. Agentless supports the scan of EC2 instances, lambda functions, AMI, ECR, RDS and S3 buckets.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl AwsOnDemandCreateAttributes
impl AwsOnDemandCreateAttributes
Sourcepub fn new(arn: String) -> AwsOnDemandCreateAttributes
pub fn new(arn: String) -> AwsOnDemandCreateAttributes
Examples found in repository?
examples/v2_agentless-scanning_CreateAwsOnDemandTask.rs (lines 13-15)
11async fn main() {
12 let body = AwsOnDemandCreateRequest::new(AwsOnDemandCreateData::new(
13 AwsOnDemandCreateAttributes::new(
14 "arn:aws:lambda:us-west-2:123456789012:function:my-function".to_string(),
15 ),
16 AwsOnDemandType::AWS_RESOURCE,
17 ));
18 let configuration = datadog::Configuration::new();
19 let api = AgentlessScanningAPI::with_config(configuration);
20 let resp = api.create_aws_on_demand_task(body).await;
21 if let Ok(value) = resp {
22 println!("{:#?}", value);
23 } else {
24 println!("{:#?}", resp.unwrap_err());
25 }
26}
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for AwsOnDemandCreateAttributes
impl Clone for AwsOnDemandCreateAttributes
Source§fn clone(&self) -> AwsOnDemandCreateAttributes
fn clone(&self) -> AwsOnDemandCreateAttributes
Returns a duplicate 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 Debug for AwsOnDemandCreateAttributes
impl Debug for AwsOnDemandCreateAttributes
Source§impl<'de> Deserialize<'de> for AwsOnDemandCreateAttributes
impl<'de> Deserialize<'de> for AwsOnDemandCreateAttributes
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
impl StructuralPartialEq for AwsOnDemandCreateAttributes
Auto Trait Implementations§
impl Freeze for AwsOnDemandCreateAttributes
impl RefUnwindSafe for AwsOnDemandCreateAttributes
impl Send for AwsOnDemandCreateAttributes
impl Sync for AwsOnDemandCreateAttributes
impl Unpin for AwsOnDemandCreateAttributes
impl UnwindSafe for AwsOnDemandCreateAttributes
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