pub struct Builder { /* private fields */ }
Expand description
A builder for AwsDynamoDbTableDetails
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn attribute_definitions(
self,
input: AwsDynamoDbTableAttributeDefinition
) -> Self
pub fn attribute_definitions(
self,
input: AwsDynamoDbTableAttributeDefinition
) -> Self
Appends an item to attribute_definitions
.
To override the contents of this collection use set_attribute_definitions
.
A list of attribute definitions for the table.
sourcepub fn set_attribute_definitions(
self,
input: Option<Vec<AwsDynamoDbTableAttributeDefinition>>
) -> Self
pub fn set_attribute_definitions(
self,
input: Option<Vec<AwsDynamoDbTableAttributeDefinition>>
) -> Self
A list of attribute definitions for the table.
Examples found in repository?
13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245
pub(crate) fn deser_structure_crate_model_aws_dynamo_db_table_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsDynamoDbTableDetails>,
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::aws_dynamo_db_table_details::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() {
"AttributeDefinitions" => {
builder = builder.set_attribute_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_attribute_definition_list(tokens)?
);
}
"BillingModeSummary" => {
builder = builder.set_billing_mode_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_billing_mode_summary(tokens)?
);
}
"CreationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"GlobalSecondaryIndexes" => {
builder = builder.set_global_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_global_secondary_index_list(tokens)?
);
}
"GlobalTableVersion" => {
builder = builder.set_global_table_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ItemCount" => {
builder = builder.set_item_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"KeySchema" => {
builder = builder.set_key_schema(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_key_schema_list(tokens)?
);
}
"LatestStreamArn" => {
builder = builder.set_latest_stream_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LatestStreamLabel" => {
builder = builder.set_latest_stream_label(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LocalSecondaryIndexes" => {
builder = builder.set_local_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_local_secondary_index_list(tokens)?
);
}
"ProvisionedThroughput" => {
builder = builder.set_provisioned_throughput(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_provisioned_throughput(tokens)?
);
}
"Replicas" => {
builder = builder.set_replicas(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_replica_list(tokens)?
);
}
"RestoreSummary" => {
builder = builder.set_restore_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_restore_summary(tokens)?
);
}
"SseDescription" => {
builder = builder.set_sse_description(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_sse_description(tokens)?
);
}
"StreamSpecification" => {
builder = builder.set_stream_specification(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_stream_specification(tokens)?
);
}
"TableId" => {
builder = builder.set_table_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableName" => {
builder = builder.set_table_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableSizeBytes" => {
builder = builder.set_table_size_bytes(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"TableStatus" => {
builder = builder.set_table_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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 billing_mode_summary(
self,
input: AwsDynamoDbTableBillingModeSummary
) -> Self
pub fn billing_mode_summary(
self,
input: AwsDynamoDbTableBillingModeSummary
) -> Self
Information about the billing for read/write capacity on the table.
sourcepub fn set_billing_mode_summary(
self,
input: Option<AwsDynamoDbTableBillingModeSummary>
) -> Self
pub fn set_billing_mode_summary(
self,
input: Option<AwsDynamoDbTableBillingModeSummary>
) -> Self
Information about the billing for read/write capacity on the table.
Examples found in repository?
13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245
pub(crate) fn deser_structure_crate_model_aws_dynamo_db_table_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsDynamoDbTableDetails>,
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::aws_dynamo_db_table_details::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() {
"AttributeDefinitions" => {
builder = builder.set_attribute_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_attribute_definition_list(tokens)?
);
}
"BillingModeSummary" => {
builder = builder.set_billing_mode_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_billing_mode_summary(tokens)?
);
}
"CreationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"GlobalSecondaryIndexes" => {
builder = builder.set_global_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_global_secondary_index_list(tokens)?
);
}
"GlobalTableVersion" => {
builder = builder.set_global_table_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ItemCount" => {
builder = builder.set_item_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"KeySchema" => {
builder = builder.set_key_schema(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_key_schema_list(tokens)?
);
}
"LatestStreamArn" => {
builder = builder.set_latest_stream_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LatestStreamLabel" => {
builder = builder.set_latest_stream_label(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LocalSecondaryIndexes" => {
builder = builder.set_local_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_local_secondary_index_list(tokens)?
);
}
"ProvisionedThroughput" => {
builder = builder.set_provisioned_throughput(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_provisioned_throughput(tokens)?
);
}
"Replicas" => {
builder = builder.set_replicas(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_replica_list(tokens)?
);
}
"RestoreSummary" => {
builder = builder.set_restore_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_restore_summary(tokens)?
);
}
"SseDescription" => {
builder = builder.set_sse_description(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_sse_description(tokens)?
);
}
"StreamSpecification" => {
builder = builder.set_stream_specification(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_stream_specification(tokens)?
);
}
"TableId" => {
builder = builder.set_table_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableName" => {
builder = builder.set_table_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableSizeBytes" => {
builder = builder.set_table_size_bytes(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"TableStatus" => {
builder = builder.set_table_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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 creation_date_time(self, input: impl Into<String>) -> Self
pub fn creation_date_time(self, input: impl Into<String>) -> Self
Indicates when the table was created.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
sourcepub fn set_creation_date_time(self, input: Option<String>) -> Self
pub fn set_creation_date_time(self, input: Option<String>) -> Self
Indicates when the table was created.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
Examples found in repository?
13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245
pub(crate) fn deser_structure_crate_model_aws_dynamo_db_table_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsDynamoDbTableDetails>,
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::aws_dynamo_db_table_details::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() {
"AttributeDefinitions" => {
builder = builder.set_attribute_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_attribute_definition_list(tokens)?
);
}
"BillingModeSummary" => {
builder = builder.set_billing_mode_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_billing_mode_summary(tokens)?
);
}
"CreationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"GlobalSecondaryIndexes" => {
builder = builder.set_global_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_global_secondary_index_list(tokens)?
);
}
"GlobalTableVersion" => {
builder = builder.set_global_table_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ItemCount" => {
builder = builder.set_item_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"KeySchema" => {
builder = builder.set_key_schema(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_key_schema_list(tokens)?
);
}
"LatestStreamArn" => {
builder = builder.set_latest_stream_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LatestStreamLabel" => {
builder = builder.set_latest_stream_label(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LocalSecondaryIndexes" => {
builder = builder.set_local_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_local_secondary_index_list(tokens)?
);
}
"ProvisionedThroughput" => {
builder = builder.set_provisioned_throughput(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_provisioned_throughput(tokens)?
);
}
"Replicas" => {
builder = builder.set_replicas(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_replica_list(tokens)?
);
}
"RestoreSummary" => {
builder = builder.set_restore_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_restore_summary(tokens)?
);
}
"SseDescription" => {
builder = builder.set_sse_description(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_sse_description(tokens)?
);
}
"StreamSpecification" => {
builder = builder.set_stream_specification(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_stream_specification(tokens)?
);
}
"TableId" => {
builder = builder.set_table_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableName" => {
builder = builder.set_table_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableSizeBytes" => {
builder = builder.set_table_size_bytes(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"TableStatus" => {
builder = builder.set_table_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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 global_secondary_indexes(
self,
input: AwsDynamoDbTableGlobalSecondaryIndex
) -> Self
pub fn global_secondary_indexes(
self,
input: AwsDynamoDbTableGlobalSecondaryIndex
) -> Self
Appends an item to global_secondary_indexes
.
To override the contents of this collection use set_global_secondary_indexes
.
List of global secondary indexes for the table.
sourcepub fn set_global_secondary_indexes(
self,
input: Option<Vec<AwsDynamoDbTableGlobalSecondaryIndex>>
) -> Self
pub fn set_global_secondary_indexes(
self,
input: Option<Vec<AwsDynamoDbTableGlobalSecondaryIndex>>
) -> Self
List of global secondary indexes for the table.
Examples found in repository?
13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245
pub(crate) fn deser_structure_crate_model_aws_dynamo_db_table_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsDynamoDbTableDetails>,
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::aws_dynamo_db_table_details::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() {
"AttributeDefinitions" => {
builder = builder.set_attribute_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_attribute_definition_list(tokens)?
);
}
"BillingModeSummary" => {
builder = builder.set_billing_mode_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_billing_mode_summary(tokens)?
);
}
"CreationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"GlobalSecondaryIndexes" => {
builder = builder.set_global_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_global_secondary_index_list(tokens)?
);
}
"GlobalTableVersion" => {
builder = builder.set_global_table_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ItemCount" => {
builder = builder.set_item_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"KeySchema" => {
builder = builder.set_key_schema(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_key_schema_list(tokens)?
);
}
"LatestStreamArn" => {
builder = builder.set_latest_stream_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LatestStreamLabel" => {
builder = builder.set_latest_stream_label(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LocalSecondaryIndexes" => {
builder = builder.set_local_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_local_secondary_index_list(tokens)?
);
}
"ProvisionedThroughput" => {
builder = builder.set_provisioned_throughput(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_provisioned_throughput(tokens)?
);
}
"Replicas" => {
builder = builder.set_replicas(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_replica_list(tokens)?
);
}
"RestoreSummary" => {
builder = builder.set_restore_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_restore_summary(tokens)?
);
}
"SseDescription" => {
builder = builder.set_sse_description(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_sse_description(tokens)?
);
}
"StreamSpecification" => {
builder = builder.set_stream_specification(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_stream_specification(tokens)?
);
}
"TableId" => {
builder = builder.set_table_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableName" => {
builder = builder.set_table_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableSizeBytes" => {
builder = builder.set_table_size_bytes(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"TableStatus" => {
builder = builder.set_table_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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 global_table_version(self, input: impl Into<String>) -> Self
pub fn global_table_version(self, input: impl Into<String>) -> Self
The version of global tables being used.
sourcepub fn set_global_table_version(self, input: Option<String>) -> Self
pub fn set_global_table_version(self, input: Option<String>) -> Self
The version of global tables being used.
Examples found in repository?
13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245
pub(crate) fn deser_structure_crate_model_aws_dynamo_db_table_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsDynamoDbTableDetails>,
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::aws_dynamo_db_table_details::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() {
"AttributeDefinitions" => {
builder = builder.set_attribute_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_attribute_definition_list(tokens)?
);
}
"BillingModeSummary" => {
builder = builder.set_billing_mode_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_billing_mode_summary(tokens)?
);
}
"CreationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"GlobalSecondaryIndexes" => {
builder = builder.set_global_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_global_secondary_index_list(tokens)?
);
}
"GlobalTableVersion" => {
builder = builder.set_global_table_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ItemCount" => {
builder = builder.set_item_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"KeySchema" => {
builder = builder.set_key_schema(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_key_schema_list(tokens)?
);
}
"LatestStreamArn" => {
builder = builder.set_latest_stream_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LatestStreamLabel" => {
builder = builder.set_latest_stream_label(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LocalSecondaryIndexes" => {
builder = builder.set_local_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_local_secondary_index_list(tokens)?
);
}
"ProvisionedThroughput" => {
builder = builder.set_provisioned_throughput(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_provisioned_throughput(tokens)?
);
}
"Replicas" => {
builder = builder.set_replicas(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_replica_list(tokens)?
);
}
"RestoreSummary" => {
builder = builder.set_restore_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_restore_summary(tokens)?
);
}
"SseDescription" => {
builder = builder.set_sse_description(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_sse_description(tokens)?
);
}
"StreamSpecification" => {
builder = builder.set_stream_specification(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_stream_specification(tokens)?
);
}
"TableId" => {
builder = builder.set_table_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableName" => {
builder = builder.set_table_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableSizeBytes" => {
builder = builder.set_table_size_bytes(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"TableStatus" => {
builder = builder.set_table_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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 item_count(self, input: i32) -> Self
pub fn item_count(self, input: i32) -> Self
The number of items in the table.
sourcepub fn set_item_count(self, input: Option<i32>) -> Self
pub fn set_item_count(self, input: Option<i32>) -> Self
The number of items in the table.
Examples found in repository?
13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245
pub(crate) fn deser_structure_crate_model_aws_dynamo_db_table_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsDynamoDbTableDetails>,
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::aws_dynamo_db_table_details::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() {
"AttributeDefinitions" => {
builder = builder.set_attribute_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_attribute_definition_list(tokens)?
);
}
"BillingModeSummary" => {
builder = builder.set_billing_mode_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_billing_mode_summary(tokens)?
);
}
"CreationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"GlobalSecondaryIndexes" => {
builder = builder.set_global_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_global_secondary_index_list(tokens)?
);
}
"GlobalTableVersion" => {
builder = builder.set_global_table_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ItemCount" => {
builder = builder.set_item_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"KeySchema" => {
builder = builder.set_key_schema(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_key_schema_list(tokens)?
);
}
"LatestStreamArn" => {
builder = builder.set_latest_stream_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LatestStreamLabel" => {
builder = builder.set_latest_stream_label(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LocalSecondaryIndexes" => {
builder = builder.set_local_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_local_secondary_index_list(tokens)?
);
}
"ProvisionedThroughput" => {
builder = builder.set_provisioned_throughput(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_provisioned_throughput(tokens)?
);
}
"Replicas" => {
builder = builder.set_replicas(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_replica_list(tokens)?
);
}
"RestoreSummary" => {
builder = builder.set_restore_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_restore_summary(tokens)?
);
}
"SseDescription" => {
builder = builder.set_sse_description(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_sse_description(tokens)?
);
}
"StreamSpecification" => {
builder = builder.set_stream_specification(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_stream_specification(tokens)?
);
}
"TableId" => {
builder = builder.set_table_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableName" => {
builder = builder.set_table_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableSizeBytes" => {
builder = builder.set_table_size_bytes(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"TableStatus" => {
builder = builder.set_table_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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 key_schema(self, input: AwsDynamoDbTableKeySchema) -> Self
pub fn key_schema(self, input: AwsDynamoDbTableKeySchema) -> Self
Appends an item to key_schema
.
To override the contents of this collection use set_key_schema
.
The primary key structure for the table.
sourcepub fn set_key_schema(
self,
input: Option<Vec<AwsDynamoDbTableKeySchema>>
) -> Self
pub fn set_key_schema(
self,
input: Option<Vec<AwsDynamoDbTableKeySchema>>
) -> Self
The primary key structure for the table.
Examples found in repository?
13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245
pub(crate) fn deser_structure_crate_model_aws_dynamo_db_table_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsDynamoDbTableDetails>,
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::aws_dynamo_db_table_details::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() {
"AttributeDefinitions" => {
builder = builder.set_attribute_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_attribute_definition_list(tokens)?
);
}
"BillingModeSummary" => {
builder = builder.set_billing_mode_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_billing_mode_summary(tokens)?
);
}
"CreationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"GlobalSecondaryIndexes" => {
builder = builder.set_global_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_global_secondary_index_list(tokens)?
);
}
"GlobalTableVersion" => {
builder = builder.set_global_table_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ItemCount" => {
builder = builder.set_item_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"KeySchema" => {
builder = builder.set_key_schema(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_key_schema_list(tokens)?
);
}
"LatestStreamArn" => {
builder = builder.set_latest_stream_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LatestStreamLabel" => {
builder = builder.set_latest_stream_label(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LocalSecondaryIndexes" => {
builder = builder.set_local_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_local_secondary_index_list(tokens)?
);
}
"ProvisionedThroughput" => {
builder = builder.set_provisioned_throughput(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_provisioned_throughput(tokens)?
);
}
"Replicas" => {
builder = builder.set_replicas(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_replica_list(tokens)?
);
}
"RestoreSummary" => {
builder = builder.set_restore_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_restore_summary(tokens)?
);
}
"SseDescription" => {
builder = builder.set_sse_description(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_sse_description(tokens)?
);
}
"StreamSpecification" => {
builder = builder.set_stream_specification(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_stream_specification(tokens)?
);
}
"TableId" => {
builder = builder.set_table_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableName" => {
builder = builder.set_table_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableSizeBytes" => {
builder = builder.set_table_size_bytes(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"TableStatus" => {
builder = builder.set_table_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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 latest_stream_arn(self, input: impl Into<String>) -> Self
pub fn latest_stream_arn(self, input: impl Into<String>) -> Self
The ARN of the latest stream for the table.
sourcepub fn set_latest_stream_arn(self, input: Option<String>) -> Self
pub fn set_latest_stream_arn(self, input: Option<String>) -> Self
The ARN of the latest stream for the table.
Examples found in repository?
13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245
pub(crate) fn deser_structure_crate_model_aws_dynamo_db_table_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsDynamoDbTableDetails>,
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::aws_dynamo_db_table_details::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() {
"AttributeDefinitions" => {
builder = builder.set_attribute_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_attribute_definition_list(tokens)?
);
}
"BillingModeSummary" => {
builder = builder.set_billing_mode_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_billing_mode_summary(tokens)?
);
}
"CreationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"GlobalSecondaryIndexes" => {
builder = builder.set_global_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_global_secondary_index_list(tokens)?
);
}
"GlobalTableVersion" => {
builder = builder.set_global_table_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ItemCount" => {
builder = builder.set_item_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"KeySchema" => {
builder = builder.set_key_schema(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_key_schema_list(tokens)?
);
}
"LatestStreamArn" => {
builder = builder.set_latest_stream_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LatestStreamLabel" => {
builder = builder.set_latest_stream_label(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LocalSecondaryIndexes" => {
builder = builder.set_local_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_local_secondary_index_list(tokens)?
);
}
"ProvisionedThroughput" => {
builder = builder.set_provisioned_throughput(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_provisioned_throughput(tokens)?
);
}
"Replicas" => {
builder = builder.set_replicas(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_replica_list(tokens)?
);
}
"RestoreSummary" => {
builder = builder.set_restore_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_restore_summary(tokens)?
);
}
"SseDescription" => {
builder = builder.set_sse_description(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_sse_description(tokens)?
);
}
"StreamSpecification" => {
builder = builder.set_stream_specification(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_stream_specification(tokens)?
);
}
"TableId" => {
builder = builder.set_table_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableName" => {
builder = builder.set_table_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableSizeBytes" => {
builder = builder.set_table_size_bytes(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"TableStatus" => {
builder = builder.set_table_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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 latest_stream_label(self, input: impl Into<String>) -> Self
pub fn latest_stream_label(self, input: impl Into<String>) -> Self
The label of the latest stream. The label is not a unique identifier.
sourcepub fn set_latest_stream_label(self, input: Option<String>) -> Self
pub fn set_latest_stream_label(self, input: Option<String>) -> Self
The label of the latest stream. The label is not a unique identifier.
Examples found in repository?
13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245
pub(crate) fn deser_structure_crate_model_aws_dynamo_db_table_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsDynamoDbTableDetails>,
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::aws_dynamo_db_table_details::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() {
"AttributeDefinitions" => {
builder = builder.set_attribute_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_attribute_definition_list(tokens)?
);
}
"BillingModeSummary" => {
builder = builder.set_billing_mode_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_billing_mode_summary(tokens)?
);
}
"CreationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"GlobalSecondaryIndexes" => {
builder = builder.set_global_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_global_secondary_index_list(tokens)?
);
}
"GlobalTableVersion" => {
builder = builder.set_global_table_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ItemCount" => {
builder = builder.set_item_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"KeySchema" => {
builder = builder.set_key_schema(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_key_schema_list(tokens)?
);
}
"LatestStreamArn" => {
builder = builder.set_latest_stream_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LatestStreamLabel" => {
builder = builder.set_latest_stream_label(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LocalSecondaryIndexes" => {
builder = builder.set_local_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_local_secondary_index_list(tokens)?
);
}
"ProvisionedThroughput" => {
builder = builder.set_provisioned_throughput(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_provisioned_throughput(tokens)?
);
}
"Replicas" => {
builder = builder.set_replicas(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_replica_list(tokens)?
);
}
"RestoreSummary" => {
builder = builder.set_restore_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_restore_summary(tokens)?
);
}
"SseDescription" => {
builder = builder.set_sse_description(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_sse_description(tokens)?
);
}
"StreamSpecification" => {
builder = builder.set_stream_specification(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_stream_specification(tokens)?
);
}
"TableId" => {
builder = builder.set_table_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableName" => {
builder = builder.set_table_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableSizeBytes" => {
builder = builder.set_table_size_bytes(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"TableStatus" => {
builder = builder.set_table_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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 local_secondary_indexes(
self,
input: AwsDynamoDbTableLocalSecondaryIndex
) -> Self
pub fn local_secondary_indexes(
self,
input: AwsDynamoDbTableLocalSecondaryIndex
) -> Self
Appends an item to local_secondary_indexes
.
To override the contents of this collection use set_local_secondary_indexes
.
The list of local secondary indexes for the table.
sourcepub fn set_local_secondary_indexes(
self,
input: Option<Vec<AwsDynamoDbTableLocalSecondaryIndex>>
) -> Self
pub fn set_local_secondary_indexes(
self,
input: Option<Vec<AwsDynamoDbTableLocalSecondaryIndex>>
) -> Self
The list of local secondary indexes for the table.
Examples found in repository?
13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245
pub(crate) fn deser_structure_crate_model_aws_dynamo_db_table_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsDynamoDbTableDetails>,
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::aws_dynamo_db_table_details::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() {
"AttributeDefinitions" => {
builder = builder.set_attribute_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_attribute_definition_list(tokens)?
);
}
"BillingModeSummary" => {
builder = builder.set_billing_mode_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_billing_mode_summary(tokens)?
);
}
"CreationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"GlobalSecondaryIndexes" => {
builder = builder.set_global_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_global_secondary_index_list(tokens)?
);
}
"GlobalTableVersion" => {
builder = builder.set_global_table_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ItemCount" => {
builder = builder.set_item_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"KeySchema" => {
builder = builder.set_key_schema(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_key_schema_list(tokens)?
);
}
"LatestStreamArn" => {
builder = builder.set_latest_stream_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LatestStreamLabel" => {
builder = builder.set_latest_stream_label(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LocalSecondaryIndexes" => {
builder = builder.set_local_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_local_secondary_index_list(tokens)?
);
}
"ProvisionedThroughput" => {
builder = builder.set_provisioned_throughput(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_provisioned_throughput(tokens)?
);
}
"Replicas" => {
builder = builder.set_replicas(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_replica_list(tokens)?
);
}
"RestoreSummary" => {
builder = builder.set_restore_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_restore_summary(tokens)?
);
}
"SseDescription" => {
builder = builder.set_sse_description(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_sse_description(tokens)?
);
}
"StreamSpecification" => {
builder = builder.set_stream_specification(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_stream_specification(tokens)?
);
}
"TableId" => {
builder = builder.set_table_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableName" => {
builder = builder.set_table_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableSizeBytes" => {
builder = builder.set_table_size_bytes(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"TableStatus" => {
builder = builder.set_table_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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 provisioned_throughput(
self,
input: AwsDynamoDbTableProvisionedThroughput
) -> Self
pub fn provisioned_throughput(
self,
input: AwsDynamoDbTableProvisionedThroughput
) -> Self
Information about the provisioned throughput for the table.
sourcepub fn set_provisioned_throughput(
self,
input: Option<AwsDynamoDbTableProvisionedThroughput>
) -> Self
pub fn set_provisioned_throughput(
self,
input: Option<AwsDynamoDbTableProvisionedThroughput>
) -> Self
Information about the provisioned throughput for the table.
Examples found in repository?
13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245
pub(crate) fn deser_structure_crate_model_aws_dynamo_db_table_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsDynamoDbTableDetails>,
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::aws_dynamo_db_table_details::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() {
"AttributeDefinitions" => {
builder = builder.set_attribute_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_attribute_definition_list(tokens)?
);
}
"BillingModeSummary" => {
builder = builder.set_billing_mode_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_billing_mode_summary(tokens)?
);
}
"CreationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"GlobalSecondaryIndexes" => {
builder = builder.set_global_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_global_secondary_index_list(tokens)?
);
}
"GlobalTableVersion" => {
builder = builder.set_global_table_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ItemCount" => {
builder = builder.set_item_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"KeySchema" => {
builder = builder.set_key_schema(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_key_schema_list(tokens)?
);
}
"LatestStreamArn" => {
builder = builder.set_latest_stream_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LatestStreamLabel" => {
builder = builder.set_latest_stream_label(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LocalSecondaryIndexes" => {
builder = builder.set_local_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_local_secondary_index_list(tokens)?
);
}
"ProvisionedThroughput" => {
builder = builder.set_provisioned_throughput(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_provisioned_throughput(tokens)?
);
}
"Replicas" => {
builder = builder.set_replicas(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_replica_list(tokens)?
);
}
"RestoreSummary" => {
builder = builder.set_restore_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_restore_summary(tokens)?
);
}
"SseDescription" => {
builder = builder.set_sse_description(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_sse_description(tokens)?
);
}
"StreamSpecification" => {
builder = builder.set_stream_specification(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_stream_specification(tokens)?
);
}
"TableId" => {
builder = builder.set_table_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableName" => {
builder = builder.set_table_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableSizeBytes" => {
builder = builder.set_table_size_bytes(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"TableStatus" => {
builder = builder.set_table_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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 replicas(self, input: AwsDynamoDbTableReplica) -> Self
pub fn replicas(self, input: AwsDynamoDbTableReplica) -> Self
Appends an item to replicas
.
To override the contents of this collection use set_replicas
.
The list of replicas of this table.
sourcepub fn set_replicas(self, input: Option<Vec<AwsDynamoDbTableReplica>>) -> Self
pub fn set_replicas(self, input: Option<Vec<AwsDynamoDbTableReplica>>) -> Self
The list of replicas of this table.
Examples found in repository?
13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245
pub(crate) fn deser_structure_crate_model_aws_dynamo_db_table_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsDynamoDbTableDetails>,
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::aws_dynamo_db_table_details::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() {
"AttributeDefinitions" => {
builder = builder.set_attribute_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_attribute_definition_list(tokens)?
);
}
"BillingModeSummary" => {
builder = builder.set_billing_mode_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_billing_mode_summary(tokens)?
);
}
"CreationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"GlobalSecondaryIndexes" => {
builder = builder.set_global_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_global_secondary_index_list(tokens)?
);
}
"GlobalTableVersion" => {
builder = builder.set_global_table_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ItemCount" => {
builder = builder.set_item_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"KeySchema" => {
builder = builder.set_key_schema(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_key_schema_list(tokens)?
);
}
"LatestStreamArn" => {
builder = builder.set_latest_stream_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LatestStreamLabel" => {
builder = builder.set_latest_stream_label(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LocalSecondaryIndexes" => {
builder = builder.set_local_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_local_secondary_index_list(tokens)?
);
}
"ProvisionedThroughput" => {
builder = builder.set_provisioned_throughput(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_provisioned_throughput(tokens)?
);
}
"Replicas" => {
builder = builder.set_replicas(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_replica_list(tokens)?
);
}
"RestoreSummary" => {
builder = builder.set_restore_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_restore_summary(tokens)?
);
}
"SseDescription" => {
builder = builder.set_sse_description(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_sse_description(tokens)?
);
}
"StreamSpecification" => {
builder = builder.set_stream_specification(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_stream_specification(tokens)?
);
}
"TableId" => {
builder = builder.set_table_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableName" => {
builder = builder.set_table_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableSizeBytes" => {
builder = builder.set_table_size_bytes(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"TableStatus" => {
builder = builder.set_table_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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 restore_summary(self, input: AwsDynamoDbTableRestoreSummary) -> Self
pub fn restore_summary(self, input: AwsDynamoDbTableRestoreSummary) -> Self
Information about the restore for the table.
sourcepub fn set_restore_summary(
self,
input: Option<AwsDynamoDbTableRestoreSummary>
) -> Self
pub fn set_restore_summary(
self,
input: Option<AwsDynamoDbTableRestoreSummary>
) -> Self
Information about the restore for the table.
Examples found in repository?
13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245
pub(crate) fn deser_structure_crate_model_aws_dynamo_db_table_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsDynamoDbTableDetails>,
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::aws_dynamo_db_table_details::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() {
"AttributeDefinitions" => {
builder = builder.set_attribute_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_attribute_definition_list(tokens)?
);
}
"BillingModeSummary" => {
builder = builder.set_billing_mode_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_billing_mode_summary(tokens)?
);
}
"CreationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"GlobalSecondaryIndexes" => {
builder = builder.set_global_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_global_secondary_index_list(tokens)?
);
}
"GlobalTableVersion" => {
builder = builder.set_global_table_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ItemCount" => {
builder = builder.set_item_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"KeySchema" => {
builder = builder.set_key_schema(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_key_schema_list(tokens)?
);
}
"LatestStreamArn" => {
builder = builder.set_latest_stream_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LatestStreamLabel" => {
builder = builder.set_latest_stream_label(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LocalSecondaryIndexes" => {
builder = builder.set_local_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_local_secondary_index_list(tokens)?
);
}
"ProvisionedThroughput" => {
builder = builder.set_provisioned_throughput(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_provisioned_throughput(tokens)?
);
}
"Replicas" => {
builder = builder.set_replicas(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_replica_list(tokens)?
);
}
"RestoreSummary" => {
builder = builder.set_restore_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_restore_summary(tokens)?
);
}
"SseDescription" => {
builder = builder.set_sse_description(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_sse_description(tokens)?
);
}
"StreamSpecification" => {
builder = builder.set_stream_specification(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_stream_specification(tokens)?
);
}
"TableId" => {
builder = builder.set_table_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableName" => {
builder = builder.set_table_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableSizeBytes" => {
builder = builder.set_table_size_bytes(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"TableStatus" => {
builder = builder.set_table_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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 sse_description(self, input: AwsDynamoDbTableSseDescription) -> Self
pub fn sse_description(self, input: AwsDynamoDbTableSseDescription) -> Self
Information about the server-side encryption for the table.
sourcepub fn set_sse_description(
self,
input: Option<AwsDynamoDbTableSseDescription>
) -> Self
pub fn set_sse_description(
self,
input: Option<AwsDynamoDbTableSseDescription>
) -> Self
Information about the server-side encryption for the table.
Examples found in repository?
13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245
pub(crate) fn deser_structure_crate_model_aws_dynamo_db_table_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsDynamoDbTableDetails>,
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::aws_dynamo_db_table_details::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() {
"AttributeDefinitions" => {
builder = builder.set_attribute_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_attribute_definition_list(tokens)?
);
}
"BillingModeSummary" => {
builder = builder.set_billing_mode_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_billing_mode_summary(tokens)?
);
}
"CreationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"GlobalSecondaryIndexes" => {
builder = builder.set_global_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_global_secondary_index_list(tokens)?
);
}
"GlobalTableVersion" => {
builder = builder.set_global_table_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ItemCount" => {
builder = builder.set_item_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"KeySchema" => {
builder = builder.set_key_schema(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_key_schema_list(tokens)?
);
}
"LatestStreamArn" => {
builder = builder.set_latest_stream_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LatestStreamLabel" => {
builder = builder.set_latest_stream_label(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LocalSecondaryIndexes" => {
builder = builder.set_local_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_local_secondary_index_list(tokens)?
);
}
"ProvisionedThroughput" => {
builder = builder.set_provisioned_throughput(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_provisioned_throughput(tokens)?
);
}
"Replicas" => {
builder = builder.set_replicas(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_replica_list(tokens)?
);
}
"RestoreSummary" => {
builder = builder.set_restore_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_restore_summary(tokens)?
);
}
"SseDescription" => {
builder = builder.set_sse_description(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_sse_description(tokens)?
);
}
"StreamSpecification" => {
builder = builder.set_stream_specification(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_stream_specification(tokens)?
);
}
"TableId" => {
builder = builder.set_table_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableName" => {
builder = builder.set_table_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableSizeBytes" => {
builder = builder.set_table_size_bytes(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"TableStatus" => {
builder = builder.set_table_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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 stream_specification(
self,
input: AwsDynamoDbTableStreamSpecification
) -> Self
pub fn stream_specification(
self,
input: AwsDynamoDbTableStreamSpecification
) -> Self
The current DynamoDB Streams configuration for the table.
sourcepub fn set_stream_specification(
self,
input: Option<AwsDynamoDbTableStreamSpecification>
) -> Self
pub fn set_stream_specification(
self,
input: Option<AwsDynamoDbTableStreamSpecification>
) -> Self
The current DynamoDB Streams configuration for the table.
Examples found in repository?
13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245
pub(crate) fn deser_structure_crate_model_aws_dynamo_db_table_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsDynamoDbTableDetails>,
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::aws_dynamo_db_table_details::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() {
"AttributeDefinitions" => {
builder = builder.set_attribute_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_attribute_definition_list(tokens)?
);
}
"BillingModeSummary" => {
builder = builder.set_billing_mode_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_billing_mode_summary(tokens)?
);
}
"CreationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"GlobalSecondaryIndexes" => {
builder = builder.set_global_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_global_secondary_index_list(tokens)?
);
}
"GlobalTableVersion" => {
builder = builder.set_global_table_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ItemCount" => {
builder = builder.set_item_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"KeySchema" => {
builder = builder.set_key_schema(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_key_schema_list(tokens)?
);
}
"LatestStreamArn" => {
builder = builder.set_latest_stream_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LatestStreamLabel" => {
builder = builder.set_latest_stream_label(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LocalSecondaryIndexes" => {
builder = builder.set_local_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_local_secondary_index_list(tokens)?
);
}
"ProvisionedThroughput" => {
builder = builder.set_provisioned_throughput(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_provisioned_throughput(tokens)?
);
}
"Replicas" => {
builder = builder.set_replicas(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_replica_list(tokens)?
);
}
"RestoreSummary" => {
builder = builder.set_restore_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_restore_summary(tokens)?
);
}
"SseDescription" => {
builder = builder.set_sse_description(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_sse_description(tokens)?
);
}
"StreamSpecification" => {
builder = builder.set_stream_specification(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_stream_specification(tokens)?
);
}
"TableId" => {
builder = builder.set_table_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableName" => {
builder = builder.set_table_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableSizeBytes" => {
builder = builder.set_table_size_bytes(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"TableStatus" => {
builder = builder.set_table_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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 set_table_id(self, input: Option<String>) -> Self
pub fn set_table_id(self, input: Option<String>) -> Self
The identifier of the table.
Examples found in repository?
13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245
pub(crate) fn deser_structure_crate_model_aws_dynamo_db_table_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsDynamoDbTableDetails>,
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::aws_dynamo_db_table_details::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() {
"AttributeDefinitions" => {
builder = builder.set_attribute_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_attribute_definition_list(tokens)?
);
}
"BillingModeSummary" => {
builder = builder.set_billing_mode_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_billing_mode_summary(tokens)?
);
}
"CreationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"GlobalSecondaryIndexes" => {
builder = builder.set_global_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_global_secondary_index_list(tokens)?
);
}
"GlobalTableVersion" => {
builder = builder.set_global_table_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ItemCount" => {
builder = builder.set_item_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"KeySchema" => {
builder = builder.set_key_schema(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_key_schema_list(tokens)?
);
}
"LatestStreamArn" => {
builder = builder.set_latest_stream_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LatestStreamLabel" => {
builder = builder.set_latest_stream_label(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LocalSecondaryIndexes" => {
builder = builder.set_local_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_local_secondary_index_list(tokens)?
);
}
"ProvisionedThroughput" => {
builder = builder.set_provisioned_throughput(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_provisioned_throughput(tokens)?
);
}
"Replicas" => {
builder = builder.set_replicas(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_replica_list(tokens)?
);
}
"RestoreSummary" => {
builder = builder.set_restore_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_restore_summary(tokens)?
);
}
"SseDescription" => {
builder = builder.set_sse_description(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_sse_description(tokens)?
);
}
"StreamSpecification" => {
builder = builder.set_stream_specification(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_stream_specification(tokens)?
);
}
"TableId" => {
builder = builder.set_table_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableName" => {
builder = builder.set_table_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableSizeBytes" => {
builder = builder.set_table_size_bytes(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"TableStatus" => {
builder = builder.set_table_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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 table_name(self, input: impl Into<String>) -> Self
pub fn table_name(self, input: impl Into<String>) -> Self
The name of the table.
sourcepub fn set_table_name(self, input: Option<String>) -> Self
pub fn set_table_name(self, input: Option<String>) -> Self
The name of the table.
Examples found in repository?
13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245
pub(crate) fn deser_structure_crate_model_aws_dynamo_db_table_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsDynamoDbTableDetails>,
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::aws_dynamo_db_table_details::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() {
"AttributeDefinitions" => {
builder = builder.set_attribute_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_attribute_definition_list(tokens)?
);
}
"BillingModeSummary" => {
builder = builder.set_billing_mode_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_billing_mode_summary(tokens)?
);
}
"CreationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"GlobalSecondaryIndexes" => {
builder = builder.set_global_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_global_secondary_index_list(tokens)?
);
}
"GlobalTableVersion" => {
builder = builder.set_global_table_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ItemCount" => {
builder = builder.set_item_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"KeySchema" => {
builder = builder.set_key_schema(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_key_schema_list(tokens)?
);
}
"LatestStreamArn" => {
builder = builder.set_latest_stream_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LatestStreamLabel" => {
builder = builder.set_latest_stream_label(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LocalSecondaryIndexes" => {
builder = builder.set_local_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_local_secondary_index_list(tokens)?
);
}
"ProvisionedThroughput" => {
builder = builder.set_provisioned_throughput(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_provisioned_throughput(tokens)?
);
}
"Replicas" => {
builder = builder.set_replicas(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_replica_list(tokens)?
);
}
"RestoreSummary" => {
builder = builder.set_restore_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_restore_summary(tokens)?
);
}
"SseDescription" => {
builder = builder.set_sse_description(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_sse_description(tokens)?
);
}
"StreamSpecification" => {
builder = builder.set_stream_specification(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_stream_specification(tokens)?
);
}
"TableId" => {
builder = builder.set_table_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableName" => {
builder = builder.set_table_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableSizeBytes" => {
builder = builder.set_table_size_bytes(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"TableStatus" => {
builder = builder.set_table_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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 table_size_bytes(self, input: i64) -> Self
pub fn table_size_bytes(self, input: i64) -> Self
The total size of the table in bytes.
sourcepub fn set_table_size_bytes(self, input: Option<i64>) -> Self
pub fn set_table_size_bytes(self, input: Option<i64>) -> Self
The total size of the table in bytes.
Examples found in repository?
13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245
pub(crate) fn deser_structure_crate_model_aws_dynamo_db_table_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsDynamoDbTableDetails>,
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::aws_dynamo_db_table_details::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() {
"AttributeDefinitions" => {
builder = builder.set_attribute_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_attribute_definition_list(tokens)?
);
}
"BillingModeSummary" => {
builder = builder.set_billing_mode_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_billing_mode_summary(tokens)?
);
}
"CreationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"GlobalSecondaryIndexes" => {
builder = builder.set_global_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_global_secondary_index_list(tokens)?
);
}
"GlobalTableVersion" => {
builder = builder.set_global_table_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ItemCount" => {
builder = builder.set_item_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"KeySchema" => {
builder = builder.set_key_schema(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_key_schema_list(tokens)?
);
}
"LatestStreamArn" => {
builder = builder.set_latest_stream_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LatestStreamLabel" => {
builder = builder.set_latest_stream_label(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LocalSecondaryIndexes" => {
builder = builder.set_local_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_local_secondary_index_list(tokens)?
);
}
"ProvisionedThroughput" => {
builder = builder.set_provisioned_throughput(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_provisioned_throughput(tokens)?
);
}
"Replicas" => {
builder = builder.set_replicas(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_replica_list(tokens)?
);
}
"RestoreSummary" => {
builder = builder.set_restore_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_restore_summary(tokens)?
);
}
"SseDescription" => {
builder = builder.set_sse_description(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_sse_description(tokens)?
);
}
"StreamSpecification" => {
builder = builder.set_stream_specification(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_stream_specification(tokens)?
);
}
"TableId" => {
builder = builder.set_table_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableName" => {
builder = builder.set_table_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableSizeBytes" => {
builder = builder.set_table_size_bytes(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"TableStatus" => {
builder = builder.set_table_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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 table_status(self, input: impl Into<String>) -> Self
pub fn table_status(self, input: impl Into<String>) -> Self
The current status of the table. Valid values are as follows:
-
ACTIVE
-
ARCHIVED
-
ARCHIVING
-
CREATING
-
DELETING
-
INACCESSIBLE_ENCRYPTION_CREDENTIALS
-
UPDATING
sourcepub fn set_table_status(self, input: Option<String>) -> Self
pub fn set_table_status(self, input: Option<String>) -> Self
The current status of the table. Valid values are as follows:
-
ACTIVE
-
ARCHIVED
-
ARCHIVING
-
CREATING
-
DELETING
-
INACCESSIBLE_ENCRYPTION_CREDENTIALS
-
UPDATING
Examples found in repository?
13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245
pub(crate) fn deser_structure_crate_model_aws_dynamo_db_table_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsDynamoDbTableDetails>,
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::aws_dynamo_db_table_details::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() {
"AttributeDefinitions" => {
builder = builder.set_attribute_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_attribute_definition_list(tokens)?
);
}
"BillingModeSummary" => {
builder = builder.set_billing_mode_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_billing_mode_summary(tokens)?
);
}
"CreationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"GlobalSecondaryIndexes" => {
builder = builder.set_global_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_global_secondary_index_list(tokens)?
);
}
"GlobalTableVersion" => {
builder = builder.set_global_table_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ItemCount" => {
builder = builder.set_item_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"KeySchema" => {
builder = builder.set_key_schema(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_key_schema_list(tokens)?
);
}
"LatestStreamArn" => {
builder = builder.set_latest_stream_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LatestStreamLabel" => {
builder = builder.set_latest_stream_label(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LocalSecondaryIndexes" => {
builder = builder.set_local_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_local_secondary_index_list(tokens)?
);
}
"ProvisionedThroughput" => {
builder = builder.set_provisioned_throughput(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_provisioned_throughput(tokens)?
);
}
"Replicas" => {
builder = builder.set_replicas(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_replica_list(tokens)?
);
}
"RestoreSummary" => {
builder = builder.set_restore_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_restore_summary(tokens)?
);
}
"SseDescription" => {
builder = builder.set_sse_description(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_sse_description(tokens)?
);
}
"StreamSpecification" => {
builder = builder.set_stream_specification(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_stream_specification(tokens)?
);
}
"TableId" => {
builder = builder.set_table_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableName" => {
builder = builder.set_table_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableSizeBytes" => {
builder = builder.set_table_size_bytes(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"TableStatus" => {
builder = builder.set_table_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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) -> AwsDynamoDbTableDetails
pub fn build(self) -> AwsDynamoDbTableDetails
Consumes the builder and constructs a AwsDynamoDbTableDetails
.
Examples found in repository?
13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245
pub(crate) fn deser_structure_crate_model_aws_dynamo_db_table_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsDynamoDbTableDetails>,
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::aws_dynamo_db_table_details::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() {
"AttributeDefinitions" => {
builder = builder.set_attribute_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_attribute_definition_list(tokens)?
);
}
"BillingModeSummary" => {
builder = builder.set_billing_mode_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_billing_mode_summary(tokens)?
);
}
"CreationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"GlobalSecondaryIndexes" => {
builder = builder.set_global_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_global_secondary_index_list(tokens)?
);
}
"GlobalTableVersion" => {
builder = builder.set_global_table_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ItemCount" => {
builder = builder.set_item_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"KeySchema" => {
builder = builder.set_key_schema(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_key_schema_list(tokens)?
);
}
"LatestStreamArn" => {
builder = builder.set_latest_stream_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LatestStreamLabel" => {
builder = builder.set_latest_stream_label(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LocalSecondaryIndexes" => {
builder = builder.set_local_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_local_secondary_index_list(tokens)?
);
}
"ProvisionedThroughput" => {
builder = builder.set_provisioned_throughput(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_provisioned_throughput(tokens)?
);
}
"Replicas" => {
builder = builder.set_replicas(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_dynamo_db_table_replica_list(tokens)?
);
}
"RestoreSummary" => {
builder = builder.set_restore_summary(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_restore_summary(tokens)?
);
}
"SseDescription" => {
builder = builder.set_sse_description(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_sse_description(tokens)?
);
}
"StreamSpecification" => {
builder = builder.set_stream_specification(
crate::json_deser::deser_structure_crate_model_aws_dynamo_db_table_stream_specification(tokens)?
);
}
"TableId" => {
builder = builder.set_table_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableName" => {
builder = builder.set_table_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"TableSizeBytes" => {
builder = builder.set_table_size_bytes(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"TableStatus" => {
builder = builder.set_table_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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",
),
),
}
}