aws_sdk_guardduty/client/get_malware_protection_plan.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`GetMalwareProtectionPlan`](crate::operation::get_malware_protection_plan::builders::GetMalwareProtectionPlanFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`malware_protection_plan_id(impl Into<String>)`](crate::operation::get_malware_protection_plan::builders::GetMalwareProtectionPlanFluentBuilder::malware_protection_plan_id) / [`set_malware_protection_plan_id(Option<String>)`](crate::operation::get_malware_protection_plan::builders::GetMalwareProtectionPlanFluentBuilder::set_malware_protection_plan_id):<br>required: **true**<br><p>A unique identifier associated with Malware Protection plan resource.</p><br>
7 /// - On success, responds with [`GetMalwareProtectionPlanOutput`](crate::operation::get_malware_protection_plan::GetMalwareProtectionPlanOutput) with field(s):
8 /// - [`arn(Option<String>)`](crate::operation::get_malware_protection_plan::GetMalwareProtectionPlanOutput::arn): <p>Amazon Resource Name (ARN) of the protected resource.</p>
9 /// - [`role(Option<String>)`](crate::operation::get_malware_protection_plan::GetMalwareProtectionPlanOutput::role): <p>Amazon Resource Name (ARN) of the IAM role that includes the permissions to scan and add tags to the associated protected resource.</p>
10 /// - [`protected_resource(Option<CreateProtectedResource>)`](crate::operation::get_malware_protection_plan::GetMalwareProtectionPlanOutput::protected_resource): <p>Information about the protected resource that is associated with the created Malware Protection plan. Presently, <code>S3Bucket</code> is the only supported protected resource.</p>
11 /// - [`actions(Option<MalwareProtectionPlanActions>)`](crate::operation::get_malware_protection_plan::GetMalwareProtectionPlanOutput::actions): <p>Information about whether the tags will be added to the S3 object after scanning.</p>
12 /// - [`created_at(Option<DateTime>)`](crate::operation::get_malware_protection_plan::GetMalwareProtectionPlanOutput::created_at): <p>The timestamp when the Malware Protection plan resource was created.</p>
13 /// - [`status(Option<MalwareProtectionPlanStatus>)`](crate::operation::get_malware_protection_plan::GetMalwareProtectionPlanOutput::status): <p>Malware Protection plan status.</p>
14 /// - [`status_reasons(Option<Vec::<MalwareProtectionPlanStatusReason>>)`](crate::operation::get_malware_protection_plan::GetMalwareProtectionPlanOutput::status_reasons): <p>Information about the issue code and message associated to the status of your Malware Protection plan.</p>
15 /// - [`tags(Option<HashMap::<String, String>>)`](crate::operation::get_malware_protection_plan::GetMalwareProtectionPlanOutput::tags): <p>Tags added to the Malware Protection plan resource.</p>
16 /// - On failure, responds with [`SdkError<GetMalwareProtectionPlanError>`](crate::operation::get_malware_protection_plan::GetMalwareProtectionPlanError)
17 pub fn get_malware_protection_plan(&self) -> crate::operation::get_malware_protection_plan::builders::GetMalwareProtectionPlanFluentBuilder {
18 crate::operation::get_malware_protection_plan::builders::GetMalwareProtectionPlanFluentBuilder::new(self.handle.clone())
19 }
20}