Skip to main content

aws_sdk_securityagent/client/
batch_get_threat_models.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 [`BatchGetThreatModels`](crate::operation::batch_get_threat_models::builders::BatchGetThreatModelsFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`threat_model_ids(impl Into<String>)`](crate::operation::batch_get_threat_models::builders::BatchGetThreatModelsFluentBuilder::threat_model_ids) / [`set_threat_model_ids(Option<Vec::<String>>)`](crate::operation::batch_get_threat_models::builders::BatchGetThreatModelsFluentBuilder::set_threat_model_ids):<br>required: **true**<br><p>The list of threat model identifiers to retrieve.</p><br>
7    ///   - [`agent_space_id(impl Into<String>)`](crate::operation::batch_get_threat_models::builders::BatchGetThreatModelsFluentBuilder::agent_space_id) / [`set_agent_space_id(Option<String>)`](crate::operation::batch_get_threat_models::builders::BatchGetThreatModelsFluentBuilder::set_agent_space_id):<br>required: **true**<br><p>The unique identifier of the agent space that contains the threat models.</p><br>
8    /// - On success, responds with [`BatchGetThreatModelsOutput`](crate::operation::batch_get_threat_models::BatchGetThreatModelsOutput) with field(s):
9    ///   - [`threat_models(Option<Vec::<ThreatModel>>)`](crate::operation::batch_get_threat_models::BatchGetThreatModelsOutput::threat_models): <p>The list of threat models that were found.</p>
10    ///   - [`not_found(Option<Vec::<String>>)`](crate::operation::batch_get_threat_models::BatchGetThreatModelsOutput::not_found): <p>The list of threat model identifiers that were not found.</p>
11    /// - On failure, responds with [`SdkError<BatchGetThreatModelsError>`](crate::operation::batch_get_threat_models::BatchGetThreatModelsError)
12    pub fn batch_get_threat_models(&self) -> crate::operation::batch_get_threat_models::builders::BatchGetThreatModelsFluentBuilder {
13        crate::operation::batch_get_threat_models::builders::BatchGetThreatModelsFluentBuilder::new(self.handle.clone())
14    }
15}