Skip to main content

aws_sdk_securityagent/client/
batch_get_pentest_jobs.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 [`BatchGetPentestJobs`](crate::operation::batch_get_pentest_jobs::builders::BatchGetPentestJobsFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`pentest_job_ids(impl Into<String>)`](crate::operation::batch_get_pentest_jobs::builders::BatchGetPentestJobsFluentBuilder::pentest_job_ids) / [`set_pentest_job_ids(Option<Vec::<String>>)`](crate::operation::batch_get_pentest_jobs::builders::BatchGetPentestJobsFluentBuilder::set_pentest_job_ids):<br>required: **true**<br>List of pentest job IDs to retrieve<br>
7    ///   - [`agent_space_id(impl Into<String>)`](crate::operation::batch_get_pentest_jobs::builders::BatchGetPentestJobsFluentBuilder::agent_space_id) / [`set_agent_space_id(Option<String>)`](crate::operation::batch_get_pentest_jobs::builders::BatchGetPentestJobsFluentBuilder::set_agent_space_id):<br>required: **true**<br>ID of the agent space where the pentest exists<br>
8    /// - On success, responds with [`BatchGetPentestJobsOutput`](crate::operation::batch_get_pentest_jobs::BatchGetPentestJobsOutput) with field(s):
9    ///   - [`pentest_jobs(Option<Vec::<PentestJob>>)`](crate::operation::batch_get_pentest_jobs::BatchGetPentestJobsOutput::pentest_jobs): List of successfully retrieved pentest jobs
10    ///   - [`not_found(Option<Vec::<String>>)`](crate::operation::batch_get_pentest_jobs::BatchGetPentestJobsOutput::not_found): List of pentest job IDs that could not be found
11    /// - On failure, responds with [`SdkError<BatchGetPentestJobsError>`](crate::operation::batch_get_pentest_jobs::BatchGetPentestJobsError)
12    pub fn batch_get_pentest_jobs(&self) -> crate::operation::batch_get_pentest_jobs::builders::BatchGetPentestJobsFluentBuilder {
13        crate::operation::batch_get_pentest_jobs::builders::BatchGetPentestJobsFluentBuilder::new(self.handle.clone())
14    }
15}