pub struct Builder { /* private fields */ }
Expand description
A builder for UpdateTableReplicaAutoScalingInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn global_secondary_index_updates(
self,
input: GlobalSecondaryIndexAutoScalingUpdate
) -> Self
pub fn global_secondary_index_updates(
self,
input: GlobalSecondaryIndexAutoScalingUpdate
) -> Self
Appends an item to global_secondary_index_updates
.
To override the contents of this collection use set_global_secondary_index_updates
.
Represents the auto scaling settings of the global secondary indexes of the replica to be updated.
sourcepub fn set_global_secondary_index_updates(
self,
input: Option<Vec<GlobalSecondaryIndexAutoScalingUpdate>>
) -> Self
pub fn set_global_secondary_index_updates(
self,
input: Option<Vec<GlobalSecondaryIndexAutoScalingUpdate>>
) -> Self
Represents the auto scaling settings of the global secondary indexes of the replica to be updated.
sourcepub fn table_name(self, input: impl Into<String>) -> Self
pub fn table_name(self, input: impl Into<String>) -> Self
The name of the global table to be updated.
sourcepub fn set_table_name(self, input: Option<String>) -> Self
pub fn set_table_name(self, input: Option<String>) -> Self
The name of the global table to be updated.
sourcepub fn provisioned_write_capacity_auto_scaling_update(
self,
input: AutoScalingSettingsUpdate
) -> Self
pub fn provisioned_write_capacity_auto_scaling_update(
self,
input: AutoScalingSettingsUpdate
) -> Self
Represents the auto scaling settings to be modified for a global table or global secondary index.
sourcepub fn set_provisioned_write_capacity_auto_scaling_update(
self,
input: Option<AutoScalingSettingsUpdate>
) -> Self
pub fn set_provisioned_write_capacity_auto_scaling_update(
self,
input: Option<AutoScalingSettingsUpdate>
) -> Self
Represents the auto scaling settings to be modified for a global table or global secondary index.
sourcepub fn replica_updates(self, input: ReplicaAutoScalingUpdate) -> Self
pub fn replica_updates(self, input: ReplicaAutoScalingUpdate) -> Self
Appends an item to replica_updates
.
To override the contents of this collection use set_replica_updates
.
Represents the auto scaling settings of replicas of the table that will be modified.
sourcepub fn set_replica_updates(
self,
input: Option<Vec<ReplicaAutoScalingUpdate>>
) -> Self
pub fn set_replica_updates(
self,
input: Option<Vec<ReplicaAutoScalingUpdate>>
) -> Self
Represents the auto scaling settings of replicas of the table that will be modified.
sourcepub fn build(self) -> Result<UpdateTableReplicaAutoScalingInput, BuildError>
pub fn build(self) -> Result<UpdateTableReplicaAutoScalingInput, BuildError>
Consumes the builder and constructs a UpdateTableReplicaAutoScalingInput
.
Examples found in repository?
8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateTableReplicaAutoScaling,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateTableReplicaAutoScalingError>,
> {
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::UpdateTableReplicaAutoScalingOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateTableReplicaAutoScalingError>,
> {
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
}