aws-sdk-securityagent 1.8.0

AWS SDK for AWS Security Agent
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListThreatModels`](crate::operation::list_threat_models::builders::ListThreatModelsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_threat_models::builders::ListThreatModelsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`max_results(i32)`](crate::operation::list_threat_models::builders::ListThreatModelsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_threat_models::builders::ListThreatModelsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return in a single call.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_threat_models::builders::ListThreatModelsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_threat_models::builders::ListThreatModelsFluentBuilder::set_next_token):<br>required: **false**<br><p>A token to use for paginating results that are returned in the response.</p><br>
    ///   - [`agent_space_id(impl Into<String>)`](crate::operation::list_threat_models::builders::ListThreatModelsFluentBuilder::agent_space_id) / [`set_agent_space_id(Option<String>)`](crate::operation::list_threat_models::builders::ListThreatModelsFluentBuilder::set_agent_space_id):<br>required: **true**<br><p>The unique identifier of the agent space to list threat models for.</p><br>
    /// - On success, responds with [`ListThreatModelsOutput`](crate::operation::list_threat_models::ListThreatModelsOutput) with field(s):
    ///   - [`threat_model_summaries(Option<Vec::<ThreatModelSummary>>)`](crate::operation::list_threat_models::ListThreatModelsOutput::threat_model_summaries): <p>The list of threat model summaries.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_threat_models::ListThreatModelsOutput::next_token): <p>A token to use for paginating results that are returned in the response.</p>
    /// - On failure, responds with [`SdkError<ListThreatModelsError>`](crate::operation::list_threat_models::ListThreatModelsError)
    pub fn list_threat_models(&self) -> crate::operation::list_threat_models::builders::ListThreatModelsFluentBuilder {
        crate::operation::list_threat_models::builders::ListThreatModelsFluentBuilder::new(self.handle.clone())
    }
}