1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListAttacks`](crate::operation::list_attacks::builders::ListAttacksFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_attacks::builders::ListAttacksFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`resource_arns(impl Into<String>)`](crate::operation::list_attacks::builders::ListAttacksFluentBuilder::resource_arns) / [`set_resource_arns(Option<Vec::<String>>)`](crate::operation::list_attacks::builders::ListAttacksFluentBuilder::set_resource_arns):<br>required: **false**<br><p>The ARNs (Amazon Resource Names) of the resources that were attacked. If you leave this blank, all applicable resources for this account will be included.</p><br>
    ///   - [`start_time(TimeRange)`](crate::operation::list_attacks::builders::ListAttacksFluentBuilder::start_time) / [`set_start_time(Option<TimeRange>)`](crate::operation::list_attacks::builders::ListAttacksFluentBuilder::set_start_time):<br>required: **false**<br><p>The start of the time period for the attacks. This is a <code>timestamp</code> type. The request syntax listing for this call indicates a <code>number</code> type, but you can provide the time in any valid <a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-types.html#parameter-type-timestamp">timestamp format</a> setting.</p><br>
    ///   - [`end_time(TimeRange)`](crate::operation::list_attacks::builders::ListAttacksFluentBuilder::end_time) / [`set_end_time(Option<TimeRange>)`](crate::operation::list_attacks::builders::ListAttacksFluentBuilder::set_end_time):<br>required: **false**<br><p>The end of the time period for the attacks. This is a <code>timestamp</code> type. The request syntax listing for this call indicates a <code>number</code> type, but you can provide the time in any valid <a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-types.html#parameter-type-timestamp">timestamp format</a> setting.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_attacks::builders::ListAttacksFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_attacks::builders::ListAttacksFluentBuilder::set_next_token):<br>required: **false**<br><p>When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, Shield Advanced includes a <code>NextToken</code> value in the response. You can retrieve the next batch of objects by requesting the list again and providing the token that was returned by the prior call in your request.</p> <p>You can indicate the maximum number of objects that you want Shield Advanced to return for a single call with the <code>MaxResults</code> setting. Shield Advanced will not return more than <code>MaxResults</code> objects, but may return fewer, even if more objects are still available.</p> <p>Whenever more objects remain that Shield Advanced has not yet returned to you, the response will include a <code>NextToken</code> value.</p> <p>On your first call to a list operation, leave this setting empty.</p><br>
    ///   - [`max_results(i32)`](crate::operation::list_attacks::builders::ListAttacksFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_attacks::builders::ListAttacksFluentBuilder::set_max_results):<br>required: **false**<br><p>The greatest number of objects that you want Shield Advanced to return to the list request. Shield Advanced might return fewer objects than you indicate in this setting, even if more objects are available. If there are more objects remaining, Shield Advanced will always also return a <code>NextToken</code> value in the response.</p> <p>The default setting is 20.</p><br>
    /// - On success, responds with [`ListAttacksOutput`](crate::operation::list_attacks::ListAttacksOutput) with field(s):
    ///   - [`attack_summaries(Option<Vec::<AttackSummary>>)`](crate::operation::list_attacks::ListAttacksOutput::attack_summaries): <p>The attack information for the specified time range.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_attacks::ListAttacksOutput::next_token): <p>When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, Shield Advanced includes a <code>NextToken</code> value in the response. You can retrieve the next batch of objects by requesting the list again and providing the token that was returned by the prior call in your request.</p> <p>You can indicate the maximum number of objects that you want Shield Advanced to return for a single call with the <code>MaxResults</code> setting. Shield Advanced will not return more than <code>MaxResults</code> objects, but may return fewer, even if more objects are still available.</p> <p>Whenever more objects remain that Shield Advanced has not yet returned to you, the response will include a <code>NextToken</code> value.</p>
    /// - On failure, responds with [`SdkError<ListAttacksError>`](crate::operation::list_attacks::ListAttacksError)
    pub fn list_attacks(&self) -> crate::operation::list_attacks::builders::ListAttacksFluentBuilder {
        crate::operation::list_attacks::builders::ListAttacksFluentBuilder::new(self.handle.clone())
    }
}