pub struct Builder { /* private fields */ }
Expand description

Implementations§

The DynamoDB table that will be restored. This value is an Amazon Resource Name (ARN).

Examples found in repository?
src/client.rs (line 6164)
6163
6164
6165
6166
        pub fn source_table_arn(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.source_table_arn(input.into());
            self
        }

The DynamoDB table that will be restored. This value is an Amazon Resource Name (ARN).

Examples found in repository?
src/client.rs (line 6172)
6168
6169
6170
6171
6172
6173
6174
        pub fn set_source_table_arn(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_source_table_arn(input);
            self
        }

Name of the source table that is being restored.

Examples found in repository?
src/client.rs (line 6177)
6176
6177
6178
6179
        pub fn source_table_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.source_table_name(input.into());
            self
        }

Name of the source table that is being restored.

Examples found in repository?
src/client.rs (line 6185)
6181
6182
6183
6184
6185
6186
6187
        pub fn set_source_table_name(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_source_table_name(input);
            self
        }

The name of the new table to which it must be restored to.

Examples found in repository?
src/client.rs (line 6190)
6189
6190
6191
6192
        pub fn target_table_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.target_table_name(input.into());
            self
        }

The name of the new table to which it must be restored to.

Examples found in repository?
src/client.rs (line 6198)
6194
6195
6196
6197
6198
6199
6200
        pub fn set_target_table_name(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_target_table_name(input);
            self
        }

Restore the table to the latest possible time. LatestRestorableDateTime is typically 5 minutes before the current time.

Examples found in repository?
src/client.rs (line 6203)
6202
6203
6204
6205
        pub fn use_latest_restorable_time(mut self, input: bool) -> Self {
            self.inner = self.inner.use_latest_restorable_time(input);
            self
        }

Restore the table to the latest possible time. LatestRestorableDateTime is typically 5 minutes before the current time.

Examples found in repository?
src/client.rs (line 6208)
6207
6208
6209
6210
        pub fn set_use_latest_restorable_time(mut self, input: std::option::Option<bool>) -> Self {
            self.inner = self.inner.set_use_latest_restorable_time(input);
            self
        }

Time in the past to restore the table to.

Examples found in repository?
src/client.rs (line 6213)
6212
6213
6214
6215
        pub fn restore_date_time(mut self, input: aws_smithy_types::DateTime) -> Self {
            self.inner = self.inner.restore_date_time(input);
            self
        }

Time in the past to restore the table to.

Examples found in repository?
src/client.rs (line 6221)
6217
6218
6219
6220
6221
6222
6223
        pub fn set_restore_date_time(
            mut self,
            input: std::option::Option<aws_smithy_types::DateTime>,
        ) -> Self {
            self.inner = self.inner.set_restore_date_time(input);
            self
        }

The billing mode of the restored table.

Examples found in repository?
src/client.rs (line 6226)
6225
6226
6227
6228
        pub fn billing_mode_override(mut self, input: crate::model::BillingMode) -> Self {
            self.inner = self.inner.billing_mode_override(input);
            self
        }

The billing mode of the restored table.

Examples found in repository?
src/client.rs (line 6234)
6230
6231
6232
6233
6234
6235
6236
        pub fn set_billing_mode_override(
            mut self,
            input: std::option::Option<crate::model::BillingMode>,
        ) -> Self {
            self.inner = self.inner.set_billing_mode_override(input);
            self
        }

Appends an item to global_secondary_index_override.

To override the contents of this collection use set_global_secondary_index_override.

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.

Examples found in repository?
src/client.rs (line 6246)
6242
6243
6244
6245
6246
6247
6248
        pub fn global_secondary_index_override(
            mut self,
            input: crate::model::GlobalSecondaryIndex,
        ) -> Self {
            self.inner = self.inner.global_secondary_index_override(input);
            self
        }

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.

Examples found in repository?
src/client.rs (line 6254)
6250
6251
6252
6253
6254
6255
6256
        pub fn set_global_secondary_index_override(
            mut self,
            input: std::option::Option<std::vec::Vec<crate::model::GlobalSecondaryIndex>>,
        ) -> Self {
            self.inner = self.inner.set_global_secondary_index_override(input);
            self
        }

Appends an item to local_secondary_index_override.

To override the contents of this collection use set_local_secondary_index_override.

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.

Examples found in repository?
src/client.rs (line 6266)
6262
6263
6264
6265
6266
6267
6268
        pub fn local_secondary_index_override(
            mut self,
            input: crate::model::LocalSecondaryIndex,
        ) -> Self {
            self.inner = self.inner.local_secondary_index_override(input);
            self
        }

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.

Examples found in repository?
src/client.rs (line 6274)
6270
6271
6272
6273
6274
6275
6276
        pub fn set_local_secondary_index_override(
            mut self,
            input: std::option::Option<std::vec::Vec<crate::model::LocalSecondaryIndex>>,
        ) -> Self {
            self.inner = self.inner.set_local_secondary_index_override(input);
            self
        }

Provisioned throughput settings for the restored table.

Examples found in repository?
src/client.rs (line 6282)
6278
6279
6280
6281
6282
6283
6284
        pub fn provisioned_throughput_override(
            mut self,
            input: crate::model::ProvisionedThroughput,
        ) -> Self {
            self.inner = self.inner.provisioned_throughput_override(input);
            self
        }

Provisioned throughput settings for the restored table.

Examples found in repository?
src/client.rs (line 6290)
6286
6287
6288
6289
6290
6291
6292
        pub fn set_provisioned_throughput_override(
            mut self,
            input: std::option::Option<crate::model::ProvisionedThroughput>,
        ) -> Self {
            self.inner = self.inner.set_provisioned_throughput_override(input);
            self
        }

The new server-side encryption settings for the restored table.

Examples found in repository?
src/client.rs (line 6295)
6294
6295
6296
6297
        pub fn sse_specification_override(mut self, input: crate::model::SseSpecification) -> Self {
            self.inner = self.inner.sse_specification_override(input);
            self
        }

The new server-side encryption settings for the restored table.

Examples found in repository?
src/client.rs (line 6303)
6299
6300
6301
6302
6303
6304
6305
        pub fn set_sse_specification_override(
            mut self,
            input: std::option::Option<crate::model::SseSpecification>,
        ) -> Self {
            self.inner = self.inner.set_sse_specification_override(input);
            self
        }

Consumes the builder and constructs a RestoreTableToPointInTimeInput.

Examples found in repository?
src/client.rs (line 6131)
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::RestoreTableToPointInTime,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::RestoreTableToPointInTimeError>,
        > {
            let handle = self.handle.clone();
            let operation = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            Ok(crate::operation::customize::CustomizableOperation { handle, operation })
        }

        /// Sends the request and returns the response.
        ///
        /// If an error occurs, an `SdkError` will be returned with additional details that
        /// can be matched against.
        ///
        /// By default, any retryable failures will be retried twice. Retry behavior
        /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
        /// set when configuring the client.
        pub async fn send(
            self,
        ) -> std::result::Result<
            crate::output::RestoreTableToPointInTimeOutput,
            aws_smithy_http::result::SdkError<crate::error::RestoreTableToPointInTimeError>,
        > {
            let op = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&self.handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            self.handle.client.call(op).await
        }

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more