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
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListThreats`](crate::operation::list_threats::builders::ListThreatsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_threats::builders::ListThreatsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`threat_job_id(impl Into<String>)`](crate::operation::list_threats::builders::ListThreatsFluentBuilder::threat_job_id) / [`set_threat_job_id(Option<String>)`](crate::operation::list_threats::builders::ListThreatsFluentBuilder::set_threat_job_id):<br>required: **true**<br><p>The unique identifier of the threat model job to list threats for.</p><br>
    ///   - [`agent_space_id(impl Into<String>)`](crate::operation::list_threats::builders::ListThreatsFluentBuilder::agent_space_id) / [`set_agent_space_id(Option<String>)`](crate::operation::list_threats::builders::ListThreatsFluentBuilder::set_agent_space_id):<br>required: **true**<br><p>The unique identifier of the agent space.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_threats::builders::ListThreatsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_threats::builders::ListThreatsFluentBuilder::set_next_token):<br>required: **false**<br><p>A token to use for paginating results that are returned in the response.</p><br>
    ///   - [`max_results(i32)`](crate::operation::list_threats::builders::ListThreatsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_threats::builders::ListThreatsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return in a single call.</p><br>
    /// - On success, responds with [`ListThreatsOutput`](crate::operation::list_threats::ListThreatsOutput) with field(s):
    ///   - [`threats(Option<Vec::<ThreatSummary>>)`](crate::operation::list_threats::ListThreatsOutput::threats): <p>The list of threat summaries.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_threats::ListThreatsOutput::next_token): <p>A token to use for paginating results that are returned in the response.</p>
    /// - On failure, responds with [`SdkError<ListThreatsError>`](crate::operation::list_threats::ListThreatsError)
    pub fn list_threats(&self) -> crate::operation::list_threats::builders::ListThreatsFluentBuilder {
        crate::operation::list_threats::builders::ListThreatsFluentBuilder::new(self.handle.clone())
    }
}