Skip to main content

aws_sdk_securityagent/client/
stop_threat_model_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 [`StopThreatModelJob`](crate::operation::stop_threat_model_job::builders::StopThreatModelJobFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`agent_space_id(impl Into<String>)`](crate::operation::stop_threat_model_job::builders::StopThreatModelJobFluentBuilder::agent_space_id) / [`set_agent_space_id(Option<String>)`](crate::operation::stop_threat_model_job::builders::StopThreatModelJobFluentBuilder::set_agent_space_id):<br>required: **true**<br><p>The unique identifier of the agent space.</p><br>
7    ///   - [`threat_model_job_id(impl Into<String>)`](crate::operation::stop_threat_model_job::builders::StopThreatModelJobFluentBuilder::threat_model_job_id) / [`set_threat_model_job_id(Option<String>)`](crate::operation::stop_threat_model_job::builders::StopThreatModelJobFluentBuilder::set_threat_model_job_id):<br>required: **true**<br><p>The unique identifier of the threat model job to stop.</p><br>
8    /// - On success, responds with [`StopThreatModelJobOutput`](crate::operation::stop_threat_model_job::StopThreatModelJobOutput)
9    /// - On failure, responds with [`SdkError<StopThreatModelJobError>`](crate::operation::stop_threat_model_job::StopThreatModelJobError)
10    pub fn stop_threat_model_job(&self) -> crate::operation::stop_threat_model_job::builders::StopThreatModelJobFluentBuilder {
11        crate::operation::stop_threat_model_job::builders::StopThreatModelJobFluentBuilder::new(self.handle.clone())
12    }
13}