Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/client/enable_kinesis_streaming_destination.rs

@@ -1,1 +18,22 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* FluentClientGenerator.kt:187 */
    2      3   
impl super::Client {
           4  +
    /* FluentClientGenerator.kt:221 */
    3      5   
    /// Constructs a fluent builder for the [`EnableKinesisStreamingDestination`](crate::operation::enable_kinesis_streaming_destination::builders::EnableKinesisStreamingDestinationFluentBuilder) operation.
    4      6   
    ///
    5      7   
    /// - The fluent builder is configurable:
    6      8   
    ///   - [`table_name(impl Into<String>)`](crate::operation::enable_kinesis_streaming_destination::builders::EnableKinesisStreamingDestinationFluentBuilder::table_name) / [`set_table_name(Option<String>)`](crate::operation::enable_kinesis_streaming_destination::builders::EnableKinesisStreamingDestinationFluentBuilder::set_table_name):<br>required: **true**<br><p>The name of the DynamoDB table.</p><br>
    7      9   
    ///   - [`stream_arn(impl Into<String>)`](crate::operation::enable_kinesis_streaming_destination::builders::EnableKinesisStreamingDestinationFluentBuilder::stream_arn) / [`set_stream_arn(Option<String>)`](crate::operation::enable_kinesis_streaming_destination::builders::EnableKinesisStreamingDestinationFluentBuilder::set_stream_arn):<br>required: **true**<br><p>The ARN for a Kinesis data stream.</p><br>
    8     10   
    /// - On success, responds with [`EnableKinesisStreamingDestinationOutput`](crate::operation::enable_kinesis_streaming_destination::EnableKinesisStreamingDestinationOutput) with field(s):
    9     11   
    ///   - [`table_name(Option<String>)`](crate::operation::enable_kinesis_streaming_destination::EnableKinesisStreamingDestinationOutput::table_name): <p>The name of the table being modified.</p>
   10     12   
    ///   - [`stream_arn(Option<String>)`](crate::operation::enable_kinesis_streaming_destination::EnableKinesisStreamingDestinationOutput::stream_arn): <p>The ARN for the specific Kinesis data stream.</p>
   11     13   
    ///   - [`destination_status(Option<DestinationStatus>)`](crate::operation::enable_kinesis_streaming_destination::EnableKinesisStreamingDestinationOutput::destination_status): <p>The current status of the replication.</p>
   12     14   
    /// - On failure, responds with [`SdkError<EnableKinesisStreamingDestinationError>`](crate::operation::enable_kinesis_streaming_destination::EnableKinesisStreamingDestinationError)
          15  +
    /* FluentClientGenerator.kt:234 */
   13     16   
    pub fn enable_kinesis_streaming_destination(
   14     17   
        &self,
   15     18   
    ) -> crate::operation::enable_kinesis_streaming_destination::builders::EnableKinesisStreamingDestinationFluentBuilder {
   16     19   
        crate::operation::enable_kinesis_streaming_destination::builders::EnableKinesisStreamingDestinationFluentBuilder::new(self.handle.clone())
   17     20   
    }
          21  +
    /* FluentClientGenerator.kt:187 */
   18     22   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/client/execute_statement.rs

@@ -1,1 +17,21 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* FluentClientGenerator.kt:187 */
    2      3   
impl super::Client {
           4  +
    /* FluentClientGenerator.kt:221 */
    3      5   
    /// Constructs a fluent builder for the [`ExecuteStatement`](crate::operation::execute_statement::builders::ExecuteStatementFluentBuilder) operation.
    4      6   
    ///
    5      7   
    /// - The fluent builder is configurable:
    6      8   
    ///   - [`statement(impl Into<String>)`](crate::operation::execute_statement::builders::ExecuteStatementFluentBuilder::statement) / [`set_statement(Option<String>)`](crate::operation::execute_statement::builders::ExecuteStatementFluentBuilder::set_statement):<br>required: **true**<br><p>The PartiQL statement representing the operation to run.</p><br>
    7      9   
    ///   - [`parameters(AttributeValue)`](crate::operation::execute_statement::builders::ExecuteStatementFluentBuilder::parameters) / [`set_parameters(Option<Vec::<AttributeValue>>)`](crate::operation::execute_statement::builders::ExecuteStatementFluentBuilder::set_parameters):<br>required: **false**<br><p>The parameters for the PartiQL statement, if any.</p><br>
    8     10   
    ///   - [`consistent_read(bool)`](crate::operation::execute_statement::builders::ExecuteStatementFluentBuilder::consistent_read) / [`set_consistent_read(Option<bool>)`](crate::operation::execute_statement::builders::ExecuteStatementFluentBuilder::set_consistent_read):<br>required: **false**<br><p>The consistency of a read operation. If set to <code>true</code>, then a strongly consistent read is used; otherwise, an eventually consistent read is used.</p><br>
    9     11   
    ///   - [`next_token(impl Into<String>)`](crate::operation::execute_statement::builders::ExecuteStatementFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::execute_statement::builders::ExecuteStatementFluentBuilder::set_next_token):<br>required: **false**<br><p>Set this value to get remaining results, if <code>NextToken</code> was returned in the statement response.</p><br>
   10     12   
    /// - On success, responds with [`ExecuteStatementOutput`](crate::operation::execute_statement::ExecuteStatementOutput) with field(s):
   11     13   
    ///   - [`items(Option<Vec::<HashMap::<String, AttributeValue>>>)`](crate::operation::execute_statement::ExecuteStatementOutput::items): <p>If a read operation was used, this property will contain the result of the reade operation; a map of attribute names and their values. For the write operations this value will be empty.</p>
   12     14   
    ///   - [`next_token(Option<String>)`](crate::operation::execute_statement::ExecuteStatementOutput::next_token): <p>If the response of a read request exceeds the response payload limit DynamoDB will set this value in the response. If set, you can use that this value in the subsequent request to get the remaining results.</p>
   13     15   
    /// - On failure, responds with [`SdkError<ExecuteStatementError>`](crate::operation::execute_statement::ExecuteStatementError)
          16  +
    /* FluentClientGenerator.kt:234 */
   14     17   
    pub fn execute_statement(&self) -> crate::operation::execute_statement::builders::ExecuteStatementFluentBuilder {
   15     18   
        crate::operation::execute_statement::builders::ExecuteStatementFluentBuilder::new(self.handle.clone())
   16     19   
    }
          20  +
    /* FluentClientGenerator.kt:187 */
   17     21   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/client/execute_transaction.rs

@@ -1,1 +14,18 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* FluentClientGenerator.kt:187 */
    2      3   
impl super::Client {
           4  +
    /* FluentClientGenerator.kt:221 */
    3      5   
    /// Constructs a fluent builder for the [`ExecuteTransaction`](crate::operation::execute_transaction::builders::ExecuteTransactionFluentBuilder) operation.
    4      6   
    ///
    5      7   
    /// - The fluent builder is configurable:
    6      8   
    ///   - [`transact_statements(ParameterizedStatement)`](crate::operation::execute_transaction::builders::ExecuteTransactionFluentBuilder::transact_statements) / [`set_transact_statements(Option<Vec::<ParameterizedStatement>>)`](crate::operation::execute_transaction::builders::ExecuteTransactionFluentBuilder::set_transact_statements):<br>required: **true**<br><p>The list of PartiQL statements representing the transaction to run.</p><br>
    7      9   
    ///   - [`client_request_token(impl Into<String>)`](crate::operation::execute_transaction::builders::ExecuteTransactionFluentBuilder::client_request_token) / [`set_client_request_token(Option<String>)`](crate::operation::execute_transaction::builders::ExecuteTransactionFluentBuilder::set_client_request_token):<br>required: **false**<br><p>Set this value to get remaining results, if <code>NextToken</code> was returned in the statement response.</p><br>
    8     10   
    /// - On success, responds with [`ExecuteTransactionOutput`](crate::operation::execute_transaction::ExecuteTransactionOutput) with field(s):
    9     11   
    ///   - [`responses(Option<Vec::<ItemResponse>>)`](crate::operation::execute_transaction::ExecuteTransactionOutput::responses): <p>The response to a PartiQL transaction.</p>
   10     12   
    /// - On failure, responds with [`SdkError<ExecuteTransactionError>`](crate::operation::execute_transaction::ExecuteTransactionError)
          13  +
    /* FluentClientGenerator.kt:234 */
   11     14   
    pub fn execute_transaction(&self) -> crate::operation::execute_transaction::builders::ExecuteTransactionFluentBuilder {
   12     15   
        crate::operation::execute_transaction::builders::ExecuteTransactionFluentBuilder::new(self.handle.clone())
   13     16   
    }
          17  +
    /* FluentClientGenerator.kt:187 */
   14     18   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/client/export_table_to_point_in_time.rs

@@ -1,1 +21,25 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* FluentClientGenerator.kt:187 */
    2      3   
impl super::Client {
           4  +
    /* FluentClientGenerator.kt:221 */
    3      5   
    /// Constructs a fluent builder for the [`ExportTableToPointInTime`](crate::operation::export_table_to_point_in_time::builders::ExportTableToPointInTimeFluentBuilder) operation.
    4      6   
    ///
    5      7   
    /// - The fluent builder is configurable:
    6      8   
    ///   - [`table_arn(impl Into<String>)`](crate::operation::export_table_to_point_in_time::builders::ExportTableToPointInTimeFluentBuilder::table_arn) / [`set_table_arn(Option<String>)`](crate::operation::export_table_to_point_in_time::builders::ExportTableToPointInTimeFluentBuilder::set_table_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) associated with the table to export.</p><br>
    7      9   
    ///   - [`export_time(DateTime)`](crate::operation::export_table_to_point_in_time::builders::ExportTableToPointInTimeFluentBuilder::export_time) / [`set_export_time(Option<DateTime>)`](crate::operation::export_table_to_point_in_time::builders::ExportTableToPointInTimeFluentBuilder::set_export_time):<br>required: **false**<br><p>Time in the past from which to export table data. The table export will be a snapshot of the table's state at this point in time.</p><br>
    8     10   
    ///   - [`client_token(impl Into<String>)`](crate::operation::export_table_to_point_in_time::builders::ExportTableToPointInTimeFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::export_table_to_point_in_time::builders::ExportTableToPointInTimeFluentBuilder::set_client_token):<br>required: **false**<br><p>Providing a <code>ClientToken</code> makes the call to <code>ExportTableToPointInTimeInput</code> idempotent, meaning that multiple identical calls have the same effect as one single call.</p> <p>A client token is valid for 8 hours after the first request that uses it is completed. After 8 hours, any request with the same client token is treated as a new request. Do not resubmit the same request with the same client token for more than 8 hours, or the result might not be idempotent.</p> <p>If you submit a request with the same client token but a change in other parameters within the 8-hour idempotency window, DynamoDB returns an <code>IdempotentParameterMismatch</code> exception.</p><br>
    9     11   
    ///   - [`s3_bucket(impl Into<String>)`](crate::operation::export_table_to_point_in_time::builders::ExportTableToPointInTimeFluentBuilder::s3_bucket) / [`set_s3_bucket(Option<String>)`](crate::operation::export_table_to_point_in_time::builders::ExportTableToPointInTimeFluentBuilder::set_s3_bucket):<br>required: **true**<br><p>The name of the Amazon S3 bucket to export the snapshot to.</p><br>
   10     12   
    ///   - [`s3_bucket_owner(impl Into<String>)`](crate::operation::export_table_to_point_in_time::builders::ExportTableToPointInTimeFluentBuilder::s3_bucket_owner) / [`set_s3_bucket_owner(Option<String>)`](crate::operation::export_table_to_point_in_time::builders::ExportTableToPointInTimeFluentBuilder::set_s3_bucket_owner):<br>required: **false**<br><p>The ID of the AWS account that owns the bucket the export will be stored in.</p><br>
   11     13   
    ///   - [`s3_prefix(impl Into<String>)`](crate::operation::export_table_to_point_in_time::builders::ExportTableToPointInTimeFluentBuilder::s3_prefix) / [`set_s3_prefix(Option<String>)`](crate::operation::export_table_to_point_in_time::builders::ExportTableToPointInTimeFluentBuilder::set_s3_prefix):<br>required: **false**<br><p>The Amazon S3 bucket prefix to use as the file name and path of the exported snapshot.</p><br>
   12     14   
    ///   - [`s3_sse_algorithm(S3SseAlgorithm)`](crate::operation::export_table_to_point_in_time::builders::ExportTableToPointInTimeFluentBuilder::s3_sse_algorithm) / [`set_s3_sse_algorithm(Option<S3SseAlgorithm>)`](crate::operation::export_table_to_point_in_time::builders::ExportTableToPointInTimeFluentBuilder::set_s3_sse_algorithm):<br>required: **false**<br><p>Type of encryption used on the bucket where export data will be stored. Valid values for <code>S3SseAlgorithm</code> are:</p> <ul>  <li>   <p><code>AES256</code> - server-side encryption with Amazon S3 managed keys</p></li>  <li>   <p><code>KMS</code> - server-side encryption with AWS KMS managed keys</p></li> </ul><br>
   13     15   
    ///   - [`s3_sse_kms_key_id(impl Into<String>)`](crate::operation::export_table_to_point_in_time::builders::ExportTableToPointInTimeFluentBuilder::s3_sse_kms_key_id) / [`set_s3_sse_kms_key_id(Option<String>)`](crate::operation::export_table_to_point_in_time::builders::ExportTableToPointInTimeFluentBuilder::set_s3_sse_kms_key_id):<br>required: **false**<br><p>The ID of the AWS KMS managed key used to encrypt the S3 bucket where export data will be stored (if applicable).</p><br>
   14     16   
    ///   - [`export_format(ExportFormat)`](crate::operation::export_table_to_point_in_time::builders::ExportTableToPointInTimeFluentBuilder::export_format) / [`set_export_format(Option<ExportFormat>)`](crate::operation::export_table_to_point_in_time::builders::ExportTableToPointInTimeFluentBuilder::set_export_format):<br>required: **false**<br><p>The format for the exported data. Valid values for <code>ExportFormat</code> are <code>DYNAMODB_JSON</code> or <code>ION</code>.</p><br>
   15     17   
    /// - On success, responds with [`ExportTableToPointInTimeOutput`](crate::operation::export_table_to_point_in_time::ExportTableToPointInTimeOutput) with field(s):
   16     18   
    ///   - [`export_description(Option<ExportDescription>)`](crate::operation::export_table_to_point_in_time::ExportTableToPointInTimeOutput::export_description): <p>Contains a description of the table export.</p>
   17     19   
    /// - On failure, responds with [`SdkError<ExportTableToPointInTimeError>`](crate::operation::export_table_to_point_in_time::ExportTableToPointInTimeError)
          20  +
    /* FluentClientGenerator.kt:234 */
   18     21   
    pub fn export_table_to_point_in_time(&self) -> crate::operation::export_table_to_point_in_time::builders::ExportTableToPointInTimeFluentBuilder {
   19     22   
        crate::operation::export_table_to_point_in_time::builders::ExportTableToPointInTimeFluentBuilder::new(self.handle.clone())
   20     23   
    }
          24  +
    /* FluentClientGenerator.kt:187 */
   21     25   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/client/get_item.rs

@@ -1,1 +20,24 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* FluentClientGenerator.kt:187 */
    2      3   
impl super::Client {
           4  +
    /* FluentClientGenerator.kt:221 */
    3      5   
    /// Constructs a fluent builder for the [`GetItem`](crate::operation::get_item::builders::GetItemFluentBuilder) operation.
    4      6   
    ///
    5      7   
    /// - The fluent builder is configurable:
    6      8   
    ///   - [`table_name(impl Into<String>)`](crate::operation::get_item::builders::GetItemFluentBuilder::table_name) / [`set_table_name(Option<String>)`](crate::operation::get_item::builders::GetItemFluentBuilder::set_table_name):<br>required: **true**<br><p>The name of the table containing the requested item.</p><br>
    7      9   
    ///   - [`key(impl Into<String>, AttributeValue)`](crate::operation::get_item::builders::GetItemFluentBuilder::key) / [`set_key(Option<HashMap::<String, AttributeValue>>)`](crate::operation::get_item::builders::GetItemFluentBuilder::set_key):<br>required: **true**<br><p>A map of attribute names to <code>AttributeValue</code> objects, representing the primary key of the item to retrieve.</p> <p>For the primary key, you must provide all of the attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.</p><br>
    8     10   
    ///   - [`attributes_to_get(impl Into<String>)`](crate::operation::get_item::builders::GetItemFluentBuilder::attributes_to_get) / [`set_attributes_to_get(Option<Vec::<String>>)`](crate::operation::get_item::builders::GetItemFluentBuilder::set_attributes_to_get):<br>required: **false**<br><p>This is a legacy parameter. Use <code>ProjectionExpression</code> instead. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributesToGet.html">AttributesToGet</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p><br>
    9     11   
    ///   - [`consistent_read(bool)`](crate::operation::get_item::builders::GetItemFluentBuilder::consistent_read) / [`set_consistent_read(Option<bool>)`](crate::operation::get_item::builders::GetItemFluentBuilder::set_consistent_read):<br>required: **false**<br><p>Determines the read consistency model: If set to <code>true</code>, then the operation uses strongly consistent reads; otherwise, the operation uses eventually consistent reads.</p><br>
   10     12   
    ///   - [`return_consumed_capacity(ReturnConsumedCapacity)`](crate::operation::get_item::builders::GetItemFluentBuilder::return_consumed_capacity) / [`set_return_consumed_capacity(Option<ReturnConsumedCapacity>)`](crate::operation::get_item::builders::GetItemFluentBuilder::set_return_consumed_capacity):<br>required: **false**<br><p>Determines the level of detail about provisioned throughput consumption that is returned in the response:</p> <ul>  <li>   <p><code>INDEXES</code> - The response includes the aggregate <code>ConsumedCapacity</code> for the operation, together with <code>ConsumedCapacity</code> for each table and secondary index that was accessed.</p>   <p>Note that some operations, such as <code>GetItem</code> and <code>BatchGetItem</code>, do not access any indexes at all. In these cases, specifying <code>INDEXES</code> will only return <code>ConsumedCapacity</code> information for table(s).</p></li>  <li>   <p><code>TOTAL</code> - The response includes only the aggregate <code>ConsumedCapacity</code> for the operation.</p></li>  <li>   <p><code>NONE</code> - No <code>ConsumedCapacity</code> details are included in the response.</p></li> </ul><br>
   11     13   
    ///   - [`projection_expression(impl Into<String>)`](crate::operation::get_item::builders::GetItemFluentBuilder::projection_expression) / [`set_projection_expression(Option<String>)`](crate::operation::get_item::builders::GetItemFluentBuilder::set_projection_expression):<br>required: **false**<br><p>A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.</p> <p>If no attribute names are specified, then all attributes are returned. If any of the requested attributes are not found, they do not appear in the result.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html">Specifying Item Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p><br>
   12     14   
    ///   - [`expression_attribute_names(impl Into<String>, impl Into<String>)`](crate::operation::get_item::builders::GetItemFluentBuilder::expression_attribute_names) / [`set_expression_attribute_names(Option<HashMap::<String, String>>)`](crate::operation::get_item::builders::GetItemFluentBuilder::set_expression_attribute_names):<br>required: **false**<br><p>One or more substitution tokens for attribute names in an expression. The following are some use cases for using <code>ExpressionAttributeNames</code>:</p> <ul>  <li>   <p>To access an attribute whose name conflicts with a DynamoDB reserved word.</p></li>  <li>   <p>To create a placeholder for repeating occurrences of an attribute name in an expression.</p></li>  <li>   <p>To prevent special characters in an attribute name from being misinterpreted in an expression.</p></li> </ul> <p>Use the <b>#</b> character in an expression to dereference an attribute name. For example, consider the following attribute name:</p> <ul>  <li>   <p><code>Percentile</code></p></li> </ul> <p>The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html">Reserved Words</a> in the <i>Amazon DynamoDB Developer Guide</i>). To work around this, you could specify the following for <code>ExpressionAttributeNames</code>:</p> <ul>  <li>   <p><code>{"#P":"Percentile"}</code></p></li> </ul> <p>You could then use this substitution in an expression, as in this example:</p> <ul>  <li>   <p><code>#P = :val</code></p></li> </ul><note>  <p>Tokens that begin with the <b>:</b> character are <i>expression attribute values</i>, which are placeholders for the actual value at runtime.</p> </note> <p>For more information on expression attribute names, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html">Specifying Item Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p><br>
   13     15   
    /// - On success, responds with [`GetItemOutput`](crate::operation::get_item::GetItemOutput) with field(s):
   14     16   
    ///   - [`item(Option<HashMap::<String, AttributeValue>>)`](crate::operation::get_item::GetItemOutput::item): <p>A map of attribute names to <code>AttributeValue</code> objects, as specified by <code>ProjectionExpression</code>.</p>
   15     17   
    ///   - [`consumed_capacity(Option<ConsumedCapacity>)`](crate::operation::get_item::GetItemOutput::consumed_capacity): <p>The capacity units consumed by the <code>GetItem</code> operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. <code>ConsumedCapacity</code> is only returned if the <code>ReturnConsumedCapacity</code> parameter was specified. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html">Read/Write Capacity Mode</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
   16     18   
    /// - On failure, responds with [`SdkError<GetItemError>`](crate::operation::get_item::GetItemError)
          19  +
    /* FluentClientGenerator.kt:234 */
   17     20   
    pub fn get_item(&self) -> crate::operation::get_item::builders::GetItemFluentBuilder {
   18     21   
        crate::operation::get_item::builders::GetItemFluentBuilder::new(self.handle.clone())
   19     22   
    }
          23  +
    /* FluentClientGenerator.kt:187 */
   20     24   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/client/list_backups.rs

@@ -1,1 +19,23 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* FluentClientGenerator.kt:187 */
    2      3   
impl super::Client {
           4  +
    /* FluentClientGenerator.kt:221 */
    3      5   
    /// Constructs a fluent builder for the [`ListBackups`](crate::operation::list_backups::builders::ListBackupsFluentBuilder) operation.
    4      6   
    ///
    5      7   
    /// - The fluent builder is configurable:
    6      8   
    ///   - [`table_name(impl Into<String>)`](crate::operation::list_backups::builders::ListBackupsFluentBuilder::table_name) / [`set_table_name(Option<String>)`](crate::operation::list_backups::builders::ListBackupsFluentBuilder::set_table_name):<br>required: **false**<br><p>The backups from the table specified by <code>TableName</code> are listed.</p><br>
    7      9   
    ///   - [`limit(i32)`](crate::operation::list_backups::builders::ListBackupsFluentBuilder::limit) / [`set_limit(Option<i32>)`](crate::operation::list_backups::builders::ListBackupsFluentBuilder::set_limit):<br>required: **false**<br><p>Maximum number of backups to return at once.</p><br>
    8     10   
    ///   - [`time_range_lower_bound(DateTime)`](crate::operation::list_backups::builders::ListBackupsFluentBuilder::time_range_lower_bound) / [`set_time_range_lower_bound(Option<DateTime>)`](crate::operation::list_backups::builders::ListBackupsFluentBuilder::set_time_range_lower_bound):<br>required: **false**<br><p>Only backups created after this time are listed. <code>TimeRangeLowerBound</code> is inclusive.</p><br>
    9     11   
    ///   - [`time_range_upper_bound(DateTime)`](crate::operation::list_backups::builders::ListBackupsFluentBuilder::time_range_upper_bound) / [`set_time_range_upper_bound(Option<DateTime>)`](crate::operation::list_backups::builders::ListBackupsFluentBuilder::set_time_range_upper_bound):<br>required: **false**<br><p>Only backups created before this time are listed. <code>TimeRangeUpperBound</code> is exclusive.</p><br>
   10     12   
    ///   - [`exclusive_start_backup_arn(impl Into<String>)`](crate::operation::list_backups::builders::ListBackupsFluentBuilder::exclusive_start_backup_arn) / [`set_exclusive_start_backup_arn(Option<String>)`](crate::operation::list_backups::builders::ListBackupsFluentBuilder::set_exclusive_start_backup_arn):<br>required: **false**<br><p><code>LastEvaluatedBackupArn</code> is the Amazon Resource Name (ARN) of the backup last evaluated when the current page of results was returned, inclusive of the current page of results. This value may be specified as the <code>ExclusiveStartBackupArn</code> of a new <code>ListBackups</code> operation in order to fetch the next page of results.</p><br>
   11     13   
    ///   - [`backup_type(BackupTypeFilter)`](crate::operation::list_backups::builders::ListBackupsFluentBuilder::backup_type) / [`set_backup_type(Option<BackupTypeFilter>)`](crate::operation::list_backups::builders::ListBackupsFluentBuilder::set_backup_type):<br>required: **false**<br><p>The backups from the table specified by <code>BackupType</code> are listed.</p> <p>Where <code>BackupType</code> can be:</p> <ul>  <li>   <p><code>USER</code> - On-demand backup created by you.</p></li>  <li>   <p><code>SYSTEM</code> - On-demand backup automatically created by DynamoDB.</p></li>  <li>   <p><code>ALL</code> - All types of on-demand backups (USER and SYSTEM).</p></li> </ul><br>
   12     14   
    /// - On success, responds with [`ListBackupsOutput`](crate::operation::list_backups::ListBackupsOutput) with field(s):
   13     15   
    ///   - [`backup_summaries(Option<Vec::<BackupSummary>>)`](crate::operation::list_backups::ListBackupsOutput::backup_summaries): <p>List of <code>BackupSummary</code> objects.</p>
   14     16   
    ///   - [`last_evaluated_backup_arn(Option<String>)`](crate::operation::list_backups::ListBackupsOutput::last_evaluated_backup_arn): <p>The ARN of the backup last evaluated when the current page of results was returned, inclusive of the current page of results. This value may be specified as the <code>ExclusiveStartBackupArn</code> of a new <code>ListBackups</code> operation in order to fetch the next page of results.</p> <p>If <code>LastEvaluatedBackupArn</code> is empty, then the last page of results has been processed and there are no more results to be retrieved.</p> <p>If <code>LastEvaluatedBackupArn</code> is not empty, this may or may not indicate that there is more data to be returned. All results are guaranteed to have been returned if and only if no value for <code>LastEvaluatedBackupArn</code> is returned.</p>
   15     17   
    /// - On failure, responds with [`SdkError<ListBackupsError>`](crate::operation::list_backups::ListBackupsError)
          18  +
    /* FluentClientGenerator.kt:234 */
   16     19   
    pub fn list_backups(&self) -> crate::operation::list_backups::builders::ListBackupsFluentBuilder {
   17     20   
        crate::operation::list_backups::builders::ListBackupsFluentBuilder::new(self.handle.clone())
   18     21   
    }
          22  +
    /* FluentClientGenerator.kt:187 */
   19     23   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/client/list_contributor_insights.rs

@@ -1,1 +17,21 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* FluentClientGenerator.kt:187 */
    2      3   
impl super::Client {
           4  +
    /* FluentClientGenerator.kt:221 */
    3      5   
    /// Constructs a fluent builder for the [`ListContributorInsights`](crate::operation::list_contributor_insights::builders::ListContributorInsightsFluentBuilder) operation.
    4      6   
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_contributor_insights::builders::ListContributorInsightsFluentBuilder::into_paginator).
    5      7   
    ///
    6      8   
    /// - The fluent builder is configurable:
    7      9   
    ///   - [`table_name(impl Into<String>)`](crate::operation::list_contributor_insights::builders::ListContributorInsightsFluentBuilder::table_name) / [`set_table_name(Option<String>)`](crate::operation::list_contributor_insights::builders::ListContributorInsightsFluentBuilder::set_table_name):<br>required: **false**<br><p>The name of the table.</p><br>
    8     10   
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_contributor_insights::builders::ListContributorInsightsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_contributor_insights::builders::ListContributorInsightsFluentBuilder::set_next_token):<br>required: **false**<br><p>A token to for the desired page, if there is one.</p><br>
    9     11   
    ///   - [`max_results(i32)`](crate::operation::list_contributor_insights::builders::ListContributorInsightsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_contributor_insights::builders::ListContributorInsightsFluentBuilder::set_max_results):<br>required: **false**<br><p>Maximum number of results to return per page.</p><br>
   10     12   
    /// - On success, responds with [`ListContributorInsightsOutput`](crate::operation::list_contributor_insights::ListContributorInsightsOutput) with field(s):
   11     13   
    ///   - [`contributor_insights_summaries(Option<Vec::<ContributorInsightsSummary>>)`](crate::operation::list_contributor_insights::ListContributorInsightsOutput::contributor_insights_summaries): <p>A list of ContributorInsightsSummary.</p>
   12     14   
    ///   - [`next_token(Option<String>)`](crate::operation::list_contributor_insights::ListContributorInsightsOutput::next_token): <p>A token to go to the next page if there is one.</p>
   13     15   
    /// - On failure, responds with [`SdkError<ListContributorInsightsError>`](crate::operation::list_contributor_insights::ListContributorInsightsError)
          16  +
    /* FluentClientGenerator.kt:234 */
   14     17   
    pub fn list_contributor_insights(&self) -> crate::operation::list_contributor_insights::builders::ListContributorInsightsFluentBuilder {
   15     18   
        crate::operation::list_contributor_insights::builders::ListContributorInsightsFluentBuilder::new(self.handle.clone())
   16     19   
    }
          20  +
    /* FluentClientGenerator.kt:187 */
   17     21   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/client/list_exports.rs

@@ -1,1 +17,21 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* FluentClientGenerator.kt:187 */
    2      3   
impl super::Client {
           4  +
    /* FluentClientGenerator.kt:221 */
    3      5   
    /// Constructs a fluent builder for the [`ListExports`](crate::operation::list_exports::builders::ListExportsFluentBuilder) operation.
    4      6   
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_exports::builders::ListExportsFluentBuilder::into_paginator).
    5      7   
    ///
    6      8   
    /// - The fluent builder is configurable:
    7      9   
    ///   - [`table_arn(impl Into<String>)`](crate::operation::list_exports::builders::ListExportsFluentBuilder::table_arn) / [`set_table_arn(Option<String>)`](crate::operation::list_exports::builders::ListExportsFluentBuilder::set_table_arn):<br>required: **false**<br><p>The Amazon Resource Name (ARN) associated with the exported table.</p><br>
    8     10   
    ///   - [`max_results(i32)`](crate::operation::list_exports::builders::ListExportsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_exports::builders::ListExportsFluentBuilder::set_max_results):<br>required: **false**<br><p>Maximum number of results to return per page.</p><br>
    9     11   
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_exports::builders::ListExportsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_exports::builders::ListExportsFluentBuilder::set_next_token):<br>required: **false**<br><p>An optional string that, if supplied, must be copied from the output of a previous call to <code>ListExports</code>. When provided in this manner, the API fetches the next page of results.</p><br>
   10     12   
    /// - On success, responds with [`ListExportsOutput`](crate::operation::list_exports::ListExportsOutput) with field(s):
   11     13   
    ///   - [`export_summaries(Option<Vec::<ExportSummary>>)`](crate::operation::list_exports::ListExportsOutput::export_summaries): <p>A list of <code>ExportSummary</code> objects.</p>
   12     14   
    ///   - [`next_token(Option<String>)`](crate::operation::list_exports::ListExportsOutput::next_token): <p>If this value is returned, there are additional results to be displayed. To retrieve them, call <code>ListExports</code> again, with <code>NextToken</code> set to this value.</p>
   13     15   
    /// - On failure, responds with [`SdkError<ListExportsError>`](crate::operation::list_exports::ListExportsError)
          16  +
    /* FluentClientGenerator.kt:234 */
   14     17   
    pub fn list_exports(&self) -> crate::operation::list_exports::builders::ListExportsFluentBuilder {
   15     18   
        crate::operation::list_exports::builders::ListExportsFluentBuilder::new(self.handle.clone())
   16     19   
    }
          20  +
    /* FluentClientGenerator.kt:187 */
   17     21   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/client/list_global_tables.rs

@@ -1,1 +16,20 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* FluentClientGenerator.kt:187 */
    2      3   
impl super::Client {
           4  +
    /* FluentClientGenerator.kt:221 */
    3      5   
    /// Constructs a fluent builder for the [`ListGlobalTables`](crate::operation::list_global_tables::builders::ListGlobalTablesFluentBuilder) operation.
    4      6   
    ///
    5      7   
    /// - The fluent builder is configurable:
    6      8   
    ///   - [`exclusive_start_global_table_name(impl Into<String>)`](crate::operation::list_global_tables::builders::ListGlobalTablesFluentBuilder::exclusive_start_global_table_name) / [`set_exclusive_start_global_table_name(Option<String>)`](crate::operation::list_global_tables::builders::ListGlobalTablesFluentBuilder::set_exclusive_start_global_table_name):<br>required: **false**<br><p>The first global table name that this operation will evaluate.</p><br>
    7      9   
    ///   - [`limit(i32)`](crate::operation::list_global_tables::builders::ListGlobalTablesFluentBuilder::limit) / [`set_limit(Option<i32>)`](crate::operation::list_global_tables::builders::ListGlobalTablesFluentBuilder::set_limit):<br>required: **false**<br><p>The maximum number of table names to return, if the parameter is not specified DynamoDB defaults to 100.</p> <p>If the number of global tables DynamoDB finds reaches this limit, it stops the operation and returns the table names collected up to that point, with a table name in the <code>LastEvaluatedGlobalTableName</code> to apply in a subsequent operation to the <code>ExclusiveStartGlobalTableName</code> parameter.</p><br>
    8     10   
    ///   - [`region_name(impl Into<String>)`](crate::operation::list_global_tables::builders::ListGlobalTablesFluentBuilder::region_name) / [`set_region_name(Option<String>)`](crate::operation::list_global_tables::builders::ListGlobalTablesFluentBuilder::set_region_name):<br>required: **false**<br><p>Lists the global tables in a specific Region.</p><br>
    9     11   
    /// - On success, responds with [`ListGlobalTablesOutput`](crate::operation::list_global_tables::ListGlobalTablesOutput) with field(s):
   10     12   
    ///   - [`global_tables(Option<Vec::<GlobalTable>>)`](crate::operation::list_global_tables::ListGlobalTablesOutput::global_tables): <p>List of global table names.</p>
   11     13   
    ///   - [`last_evaluated_global_table_name(Option<String>)`](crate::operation::list_global_tables::ListGlobalTablesOutput::last_evaluated_global_table_name): <p>Last evaluated global table name.</p>
   12     14   
    /// - On failure, responds with [`SdkError<ListGlobalTablesError>`](crate::operation::list_global_tables::ListGlobalTablesError)
          15  +
    /* FluentClientGenerator.kt:234 */
   13     16   
    pub fn list_global_tables(&self) -> crate::operation::list_global_tables::builders::ListGlobalTablesFluentBuilder {
   14     17   
        crate::operation::list_global_tables::builders::ListGlobalTablesFluentBuilder::new(self.handle.clone())
   15     18   
    }
          19  +
    /* FluentClientGenerator.kt:187 */
   16     20   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/client/list_tables.rs

@@ -1,1 +16,20 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* FluentClientGenerator.kt:187 */
    2      3   
impl super::Client {
           4  +
    /* FluentClientGenerator.kt:221 */
    3      5   
    /// Constructs a fluent builder for the [`ListTables`](crate::operation::list_tables::builders::ListTablesFluentBuilder) operation.
    4      6   
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_tables::builders::ListTablesFluentBuilder::into_paginator).
    5      7   
    ///
    6      8   
    /// - The fluent builder is configurable:
    7      9   
    ///   - [`exclusive_start_table_name(impl Into<String>)`](crate::operation::list_tables::builders::ListTablesFluentBuilder::exclusive_start_table_name) / [`set_exclusive_start_table_name(Option<String>)`](crate::operation::list_tables::builders::ListTablesFluentBuilder::set_exclusive_start_table_name):<br>required: **false**<br><p>The first table name that this operation will evaluate. Use the value that was returned for <code>LastEvaluatedTableName</code> in a previous operation, so that you can obtain the next page of results.</p><br>
    8     10   
    ///   - [`limit(i32)`](crate::operation::list_tables::builders::ListTablesFluentBuilder::limit) / [`set_limit(Option<i32>)`](crate::operation::list_tables::builders::ListTablesFluentBuilder::set_limit):<br>required: **false**<br><p>A maximum number of table names to return. If this parameter is not specified, the limit is 100.</p><br>
    9     11   
    /// - On success, responds with [`ListTablesOutput`](crate::operation::list_tables::ListTablesOutput) with field(s):
   10     12   
    ///   - [`table_names(Option<Vec::<String>>)`](crate::operation::list_tables::ListTablesOutput::table_names): <p>The names of the tables associated with the current account at the current endpoint. The maximum size of this array is 100.</p> <p>If <code>LastEvaluatedTableName</code> also appears in the output, you can use this value as the <code>ExclusiveStartTableName</code> parameter in a subsequent <code>ListTables</code> request and obtain the next page of results.</p>
   11     13   
    ///   - [`last_evaluated_table_name(Option<String>)`](crate::operation::list_tables::ListTablesOutput::last_evaluated_table_name): <p>The name of the last table in the current page of results. Use this value as the <code>ExclusiveStartTableName</code> in a new request to obtain the next page of results, until all the table names are returned.</p> <p>If you do not receive a <code>LastEvaluatedTableName</code> value in the response, this means that there are no more table names to be retrieved.</p>
   12     14   
    /// - On failure, responds with [`SdkError<ListTablesError>`](crate::operation::list_tables::ListTablesError)
          15  +
    /* FluentClientGenerator.kt:234 */
   13     16   
    pub fn list_tables(&self) -> crate::operation::list_tables::builders::ListTablesFluentBuilder {
   14     17   
        crate::operation::list_tables::builders::ListTablesFluentBuilder::new(self.handle.clone())
   15     18   
    }
          19  +
    /* FluentClientGenerator.kt:187 */
   16     20   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/client/list_tags_of_resource.rs

@@ -1,1 +15,19 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* FluentClientGenerator.kt:187 */
    2      3   
impl super::Client {
           4  +
    /* FluentClientGenerator.kt:221 */
    3      5   
    /// Constructs a fluent builder for the [`ListTagsOfResource`](crate::operation::list_tags_of_resource::builders::ListTagsOfResourceFluentBuilder) operation.
    4      6   
    ///
    5      7   
    /// - The fluent builder is configurable:
    6      8   
    ///   - [`resource_arn(impl Into<String>)`](crate::operation::list_tags_of_resource::builders::ListTagsOfResourceFluentBuilder::resource_arn) / [`set_resource_arn(Option<String>)`](crate::operation::list_tags_of_resource::builders::ListTagsOfResourceFluentBuilder::set_resource_arn):<br>required: **true**<br><p>The Amazon DynamoDB resource with tags to be listed. This value is an Amazon Resource Name (ARN).</p><br>
    7      9   
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_tags_of_resource::builders::ListTagsOfResourceFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_tags_of_resource::builders::ListTagsOfResourceFluentBuilder::set_next_token):<br>required: **false**<br><p>An optional string that, if supplied, must be copied from the output of a previous call to ListTagOfResource. When provided in this manner, this API fetches the next page of results.</p><br>
    8     10   
    /// - On success, responds with [`ListTagsOfResourceOutput`](crate::operation::list_tags_of_resource::ListTagsOfResourceOutput) with field(s):
    9     11   
    ///   - [`tags(Option<Vec::<Tag>>)`](crate::operation::list_tags_of_resource::ListTagsOfResourceOutput::tags): <p>The tags currently associated with the Amazon DynamoDB resource.</p>
   10     12   
    ///   - [`next_token(Option<String>)`](crate::operation::list_tags_of_resource::ListTagsOfResourceOutput::next_token): <p>If this value is returned, there are additional results to be displayed. To retrieve them, call ListTagsOfResource again, with NextToken set to this value.</p>
   11     13   
    /// - On failure, responds with [`SdkError<ListTagsOfResourceError>`](crate::operation::list_tags_of_resource::ListTagsOfResourceError)
          14  +
    /* FluentClientGenerator.kt:234 */
   12     15   
    pub fn list_tags_of_resource(&self) -> crate::operation::list_tags_of_resource::builders::ListTagsOfResourceFluentBuilder {
   13     16   
        crate::operation::list_tags_of_resource::builders::ListTagsOfResourceFluentBuilder::new(self.handle.clone())
   14     17   
    }
          18  +
    /* FluentClientGenerator.kt:187 */
   15     19   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/client/put_item.rs

@@ -1,1 +24,28 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* FluentClientGenerator.kt:187 */
    2      3   
impl super::Client {
           4  +
    /* FluentClientGenerator.kt:221 */
    3      5   
    /// Constructs a fluent builder for the [`PutItem`](crate::operation::put_item::builders::PutItemFluentBuilder) operation.
    4      6   
    ///
    5      7   
    /// - The fluent builder is configurable:
    6      8   
    ///   - [`table_name(impl Into<String>)`](crate::operation::put_item::builders::PutItemFluentBuilder::table_name) / [`set_table_name(Option<String>)`](crate::operation::put_item::builders::PutItemFluentBuilder::set_table_name):<br>required: **true**<br><p>The name of the table to contain the item.</p><br>
    7      9   
    ///   - [`item(impl Into<String>, AttributeValue)`](crate::operation::put_item::builders::PutItemFluentBuilder::item) / [`set_item(Option<HashMap::<String, AttributeValue>>)`](crate::operation::put_item::builders::PutItemFluentBuilder::set_item):<br>required: **true**<br><p>A map of attribute name/value pairs, one for each attribute. Only the primary key attributes are required; you can optionally provide other attribute name-value pairs for the item.</p> <p>You must provide all of the attributes for the primary key. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide both values for both the partition key and the sort key.</p> <p>If you specify any attributes that are part of an index key, then the data types for those attributes must match those of the schema in the table's attribute definition.</p> <p>Empty String and Binary attribute values are allowed. Attribute values of type String and Binary must have a length greater than zero if the attribute is used as a key attribute for a table or index.</p> <p>For more information about primary keys, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.CoreComponents.html#HowItWorks.CoreComponents.PrimaryKey">Primary Key</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p> <p>Each element in the <code>Item</code> map is an <code>AttributeValue</code> object.</p><br>
    8     10   
    ///   - [`expected(impl Into<String>, ExpectedAttributeValue)`](crate::operation::put_item::builders::PutItemFluentBuilder::expected) / [`set_expected(Option<HashMap::<String, ExpectedAttributeValue>>)`](crate::operation::put_item::builders::PutItemFluentBuilder::set_expected):<br>required: **false**<br><p>This is a legacy parameter. Use <code>ConditionExpression</code> instead. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.Expected.html">Expected</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p><br>
    9     11   
    ///   - [`return_values(ReturnValue)`](crate::operation::put_item::builders::PutItemFluentBuilder::return_values) / [`set_return_values(Option<ReturnValue>)`](crate::operation::put_item::builders::PutItemFluentBuilder::set_return_values):<br>required: **false**<br><p>Use <code>ReturnValues</code> if you want to get the item attributes as they appeared before they were updated with the <code>PutItem</code> request. For <code>PutItem</code>, the valid values are:</p> <ul>  <li>   <p><code>NONE</code> - If <code>ReturnValues</code> is not specified, or if its value is <code>NONE</code>, then nothing is returned. (This setting is the default for <code>ReturnValues</code>.)</p></li>  <li>   <p><code>ALL_OLD</code> - If <code>PutItem</code> overwrote an attribute name-value pair, then the content of the old item is returned.</p></li> </ul><note>  <p>The <code>ReturnValues</code> parameter is used by several DynamoDB operations; however, <code>PutItem</code> does not recognize any values other than <code>NONE</code> or <code>ALL_OLD</code>.</p> </note><br>
   10     12   
    ///   - [`return_consumed_capacity(ReturnConsumedCapacity)`](crate::operation::put_item::builders::PutItemFluentBuilder::return_consumed_capacity) / [`set_return_consumed_capacity(Option<ReturnConsumedCapacity>)`](crate::operation::put_item::builders::PutItemFluentBuilder::set_return_consumed_capacity):<br>required: **false**<br><p>Determines the level of detail about provisioned throughput consumption that is returned in the response:</p> <ul>  <li>   <p><code>INDEXES</code> - The response includes the aggregate <code>ConsumedCapacity</code> for the operation, together with <code>ConsumedCapacity</code> for each table and secondary index that was accessed.</p>   <p>Note that some operations, such as <code>GetItem</code> and <code>BatchGetItem</code>, do not access any indexes at all. In these cases, specifying <code>INDEXES</code> will only return <code>ConsumedCapacity</code> information for table(s).</p></li>  <li>   <p><code>TOTAL</code> - The response includes only the aggregate <code>ConsumedCapacity</code> for the operation.</p></li>  <li>   <p><code>NONE</code> - No <code>ConsumedCapacity</code> details are included in the response.</p></li> </ul><br>
   11     13   
    ///   - [`return_item_collection_metrics(ReturnItemCollectionMetrics)`](crate::operation::put_item::builders::PutItemFluentBuilder::return_item_collection_metrics) / [`set_return_item_collection_metrics(Option<ReturnItemCollectionMetrics>)`](crate::operation::put_item::builders::PutItemFluentBuilder::set_return_item_collection_metrics):<br>required: **false**<br><p>Determines whether item collection metrics are returned. If set to <code>SIZE</code>, the response includes statistics about item collections, if any, that were modified during the operation are returned in the response. If set to <code>NONE</code> (the default), no statistics are returned.</p><br>
   12     14   
    ///   - [`conditional_operator(ConditionalOperator)`](crate::operation::put_item::builders::PutItemFluentBuilder::conditional_operator) / [`set_conditional_operator(Option<ConditionalOperator>)`](crate::operation::put_item::builders::PutItemFluentBuilder::set_conditional_operator):<br>required: **false**<br><p>This is a legacy parameter. Use <code>ConditionExpression</code> instead. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ConditionalOperator.html">ConditionalOperator</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p><br>
   13     15   
    ///   - [`condition_expression(impl Into<String>)`](crate::operation::put_item::builders::PutItemFluentBuilder::condition_expression) / [`set_condition_expression(Option<String>)`](crate::operation::put_item::builders::PutItemFluentBuilder::set_condition_expression):<br>required: **false**<br><p>A condition that must be satisfied in order for a conditional <code>PutItem</code> operation to succeed.</p> <p>An expression can contain any of the following:</p> <ul>  <li>   <p>Functions: <code>attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size</code></p>   <p>These function names are case-sensitive.</p></li>  <li>   <p>Comparison operators: <code>= | &lt;&gt; | &lt; | &gt; | &lt;= | &gt;= | BETWEEN | IN </code></p></li>  <li>   <p>Logical operators: <code>AND | OR | NOT</code></p></li> </ul> <p>For more information on condition expressions, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html">Condition Expressions</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p><br>
   14     16   
    ///   - [`expression_attribute_names(impl Into<String>, impl Into<String>)`](crate::operation::put_item::builders::PutItemFluentBuilder::expression_attribute_names) / [`set_expression_attribute_names(Option<HashMap::<String, String>>)`](crate::operation::put_item::builders::PutItemFluentBuilder::set_expression_attribute_names):<br>required: **false**<br><p>One or more substitution tokens for attribute names in an expression. The following are some use cases for using <code>ExpressionAttributeNames</code>:</p> <ul>  <li>   <p>To access an attribute whose name conflicts with a DynamoDB reserved word.</p></li>  <li>   <p>To create a placeholder for repeating occurrences of an attribute name in an expression.</p></li>  <li>   <p>To prevent special characters in an attribute name from being misinterpreted in an expression.</p></li> </ul> <p>Use the <b>#</b> character in an expression to dereference an attribute name. For example, consider the following attribute name:</p> <ul>  <li>   <p><code>Percentile</code></p></li> </ul> <p>The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html">Reserved Words</a> in the <i>Amazon DynamoDB Developer Guide</i>). To work around this, you could specify the following for <code>ExpressionAttributeNames</code>:</p> <ul>  <li>   <p><code>{"#P":"Percentile"}</code></p></li> </ul> <p>You could then use this substitution in an expression, as in this example:</p> <ul>  <li>   <p><code>#P = :val</code></p></li> </ul><note>  <p>Tokens that begin with the <b>:</b> character are <i>expression attribute values</i>, which are placeholders for the actual value at runtime.</p> </note> <p>For more information on expression attribute names, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html">Specifying Item Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p><br>
   15     17   
    ///   - [`expression_attribute_values(impl Into<String>, AttributeValue)`](crate::operation::put_item::builders::PutItemFluentBuilder::expression_attribute_values) / [`set_expression_attribute_values(Option<HashMap::<String, AttributeValue>>)`](crate::operation::put_item::builders::PutItemFluentBuilder::set_expression_attribute_values):<br>required: **false**<br><p>One or more values that can be substituted in an expression.</p> <p>Use the <b>:</b> (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the <i>ProductStatus</i> attribute was one of the following:</p> <p><code>Available | Backordered | Discontinued</code></p> <p>You would first need to specify <code>ExpressionAttributeValues</code> as follows:</p> <p><code>{ ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} }</code></p> <p>You could then use these values in an expression, such as this:</p> <p><code>ProductStatus IN (:avail, :back, :disc)</code></p> <p>For more information on expression attribute values, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html">Condition Expressions</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p><br>
   16     18   
    /// - On success, responds with [`PutItemOutput`](crate::operation::put_item::PutItemOutput) with field(s):
   17     19   
    ///   - [`attributes(Option<HashMap::<String, AttributeValue>>)`](crate::operation::put_item::PutItemOutput::attributes): <p>The attribute values as they appeared before the <code>PutItem</code> operation, but only if <code>ReturnValues</code> is specified as <code>ALL_OLD</code> in the request. Each element consists of an attribute name and an attribute value.</p>
   18     20   
    ///   - [`consumed_capacity(Option<ConsumedCapacity>)`](crate::operation::put_item::PutItemOutput::consumed_capacity): <p>The capacity units consumed by the <code>PutItem</code> operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. <code>ConsumedCapacity</code> is only returned if the <code>ReturnConsumedCapacity</code> parameter was specified. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html">Read/Write Capacity Mode</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
   19     21   
    ///   - [`item_collection_metrics(Option<ItemCollectionMetrics>)`](crate::operation::put_item::PutItemOutput::item_collection_metrics): <p>Information about item collections, if any, that were affected by the <code>PutItem</code> operation. <code>ItemCollectionMetrics</code> is only returned if the <code>ReturnItemCollectionMetrics</code> parameter was specified. If the table does not have any local secondary indexes, this information is not returned in the response.</p> <p>Each <code>ItemCollectionMetrics</code> element consists of:</p> <ul>  <li>   <p><code>ItemCollectionKey</code> - The partition key value of the item collection. This is the same as the partition key value of the item itself.</p></li>  <li>   <p><code>SizeEstimateRangeGB</code> - An estimate of item collection size, in gigabytes. This value is a two-element array containing a lower bound and an upper bound for the estimate. The estimate includes the size of all the items in the table, plus the size of all attributes projected into all of the local secondary indexes on that table. Use this estimate to measure whether a local secondary index is approaching its size limit.</p>   <p>The estimate is subject to change over time; therefore, do not rely on the precision or accuracy of the estimate.</p></li> </ul>
   20     22   
    /// - On failure, responds with [`SdkError<PutItemError>`](crate::operation::put_item::PutItemError)
          23  +
    /* FluentClientGenerator.kt:234 */
   21     24   
    pub fn put_item(&self) -> crate::operation::put_item::builders::PutItemFluentBuilder {
   22     25   
        crate::operation::put_item::builders::PutItemFluentBuilder::new(self.handle.clone())
   23     26   
    }
          27  +
    /* FluentClientGenerator.kt:187 */
   24     28   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/client/query.rs

@@ -1,1 +34,38 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* FluentClientGenerator.kt:187 */
    2      3   
impl super::Client {
           4  +
    /* FluentClientGenerator.kt:221 */
    3      5   
    /// Constructs a fluent builder for the [`Query`](crate::operation::query::builders::QueryFluentBuilder) operation.
    4      6   
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::query::builders::QueryFluentBuilder::into_paginator).
    5      7   
    ///
    6      8   
    /// - The fluent builder is configurable:
    7      9   
    ///   - [`table_name(impl Into<String>)`](crate::operation::query::builders::QueryFluentBuilder::table_name) / [`set_table_name(Option<String>)`](crate::operation::query::builders::QueryFluentBuilder::set_table_name):<br>required: **true**<br><p>The name of the table containing the requested items.</p><br>
    8     10   
    ///   - [`index_name(impl Into<String>)`](crate::operation::query::builders::QueryFluentBuilder::index_name) / [`set_index_name(Option<String>)`](crate::operation::query::builders::QueryFluentBuilder::set_index_name):<br>required: **false**<br><p>The name of an index to query. This index can be any local secondary index or global secondary index on the table. Note that if you use the <code>IndexName</code> parameter, you must also provide <code>TableName.</code></p><br>
    9     11   
    ///   - [`select(Select)`](crate::operation::query::builders::QueryFluentBuilder::select) / [`set_select(Option<Select>)`](crate::operation::query::builders::QueryFluentBuilder::set_select):<br>required: **false**<br><p>The attributes to be returned in the result. You can retrieve all item attributes, specific item attributes, the count of matching items, or in the case of an index, some or all of the attributes projected into the index.</p> <ul>  <li>   <p><code>ALL_ATTRIBUTES</code> - Returns all of the item attributes from the specified table or index. If you query a local secondary index, then for each matching item in the index, DynamoDB fetches the entire item from the parent table. If the index is configured to project all item attributes, then all of the data can be obtained from the local secondary index, and no fetching is required.</p></li>  <li>   <p><code>ALL_PROJECTED_ATTRIBUTES</code> - Allowed only when querying an index. Retrieves all attributes that have been projected into the index. If the index is configured to project all attributes, this return value is equivalent to specifying <code>ALL_ATTRIBUTES</code>.</p></li>  <li>   <p><code>COUNT</code> - Returns the number of matching items, rather than the matching items themselves.</p></li>  <li>   <p><code>SPECIFIC_ATTRIBUTES</code> - Returns only the attributes listed in <code>AttributesToGet</code>. This return value is equivalent to specifying <code>AttributesToGet</code> without specifying any value for <code>Select</code>.</p>   <p>If you query or scan a local secondary index and request only attributes that are projected into that index, the operation will read only the index and not the table. If any of the requested attributes are not projected into the local secondary index, DynamoDB fetches each of these attributes from the parent table. This extra fetching incurs additional throughput cost and latency.</p>   <p>If you query or scan a global secondary index, you can only request attributes that are projected into the index. Global secondary index queries cannot fetch attributes from the parent table.</p></li> </ul> <p>If neither <code>Select</code> nor <code>AttributesToGet</code> are specified, DynamoDB defaults to <code>ALL_ATTRIBUTES</code> when accessing a table, and <code>ALL_PROJECTED_ATTRIBUTES</code> when accessing an index. You cannot use both <code>Select</code> and <code>AttributesToGet</code> together in a single request, unless the value for <code>Select</code> is <code>SPECIFIC_ATTRIBUTES</code>. (This usage is equivalent to specifying <code>AttributesToGet</code> without any value for <code>Select</code>.)</p><note>  <p>If you use the <code>ProjectionExpression</code> parameter, then the value for <code>Select</code> can only be <code>SPECIFIC_ATTRIBUTES</code>. Any other value for <code>Select</code> will return an error.</p> </note><br>
   10     12   
    ///   - [`attributes_to_get(impl Into<String>)`](crate::operation::query::builders::QueryFluentBuilder::attributes_to_get) / [`set_attributes_to_get(Option<Vec::<String>>)`](crate::operation::query::builders::QueryFluentBuilder::set_attributes_to_get):<br>required: **false**<br><p>This is a legacy parameter. Use <code>ProjectionExpression</code> instead. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributesToGet.html">AttributesToGet</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p><br>
   11     13   
    ///   - [`limit(i32)`](crate::operation::query::builders::QueryFluentBuilder::limit) / [`set_limit(Option<i32>)`](crate::operation::query::builders::QueryFluentBuilder::set_limit):<br>required: **false**<br><p>The maximum number of items to evaluate (not necessarily the number of matching items). If DynamoDB processes the number of items up to the limit while processing the results, it stops the operation and returns the matching values up to that point, and a key in <code>LastEvaluatedKey</code> to apply in a subsequent operation, so that you can pick up where you left off. Also, if the processed dataset size exceeds 1 MB before DynamoDB reaches this limit, it stops the operation and returns the matching values up to the limit, and a key in <code>LastEvaluatedKey</code> to apply in a subsequent operation to continue the operation. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html">Query and Scan</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p><br>
   12     14   
    ///   - [`consistent_read(bool)`](crate::operation::query::builders::QueryFluentBuilder::consistent_read) / [`set_consistent_read(Option<bool>)`](crate::operation::query::builders::QueryFluentBuilder::set_consistent_read):<br>required: **false**<br><p>Determines the read consistency model: If set to <code>true</code>, then the operation uses strongly consistent reads; otherwise, the operation uses eventually consistent reads.</p> <p>Strongly consistent reads are not supported on global secondary indexes. If you query a global secondary index with <code>ConsistentRead</code> set to <code>true</code>, you will receive a <code>ValidationException</code>.</p><br>
   13     15   
    ///   - [`key_conditions(impl Into<String>, Condition)`](crate::operation::query::builders::QueryFluentBuilder::key_conditions) / [`set_key_conditions(Option<HashMap::<String, Condition>>)`](crate::operation::query::builders::QueryFluentBuilder::set_key_conditions):<br>required: **false**<br><p>This is a legacy parameter. Use <code>KeyConditionExpression</code> instead. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.KeyConditions.html">KeyConditions</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p><br>
   14     16   
    ///   - [`query_filter(impl Into<String>, Condition)`](crate::operation::query::builders::QueryFluentBuilder::query_filter) / [`set_query_filter(Option<HashMap::<String, Condition>>)`](crate::operation::query::builders::QueryFluentBuilder::set_query_filter):<br>required: **false**<br><p>This is a legacy parameter. Use <code>FilterExpression</code> instead. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.QueryFilter.html">QueryFilter</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p><br>
   15     17   
    ///   - [`conditional_operator(ConditionalOperator)`](crate::operation::query::builders::QueryFluentBuilder::conditional_operator) / [`set_conditional_operator(Option<ConditionalOperator>)`](crate::operation::query::builders::QueryFluentBuilder::set_conditional_operator):<br>required: **false**<br><p>This is a legacy parameter. Use <code>FilterExpression</code> instead. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ConditionalOperator.html">ConditionalOperator</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p><br>
   16     18   
    ///   - [`scan_index_forward(bool)`](crate::operation::query::builders::QueryFluentBuilder::scan_index_forward) / [`set_scan_index_forward(Option<bool>)`](crate::operation::query::builders::QueryFluentBuilder::set_scan_index_forward):<br>required: **false**<br><p>Specifies the order for index traversal: If <code>true</code> (default), the traversal is performed in ascending order; if <code>false</code>, the traversal is performed in descending order.</p> <p>Items with the same partition key value are stored in sorted order by sort key. If the sort key data type is Number, the results are stored in numeric order. For type String, the results are stored in order of UTF-8 bytes. For type Binary, DynamoDB treats each byte of the binary data as unsigned.</p> <p>If <code>ScanIndexForward</code> is <code>true</code>, DynamoDB returns the results in the order in which they are stored (by sort key value). This is the default behavior. If <code>ScanIndexForward</code> is <code>false</code>, DynamoDB reads the results in reverse order by sort key value, and then returns the results to the client.</p><br>
   17     19   
    ///   - [`exclusive_start_key(impl Into<String>, AttributeValue)`](crate::operation::query::builders::QueryFluentBuilder::exclusive_start_key) / [`set_exclusive_start_key(Option<HashMap::<String, AttributeValue>>)`](crate::operation::query::builders::QueryFluentBuilder::set_exclusive_start_key):<br>required: **false**<br><p>The primary key of the first item that this operation will evaluate. Use the value that was returned for <code>LastEvaluatedKey</code> in the previous operation.</p> <p>The data type for <code>ExclusiveStartKey</code> must be String, Number, or Binary. No set data types are allowed.</p><br>
   18     20   
    ///   - [`return_consumed_capacity(ReturnConsumedCapacity)`](crate::operation::query::builders::QueryFluentBuilder::return_consumed_capacity) / [`set_return_consumed_capacity(Option<ReturnConsumedCapacity>)`](crate::operation::query::builders::QueryFluentBuilder::set_return_consumed_capacity):<br>required: **false**<br><p>Determines the level of detail about provisioned throughput consumption that is returned in the response:</p> <ul>  <li>   <p><code>INDEXES</code> - The response includes the aggregate <code>ConsumedCapacity</code> for the operation, together with <code>ConsumedCapacity</code> for each table and secondary index that was accessed.</p>   <p>Note that some operations, such as <code>GetItem</code> and <code>BatchGetItem</code>, do not access any indexes at all. In these cases, specifying <code>INDEXES</code> will only return <code>ConsumedCapacity</code> information for table(s).</p></li>  <li>   <p><code>TOTAL</code> - The response includes only the aggregate <code>ConsumedCapacity</code> for the operation.</p></li>  <li>   <p><code>NONE</code> - No <code>ConsumedCapacity</code> details are included in the response.</p></li> </ul><br>
   19     21   
    ///   - [`projection_expression(impl Into<String>)`](crate::operation::query::builders::QueryFluentBuilder::projection_expression) / [`set_projection_expression(Option<String>)`](crate::operation::query::builders::QueryFluentBuilder::set_projection_expression):<br>required: **false**<br><p>A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.</p> <p>If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html">Accessing Item Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p><br>
   20     22   
    ///   - [`filter_expression(impl Into<String>)`](crate::operation::query::builders::QueryFluentBuilder::filter_expression) / [`set_filter_expression(Option<String>)`](crate::operation::query::builders::QueryFluentBuilder::set_filter_expression):<br>required: **false**<br><p>A string that contains conditions that DynamoDB applies after the <code>Query</code> operation, but before the data is returned to you. Items that do not satisfy the <code>FilterExpression</code> criteria are not returned.</p> <p>A <code>FilterExpression</code> does not allow key attributes. You cannot define a filter expression based on a partition key or a sort key.</p><note>  <p>A <code>FilterExpression</code> is applied after the items have already been read; the process of filtering does not consume any additional read capacity units.</p> </note> <p>For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#FilteringResults">Filter Expressions</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p><br>
   21     23   
    ///   - [`key_condition_expression(impl Into<String>)`](crate::operation::query::builders::QueryFluentBuilder::key_condition_expression) / [`set_key_condition_expression(Option<String>)`](crate::operation::query::builders::QueryFluentBuilder::set_key_condition_expression):<br>required: **false**<br><p>The condition that specifies the key values for items to be retrieved by the <code>Query</code> action.</p> <p>The condition must perform an equality test on a single partition key value.</p> <p>The condition can optionally perform one of several comparison tests on a single sort key value. This allows <code>Query</code> to retrieve one item with a given partition key value and sort key value, or several items that have the same partition key value but different sort key values.</p> <p>The partition key equality test is required, and must be specified in the following format:</p> <p><code>partitionKeyName</code> <i>=</i> <code>:partitionkeyval</code></p> <p>If you also want to provide a condition for the sort key, it must be combined using <code>AND</code> with the condition for the sort key. Following is an example, using the <b>=</b> comparison operator for the sort key:</p> <p><code>partitionKeyName</code> <code>=</code> <code>:partitionkeyval</code> <code>AND</code> <code>sortKeyName</code> <code>=</code> <code>:sortkeyval</code></p> <p>Valid comparisons for the sort key condition are as follows:</p> <ul>  <li>   <p><code>sortKeyName</code> <code>=</code> <code>:sortkeyval</code> - true if the sort key value is equal to <code>:sortkeyval</code>.</p></li>  <li>   <p><code>sortKeyName</code> <code>&lt;</code> <code>:sortkeyval</code> - true if the sort key value is less than <code>:sortkeyval</code>.</p></li>  <li>   <p><code>sortKeyName</code> <code>&lt;=</code> <code>:sortkeyval</code> - true if the sort key value is less than or equal to <code>:sortkeyval</code>.</p></li>  <li>   <p><code>sortKeyName</code> <code>&gt;</code> <code>:sortkeyval</code> - true if the sort key value is greater than <code>:sortkeyval</code>.</p></li>  <li>   <p><code>sortKeyName</code> <code>&gt;= </code> <code>:sortkeyval</code> - true if the sort key value is greater than or equal to <code>:sortkeyval</code>.</p></li>  <li>   <p><code>sortKeyName</code> <code>BETWEEN</code> <code>:sortkeyval1</code> <code>AND</code> <code>:sortkeyval2</code> - true if the sort key value is greater than or equal to <code>:sortkeyval1</code>, and less than or equal to <code>:sortkeyval2</code>.</p></li>  <li>   <p><code>begins_with (</code> <code>sortKeyName</code>, <code>:sortkeyval</code> <code>)</code> - true if the sort key value begins with a particular operand. (You cannot use this function with a sort key that is of type Number.) Note that the function name <code>begins_with</code> is case-sensitive.</p></li> </ul> <p>Use the <code>ExpressionAttributeValues</code> parameter to replace tokens such as <code>:partitionval</code> and <code>:sortval</code> with actual values at runtime.</p> <p>You can optionally use the <code>ExpressionAttributeNames</code> parameter to replace the names of the partition key and sort key with placeholder tokens. This option might be necessary if an attribute name conflicts with a DynamoDB reserved word. For example, the following <code>KeyConditionExpression</code> parameter causes an error because <i>Size</i> is a reserved word:</p> <ul>  <li>   <p><code>Size = :myval</code></p></li> </ul> <p>To work around this, define a placeholder (such a <code>#S</code>) to represent the attribute name <i>Size</i>. <code>KeyConditionExpression</code> then is as follows:</p> <ul>  <li>   <p><code>#S = :myval</code></p></li> </ul> <p>For a list of reserved words, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html">Reserved Words</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p> <p>For more information on <code>ExpressionAttributeNames</code> and <code>ExpressionAttributeValues</code>, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ExpressionPlaceholders.html">Using Placeholders for Attribute Names and Values</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p><br>
   22     24   
    ///   - [`expression_attribute_names(impl Into<String>, impl Into<String>)`](crate::operation::query::builders::QueryFluentBuilder::expression_attribute_names) / [`set_expression_attribute_names(Option<HashMap::<String, String>>)`](crate::operation::query::builders::QueryFluentBuilder::set_expression_attribute_names):<br>required: **false**<br><p>One or more substitution tokens for attribute names in an expression. The following are some use cases for using <code>ExpressionAttributeNames</code>:</p> <ul>  <li>   <p>To access an attribute whose name conflicts with a DynamoDB reserved word.</p></li>  <li>   <p>To create a placeholder for repeating occurrences of an attribute name in an expression.</p></li>  <li>   <p>To prevent special characters in an attribute name from being misinterpreted in an expression.</p></li> </ul> <p>Use the <b>#</b> character in an expression to dereference an attribute name. For example, consider the following attribute name:</p> <ul>  <li>   <p><code>Percentile</code></p></li> </ul> <p>The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html">Reserved Words</a> in the <i>Amazon DynamoDB Developer Guide</i>). To work around this, you could specify the following for <code>ExpressionAttributeNames</code>:</p> <ul>  <li>   <p><code>{"#P":"Percentile"}</code></p></li> </ul> <p>You could then use this substitution in an expression, as in this example:</p> <ul>  <li>   <p><code>#P = :val</code></p></li> </ul><note>  <p>Tokens that begin with the <b>:</b> character are <i>expression attribute values</i>, which are placeholders for the actual value at runtime.</p> </note> <p>For more information on expression attribute names, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html">Specifying Item Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p><br>
   23     25   
    ///   - [`expression_attribute_values(impl Into<String>, AttributeValue)`](crate::operation::query::builders::QueryFluentBuilder::expression_attribute_values) / [`set_expression_attribute_values(Option<HashMap::<String, AttributeValue>>)`](crate::operation::query::builders::QueryFluentBuilder::set_expression_attribute_values):<br>required: **false**<br><p>One or more values that can be substituted in an expression.</p> <p>Use the <b>:</b> (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the <i>ProductStatus</i> attribute was one of the following:</p> <p><code>Available | Backordered | Discontinued</code></p> <p>You would first need to specify <code>ExpressionAttributeValues</code> as follows:</p> <p><code>{ ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} }</code></p> <p>You could then use these values in an expression, such as this:</p> <p><code>ProductStatus IN (:avail, :back, :disc)</code></p> <p>For more information on expression attribute values, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html">Specifying Conditions</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p><br>
   24     26   
    /// - On success, responds with [`QueryOutput`](crate::operation::query::QueryOutput) with field(s):
   25     27   
    ///   - [`items(Option<Vec::<HashMap::<String, AttributeValue>>>)`](crate::operation::query::QueryOutput::items): <p>An array of item attributes that match the query criteria. Each element in this array consists of an attribute name and the value for that attribute.</p>
   26     28   
    ///   - [`count(i32)`](crate::operation::query::QueryOutput::count): <p>The number of items in the response.</p> <p>If you used a <code>QueryFilter</code> in the request, then <code>Count</code> is the number of items returned after the filter was applied, and <code>ScannedCount</code> is the number of matching items before the filter was applied.</p> <p>If you did not use a filter in the request, then <code>Count</code> and <code>ScannedCount</code> are the same.</p>
   27     29   
    ///   - [`scanned_count(i32)`](crate::operation::query::QueryOutput::scanned_count): <p>The number of items evaluated, before any <code>QueryFilter</code> is applied. A high <code>ScannedCount</code> value with few, or no, <code>Count</code> results indicates an inefficient <code>Query</code> operation. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#Count">Count and ScannedCount</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p> <p>If you did not use a filter in the request, then <code>ScannedCount</code> is the same as <code>Count</code>.</p>
   28     30   
    ///   - [`last_evaluated_key(Option<HashMap::<String, AttributeValue>>)`](crate::operation::query::QueryOutput::last_evaluated_key): <p>The primary key of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request.</p> <p>If <code>LastEvaluatedKey</code> is empty, then the "last page" of results has been processed and there is no more data to be retrieved.</p> <p>If <code>LastEvaluatedKey</code> is not empty, it does not necessarily mean that there is more data in the result set. The only way to know when you have reached the end of the result set is when <code>LastEvaluatedKey</code> is empty.</p>
   29     31   
    ///   - [`consumed_capacity(Option<ConsumedCapacity>)`](crate::operation::query::QueryOutput::consumed_capacity): <p>The capacity units consumed by the <code>Query</code> operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. <code>ConsumedCapacity</code> is only returned if the <code>ReturnConsumedCapacity</code> parameter was specified. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html">Provisioned Throughput</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
   30     32   
    /// - On failure, responds with [`SdkError<QueryError>`](crate::operation::query::QueryError)
          33  +
    /* FluentClientGenerator.kt:234 */
   31     34   
    pub fn query(&self) -> crate::operation::query::builders::QueryFluentBuilder {
   32     35   
        crate::operation::query::builders::QueryFluentBuilder::new(self.handle.clone())
   33     36   
    }
          37  +
    /* FluentClientGenerator.kt:187 */
   34     38   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/client/restore_table_from_backup.rs

@@ -1,1 +19,23 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* FluentClientGenerator.kt:187 */
    2      3   
impl super::Client {
           4  +
    /* FluentClientGenerator.kt:221 */
    3      5   
    /// Constructs a fluent builder for the [`RestoreTableFromBackup`](crate::operation::restore_table_from_backup::builders::RestoreTableFromBackupFluentBuilder) operation.
    4      6   
    ///
    5      7   
    /// - The fluent builder is configurable:
    6      8   
    ///   - [`target_table_name(impl Into<String>)`](crate::operation::restore_table_from_backup::builders::RestoreTableFromBackupFluentBuilder::target_table_name) / [`set_target_table_name(Option<String>)`](crate::operation::restore_table_from_backup::builders::RestoreTableFromBackupFluentBuilder::set_target_table_name):<br>required: **true**<br><p>The name of the new table to which the backup must be restored.</p><br>
    7      9   
    ///   - [`backup_arn(impl Into<String>)`](crate::operation::restore_table_from_backup::builders::RestoreTableFromBackupFluentBuilder::backup_arn) / [`set_backup_arn(Option<String>)`](crate::operation::restore_table_from_backup::builders::RestoreTableFromBackupFluentBuilder::set_backup_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) associated with the backup.</p><br>
    8     10   
    ///   - [`billing_mode_override(BillingMode)`](crate::operation::restore_table_from_backup::builders::RestoreTableFromBackupFluentBuilder::billing_mode_override) / [`set_billing_mode_override(Option<BillingMode>)`](crate::operation::restore_table_from_backup::builders::RestoreTableFromBackupFluentBuilder::set_billing_mode_override):<br>required: **false**<br><p>The billing mode of the restored table.</p><br>
    9     11   
    ///   - [`global_secondary_index_override(GlobalSecondaryIndex)`](crate::operation::restore_table_from_backup::builders::RestoreTableFromBackupFluentBuilder::global_secondary_index_override) / [`set_global_secondary_index_override(Option<Vec::<GlobalSecondaryIndex>>)`](crate::operation::restore_table_from_backup::builders::RestoreTableFromBackupFluentBuilder::set_global_secondary_index_override):<br>required: **false**<br><p>List of global secondary indexes for the restored table. The indexes provided should match existing secondary indexes. You can choose to exclude some or all of the indexes at the time of restore.</p><br>
   10     12   
    ///   - [`local_secondary_index_override(LocalSecondaryIndex)`](crate::operation::restore_table_from_backup::builders::RestoreTableFromBackupFluentBuilder::local_secondary_index_override) / [`set_local_secondary_index_override(Option<Vec::<LocalSecondaryIndex>>)`](crate::operation::restore_table_from_backup::builders::RestoreTableFromBackupFluentBuilder::set_local_secondary_index_override):<br>required: **false**<br><p>List of local secondary indexes for the restored table. The indexes provided should match existing secondary indexes. You can choose to exclude some or all of the indexes at the time of restore.</p><br>
   11     13   
    ///   - [`provisioned_throughput_override(ProvisionedThroughput)`](crate::operation::restore_table_from_backup::builders::RestoreTableFromBackupFluentBuilder::provisioned_throughput_override) / [`set_provisioned_throughput_override(Option<ProvisionedThroughput>)`](crate::operation::restore_table_from_backup::builders::RestoreTableFromBackupFluentBuilder::set_provisioned_throughput_override):<br>required: **false**<br><p>Provisioned throughput settings for the restored table.</p><br>
   12     14   
    ///   - [`sse_specification_override(SseSpecification)`](crate::operation::restore_table_from_backup::builders::RestoreTableFromBackupFluentBuilder::sse_specification_override) / [`set_sse_specification_override(Option<SseSpecification>)`](crate::operation::restore_table_from_backup::builders::RestoreTableFromBackupFluentBuilder::set_sse_specification_override):<br>required: **false**<br><p>The new server-side encryption settings for the restored table.</p><br>
   13     15   
    /// - On success, responds with [`RestoreTableFromBackupOutput`](crate::operation::restore_table_from_backup::RestoreTableFromBackupOutput) with field(s):
   14     16   
    ///   - [`table_description(Option<TableDescription>)`](crate::operation::restore_table_from_backup::RestoreTableFromBackupOutput::table_description): <p>The description of the table created from an existing backup.</p>
   15     17   
    /// - On failure, responds with [`SdkError<RestoreTableFromBackupError>`](crate::operation::restore_table_from_backup::RestoreTableFromBackupError)
          18  +
    /* FluentClientGenerator.kt:234 */
   16     19   
    pub fn restore_table_from_backup(&self) -> crate::operation::restore_table_from_backup::builders::RestoreTableFromBackupFluentBuilder {
   17     20   
        crate::operation::restore_table_from_backup::builders::RestoreTableFromBackupFluentBuilder::new(self.handle.clone())
   18     21   
    }
          22  +
    /* FluentClientGenerator.kt:187 */
   19     23   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/client/restore_table_to_point_in_time.rs

@@ -1,1 +24,28 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* FluentClientGenerator.kt:187 */
    2      3   
impl super::Client {
           4  +
    /* FluentClientGenerator.kt:221 */
    3      5   
    /// Constructs a fluent builder for the [`RestoreTableToPointInTime`](crate::operation::restore_table_to_point_in_time::builders::RestoreTableToPointInTimeFluentBuilder) operation.
    4      6   
    ///
    5      7   
    /// - The fluent builder is configurable:
    6      8   
    ///   - [`source_table_arn(impl Into<String>)`](crate::operation::restore_table_to_point_in_time::builders::RestoreTableToPointInTimeFluentBuilder::source_table_arn) / [`set_source_table_arn(Option<String>)`](crate::operation::restore_table_to_point_in_time::builders::RestoreTableToPointInTimeFluentBuilder::set_source_table_arn):<br>required: **false**<br><p>The DynamoDB table that will be restored. This value is an Amazon Resource Name (ARN).</p><br>
    7      9   
    ///   - [`source_table_name(impl Into<String>)`](crate::operation::restore_table_to_point_in_time::builders::RestoreTableToPointInTimeFluentBuilder::source_table_name) / [`set_source_table_name(Option<String>)`](crate::operation::restore_table_to_point_in_time::builders::RestoreTableToPointInTimeFluentBuilder::set_source_table_name):<br>required: **false**<br><p>Name of the source table that is being restored.</p><br>
    8     10   
    ///   - [`target_table_name(impl Into<String>)`](crate::operation::restore_table_to_point_in_time::builders::RestoreTableToPointInTimeFluentBuilder::target_table_name) / [`set_target_table_name(Option<String>)`](crate::operation::restore_table_to_point_in_time::builders::RestoreTableToPointInTimeFluentBuilder::set_target_table_name):<br>required: **true**<br><p>The name of the new table to which it must be restored to.</p><br>
    9     11   
    ///   - [`use_latest_restorable_time(bool)`](crate::operation::restore_table_to_point_in_time::builders::RestoreTableToPointInTimeFluentBuilder::use_latest_restorable_time) / [`set_use_latest_restorable_time(Option<bool>)`](crate::operation::restore_table_to_point_in_time::builders::RestoreTableToPointInTimeFluentBuilder::set_use_latest_restorable_time):<br>required: **false**<br><p>Restore the table to the latest possible time. <code>LatestRestorableDateTime</code> is typically 5 minutes before the current time.</p><br>
   10     12   
    ///   - [`restore_date_time(DateTime)`](crate::operation::restore_table_to_point_in_time::builders::RestoreTableToPointInTimeFluentBuilder::restore_date_time) / [`set_restore_date_time(Option<DateTime>)`](crate::operation::restore_table_to_point_in_time::builders::RestoreTableToPointInTimeFluentBuilder::set_restore_date_time):<br>required: **false**<br><p>Time in the past to restore the table to.</p><br>
   11     13   
    ///   - [`billing_mode_override(BillingMode)`](crate::operation::restore_table_to_point_in_time::builders::RestoreTableToPointInTimeFluentBuilder::billing_mode_override) / [`set_billing_mode_override(Option<BillingMode>)`](crate::operation::restore_table_to_point_in_time::builders::RestoreTableToPointInTimeFluentBuilder::set_billing_mode_override):<br>required: **false**<br><p>The billing mode of the restored table.</p><br>
   12     14   
    ///   - [`global_secondary_index_override(GlobalSecondaryIndex)`](crate::operation::restore_table_to_point_in_time::builders::RestoreTableToPointInTimeFluentBuilder::global_secondary_index_override) / [`set_global_secondary_index_override(Option<Vec::<GlobalSecondaryIndex>>)`](crate::operation::restore_table_to_point_in_time::builders::RestoreTableToPointInTimeFluentBuilder::set_global_secondary_index_override):<br>required: **false**<br><p>List of global secondary indexes for the restored table. The indexes provided should match existing secondary indexes. You can choose to exclude some or all of the indexes at the time of restore.</p><br>
   13     15   
    ///   - [`local_secondary_index_override(LocalSecondaryIndex)`](crate::operation::restore_table_to_point_in_time::builders::RestoreTableToPointInTimeFluentBuilder::local_secondary_index_override) / [`set_local_secondary_index_override(Option<Vec::<LocalSecondaryIndex>>)`](crate::operation::restore_table_to_point_in_time::builders::RestoreTableToPointInTimeFluentBuilder::set_local_secondary_index_override):<br>required: **false**<br><p>List of local secondary indexes for the restored table. The indexes provided should match existing secondary indexes. You can choose to exclude some or all of the indexes at the time of restore.</p><br>
   14     16   
    ///   - [`provisioned_throughput_override(ProvisionedThroughput)`](crate::operation::restore_table_to_point_in_time::builders::RestoreTableToPointInTimeFluentBuilder::provisioned_throughput_override) / [`set_provisioned_throughput_override(Option<ProvisionedThroughput>)`](crate::operation::restore_table_to_point_in_time::builders::RestoreTableToPointInTimeFluentBuilder::set_provisioned_throughput_override):<br>required: **false**<br><p>Provisioned throughput settings for the restored table.</p><br>
   15     17   
    ///   - [`sse_specification_override(SseSpecification)`](crate::operation::restore_table_to_point_in_time::builders::RestoreTableToPointInTimeFluentBuilder::sse_specification_override) / [`set_sse_specification_override(Option<SseSpecification>)`](crate::operation::restore_table_to_point_in_time::builders::RestoreTableToPointInTimeFluentBuilder::set_sse_specification_override):<br>required: **false**<br><p>The new server-side encryption settings for the restored table.</p><br>
   16     18   
    /// - On success, responds with [`RestoreTableToPointInTimeOutput`](crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeOutput) with field(s):
   17     19   
    ///   - [`table_description(Option<TableDescription>)`](crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeOutput::table_description): <p>Represents the properties of a table.</p>
   18     20   
    /// - On failure, responds with [`SdkError<RestoreTableToPointInTimeError>`](crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError)
          21  +
    /* FluentClientGenerator.kt:234 */
   19     22   
    pub fn restore_table_to_point_in_time(
   20     23   
        &self,
   21     24   
    ) -> crate::operation::restore_table_to_point_in_time::builders::RestoreTableToPointInTimeFluentBuilder {
   22     25   
        crate::operation::restore_table_to_point_in_time::builders::RestoreTableToPointInTimeFluentBuilder::new(self.handle.clone())
   23     26   
    }
          27  +
    /* FluentClientGenerator.kt:187 */
   24     28   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/client/scan.rs

@@ -1,1 +33,37 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* FluentClientGenerator.kt:187 */
    2      3   
impl super::Client {
           4  +
    /* FluentClientGenerator.kt:221 */
    3      5   
    /// Constructs a fluent builder for the [`Scan`](crate::operation::scan::builders::ScanFluentBuilder) operation.
    4      6   
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::scan::builders::ScanFluentBuilder::into_paginator).
    5      7   
    ///
    6      8   
    /// - The fluent builder is configurable:
    7      9   
    ///   - [`table_name(impl Into<String>)`](crate::operation::scan::builders::ScanFluentBuilder::table_name) / [`set_table_name(Option<String>)`](crate::operation::scan::builders::ScanFluentBuilder::set_table_name):<br>required: **true**<br><p>The name of the table containing the requested items; or, if you provide <code>IndexName</code>, the name of the table to which that index belongs.</p><br>
    8     10   
    ///   - [`index_name(impl Into<String>)`](crate::operation::scan::builders::ScanFluentBuilder::index_name) / [`set_index_name(Option<String>)`](crate::operation::scan::builders::ScanFluentBuilder::set_index_name):<br>required: **false**<br><p>The name of a secondary index to scan. This index can be any local secondary index or global secondary index. Note that if you use the <code>IndexName</code> parameter, you must also provide <code>TableName</code>.</p><br>
    9     11   
    ///   - [`attributes_to_get(impl Into<String>)`](crate::operation::scan::builders::ScanFluentBuilder::attributes_to_get) / [`set_attributes_to_get(Option<Vec::<String>>)`](crate::operation::scan::builders::ScanFluentBuilder::set_attributes_to_get):<br>required: **false**<br><p>This is a legacy parameter. Use <code>ProjectionExpression</code> instead. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributesToGet.html">AttributesToGet</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p><br>
   10     12   
    ///   - [`limit(i32)`](crate::operation::scan::builders::ScanFluentBuilder::limit) / [`set_limit(Option<i32>)`](crate::operation::scan::builders::ScanFluentBuilder::set_limit):<br>required: **false**<br><p>The maximum number of items to evaluate (not necessarily the number of matching items). If DynamoDB processes the number of items up to the limit while processing the results, it stops the operation and returns the matching values up to that point, and a key in <code>LastEvaluatedKey</code> to apply in a subsequent operation, so that you can pick up where you left off. Also, if the processed dataset size exceeds 1 MB before DynamoDB reaches this limit, it stops the operation and returns the matching values up to the limit, and a key in <code>LastEvaluatedKey</code> to apply in a subsequent operation to continue the operation. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html">Working with Queries</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p><br>
   11     13   
    ///   - [`select(Select)`](crate::operation::scan::builders::ScanFluentBuilder::select) / [`set_select(Option<Select>)`](crate::operation::scan::builders::ScanFluentBuilder::set_select):<br>required: **false**<br><p>The attributes to be returned in the result. You can retrieve all item attributes, specific item attributes, the count of matching items, or in the case of an index, some or all of the attributes projected into the index.</p> <ul>  <li>   <p><code>ALL_ATTRIBUTES</code> - Returns all of the item attributes from the specified table or index. If you query a local secondary index, then for each matching item in the index, DynamoDB fetches the entire item from the parent table. If the index is configured to project all item attributes, then all of the data can be obtained from the local secondary index, and no fetching is required.</p></li>  <li>   <p><code>ALL_PROJECTED_ATTRIBUTES</code> - Allowed only when querying an index. Retrieves all attributes that have been projected into the index. If the index is configured to project all attributes, this return value is equivalent to specifying <code>ALL_ATTRIBUTES</code>.</p></li>  <li>   <p><code>COUNT</code> - Returns the number of matching items, rather than the matching items themselves.</p></li>  <li>   <p><code>SPECIFIC_ATTRIBUTES</code> - Returns only the attributes listed in <code>AttributesToGet</code>. This return value is equivalent to specifying <code>AttributesToGet</code> without specifying any value for <code>Select</code>.</p>   <p>If you query or scan a local secondary index and request only attributes that are projected into that index, the operation reads only the index and not the table. If any of the requested attributes are not projected into the local secondary index, DynamoDB fetches each of these attributes from the parent table. This extra fetching incurs additional throughput cost and latency.</p>   <p>If you query or scan a global secondary index, you can only request attributes that are projected into the index. Global secondary index queries cannot fetch attributes from the parent table.</p></li> </ul> <p>If neither <code>Select</code> nor <code>AttributesToGet</code> are specified, DynamoDB defaults to <code>ALL_ATTRIBUTES</code> when accessing a table, and <code>ALL_PROJECTED_ATTRIBUTES</code> when accessing an index. You cannot use both <code>Select</code> and <code>AttributesToGet</code> together in a single request, unless the value for <code>Select</code> is <code>SPECIFIC_ATTRIBUTES</code>. (This usage is equivalent to specifying <code>AttributesToGet</code> without any value for <code>Select</code>.)</p><note>  <p>If you use the <code>ProjectionExpression</code> parameter, then the value for <code>Select</code> can only be <code>SPECIFIC_ATTRIBUTES</code>. Any other value for <code>Select</code> will return an error.</p> </note><br>
   12     14   
    ///   - [`scan_filter(impl Into<String>, Condition)`](crate::operation::scan::builders::ScanFluentBuilder::scan_filter) / [`set_scan_filter(Option<HashMap::<String, Condition>>)`](crate::operation::scan::builders::ScanFluentBuilder::set_scan_filter):<br>required: **false**<br><p>This is a legacy parameter. Use <code>FilterExpression</code> instead. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ScanFilter.html">ScanFilter</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p><br>
   13     15   
    ///   - [`conditional_operator(ConditionalOperator)`](crate::operation::scan::builders::ScanFluentBuilder::conditional_operator) / [`set_conditional_operator(Option<ConditionalOperator>)`](crate::operation::scan::builders::ScanFluentBuilder::set_conditional_operator):<br>required: **false**<br><p>This is a legacy parameter. Use <code>FilterExpression</code> instead. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ConditionalOperator.html">ConditionalOperator</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p><br>
   14     16   
    ///   - [`exclusive_start_key(impl Into<String>, AttributeValue)`](crate::operation::scan::builders::ScanFluentBuilder::exclusive_start_key) / [`set_exclusive_start_key(Option<HashMap::<String, AttributeValue>>)`](crate::operation::scan::builders::ScanFluentBuilder::set_exclusive_start_key):<br>required: **false**<br><p>The primary key of the first item that this operation will evaluate. Use the value that was returned for <code>LastEvaluatedKey</code> in the previous operation.</p> <p>The data type for <code>ExclusiveStartKey</code> must be String, Number or Binary. No set data types are allowed.</p> <p>In a parallel scan, a <code>Scan</code> request that includes <code>ExclusiveStartKey</code> must specify the same segment whose previous <code>Scan</code> returned the corresponding value of <code>LastEvaluatedKey</code>.</p><br>
   15     17   
    ///   - [`return_consumed_capacity(ReturnConsumedCapacity)`](crate::operation::scan::builders::ScanFluentBuilder::return_consumed_capacity) / [`set_return_consumed_capacity(Option<ReturnConsumedCapacity>)`](crate::operation::scan::builders::ScanFluentBuilder::set_return_consumed_capacity):<br>required: **false**<br><p>Determines the level of detail about provisioned throughput consumption that is returned in the response:</p> <ul>  <li>   <p><code>INDEXES</code> - The response includes the aggregate <code>ConsumedCapacity</code> for the operation, together with <code>ConsumedCapacity</code> for each table and secondary index that was accessed.</p>   <p>Note that some operations, such as <code>GetItem</code> and <code>BatchGetItem</code>, do not access any indexes at all. In these cases, specifying <code>INDEXES</code> will only return <code>ConsumedCapacity</code> information for table(s).</p></li>  <li>   <p><code>TOTAL</code> - The response includes only the aggregate <code>ConsumedCapacity</code> for the operation.</p></li>  <li>   <p><code>NONE</code> - No <code>ConsumedCapacity</code> details are included in the response.</p></li> </ul><br>
   16     18   
    ///   - [`total_segments(i32)`](crate::operation::scan::builders::ScanFluentBuilder::total_segments) / [`set_total_segments(Option<i32>)`](crate::operation::scan::builders::ScanFluentBuilder::set_total_segments):<br>required: **false**<br><p>For a parallel <code>Scan</code> request, <code>TotalSegments</code> represents the total number of segments into which the <code>Scan</code> operation will be divided. The value of <code>TotalSegments</code> corresponds to the number of application workers that will perform the parallel scan. For example, if you want to use four application threads to scan a table or an index, specify a <code>TotalSegments</code> value of 4.</p> <p>The value for <code>TotalSegments</code> must be greater than or equal to 1, and less than or equal to 1000000. If you specify a <code>TotalSegments</code> value of 1, the <code>Scan</code> operation will be sequential rather than parallel.</p> <p>If you specify <code>TotalSegments</code>, you must also specify <code>Segment</code>.</p><br>
   17     19   
    ///   - [`segment(i32)`](crate::operation::scan::builders::ScanFluentBuilder::segment) / [`set_segment(Option<i32>)`](crate::operation::scan::builders::ScanFluentBuilder::set_segment):<br>required: **false**<br><p>For a parallel <code>Scan</code> request, <code>Segment</code> identifies an individual segment to be scanned by an application worker.</p> <p>Segment IDs are zero-based, so the first segment is always 0. For example, if you want to use four application threads to scan a table or an index, then the first thread specifies a <code>Segment</code> value of 0, the second thread specifies 1, and so on.</p> <p>The value of <code>LastEvaluatedKey</code> returned from a parallel <code>Scan</code> request must be used as <code>ExclusiveStartKey</code> with the same segment ID in a subsequent <code>Scan</code> operation.</p> <p>The value for <code>Segment</code> must be greater than or equal to 0, and less than the value provided for <code>TotalSegments</code>.</p> <p>If you provide <code>Segment</code>, you must also provide <code>TotalSegments</code>.</p><br>
   18     20   
    ///   - [`projection_expression(impl Into<String>)`](crate::operation::scan::builders::ScanFluentBuilder::projection_expression) / [`set_projection_expression(Option<String>)`](crate::operation::scan::builders::ScanFluentBuilder::set_projection_expression):<br>required: **false**<br><p>A string that identifies one or more attributes to retrieve from the specified table or index. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.</p> <p>If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html">Specifying Item Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p><br>
   19     21   
    ///   - [`filter_expression(impl Into<String>)`](crate::operation::scan::builders::ScanFluentBuilder::filter_expression) / [`set_filter_expression(Option<String>)`](crate::operation::scan::builders::ScanFluentBuilder::set_filter_expression):<br>required: **false**<br><p>A string that contains conditions that DynamoDB applies after the <code>Scan</code> operation, but before the data is returned to you. Items that do not satisfy the <code>FilterExpression</code> criteria are not returned.</p><note>  <p>A <code>FilterExpression</code> is applied after the items have already been read; the process of filtering does not consume any additional read capacity units.</p> </note> <p>For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#FilteringResults">Filter Expressions</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p><br>
   20     22   
    ///   - [`expression_attribute_names(impl Into<String>, impl Into<String>)`](crate::operation::scan::builders::ScanFluentBuilder::expression_attribute_names) / [`set_expression_attribute_names(Option<HashMap::<String, String>>)`](crate::operation::scan::builders::ScanFluentBuilder::set_expression_attribute_names):<br>required: **false**<br><p>One or more substitution tokens for attribute names in an expression. The following are some use cases for using <code>ExpressionAttributeNames</code>:</p> <ul>  <li>   <p>To access an attribute whose name conflicts with a DynamoDB reserved word.</p></li>  <li>   <p>To create a placeholder for repeating occurrences of an attribute name in an expression.</p></li>  <li>   <p>To prevent special characters in an attribute name from being misinterpreted in an expression.</p></li> </ul> <p>Use the <b>#</b> character in an expression to dereference an attribute name. For example, consider the following attribute name:</p> <ul>  <li>   <p><code>Percentile</code></p></li> </ul> <p>The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html">Reserved Words</a> in the <i>Amazon DynamoDB Developer Guide</i>). To work around this, you could specify the following for <code>ExpressionAttributeNames</code>:</p> <ul>  <li>   <p><code>{"#P":"Percentile"}</code></p></li> </ul> <p>You could then use this substitution in an expression, as in this example:</p> <ul>  <li>   <p><code>#P = :val</code></p></li> </ul><note>  <p>Tokens that begin with the <b>:</b> character are <i>expression attribute values</i>, which are placeholders for the actual value at runtime.</p> </note> <p>For more information on expression attribute names, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html">Specifying Item Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p><br>
   21     23   
    ///   - [`expression_attribute_values(impl Into<String>, AttributeValue)`](crate::operation::scan::builders::ScanFluentBuilder::expression_attribute_values) / [`set_expression_attribute_values(Option<HashMap::<String, AttributeValue>>)`](crate::operation::scan::builders::ScanFluentBuilder::set_expression_attribute_values):<br>required: **false**<br><p>One or more values that can be substituted in an expression.</p> <p>Use the <b>:</b> (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the <code>ProductStatus</code> attribute was one of the following:</p> <p><code>Available | Backordered | Discontinued</code></p> <p>You would first need to specify <code>ExpressionAttributeValues</code> as follows:</p> <p><code>{ ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} }</code></p> <p>You could then use these values in an expression, such as this:</p> <p><code>ProductStatus IN (:avail, :back, :disc)</code></p> <p>For more information on expression attribute values, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html">Condition Expressions</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p><br>
   22     24   
    ///   - [`consistent_read(bool)`](crate::operation::scan::builders::ScanFluentBuilder::consistent_read) / [`set_consistent_read(Option<bool>)`](crate::operation::scan::builders::ScanFluentBuilder::set_consistent_read):<br>required: **false**<br><p>A Boolean value that determines the read consistency model during the scan:</p> <ul>  <li>   <p>If <code>ConsistentRead</code> is <code>false</code>, then the data returned from <code>Scan</code> might not contain the results from other recently completed write operations (<code>PutItem</code>, <code>UpdateItem</code>, or <code>DeleteItem</code>).</p></li>  <li>   <p>If <code>ConsistentRead</code> is <code>true</code>, then all of the write operations that completed before the <code>Scan</code> began are guaranteed to be contained in the <code>Scan</code> response.</p></li> </ul> <p>The default setting for <code>ConsistentRead</code> is <code>false</code>.</p> <p>The <code>ConsistentRead</code> parameter is not supported on global secondary indexes. If you scan a global secondary index with <code>ConsistentRead</code> set to true, you will receive a <code>ValidationException</code>.</p><br>
   23     25   
    /// - On success, responds with [`ScanOutput`](crate::operation::scan::ScanOutput) with field(s):
   24     26   
    ///   - [`items(Option<Vec::<HashMap::<String, AttributeValue>>>)`](crate::operation::scan::ScanOutput::items): <p>An array of item attributes that match the scan criteria. Each element in this array consists of an attribute name and the value for that attribute.</p>
   25     27   
    ///   - [`count(i32)`](crate::operation::scan::ScanOutput::count): <p>The number of items in the response.</p> <p>If you set <code>ScanFilter</code> in the request, then <code>Count</code> is the number of items returned after the filter was applied, and <code>ScannedCount</code> is the number of matching items before the filter was applied.</p> <p>If you did not use a filter in the request, then <code>Count</code> is the same as <code>ScannedCount</code>.</p>
   26     28   
    ///   - [`scanned_count(i32)`](crate::operation::scan::ScanOutput::scanned_count): <p>The number of items evaluated, before any <code>ScanFilter</code> is applied. A high <code>ScannedCount</code> value with few, or no, <code>Count</code> results indicates an inefficient <code>Scan</code> operation. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#Count">Count and ScannedCount</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p> <p>If you did not use a filter in the request, then <code>ScannedCount</code> is the same as <code>Count</code>.</p>
   27     29   
    ///   - [`last_evaluated_key(Option<HashMap::<String, AttributeValue>>)`](crate::operation::scan::ScanOutput::last_evaluated_key): <p>The primary key of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request.</p> <p>If <code>LastEvaluatedKey</code> is empty, then the "last page" of results has been processed and there is no more data to be retrieved.</p> <p>If <code>LastEvaluatedKey</code> is not empty, it does not necessarily mean that there is more data in the result set. The only way to know when you have reached the end of the result set is when <code>LastEvaluatedKey</code> is empty.</p>
   28     30   
    ///   - [`consumed_capacity(Option<ConsumedCapacity>)`](crate::operation::scan::ScanOutput::consumed_capacity): <p>The capacity units consumed by the <code>Scan</code> operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. <code>ConsumedCapacity</code> is only returned if the <code>ReturnConsumedCapacity</code> parameter was specified. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html">Provisioned Throughput</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
   29     31   
    /// - On failure, responds with [`SdkError<ScanError>`](crate::operation::scan::ScanError)
          32  +
    /* FluentClientGenerator.kt:234 */
   30     33   
    pub fn scan(&self) -> crate::operation::scan::builders::ScanFluentBuilder {
   31     34   
        crate::operation::scan::builders::ScanFluentBuilder::new(self.handle.clone())
   32     35   
    }
          36  +
    /* FluentClientGenerator.kt:187 */
   33     37   
}