Skip to main content

aws_sdk_securityagent/client/
stop_pentest_job.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 [`StopPentestJob`](crate::operation::stop_pentest_job::builders::StopPentestJobFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`agent_space_id(impl Into<String>)`](crate::operation::stop_pentest_job::builders::StopPentestJobFluentBuilder::agent_space_id) / [`set_agent_space_id(Option<String>)`](crate::operation::stop_pentest_job::builders::StopPentestJobFluentBuilder::set_agent_space_id):<br>required: **true**<br>ID of the agent space where the pentest exists<br>
7    ///   - [`pentest_job_id(impl Into<String>)`](crate::operation::stop_pentest_job::builders::StopPentestJobFluentBuilder::pentest_job_id) / [`set_pentest_job_id(Option<String>)`](crate::operation::stop_pentest_job::builders::StopPentestJobFluentBuilder::set_pentest_job_id):<br>required: **true**<br>Identifier of the pentest job to stop<br>
8    /// - On success, responds with [`StopPentestJobOutput`](crate::operation::stop_pentest_job::StopPentestJobOutput)
9    /// - On failure, responds with [`SdkError<StopPentestJobError>`](crate::operation::stop_pentest_job::StopPentestJobError)
10    pub fn stop_pentest_job(&self) -> crate::operation::stop_pentest_job::builders::StopPentestJobFluentBuilder {
11        crate::operation::stop_pentest_job::builders::StopPentestJobFluentBuilder::new(self.handle.clone())
12    }
13}