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

A builder for ImportTableInput.

Implementations§

Providing a ClientToken makes the call to ImportTableInput idempotent, meaning that multiple identical calls have the same effect as one single call.

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.

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 IdempotentParameterMismatch exception.

Examples found in repository?
src/client.rs (line 4254)
4253
4254
4255
4256
        pub fn client_token(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.client_token(input.into());
            self
        }

Providing a ClientToken makes the call to ImportTableInput idempotent, meaning that multiple identical calls have the same effect as one single call.

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.

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 IdempotentParameterMismatch exception.

Examples found in repository?
src/client.rs (line 4261)
4260
4261
4262
4263
        pub fn set_client_token(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_client_token(input);
            self
        }

The S3 bucket that provides the source for the import.

Examples found in repository?
src/client.rs (line 4266)
4265
4266
4267
4268
        pub fn s3_bucket_source(mut self, input: crate::model::S3BucketSource) -> Self {
            self.inner = self.inner.s3_bucket_source(input);
            self
        }

The S3 bucket that provides the source for the import.

Examples found in repository?
src/client.rs (line 4274)
4270
4271
4272
4273
4274
4275
4276
        pub fn set_s3_bucket_source(
            mut self,
            input: std::option::Option<crate::model::S3BucketSource>,
        ) -> Self {
            self.inner = self.inner.set_s3_bucket_source(input);
            self
        }

The format of the source data. Valid values for ImportFormat are CSV, DYNAMODB_JSON or ION.

Examples found in repository?
src/client.rs (line 4279)
4278
4279
4280
4281
        pub fn input_format(mut self, input: crate::model::InputFormat) -> Self {
            self.inner = self.inner.input_format(input);
            self
        }

The format of the source data. Valid values for ImportFormat are CSV, DYNAMODB_JSON or ION.

Examples found in repository?
src/client.rs (line 4287)
4283
4284
4285
4286
4287
4288
4289
        pub fn set_input_format(
            mut self,
            input: std::option::Option<crate::model::InputFormat>,
        ) -> Self {
            self.inner = self.inner.set_input_format(input);
            self
        }

Additional properties that specify how the input is formatted,

Examples found in repository?
src/client.rs (line 4292)
4291
4292
4293
4294
        pub fn input_format_options(mut self, input: crate::model::InputFormatOptions) -> Self {
            self.inner = self.inner.input_format_options(input);
            self
        }

Additional properties that specify how the input is formatted,

Examples found in repository?
src/client.rs (line 4300)
4296
4297
4298
4299
4300
4301
4302
        pub fn set_input_format_options(
            mut self,
            input: std::option::Option<crate::model::InputFormatOptions>,
        ) -> Self {
            self.inner = self.inner.set_input_format_options(input);
            self
        }

Type of compression to be used on the input coming from the imported table.

Examples found in repository?
src/client.rs (line 4305)
4304
4305
4306
4307
        pub fn input_compression_type(mut self, input: crate::model::InputCompressionType) -> Self {
            self.inner = self.inner.input_compression_type(input);
            self
        }

Type of compression to be used on the input coming from the imported table.

Examples found in repository?
src/client.rs (line 4313)
4309
4310
4311
4312
4313
4314
4315
        pub fn set_input_compression_type(
            mut self,
            input: std::option::Option<crate::model::InputCompressionType>,
        ) -> Self {
            self.inner = self.inner.set_input_compression_type(input);
            self
        }

Parameters for the table to import the data into.

Examples found in repository?
src/client.rs (line 4321)
4317
4318
4319
4320
4321
4322
4323
        pub fn table_creation_parameters(
            mut self,
            input: crate::model::TableCreationParameters,
        ) -> Self {
            self.inner = self.inner.table_creation_parameters(input);
            self
        }

Parameters for the table to import the data into.

Examples found in repository?
src/client.rs (line 4329)
4325
4326
4327
4328
4329
4330
4331
        pub fn set_table_creation_parameters(
            mut self,
            input: std::option::Option<crate::model::TableCreationParameters>,
        ) -> Self {
            self.inner = self.inner.set_table_creation_parameters(input);
            self
        }

Consumes the builder and constructs a ImportTableInput.

Examples found in repository?
src/client.rs (line 4219)
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::ImportTable,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::ImportTableError>,
        > {
            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::ImportTableOutput,
            aws_smithy_http::result::SdkError<crate::error::ImportTableError>,
        > {
            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