1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DescribeSnapshotCopyGrants`](crate::operation::describe_snapshot_copy_grants::builders::DescribeSnapshotCopyGrantsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::describe_snapshot_copy_grants::builders::DescribeSnapshotCopyGrantsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`snapshot_copy_grant_name(impl Into<String>)`](crate::operation::describe_snapshot_copy_grants::builders::DescribeSnapshotCopyGrantsFluentBuilder::snapshot_copy_grant_name) / [`set_snapshot_copy_grant_name(Option<String>)`](crate::operation::describe_snapshot_copy_grants::builders::DescribeSnapshotCopyGrantsFluentBuilder::set_snapshot_copy_grant_name):<br>required: **false**<br><p>The name of the snapshot copy grant.</p><br>
    ///   - [`max_records(i32)`](crate::operation::describe_snapshot_copy_grants::builders::DescribeSnapshotCopyGrantsFluentBuilder::max_records) / [`set_max_records(Option<i32>)`](crate::operation::describe_snapshot_copy_grants::builders::DescribeSnapshotCopyGrantsFluentBuilder::set_max_records):<br>required: **false**<br><p>The maximum number of response records to return in each call. If the number of remaining response records exceeds the specified <code>MaxRecords</code> value, a value is returned in a <code>marker</code> field of the response. You can retrieve the next set of records by retrying the command with the returned marker value.</p> <p>Default: <code>100</code></p> <p>Constraints: minimum 20, maximum 100.</p><br>
    ///   - [`marker(impl Into<String>)`](crate::operation::describe_snapshot_copy_grants::builders::DescribeSnapshotCopyGrantsFluentBuilder::marker) / [`set_marker(Option<String>)`](crate::operation::describe_snapshot_copy_grants::builders::DescribeSnapshotCopyGrantsFluentBuilder::set_marker):<br>required: **false**<br><p>An optional parameter that specifies the starting point to return a set of response records. When the results of a <code>DescribeSnapshotCopyGrant</code> request exceed the value specified in <code>MaxRecords</code>, Amazon Web Services returns a value in the <code>Marker</code> field of the response. You can retrieve the next set of response records by providing the returned marker value in the <code>Marker</code> parameter and retrying the request.</p> <p>Constraints: You can specify either the <b>SnapshotCopyGrantName</b> parameter or the <b>Marker</b> parameter, but not both.</p><br>
    ///   - [`tag_keys(impl Into<String>)`](crate::operation::describe_snapshot_copy_grants::builders::DescribeSnapshotCopyGrantsFluentBuilder::tag_keys) / [`set_tag_keys(Option<Vec::<String>>)`](crate::operation::describe_snapshot_copy_grants::builders::DescribeSnapshotCopyGrantsFluentBuilder::set_tag_keys):<br>required: **false**<br><p>A tag key or keys for which you want to return all matching resources that are associated with the specified key or keys. For example, suppose that you have resources tagged with keys called <code>owner</code> and <code>environment</code>. If you specify both of these tag keys in the request, Amazon Redshift returns a response with all resources that have either or both of these tag keys associated with them.</p><br>
    ///   - [`tag_values(impl Into<String>)`](crate::operation::describe_snapshot_copy_grants::builders::DescribeSnapshotCopyGrantsFluentBuilder::tag_values) / [`set_tag_values(Option<Vec::<String>>)`](crate::operation::describe_snapshot_copy_grants::builders::DescribeSnapshotCopyGrantsFluentBuilder::set_tag_values):<br>required: **false**<br><p>A tag value or values for which you want to return all matching resources that are associated with the specified value or values. For example, suppose that you have resources tagged with values called <code>admin</code> and <code>test</code>. If you specify both of these tag values in the request, Amazon Redshift returns a response with all resources that have either or both of these tag values associated with them.</p><br>
    /// - On success, responds with [`DescribeSnapshotCopyGrantsOutput`](crate::operation::describe_snapshot_copy_grants::DescribeSnapshotCopyGrantsOutput) with field(s):
    ///   - [`marker(Option<String>)`](crate::operation::describe_snapshot_copy_grants::DescribeSnapshotCopyGrantsOutput::marker): <p>An optional parameter that specifies the starting point to return a set of response records. When the results of a <code>DescribeSnapshotCopyGrant</code> request exceed the value specified in <code>MaxRecords</code>, Amazon Web Services returns a value in the <code>Marker</code> field of the response. You can retrieve the next set of response records by providing the returned marker value in the <code>Marker</code> parameter and retrying the request.</p> <p>Constraints: You can specify either the <b>SnapshotCopyGrantName</b> parameter or the <b>Marker</b> parameter, but not both.</p>
    ///   - [`snapshot_copy_grants(Option<Vec::<SnapshotCopyGrant>>)`](crate::operation::describe_snapshot_copy_grants::DescribeSnapshotCopyGrantsOutput::snapshot_copy_grants): <p>The list of <code>SnapshotCopyGrant</code> objects.</p>
    /// - On failure, responds with [`SdkError<DescribeSnapshotCopyGrantsError>`](crate::operation::describe_snapshot_copy_grants::DescribeSnapshotCopyGrantsError)
    pub fn describe_snapshot_copy_grants(
        &self,
    ) -> crate::operation::describe_snapshot_copy_grants::builders::DescribeSnapshotCopyGrantsFluentBuilder {
        crate::operation::describe_snapshot_copy_grants::builders::DescribeSnapshotCopyGrantsFluentBuilder::new(self.handle.clone())
    }
}