aws_sdk_guardduty/client/
update_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 [`UpdateMalwareProtectionPlan`](crate::operation::update_malware_protection_plan::builders::UpdateMalwareProtectionPlanFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`malware_protection_plan_id(impl Into<String>)`](crate::operation::update_malware_protection_plan::builders::UpdateMalwareProtectionPlanFluentBuilder::malware_protection_plan_id) / [`set_malware_protection_plan_id(Option<String>)`](crate::operation::update_malware_protection_plan::builders::UpdateMalwareProtectionPlanFluentBuilder::set_malware_protection_plan_id):<br>required: **true**<br><p>A unique identifier associated with the Malware Protection plan.</p><br>
7    ///   - [`role(impl Into<String>)`](crate::operation::update_malware_protection_plan::builders::UpdateMalwareProtectionPlanFluentBuilder::role) / [`set_role(Option<String>)`](crate::operation::update_malware_protection_plan::builders::UpdateMalwareProtectionPlanFluentBuilder::set_role):<br>required: **false**<br><p>Amazon Resource Name (ARN) of the IAM role with permissions to scan and add tags to the associated protected resource.</p><br>
8    ///   - [`actions(MalwareProtectionPlanActions)`](crate::operation::update_malware_protection_plan::builders::UpdateMalwareProtectionPlanFluentBuilder::actions) / [`set_actions(Option<MalwareProtectionPlanActions>)`](crate::operation::update_malware_protection_plan::builders::UpdateMalwareProtectionPlanFluentBuilder::set_actions):<br>required: **false**<br><p>Information about whether the tags will be added to the S3 object after scanning.</p><br>
9    ///   - [`protected_resource(UpdateProtectedResource)`](crate::operation::update_malware_protection_plan::builders::UpdateMalwareProtectionPlanFluentBuilder::protected_resource) / [`set_protected_resource(Option<UpdateProtectedResource>)`](crate::operation::update_malware_protection_plan::builders::UpdateMalwareProtectionPlanFluentBuilder::set_protected_resource):<br>required: **false**<br><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><br>
10    /// - On success, responds with [`UpdateMalwareProtectionPlanOutput`](crate::operation::update_malware_protection_plan::UpdateMalwareProtectionPlanOutput)
11    /// - On failure, responds with [`SdkError<UpdateMalwareProtectionPlanError>`](crate::operation::update_malware_protection_plan::UpdateMalwareProtectionPlanError)
12    pub fn update_malware_protection_plan(
13        &self,
14    ) -> crate::operation::update_malware_protection_plan::builders::UpdateMalwareProtectionPlanFluentBuilder {
15        crate::operation::update_malware_protection_plan::builders::UpdateMalwareProtectionPlanFluentBuilder::new(self.handle.clone())
16    }
17}