pub struct Builder { /* private fields */ }
Expand description
A builder for ReplicaSettingsDescription
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn region_name(self, input: impl Into<String>) -> Self
pub fn region_name(self, input: impl Into<String>) -> Self
The Region name of the replica.
sourcepub fn set_region_name(self, input: Option<String>) -> Self
pub fn set_region_name(self, input: Option<String>) -> Self
The Region name of the replica.
Examples found in repository?
8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547
pub(crate) fn deser_structure_crate_model_replica_settings_description<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ReplicaSettingsDescription>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::replica_settings_description::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"RegionName" => {
builder = builder.set_region_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ReplicaStatus" => {
builder = builder.set_replica_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped()
.map(|u| crate::model::ReplicaStatus::from(u.as_ref()))
})
.transpose()?,
);
}
"ReplicaBillingModeSummary" => {
builder = builder.set_replica_billing_mode_summary(
crate::json_deser::deser_structure_crate_model_billing_mode_summary(tokens)?
);
}
"ReplicaProvisionedReadCapacityUnits" => {
builder = builder.set_replica_provisioned_read_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"ReplicaProvisionedReadCapacityAutoScalingSettings" => {
builder = builder.set_replica_provisioned_read_capacity_auto_scaling_settings(
crate::json_deser::deser_structure_crate_model_auto_scaling_settings_description(tokens)?
);
}
"ReplicaProvisionedWriteCapacityUnits" => {
builder = builder.set_replica_provisioned_write_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"ReplicaProvisionedWriteCapacityAutoScalingSettings" => {
builder = builder.set_replica_provisioned_write_capacity_auto_scaling_settings(
crate::json_deser::deser_structure_crate_model_auto_scaling_settings_description(tokens)?
);
}
"ReplicaGlobalSecondaryIndexSettings" => {
builder = builder.set_replica_global_secondary_index_settings(
crate::json_deser::deser_list_com_amazonaws_dynamodb_replica_global_secondary_index_settings_description_list(tokens)?
);
}
"ReplicaTableClassSummary" => {
builder = builder.set_replica_table_class_summary(
crate::json_deser::deser_structure_crate_model_table_class_summary(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn replica_status(self, input: ReplicaStatus) -> Self
pub fn replica_status(self, input: ReplicaStatus) -> Self
The current state of the Region:
-
CREATING
- The Region is being created. -
UPDATING
- The Region is being updated. -
DELETING
- The Region is being deleted. -
ACTIVE
- The Region is ready for use.
sourcepub fn set_replica_status(self, input: Option<ReplicaStatus>) -> Self
pub fn set_replica_status(self, input: Option<ReplicaStatus>) -> Self
The current state of the Region:
-
CREATING
- The Region is being created. -
UPDATING
- The Region is being updated. -
DELETING
- The Region is being deleted. -
ACTIVE
- The Region is ready for use.
Examples found in repository?
8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547
pub(crate) fn deser_structure_crate_model_replica_settings_description<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ReplicaSettingsDescription>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::replica_settings_description::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"RegionName" => {
builder = builder.set_region_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ReplicaStatus" => {
builder = builder.set_replica_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped()
.map(|u| crate::model::ReplicaStatus::from(u.as_ref()))
})
.transpose()?,
);
}
"ReplicaBillingModeSummary" => {
builder = builder.set_replica_billing_mode_summary(
crate::json_deser::deser_structure_crate_model_billing_mode_summary(tokens)?
);
}
"ReplicaProvisionedReadCapacityUnits" => {
builder = builder.set_replica_provisioned_read_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"ReplicaProvisionedReadCapacityAutoScalingSettings" => {
builder = builder.set_replica_provisioned_read_capacity_auto_scaling_settings(
crate::json_deser::deser_structure_crate_model_auto_scaling_settings_description(tokens)?
);
}
"ReplicaProvisionedWriteCapacityUnits" => {
builder = builder.set_replica_provisioned_write_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"ReplicaProvisionedWriteCapacityAutoScalingSettings" => {
builder = builder.set_replica_provisioned_write_capacity_auto_scaling_settings(
crate::json_deser::deser_structure_crate_model_auto_scaling_settings_description(tokens)?
);
}
"ReplicaGlobalSecondaryIndexSettings" => {
builder = builder.set_replica_global_secondary_index_settings(
crate::json_deser::deser_list_com_amazonaws_dynamodb_replica_global_secondary_index_settings_description_list(tokens)?
);
}
"ReplicaTableClassSummary" => {
builder = builder.set_replica_table_class_summary(
crate::json_deser::deser_structure_crate_model_table_class_summary(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn replica_billing_mode_summary(self, input: BillingModeSummary) -> Self
pub fn replica_billing_mode_summary(self, input: BillingModeSummary) -> Self
The read/write capacity mode of the replica.
sourcepub fn set_replica_billing_mode_summary(
self,
input: Option<BillingModeSummary>
) -> Self
pub fn set_replica_billing_mode_summary(
self,
input: Option<BillingModeSummary>
) -> Self
The read/write capacity mode of the replica.
Examples found in repository?
8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547
pub(crate) fn deser_structure_crate_model_replica_settings_description<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ReplicaSettingsDescription>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::replica_settings_description::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"RegionName" => {
builder = builder.set_region_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ReplicaStatus" => {
builder = builder.set_replica_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped()
.map(|u| crate::model::ReplicaStatus::from(u.as_ref()))
})
.transpose()?,
);
}
"ReplicaBillingModeSummary" => {
builder = builder.set_replica_billing_mode_summary(
crate::json_deser::deser_structure_crate_model_billing_mode_summary(tokens)?
);
}
"ReplicaProvisionedReadCapacityUnits" => {
builder = builder.set_replica_provisioned_read_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"ReplicaProvisionedReadCapacityAutoScalingSettings" => {
builder = builder.set_replica_provisioned_read_capacity_auto_scaling_settings(
crate::json_deser::deser_structure_crate_model_auto_scaling_settings_description(tokens)?
);
}
"ReplicaProvisionedWriteCapacityUnits" => {
builder = builder.set_replica_provisioned_write_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"ReplicaProvisionedWriteCapacityAutoScalingSettings" => {
builder = builder.set_replica_provisioned_write_capacity_auto_scaling_settings(
crate::json_deser::deser_structure_crate_model_auto_scaling_settings_description(tokens)?
);
}
"ReplicaGlobalSecondaryIndexSettings" => {
builder = builder.set_replica_global_secondary_index_settings(
crate::json_deser::deser_list_com_amazonaws_dynamodb_replica_global_secondary_index_settings_description_list(tokens)?
);
}
"ReplicaTableClassSummary" => {
builder = builder.set_replica_table_class_summary(
crate::json_deser::deser_structure_crate_model_table_class_summary(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn replica_provisioned_read_capacity_units(self, input: i64) -> Self
pub fn replica_provisioned_read_capacity_units(self, input: i64) -> Self
The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException
. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
sourcepub fn set_replica_provisioned_read_capacity_units(
self,
input: Option<i64>
) -> Self
pub fn set_replica_provisioned_read_capacity_units(
self,
input: Option<i64>
) -> Self
The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException
. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
Examples found in repository?
8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547
pub(crate) fn deser_structure_crate_model_replica_settings_description<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ReplicaSettingsDescription>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::replica_settings_description::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"RegionName" => {
builder = builder.set_region_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ReplicaStatus" => {
builder = builder.set_replica_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped()
.map(|u| crate::model::ReplicaStatus::from(u.as_ref()))
})
.transpose()?,
);
}
"ReplicaBillingModeSummary" => {
builder = builder.set_replica_billing_mode_summary(
crate::json_deser::deser_structure_crate_model_billing_mode_summary(tokens)?
);
}
"ReplicaProvisionedReadCapacityUnits" => {
builder = builder.set_replica_provisioned_read_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"ReplicaProvisionedReadCapacityAutoScalingSettings" => {
builder = builder.set_replica_provisioned_read_capacity_auto_scaling_settings(
crate::json_deser::deser_structure_crate_model_auto_scaling_settings_description(tokens)?
);
}
"ReplicaProvisionedWriteCapacityUnits" => {
builder = builder.set_replica_provisioned_write_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"ReplicaProvisionedWriteCapacityAutoScalingSettings" => {
builder = builder.set_replica_provisioned_write_capacity_auto_scaling_settings(
crate::json_deser::deser_structure_crate_model_auto_scaling_settings_description(tokens)?
);
}
"ReplicaGlobalSecondaryIndexSettings" => {
builder = builder.set_replica_global_secondary_index_settings(
crate::json_deser::deser_list_com_amazonaws_dynamodb_replica_global_secondary_index_settings_description_list(tokens)?
);
}
"ReplicaTableClassSummary" => {
builder = builder.set_replica_table_class_summary(
crate::json_deser::deser_structure_crate_model_table_class_summary(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn replica_provisioned_read_capacity_auto_scaling_settings(
self,
input: AutoScalingSettingsDescription
) -> Self
pub fn replica_provisioned_read_capacity_auto_scaling_settings(
self,
input: AutoScalingSettingsDescription
) -> Self
Auto scaling settings for a global table replica's read capacity units.
sourcepub fn set_replica_provisioned_read_capacity_auto_scaling_settings(
self,
input: Option<AutoScalingSettingsDescription>
) -> Self
pub fn set_replica_provisioned_read_capacity_auto_scaling_settings(
self,
input: Option<AutoScalingSettingsDescription>
) -> Self
Auto scaling settings for a global table replica's read capacity units.
Examples found in repository?
8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547
pub(crate) fn deser_structure_crate_model_replica_settings_description<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ReplicaSettingsDescription>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::replica_settings_description::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"RegionName" => {
builder = builder.set_region_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ReplicaStatus" => {
builder = builder.set_replica_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped()
.map(|u| crate::model::ReplicaStatus::from(u.as_ref()))
})
.transpose()?,
);
}
"ReplicaBillingModeSummary" => {
builder = builder.set_replica_billing_mode_summary(
crate::json_deser::deser_structure_crate_model_billing_mode_summary(tokens)?
);
}
"ReplicaProvisionedReadCapacityUnits" => {
builder = builder.set_replica_provisioned_read_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"ReplicaProvisionedReadCapacityAutoScalingSettings" => {
builder = builder.set_replica_provisioned_read_capacity_auto_scaling_settings(
crate::json_deser::deser_structure_crate_model_auto_scaling_settings_description(tokens)?
);
}
"ReplicaProvisionedWriteCapacityUnits" => {
builder = builder.set_replica_provisioned_write_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"ReplicaProvisionedWriteCapacityAutoScalingSettings" => {
builder = builder.set_replica_provisioned_write_capacity_auto_scaling_settings(
crate::json_deser::deser_structure_crate_model_auto_scaling_settings_description(tokens)?
);
}
"ReplicaGlobalSecondaryIndexSettings" => {
builder = builder.set_replica_global_secondary_index_settings(
crate::json_deser::deser_list_com_amazonaws_dynamodb_replica_global_secondary_index_settings_description_list(tokens)?
);
}
"ReplicaTableClassSummary" => {
builder = builder.set_replica_table_class_summary(
crate::json_deser::deser_structure_crate_model_table_class_summary(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn replica_provisioned_write_capacity_units(self, input: i64) -> Self
pub fn replica_provisioned_write_capacity_units(self, input: i64) -> Self
The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException
. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
sourcepub fn set_replica_provisioned_write_capacity_units(
self,
input: Option<i64>
) -> Self
pub fn set_replica_provisioned_write_capacity_units(
self,
input: Option<i64>
) -> Self
The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException
. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
Examples found in repository?
8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547
pub(crate) fn deser_structure_crate_model_replica_settings_description<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ReplicaSettingsDescription>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::replica_settings_description::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"RegionName" => {
builder = builder.set_region_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ReplicaStatus" => {
builder = builder.set_replica_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped()
.map(|u| crate::model::ReplicaStatus::from(u.as_ref()))
})
.transpose()?,
);
}
"ReplicaBillingModeSummary" => {
builder = builder.set_replica_billing_mode_summary(
crate::json_deser::deser_structure_crate_model_billing_mode_summary(tokens)?
);
}
"ReplicaProvisionedReadCapacityUnits" => {
builder = builder.set_replica_provisioned_read_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"ReplicaProvisionedReadCapacityAutoScalingSettings" => {
builder = builder.set_replica_provisioned_read_capacity_auto_scaling_settings(
crate::json_deser::deser_structure_crate_model_auto_scaling_settings_description(tokens)?
);
}
"ReplicaProvisionedWriteCapacityUnits" => {
builder = builder.set_replica_provisioned_write_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"ReplicaProvisionedWriteCapacityAutoScalingSettings" => {
builder = builder.set_replica_provisioned_write_capacity_auto_scaling_settings(
crate::json_deser::deser_structure_crate_model_auto_scaling_settings_description(tokens)?
);
}
"ReplicaGlobalSecondaryIndexSettings" => {
builder = builder.set_replica_global_secondary_index_settings(
crate::json_deser::deser_list_com_amazonaws_dynamodb_replica_global_secondary_index_settings_description_list(tokens)?
);
}
"ReplicaTableClassSummary" => {
builder = builder.set_replica_table_class_summary(
crate::json_deser::deser_structure_crate_model_table_class_summary(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn replica_provisioned_write_capacity_auto_scaling_settings(
self,
input: AutoScalingSettingsDescription
) -> Self
pub fn replica_provisioned_write_capacity_auto_scaling_settings(
self,
input: AutoScalingSettingsDescription
) -> Self
Auto scaling settings for a global table replica's write capacity units.
sourcepub fn set_replica_provisioned_write_capacity_auto_scaling_settings(
self,
input: Option<AutoScalingSettingsDescription>
) -> Self
pub fn set_replica_provisioned_write_capacity_auto_scaling_settings(
self,
input: Option<AutoScalingSettingsDescription>
) -> Self
Auto scaling settings for a global table replica's write capacity units.
Examples found in repository?
8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547
pub(crate) fn deser_structure_crate_model_replica_settings_description<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ReplicaSettingsDescription>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::replica_settings_description::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"RegionName" => {
builder = builder.set_region_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ReplicaStatus" => {
builder = builder.set_replica_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped()
.map(|u| crate::model::ReplicaStatus::from(u.as_ref()))
})
.transpose()?,
);
}
"ReplicaBillingModeSummary" => {
builder = builder.set_replica_billing_mode_summary(
crate::json_deser::deser_structure_crate_model_billing_mode_summary(tokens)?
);
}
"ReplicaProvisionedReadCapacityUnits" => {
builder = builder.set_replica_provisioned_read_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"ReplicaProvisionedReadCapacityAutoScalingSettings" => {
builder = builder.set_replica_provisioned_read_capacity_auto_scaling_settings(
crate::json_deser::deser_structure_crate_model_auto_scaling_settings_description(tokens)?
);
}
"ReplicaProvisionedWriteCapacityUnits" => {
builder = builder.set_replica_provisioned_write_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"ReplicaProvisionedWriteCapacityAutoScalingSettings" => {
builder = builder.set_replica_provisioned_write_capacity_auto_scaling_settings(
crate::json_deser::deser_structure_crate_model_auto_scaling_settings_description(tokens)?
);
}
"ReplicaGlobalSecondaryIndexSettings" => {
builder = builder.set_replica_global_secondary_index_settings(
crate::json_deser::deser_list_com_amazonaws_dynamodb_replica_global_secondary_index_settings_description_list(tokens)?
);
}
"ReplicaTableClassSummary" => {
builder = builder.set_replica_table_class_summary(
crate::json_deser::deser_structure_crate_model_table_class_summary(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn replica_global_secondary_index_settings(
self,
input: ReplicaGlobalSecondaryIndexSettingsDescription
) -> Self
pub fn replica_global_secondary_index_settings(
self,
input: ReplicaGlobalSecondaryIndexSettingsDescription
) -> Self
Appends an item to replica_global_secondary_index_settings
.
To override the contents of this collection use set_replica_global_secondary_index_settings
.
Replica global secondary index settings for the global table.
sourcepub fn set_replica_global_secondary_index_settings(
self,
input: Option<Vec<ReplicaGlobalSecondaryIndexSettingsDescription>>
) -> Self
pub fn set_replica_global_secondary_index_settings(
self,
input: Option<Vec<ReplicaGlobalSecondaryIndexSettingsDescription>>
) -> Self
Replica global secondary index settings for the global table.
Examples found in repository?
8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547
pub(crate) fn deser_structure_crate_model_replica_settings_description<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ReplicaSettingsDescription>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::replica_settings_description::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"RegionName" => {
builder = builder.set_region_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ReplicaStatus" => {
builder = builder.set_replica_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped()
.map(|u| crate::model::ReplicaStatus::from(u.as_ref()))
})
.transpose()?,
);
}
"ReplicaBillingModeSummary" => {
builder = builder.set_replica_billing_mode_summary(
crate::json_deser::deser_structure_crate_model_billing_mode_summary(tokens)?
);
}
"ReplicaProvisionedReadCapacityUnits" => {
builder = builder.set_replica_provisioned_read_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"ReplicaProvisionedReadCapacityAutoScalingSettings" => {
builder = builder.set_replica_provisioned_read_capacity_auto_scaling_settings(
crate::json_deser::deser_structure_crate_model_auto_scaling_settings_description(tokens)?
);
}
"ReplicaProvisionedWriteCapacityUnits" => {
builder = builder.set_replica_provisioned_write_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"ReplicaProvisionedWriteCapacityAutoScalingSettings" => {
builder = builder.set_replica_provisioned_write_capacity_auto_scaling_settings(
crate::json_deser::deser_structure_crate_model_auto_scaling_settings_description(tokens)?
);
}
"ReplicaGlobalSecondaryIndexSettings" => {
builder = builder.set_replica_global_secondary_index_settings(
crate::json_deser::deser_list_com_amazonaws_dynamodb_replica_global_secondary_index_settings_description_list(tokens)?
);
}
"ReplicaTableClassSummary" => {
builder = builder.set_replica_table_class_summary(
crate::json_deser::deser_structure_crate_model_table_class_summary(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn replica_table_class_summary(self, input: TableClassSummary) -> Self
pub fn replica_table_class_summary(self, input: TableClassSummary) -> Self
Contains details of the table class.
sourcepub fn set_replica_table_class_summary(
self,
input: Option<TableClassSummary>
) -> Self
pub fn set_replica_table_class_summary(
self,
input: Option<TableClassSummary>
) -> Self
Contains details of the table class.
Examples found in repository?
8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547
pub(crate) fn deser_structure_crate_model_replica_settings_description<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ReplicaSettingsDescription>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::replica_settings_description::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"RegionName" => {
builder = builder.set_region_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ReplicaStatus" => {
builder = builder.set_replica_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped()
.map(|u| crate::model::ReplicaStatus::from(u.as_ref()))
})
.transpose()?,
);
}
"ReplicaBillingModeSummary" => {
builder = builder.set_replica_billing_mode_summary(
crate::json_deser::deser_structure_crate_model_billing_mode_summary(tokens)?
);
}
"ReplicaProvisionedReadCapacityUnits" => {
builder = builder.set_replica_provisioned_read_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"ReplicaProvisionedReadCapacityAutoScalingSettings" => {
builder = builder.set_replica_provisioned_read_capacity_auto_scaling_settings(
crate::json_deser::deser_structure_crate_model_auto_scaling_settings_description(tokens)?
);
}
"ReplicaProvisionedWriteCapacityUnits" => {
builder = builder.set_replica_provisioned_write_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"ReplicaProvisionedWriteCapacityAutoScalingSettings" => {
builder = builder.set_replica_provisioned_write_capacity_auto_scaling_settings(
crate::json_deser::deser_structure_crate_model_auto_scaling_settings_description(tokens)?
);
}
"ReplicaGlobalSecondaryIndexSettings" => {
builder = builder.set_replica_global_secondary_index_settings(
crate::json_deser::deser_list_com_amazonaws_dynamodb_replica_global_secondary_index_settings_description_list(tokens)?
);
}
"ReplicaTableClassSummary" => {
builder = builder.set_replica_table_class_summary(
crate::json_deser::deser_structure_crate_model_table_class_summary(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn build(self) -> ReplicaSettingsDescription
pub fn build(self) -> ReplicaSettingsDescription
Consumes the builder and constructs a ReplicaSettingsDescription
.
Examples found in repository?
8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547
pub(crate) fn deser_structure_crate_model_replica_settings_description<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ReplicaSettingsDescription>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::replica_settings_description::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"RegionName" => {
builder = builder.set_region_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ReplicaStatus" => {
builder = builder.set_replica_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped()
.map(|u| crate::model::ReplicaStatus::from(u.as_ref()))
})
.transpose()?,
);
}
"ReplicaBillingModeSummary" => {
builder = builder.set_replica_billing_mode_summary(
crate::json_deser::deser_structure_crate_model_billing_mode_summary(tokens)?
);
}
"ReplicaProvisionedReadCapacityUnits" => {
builder = builder.set_replica_provisioned_read_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"ReplicaProvisionedReadCapacityAutoScalingSettings" => {
builder = builder.set_replica_provisioned_read_capacity_auto_scaling_settings(
crate::json_deser::deser_structure_crate_model_auto_scaling_settings_description(tokens)?
);
}
"ReplicaProvisionedWriteCapacityUnits" => {
builder = builder.set_replica_provisioned_write_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"ReplicaProvisionedWriteCapacityAutoScalingSettings" => {
builder = builder.set_replica_provisioned_write_capacity_auto_scaling_settings(
crate::json_deser::deser_structure_crate_model_auto_scaling_settings_description(tokens)?
);
}
"ReplicaGlobalSecondaryIndexSettings" => {
builder = builder.set_replica_global_secondary_index_settings(
crate::json_deser::deser_list_com_amazonaws_dynamodb_replica_global_secondary_index_settings_description_list(tokens)?
);
}
"ReplicaTableClassSummary" => {
builder = builder.set_replica_table_class_summary(
crate::json_deser::deser_structure_crate_model_table_class_summary(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}