Skip to main content

aws_sdk_securityagent/client/
batch_delete_pentests.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 [`BatchDeletePentests`](crate::operation::batch_delete_pentests::builders::BatchDeletePentestsFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`pentest_ids(impl Into<String>)`](crate::operation::batch_delete_pentests::builders::BatchDeletePentestsFluentBuilder::pentest_ids) / [`set_pentest_ids(Option<Vec::<String>>)`](crate::operation::batch_delete_pentests::builders::BatchDeletePentestsFluentBuilder::set_pentest_ids):<br>required: **true**<br>List of pentest IDs to delete<br>
7    ///   - [`agent_space_id(impl Into<String>)`](crate::operation::batch_delete_pentests::builders::BatchDeletePentestsFluentBuilder::agent_space_id) / [`set_agent_space_id(Option<String>)`](crate::operation::batch_delete_pentests::builders::BatchDeletePentestsFluentBuilder::set_agent_space_id):<br>required: **true**<br>ID of the agent space where the pentests exist<br>
8    /// - On success, responds with [`BatchDeletePentestsOutput`](crate::operation::batch_delete_pentests::BatchDeletePentestsOutput) with field(s):
9    ///   - [`deleted(Option<Vec::<Pentest>>)`](crate::operation::batch_delete_pentests::BatchDeletePentestsOutput::deleted): List of successfully deleted pentests
10    ///   - [`failed(Option<Vec::<DeletePentestFailure>>)`](crate::operation::batch_delete_pentests::BatchDeletePentestsOutput::failed): List of pentests that could not be deleted and the reasons for failure
11    /// - On failure, responds with [`SdkError<BatchDeletePentestsError>`](crate::operation::batch_delete_pentests::BatchDeletePentestsError)
12    pub fn batch_delete_pentests(&self) -> crate::operation::batch_delete_pentests::builders::BatchDeletePentestsFluentBuilder {
13        crate::operation::batch_delete_pentests::builders::BatchDeletePentestsFluentBuilder::new(self.handle.clone())
14    }
15}