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

Implementations§

The identifier of the event source mapping.

The identifier of the event source mapping.

Examples found in repository?
src/json_deser.rs (lines 6378-6384)
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
pub(crate) fn deser_operation_crate_operation_update_event_source_mapping(
    value: &[u8],
    mut builder: crate::output::update_event_source_mapping_output::Builder,
) -> Result<
    crate::output::update_event_source_mapping_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    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() {
                    "AmazonManagedKafkaEventSourceConfig" => {
                        builder = builder.set_amazon_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_amazon_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "BatchSize" => {
                        builder = builder.set_batch_size(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "BisectBatchOnFunctionError" => {
                        builder = builder.set_bisect_batch_on_function_error(
                            aws_smithy_json::deserialize::token::expect_bool_or_null(
                                tokens.next(),
                            )?,
                        );
                    }
                    "DestinationConfig" => {
                        builder = builder.set_destination_config(
                            crate::json_deser::deser_structure_crate_model_destination_config(
                                tokens,
                            )?,
                        );
                    }
                    "EventSourceArn" => {
                        builder = builder.set_event_source_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FilterCriteria" => {
                        builder = builder.set_filter_criteria(
                            crate::json_deser::deser_structure_crate_model_filter_criteria(tokens)?,
                        );
                    }
                    "FunctionArn" => {
                        builder = builder.set_function_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FunctionResponseTypes" => {
                        builder = builder.set_function_response_types(
                            crate::json_deser::deser_list_com_amazonaws_lambda_function_response_type_list(tokens)?
                        );
                    }
                    "LastModified" => {
                        builder = builder.set_last_modified(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "LastProcessingResult" => {
                        builder = builder.set_last_processing_result(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "MaximumBatchingWindowInSeconds" => {
                        builder = builder.set_maximum_batching_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRecordAgeInSeconds" => {
                        builder = builder.set_maximum_record_age_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRetryAttempts" => {
                        builder = builder.set_maximum_retry_attempts(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "ParallelizationFactor" => {
                        builder = builder.set_parallelization_factor(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "Queues" => {
                        builder = builder.set_queues(
                            crate::json_deser::deser_list_com_amazonaws_lambda_queues(tokens)?,
                        );
                    }
                    "SelfManagedEventSource" => {
                        builder = builder.set_self_managed_event_source(
                            crate::json_deser::deser_structure_crate_model_self_managed_event_source(tokens)?
                        );
                    }
                    "SelfManagedKafkaEventSourceConfig" => {
                        builder = builder.set_self_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_self_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "SourceAccessConfigurations" => {
                        builder = builder.set_source_access_configurations(
                            crate::json_deser::deser_list_com_amazonaws_lambda_source_access_configurations(tokens)?
                        );
                    }
                    "StartingPosition" => {
                        builder = builder.set_starting_position(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| {
                                s.to_unescaped()
                                    .map(|u| crate::model::EventSourcePosition::from(u.as_ref()))
                            })
                            .transpose()?,
                        );
                    }
                    "StartingPositionTimestamp" => {
                        builder = builder.set_starting_position_timestamp(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "State" => {
                        builder = builder.set_state(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "StateTransitionReason" => {
                        builder = builder.set_state_transition_reason(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "Topics" => {
                        builder = builder.set_topics(
                            crate::json_deser::deser_list_com_amazonaws_lambda_topics(tokens)?,
                        );
                    }
                    "TumblingWindowInSeconds" => {
                        builder = builder.set_tumbling_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "UUID" => {
                        builder = builder.set_uuid(
                            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
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK stream sources. AT_TIMESTAMP is supported only for Amazon Kinesis streams.

The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK stream sources. AT_TIMESTAMP is supported only for Amazon Kinesis streams.

Examples found in repository?
src/json_deser.rs (lines 6326-6335)
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
pub(crate) fn deser_operation_crate_operation_update_event_source_mapping(
    value: &[u8],
    mut builder: crate::output::update_event_source_mapping_output::Builder,
) -> Result<
    crate::output::update_event_source_mapping_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    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() {
                    "AmazonManagedKafkaEventSourceConfig" => {
                        builder = builder.set_amazon_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_amazon_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "BatchSize" => {
                        builder = builder.set_batch_size(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "BisectBatchOnFunctionError" => {
                        builder = builder.set_bisect_batch_on_function_error(
                            aws_smithy_json::deserialize::token::expect_bool_or_null(
                                tokens.next(),
                            )?,
                        );
                    }
                    "DestinationConfig" => {
                        builder = builder.set_destination_config(
                            crate::json_deser::deser_structure_crate_model_destination_config(
                                tokens,
                            )?,
                        );
                    }
                    "EventSourceArn" => {
                        builder = builder.set_event_source_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FilterCriteria" => {
                        builder = builder.set_filter_criteria(
                            crate::json_deser::deser_structure_crate_model_filter_criteria(tokens)?,
                        );
                    }
                    "FunctionArn" => {
                        builder = builder.set_function_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FunctionResponseTypes" => {
                        builder = builder.set_function_response_types(
                            crate::json_deser::deser_list_com_amazonaws_lambda_function_response_type_list(tokens)?
                        );
                    }
                    "LastModified" => {
                        builder = builder.set_last_modified(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "LastProcessingResult" => {
                        builder = builder.set_last_processing_result(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "MaximumBatchingWindowInSeconds" => {
                        builder = builder.set_maximum_batching_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRecordAgeInSeconds" => {
                        builder = builder.set_maximum_record_age_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRetryAttempts" => {
                        builder = builder.set_maximum_retry_attempts(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "ParallelizationFactor" => {
                        builder = builder.set_parallelization_factor(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "Queues" => {
                        builder = builder.set_queues(
                            crate::json_deser::deser_list_com_amazonaws_lambda_queues(tokens)?,
                        );
                    }
                    "SelfManagedEventSource" => {
                        builder = builder.set_self_managed_event_source(
                            crate::json_deser::deser_structure_crate_model_self_managed_event_source(tokens)?
                        );
                    }
                    "SelfManagedKafkaEventSourceConfig" => {
                        builder = builder.set_self_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_self_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "SourceAccessConfigurations" => {
                        builder = builder.set_source_access_configurations(
                            crate::json_deser::deser_list_com_amazonaws_lambda_source_access_configurations(tokens)?
                        );
                    }
                    "StartingPosition" => {
                        builder = builder.set_starting_position(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| {
                                s.to_unescaped()
                                    .map(|u| crate::model::EventSourcePosition::from(u.as_ref()))
                            })
                            .transpose()?,
                        );
                    }
                    "StartingPositionTimestamp" => {
                        builder = builder.set_starting_position_timestamp(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "State" => {
                        builder = builder.set_state(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "StateTransitionReason" => {
                        builder = builder.set_state_transition_reason(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "Topics" => {
                        builder = builder.set_topics(
                            crate::json_deser::deser_list_com_amazonaws_lambda_topics(tokens)?,
                        );
                    }
                    "TumblingWindowInSeconds" => {
                        builder = builder.set_tumbling_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "UUID" => {
                        builder = builder.set_uuid(
                            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
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

With StartingPosition set to AT_TIMESTAMP, the time from which to start reading.

With StartingPosition set to AT_TIMESTAMP, the time from which to start reading.

Examples found in repository?
src/json_deser.rs (lines 6338-6343)
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
pub(crate) fn deser_operation_crate_operation_update_event_source_mapping(
    value: &[u8],
    mut builder: crate::output::update_event_source_mapping_output::Builder,
) -> Result<
    crate::output::update_event_source_mapping_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    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() {
                    "AmazonManagedKafkaEventSourceConfig" => {
                        builder = builder.set_amazon_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_amazon_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "BatchSize" => {
                        builder = builder.set_batch_size(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "BisectBatchOnFunctionError" => {
                        builder = builder.set_bisect_batch_on_function_error(
                            aws_smithy_json::deserialize::token::expect_bool_or_null(
                                tokens.next(),
                            )?,
                        );
                    }
                    "DestinationConfig" => {
                        builder = builder.set_destination_config(
                            crate::json_deser::deser_structure_crate_model_destination_config(
                                tokens,
                            )?,
                        );
                    }
                    "EventSourceArn" => {
                        builder = builder.set_event_source_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FilterCriteria" => {
                        builder = builder.set_filter_criteria(
                            crate::json_deser::deser_structure_crate_model_filter_criteria(tokens)?,
                        );
                    }
                    "FunctionArn" => {
                        builder = builder.set_function_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FunctionResponseTypes" => {
                        builder = builder.set_function_response_types(
                            crate::json_deser::deser_list_com_amazonaws_lambda_function_response_type_list(tokens)?
                        );
                    }
                    "LastModified" => {
                        builder = builder.set_last_modified(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "LastProcessingResult" => {
                        builder = builder.set_last_processing_result(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "MaximumBatchingWindowInSeconds" => {
                        builder = builder.set_maximum_batching_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRecordAgeInSeconds" => {
                        builder = builder.set_maximum_record_age_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRetryAttempts" => {
                        builder = builder.set_maximum_retry_attempts(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "ParallelizationFactor" => {
                        builder = builder.set_parallelization_factor(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "Queues" => {
                        builder = builder.set_queues(
                            crate::json_deser::deser_list_com_amazonaws_lambda_queues(tokens)?,
                        );
                    }
                    "SelfManagedEventSource" => {
                        builder = builder.set_self_managed_event_source(
                            crate::json_deser::deser_structure_crate_model_self_managed_event_source(tokens)?
                        );
                    }
                    "SelfManagedKafkaEventSourceConfig" => {
                        builder = builder.set_self_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_self_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "SourceAccessConfigurations" => {
                        builder = builder.set_source_access_configurations(
                            crate::json_deser::deser_list_com_amazonaws_lambda_source_access_configurations(tokens)?
                        );
                    }
                    "StartingPosition" => {
                        builder = builder.set_starting_position(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| {
                                s.to_unescaped()
                                    .map(|u| crate::model::EventSourcePosition::from(u.as_ref()))
                            })
                            .transpose()?,
                        );
                    }
                    "StartingPositionTimestamp" => {
                        builder = builder.set_starting_position_timestamp(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "State" => {
                        builder = builder.set_state(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "StateTransitionReason" => {
                        builder = builder.set_state_transition_reason(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "Topics" => {
                        builder = builder.set_topics(
                            crate::json_deser::deser_list_com_amazonaws_lambda_topics(tokens)?,
                        );
                    }
                    "TumblingWindowInSeconds" => {
                        builder = builder.set_tumbling_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "UUID" => {
                        builder = builder.set_uuid(
                            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
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB).

Default value: Varies by service. For Amazon SQS, the default is 10. For all other services, the default is 100.

Related setting: When you set BatchSize to a value greater than 10, you must set MaximumBatchingWindowInSeconds to at least 1.

The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB).

Default value: Varies by service. For Amazon SQS, the default is 10. For all other services, the default is 100.

Related setting: When you set BatchSize to a value greater than 10, you must set MaximumBatchingWindowInSeconds to at least 1.

Examples found in repository?
src/json_deser.rs (lines 6202-6208)
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
pub(crate) fn deser_operation_crate_operation_update_event_source_mapping(
    value: &[u8],
    mut builder: crate::output::update_event_source_mapping_output::Builder,
) -> Result<
    crate::output::update_event_source_mapping_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    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() {
                    "AmazonManagedKafkaEventSourceConfig" => {
                        builder = builder.set_amazon_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_amazon_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "BatchSize" => {
                        builder = builder.set_batch_size(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "BisectBatchOnFunctionError" => {
                        builder = builder.set_bisect_batch_on_function_error(
                            aws_smithy_json::deserialize::token::expect_bool_or_null(
                                tokens.next(),
                            )?,
                        );
                    }
                    "DestinationConfig" => {
                        builder = builder.set_destination_config(
                            crate::json_deser::deser_structure_crate_model_destination_config(
                                tokens,
                            )?,
                        );
                    }
                    "EventSourceArn" => {
                        builder = builder.set_event_source_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FilterCriteria" => {
                        builder = builder.set_filter_criteria(
                            crate::json_deser::deser_structure_crate_model_filter_criteria(tokens)?,
                        );
                    }
                    "FunctionArn" => {
                        builder = builder.set_function_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FunctionResponseTypes" => {
                        builder = builder.set_function_response_types(
                            crate::json_deser::deser_list_com_amazonaws_lambda_function_response_type_list(tokens)?
                        );
                    }
                    "LastModified" => {
                        builder = builder.set_last_modified(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "LastProcessingResult" => {
                        builder = builder.set_last_processing_result(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "MaximumBatchingWindowInSeconds" => {
                        builder = builder.set_maximum_batching_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRecordAgeInSeconds" => {
                        builder = builder.set_maximum_record_age_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRetryAttempts" => {
                        builder = builder.set_maximum_retry_attempts(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "ParallelizationFactor" => {
                        builder = builder.set_parallelization_factor(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "Queues" => {
                        builder = builder.set_queues(
                            crate::json_deser::deser_list_com_amazonaws_lambda_queues(tokens)?,
                        );
                    }
                    "SelfManagedEventSource" => {
                        builder = builder.set_self_managed_event_source(
                            crate::json_deser::deser_structure_crate_model_self_managed_event_source(tokens)?
                        );
                    }
                    "SelfManagedKafkaEventSourceConfig" => {
                        builder = builder.set_self_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_self_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "SourceAccessConfigurations" => {
                        builder = builder.set_source_access_configurations(
                            crate::json_deser::deser_list_com_amazonaws_lambda_source_access_configurations(tokens)?
                        );
                    }
                    "StartingPosition" => {
                        builder = builder.set_starting_position(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| {
                                s.to_unescaped()
                                    .map(|u| crate::model::EventSourcePosition::from(u.as_ref()))
                            })
                            .transpose()?,
                        );
                    }
                    "StartingPositionTimestamp" => {
                        builder = builder.set_starting_position_timestamp(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "State" => {
                        builder = builder.set_state(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "StateTransitionReason" => {
                        builder = builder.set_state_transition_reason(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "Topics" => {
                        builder = builder.set_topics(
                            crate::json_deser::deser_list_com_amazonaws_lambda_topics(tokens)?,
                        );
                    }
                    "TumblingWindowInSeconds" => {
                        builder = builder.set_tumbling_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "UUID" => {
                        builder = builder.set_uuid(
                            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
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

(Streams and Amazon SQS standard queues) The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.

Default: 0

Related setting: When you set BatchSize to a value greater than 10, you must set MaximumBatchingWindowInSeconds to at least 1.

(Streams and Amazon SQS standard queues) The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.

Default: 0

Related setting: When you set BatchSize to a value greater than 10, you must set MaximumBatchingWindowInSeconds to at least 1.

Examples found in repository?
src/json_deser.rs (lines 6270-6276)
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
pub(crate) fn deser_operation_crate_operation_update_event_source_mapping(
    value: &[u8],
    mut builder: crate::output::update_event_source_mapping_output::Builder,
) -> Result<
    crate::output::update_event_source_mapping_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    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() {
                    "AmazonManagedKafkaEventSourceConfig" => {
                        builder = builder.set_amazon_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_amazon_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "BatchSize" => {
                        builder = builder.set_batch_size(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "BisectBatchOnFunctionError" => {
                        builder = builder.set_bisect_batch_on_function_error(
                            aws_smithy_json::deserialize::token::expect_bool_or_null(
                                tokens.next(),
                            )?,
                        );
                    }
                    "DestinationConfig" => {
                        builder = builder.set_destination_config(
                            crate::json_deser::deser_structure_crate_model_destination_config(
                                tokens,
                            )?,
                        );
                    }
                    "EventSourceArn" => {
                        builder = builder.set_event_source_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FilterCriteria" => {
                        builder = builder.set_filter_criteria(
                            crate::json_deser::deser_structure_crate_model_filter_criteria(tokens)?,
                        );
                    }
                    "FunctionArn" => {
                        builder = builder.set_function_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FunctionResponseTypes" => {
                        builder = builder.set_function_response_types(
                            crate::json_deser::deser_list_com_amazonaws_lambda_function_response_type_list(tokens)?
                        );
                    }
                    "LastModified" => {
                        builder = builder.set_last_modified(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "LastProcessingResult" => {
                        builder = builder.set_last_processing_result(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "MaximumBatchingWindowInSeconds" => {
                        builder = builder.set_maximum_batching_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRecordAgeInSeconds" => {
                        builder = builder.set_maximum_record_age_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRetryAttempts" => {
                        builder = builder.set_maximum_retry_attempts(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "ParallelizationFactor" => {
                        builder = builder.set_parallelization_factor(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "Queues" => {
                        builder = builder.set_queues(
                            crate::json_deser::deser_list_com_amazonaws_lambda_queues(tokens)?,
                        );
                    }
                    "SelfManagedEventSource" => {
                        builder = builder.set_self_managed_event_source(
                            crate::json_deser::deser_structure_crate_model_self_managed_event_source(tokens)?
                        );
                    }
                    "SelfManagedKafkaEventSourceConfig" => {
                        builder = builder.set_self_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_self_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "SourceAccessConfigurations" => {
                        builder = builder.set_source_access_configurations(
                            crate::json_deser::deser_list_com_amazonaws_lambda_source_access_configurations(tokens)?
                        );
                    }
                    "StartingPosition" => {
                        builder = builder.set_starting_position(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| {
                                s.to_unescaped()
                                    .map(|u| crate::model::EventSourcePosition::from(u.as_ref()))
                            })
                            .transpose()?,
                        );
                    }
                    "StartingPositionTimestamp" => {
                        builder = builder.set_starting_position_timestamp(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "State" => {
                        builder = builder.set_state(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "StateTransitionReason" => {
                        builder = builder.set_state_transition_reason(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "Topics" => {
                        builder = builder.set_topics(
                            crate::json_deser::deser_list_com_amazonaws_lambda_topics(tokens)?,
                        );
                    }
                    "TumblingWindowInSeconds" => {
                        builder = builder.set_tumbling_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "UUID" => {
                        builder = builder.set_uuid(
                            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
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

(Streams only) The number of batches to process concurrently from each shard. The default value is 1.

(Streams only) The number of batches to process concurrently from each shard. The default value is 1.

Examples found in repository?
src/json_deser.rs (lines 6297-6303)
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
pub(crate) fn deser_operation_crate_operation_update_event_source_mapping(
    value: &[u8],
    mut builder: crate::output::update_event_source_mapping_output::Builder,
) -> Result<
    crate::output::update_event_source_mapping_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    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() {
                    "AmazonManagedKafkaEventSourceConfig" => {
                        builder = builder.set_amazon_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_amazon_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "BatchSize" => {
                        builder = builder.set_batch_size(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "BisectBatchOnFunctionError" => {
                        builder = builder.set_bisect_batch_on_function_error(
                            aws_smithy_json::deserialize::token::expect_bool_or_null(
                                tokens.next(),
                            )?,
                        );
                    }
                    "DestinationConfig" => {
                        builder = builder.set_destination_config(
                            crate::json_deser::deser_structure_crate_model_destination_config(
                                tokens,
                            )?,
                        );
                    }
                    "EventSourceArn" => {
                        builder = builder.set_event_source_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FilterCriteria" => {
                        builder = builder.set_filter_criteria(
                            crate::json_deser::deser_structure_crate_model_filter_criteria(tokens)?,
                        );
                    }
                    "FunctionArn" => {
                        builder = builder.set_function_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FunctionResponseTypes" => {
                        builder = builder.set_function_response_types(
                            crate::json_deser::deser_list_com_amazonaws_lambda_function_response_type_list(tokens)?
                        );
                    }
                    "LastModified" => {
                        builder = builder.set_last_modified(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "LastProcessingResult" => {
                        builder = builder.set_last_processing_result(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "MaximumBatchingWindowInSeconds" => {
                        builder = builder.set_maximum_batching_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRecordAgeInSeconds" => {
                        builder = builder.set_maximum_record_age_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRetryAttempts" => {
                        builder = builder.set_maximum_retry_attempts(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "ParallelizationFactor" => {
                        builder = builder.set_parallelization_factor(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "Queues" => {
                        builder = builder.set_queues(
                            crate::json_deser::deser_list_com_amazonaws_lambda_queues(tokens)?,
                        );
                    }
                    "SelfManagedEventSource" => {
                        builder = builder.set_self_managed_event_source(
                            crate::json_deser::deser_structure_crate_model_self_managed_event_source(tokens)?
                        );
                    }
                    "SelfManagedKafkaEventSourceConfig" => {
                        builder = builder.set_self_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_self_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "SourceAccessConfigurations" => {
                        builder = builder.set_source_access_configurations(
                            crate::json_deser::deser_list_com_amazonaws_lambda_source_access_configurations(tokens)?
                        );
                    }
                    "StartingPosition" => {
                        builder = builder.set_starting_position(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| {
                                s.to_unescaped()
                                    .map(|u| crate::model::EventSourcePosition::from(u.as_ref()))
                            })
                            .transpose()?,
                        );
                    }
                    "StartingPositionTimestamp" => {
                        builder = builder.set_starting_position_timestamp(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "State" => {
                        builder = builder.set_state(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "StateTransitionReason" => {
                        builder = builder.set_state_transition_reason(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "Topics" => {
                        builder = builder.set_topics(
                            crate::json_deser::deser_list_com_amazonaws_lambda_topics(tokens)?,
                        );
                    }
                    "TumblingWindowInSeconds" => {
                        builder = builder.set_tumbling_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "UUID" => {
                        builder = builder.set_uuid(
                            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
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

The Amazon Resource Name (ARN) of the event source.

The Amazon Resource Name (ARN) of the event source.

Examples found in repository?
src/json_deser.rs (lines 6225-6231)
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
pub(crate) fn deser_operation_crate_operation_update_event_source_mapping(
    value: &[u8],
    mut builder: crate::output::update_event_source_mapping_output::Builder,
) -> Result<
    crate::output::update_event_source_mapping_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    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() {
                    "AmazonManagedKafkaEventSourceConfig" => {
                        builder = builder.set_amazon_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_amazon_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "BatchSize" => {
                        builder = builder.set_batch_size(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "BisectBatchOnFunctionError" => {
                        builder = builder.set_bisect_batch_on_function_error(
                            aws_smithy_json::deserialize::token::expect_bool_or_null(
                                tokens.next(),
                            )?,
                        );
                    }
                    "DestinationConfig" => {
                        builder = builder.set_destination_config(
                            crate::json_deser::deser_structure_crate_model_destination_config(
                                tokens,
                            )?,
                        );
                    }
                    "EventSourceArn" => {
                        builder = builder.set_event_source_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FilterCriteria" => {
                        builder = builder.set_filter_criteria(
                            crate::json_deser::deser_structure_crate_model_filter_criteria(tokens)?,
                        );
                    }
                    "FunctionArn" => {
                        builder = builder.set_function_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FunctionResponseTypes" => {
                        builder = builder.set_function_response_types(
                            crate::json_deser::deser_list_com_amazonaws_lambda_function_response_type_list(tokens)?
                        );
                    }
                    "LastModified" => {
                        builder = builder.set_last_modified(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "LastProcessingResult" => {
                        builder = builder.set_last_processing_result(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "MaximumBatchingWindowInSeconds" => {
                        builder = builder.set_maximum_batching_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRecordAgeInSeconds" => {
                        builder = builder.set_maximum_record_age_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRetryAttempts" => {
                        builder = builder.set_maximum_retry_attempts(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "ParallelizationFactor" => {
                        builder = builder.set_parallelization_factor(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "Queues" => {
                        builder = builder.set_queues(
                            crate::json_deser::deser_list_com_amazonaws_lambda_queues(tokens)?,
                        );
                    }
                    "SelfManagedEventSource" => {
                        builder = builder.set_self_managed_event_source(
                            crate::json_deser::deser_structure_crate_model_self_managed_event_source(tokens)?
                        );
                    }
                    "SelfManagedKafkaEventSourceConfig" => {
                        builder = builder.set_self_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_self_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "SourceAccessConfigurations" => {
                        builder = builder.set_source_access_configurations(
                            crate::json_deser::deser_list_com_amazonaws_lambda_source_access_configurations(tokens)?
                        );
                    }
                    "StartingPosition" => {
                        builder = builder.set_starting_position(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| {
                                s.to_unescaped()
                                    .map(|u| crate::model::EventSourcePosition::from(u.as_ref()))
                            })
                            .transpose()?,
                        );
                    }
                    "StartingPositionTimestamp" => {
                        builder = builder.set_starting_position_timestamp(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "State" => {
                        builder = builder.set_state(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "StateTransitionReason" => {
                        builder = builder.set_state_transition_reason(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "Topics" => {
                        builder = builder.set_topics(
                            crate::json_deser::deser_list_com_amazonaws_lambda_topics(tokens)?,
                        );
                    }
                    "TumblingWindowInSeconds" => {
                        builder = builder.set_tumbling_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "UUID" => {
                        builder = builder.set_uuid(
                            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
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

(Streams and Amazon SQS) An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see Lambda event filtering.

(Streams and Amazon SQS) An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see Lambda event filtering.

Examples found in repository?
src/json_deser.rs (lines 6234-6236)
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
pub(crate) fn deser_operation_crate_operation_update_event_source_mapping(
    value: &[u8],
    mut builder: crate::output::update_event_source_mapping_output::Builder,
) -> Result<
    crate::output::update_event_source_mapping_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    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() {
                    "AmazonManagedKafkaEventSourceConfig" => {
                        builder = builder.set_amazon_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_amazon_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "BatchSize" => {
                        builder = builder.set_batch_size(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "BisectBatchOnFunctionError" => {
                        builder = builder.set_bisect_batch_on_function_error(
                            aws_smithy_json::deserialize::token::expect_bool_or_null(
                                tokens.next(),
                            )?,
                        );
                    }
                    "DestinationConfig" => {
                        builder = builder.set_destination_config(
                            crate::json_deser::deser_structure_crate_model_destination_config(
                                tokens,
                            )?,
                        );
                    }
                    "EventSourceArn" => {
                        builder = builder.set_event_source_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FilterCriteria" => {
                        builder = builder.set_filter_criteria(
                            crate::json_deser::deser_structure_crate_model_filter_criteria(tokens)?,
                        );
                    }
                    "FunctionArn" => {
                        builder = builder.set_function_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FunctionResponseTypes" => {
                        builder = builder.set_function_response_types(
                            crate::json_deser::deser_list_com_amazonaws_lambda_function_response_type_list(tokens)?
                        );
                    }
                    "LastModified" => {
                        builder = builder.set_last_modified(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "LastProcessingResult" => {
                        builder = builder.set_last_processing_result(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "MaximumBatchingWindowInSeconds" => {
                        builder = builder.set_maximum_batching_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRecordAgeInSeconds" => {
                        builder = builder.set_maximum_record_age_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRetryAttempts" => {
                        builder = builder.set_maximum_retry_attempts(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "ParallelizationFactor" => {
                        builder = builder.set_parallelization_factor(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "Queues" => {
                        builder = builder.set_queues(
                            crate::json_deser::deser_list_com_amazonaws_lambda_queues(tokens)?,
                        );
                    }
                    "SelfManagedEventSource" => {
                        builder = builder.set_self_managed_event_source(
                            crate::json_deser::deser_structure_crate_model_self_managed_event_source(tokens)?
                        );
                    }
                    "SelfManagedKafkaEventSourceConfig" => {
                        builder = builder.set_self_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_self_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "SourceAccessConfigurations" => {
                        builder = builder.set_source_access_configurations(
                            crate::json_deser::deser_list_com_amazonaws_lambda_source_access_configurations(tokens)?
                        );
                    }
                    "StartingPosition" => {
                        builder = builder.set_starting_position(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| {
                                s.to_unescaped()
                                    .map(|u| crate::model::EventSourcePosition::from(u.as_ref()))
                            })
                            .transpose()?,
                        );
                    }
                    "StartingPositionTimestamp" => {
                        builder = builder.set_starting_position_timestamp(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "State" => {
                        builder = builder.set_state(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "StateTransitionReason" => {
                        builder = builder.set_state_transition_reason(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "Topics" => {
                        builder = builder.set_topics(
                            crate::json_deser::deser_list_com_amazonaws_lambda_topics(tokens)?,
                        );
                    }
                    "TumblingWindowInSeconds" => {
                        builder = builder.set_tumbling_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "UUID" => {
                        builder = builder.set_uuid(
                            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
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

The ARN of the Lambda function.

The ARN of the Lambda function.

Examples found in repository?
src/json_deser.rs (lines 6239-6245)
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
pub(crate) fn deser_operation_crate_operation_update_event_source_mapping(
    value: &[u8],
    mut builder: crate::output::update_event_source_mapping_output::Builder,
) -> Result<
    crate::output::update_event_source_mapping_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    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() {
                    "AmazonManagedKafkaEventSourceConfig" => {
                        builder = builder.set_amazon_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_amazon_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "BatchSize" => {
                        builder = builder.set_batch_size(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "BisectBatchOnFunctionError" => {
                        builder = builder.set_bisect_batch_on_function_error(
                            aws_smithy_json::deserialize::token::expect_bool_or_null(
                                tokens.next(),
                            )?,
                        );
                    }
                    "DestinationConfig" => {
                        builder = builder.set_destination_config(
                            crate::json_deser::deser_structure_crate_model_destination_config(
                                tokens,
                            )?,
                        );
                    }
                    "EventSourceArn" => {
                        builder = builder.set_event_source_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FilterCriteria" => {
                        builder = builder.set_filter_criteria(
                            crate::json_deser::deser_structure_crate_model_filter_criteria(tokens)?,
                        );
                    }
                    "FunctionArn" => {
                        builder = builder.set_function_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FunctionResponseTypes" => {
                        builder = builder.set_function_response_types(
                            crate::json_deser::deser_list_com_amazonaws_lambda_function_response_type_list(tokens)?
                        );
                    }
                    "LastModified" => {
                        builder = builder.set_last_modified(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "LastProcessingResult" => {
                        builder = builder.set_last_processing_result(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "MaximumBatchingWindowInSeconds" => {
                        builder = builder.set_maximum_batching_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRecordAgeInSeconds" => {
                        builder = builder.set_maximum_record_age_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRetryAttempts" => {
                        builder = builder.set_maximum_retry_attempts(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "ParallelizationFactor" => {
                        builder = builder.set_parallelization_factor(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "Queues" => {
                        builder = builder.set_queues(
                            crate::json_deser::deser_list_com_amazonaws_lambda_queues(tokens)?,
                        );
                    }
                    "SelfManagedEventSource" => {
                        builder = builder.set_self_managed_event_source(
                            crate::json_deser::deser_structure_crate_model_self_managed_event_source(tokens)?
                        );
                    }
                    "SelfManagedKafkaEventSourceConfig" => {
                        builder = builder.set_self_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_self_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "SourceAccessConfigurations" => {
                        builder = builder.set_source_access_configurations(
                            crate::json_deser::deser_list_com_amazonaws_lambda_source_access_configurations(tokens)?
                        );
                    }
                    "StartingPosition" => {
                        builder = builder.set_starting_position(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| {
                                s.to_unescaped()
                                    .map(|u| crate::model::EventSourcePosition::from(u.as_ref()))
                            })
                            .transpose()?,
                        );
                    }
                    "StartingPositionTimestamp" => {
                        builder = builder.set_starting_position_timestamp(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "State" => {
                        builder = builder.set_state(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "StateTransitionReason" => {
                        builder = builder.set_state_transition_reason(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "Topics" => {
                        builder = builder.set_topics(
                            crate::json_deser::deser_list_com_amazonaws_lambda_topics(tokens)?,
                        );
                    }
                    "TumblingWindowInSeconds" => {
                        builder = builder.set_tumbling_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "UUID" => {
                        builder = builder.set_uuid(
                            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
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

The date that the event source mapping was last updated or that its state changed.

The date that the event source mapping was last updated or that its state changed.

Examples found in repository?
src/json_deser.rs (lines 6253-6258)
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
pub(crate) fn deser_operation_crate_operation_update_event_source_mapping(
    value: &[u8],
    mut builder: crate::output::update_event_source_mapping_output::Builder,
) -> Result<
    crate::output::update_event_source_mapping_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    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() {
                    "AmazonManagedKafkaEventSourceConfig" => {
                        builder = builder.set_amazon_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_amazon_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "BatchSize" => {
                        builder = builder.set_batch_size(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "BisectBatchOnFunctionError" => {
                        builder = builder.set_bisect_batch_on_function_error(
                            aws_smithy_json::deserialize::token::expect_bool_or_null(
                                tokens.next(),
                            )?,
                        );
                    }
                    "DestinationConfig" => {
                        builder = builder.set_destination_config(
                            crate::json_deser::deser_structure_crate_model_destination_config(
                                tokens,
                            )?,
                        );
                    }
                    "EventSourceArn" => {
                        builder = builder.set_event_source_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FilterCriteria" => {
                        builder = builder.set_filter_criteria(
                            crate::json_deser::deser_structure_crate_model_filter_criteria(tokens)?,
                        );
                    }
                    "FunctionArn" => {
                        builder = builder.set_function_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FunctionResponseTypes" => {
                        builder = builder.set_function_response_types(
                            crate::json_deser::deser_list_com_amazonaws_lambda_function_response_type_list(tokens)?
                        );
                    }
                    "LastModified" => {
                        builder = builder.set_last_modified(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "LastProcessingResult" => {
                        builder = builder.set_last_processing_result(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "MaximumBatchingWindowInSeconds" => {
                        builder = builder.set_maximum_batching_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRecordAgeInSeconds" => {
                        builder = builder.set_maximum_record_age_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRetryAttempts" => {
                        builder = builder.set_maximum_retry_attempts(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "ParallelizationFactor" => {
                        builder = builder.set_parallelization_factor(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "Queues" => {
                        builder = builder.set_queues(
                            crate::json_deser::deser_list_com_amazonaws_lambda_queues(tokens)?,
                        );
                    }
                    "SelfManagedEventSource" => {
                        builder = builder.set_self_managed_event_source(
                            crate::json_deser::deser_structure_crate_model_self_managed_event_source(tokens)?
                        );
                    }
                    "SelfManagedKafkaEventSourceConfig" => {
                        builder = builder.set_self_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_self_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "SourceAccessConfigurations" => {
                        builder = builder.set_source_access_configurations(
                            crate::json_deser::deser_list_com_amazonaws_lambda_source_access_configurations(tokens)?
                        );
                    }
                    "StartingPosition" => {
                        builder = builder.set_starting_position(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| {
                                s.to_unescaped()
                                    .map(|u| crate::model::EventSourcePosition::from(u.as_ref()))
                            })
                            .transpose()?,
                        );
                    }
                    "StartingPositionTimestamp" => {
                        builder = builder.set_starting_position_timestamp(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "State" => {
                        builder = builder.set_state(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "StateTransitionReason" => {
                        builder = builder.set_state_transition_reason(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "Topics" => {
                        builder = builder.set_topics(
                            crate::json_deser::deser_list_com_amazonaws_lambda_topics(tokens)?,
                        );
                    }
                    "TumblingWindowInSeconds" => {
                        builder = builder.set_tumbling_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "UUID" => {
                        builder = builder.set_uuid(
                            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
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

The result of the last Lambda invocation of your function.

The result of the last Lambda invocation of your function.

Examples found in repository?
src/json_deser.rs (lines 6261-6267)
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
pub(crate) fn deser_operation_crate_operation_update_event_source_mapping(
    value: &[u8],
    mut builder: crate::output::update_event_source_mapping_output::Builder,
) -> Result<
    crate::output::update_event_source_mapping_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    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() {
                    "AmazonManagedKafkaEventSourceConfig" => {
                        builder = builder.set_amazon_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_amazon_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "BatchSize" => {
                        builder = builder.set_batch_size(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "BisectBatchOnFunctionError" => {
                        builder = builder.set_bisect_batch_on_function_error(
                            aws_smithy_json::deserialize::token::expect_bool_or_null(
                                tokens.next(),
                            )?,
                        );
                    }
                    "DestinationConfig" => {
                        builder = builder.set_destination_config(
                            crate::json_deser::deser_structure_crate_model_destination_config(
                                tokens,
                            )?,
                        );
                    }
                    "EventSourceArn" => {
                        builder = builder.set_event_source_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FilterCriteria" => {
                        builder = builder.set_filter_criteria(
                            crate::json_deser::deser_structure_crate_model_filter_criteria(tokens)?,
                        );
                    }
                    "FunctionArn" => {
                        builder = builder.set_function_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FunctionResponseTypes" => {
                        builder = builder.set_function_response_types(
                            crate::json_deser::deser_list_com_amazonaws_lambda_function_response_type_list(tokens)?
                        );
                    }
                    "LastModified" => {
                        builder = builder.set_last_modified(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "LastProcessingResult" => {
                        builder = builder.set_last_processing_result(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "MaximumBatchingWindowInSeconds" => {
                        builder = builder.set_maximum_batching_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRecordAgeInSeconds" => {
                        builder = builder.set_maximum_record_age_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRetryAttempts" => {
                        builder = builder.set_maximum_retry_attempts(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "ParallelizationFactor" => {
                        builder = builder.set_parallelization_factor(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "Queues" => {
                        builder = builder.set_queues(
                            crate::json_deser::deser_list_com_amazonaws_lambda_queues(tokens)?,
                        );
                    }
                    "SelfManagedEventSource" => {
                        builder = builder.set_self_managed_event_source(
                            crate::json_deser::deser_structure_crate_model_self_managed_event_source(tokens)?
                        );
                    }
                    "SelfManagedKafkaEventSourceConfig" => {
                        builder = builder.set_self_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_self_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "SourceAccessConfigurations" => {
                        builder = builder.set_source_access_configurations(
                            crate::json_deser::deser_list_com_amazonaws_lambda_source_access_configurations(tokens)?
                        );
                    }
                    "StartingPosition" => {
                        builder = builder.set_starting_position(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| {
                                s.to_unescaped()
                                    .map(|u| crate::model::EventSourcePosition::from(u.as_ref()))
                            })
                            .transpose()?,
                        );
                    }
                    "StartingPositionTimestamp" => {
                        builder = builder.set_starting_position_timestamp(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "State" => {
                        builder = builder.set_state(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "StateTransitionReason" => {
                        builder = builder.set_state_transition_reason(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "Topics" => {
                        builder = builder.set_topics(
                            crate::json_deser::deser_list_com_amazonaws_lambda_topics(tokens)?,
                        );
                    }
                    "TumblingWindowInSeconds" => {
                        builder = builder.set_tumbling_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "UUID" => {
                        builder = builder.set_uuid(
                            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
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

The state of the event source mapping. It can be one of the following: Creating, Enabling, Enabled, Disabling, Disabled, Updating, or Deleting.

The state of the event source mapping. It can be one of the following: Creating, Enabling, Enabled, Disabling, Disabled, Updating, or Deleting.

Examples found in repository?
src/json_deser.rs (lines 6346-6352)
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
pub(crate) fn deser_operation_crate_operation_update_event_source_mapping(
    value: &[u8],
    mut builder: crate::output::update_event_source_mapping_output::Builder,
) -> Result<
    crate::output::update_event_source_mapping_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    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() {
                    "AmazonManagedKafkaEventSourceConfig" => {
                        builder = builder.set_amazon_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_amazon_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "BatchSize" => {
                        builder = builder.set_batch_size(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "BisectBatchOnFunctionError" => {
                        builder = builder.set_bisect_batch_on_function_error(
                            aws_smithy_json::deserialize::token::expect_bool_or_null(
                                tokens.next(),
                            )?,
                        );
                    }
                    "DestinationConfig" => {
                        builder = builder.set_destination_config(
                            crate::json_deser::deser_structure_crate_model_destination_config(
                                tokens,
                            )?,
                        );
                    }
                    "EventSourceArn" => {
                        builder = builder.set_event_source_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FilterCriteria" => {
                        builder = builder.set_filter_criteria(
                            crate::json_deser::deser_structure_crate_model_filter_criteria(tokens)?,
                        );
                    }
                    "FunctionArn" => {
                        builder = builder.set_function_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FunctionResponseTypes" => {
                        builder = builder.set_function_response_types(
                            crate::json_deser::deser_list_com_amazonaws_lambda_function_response_type_list(tokens)?
                        );
                    }
                    "LastModified" => {
                        builder = builder.set_last_modified(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "LastProcessingResult" => {
                        builder = builder.set_last_processing_result(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "MaximumBatchingWindowInSeconds" => {
                        builder = builder.set_maximum_batching_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRecordAgeInSeconds" => {
                        builder = builder.set_maximum_record_age_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRetryAttempts" => {
                        builder = builder.set_maximum_retry_attempts(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "ParallelizationFactor" => {
                        builder = builder.set_parallelization_factor(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "Queues" => {
                        builder = builder.set_queues(
                            crate::json_deser::deser_list_com_amazonaws_lambda_queues(tokens)?,
                        );
                    }
                    "SelfManagedEventSource" => {
                        builder = builder.set_self_managed_event_source(
                            crate::json_deser::deser_structure_crate_model_self_managed_event_source(tokens)?
                        );
                    }
                    "SelfManagedKafkaEventSourceConfig" => {
                        builder = builder.set_self_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_self_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "SourceAccessConfigurations" => {
                        builder = builder.set_source_access_configurations(
                            crate::json_deser::deser_list_com_amazonaws_lambda_source_access_configurations(tokens)?
                        );
                    }
                    "StartingPosition" => {
                        builder = builder.set_starting_position(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| {
                                s.to_unescaped()
                                    .map(|u| crate::model::EventSourcePosition::from(u.as_ref()))
                            })
                            .transpose()?,
                        );
                    }
                    "StartingPositionTimestamp" => {
                        builder = builder.set_starting_position_timestamp(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "State" => {
                        builder = builder.set_state(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "StateTransitionReason" => {
                        builder = builder.set_state_transition_reason(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "Topics" => {
                        builder = builder.set_topics(
                            crate::json_deser::deser_list_com_amazonaws_lambda_topics(tokens)?,
                        );
                    }
                    "TumblingWindowInSeconds" => {
                        builder = builder.set_tumbling_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "UUID" => {
                        builder = builder.set_uuid(
                            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
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

Indicates whether a user or Lambda made the last change to the event source mapping.

Indicates whether a user or Lambda made the last change to the event source mapping.

Examples found in repository?
src/json_deser.rs (lines 6355-6361)
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
pub(crate) fn deser_operation_crate_operation_update_event_source_mapping(
    value: &[u8],
    mut builder: crate::output::update_event_source_mapping_output::Builder,
) -> Result<
    crate::output::update_event_source_mapping_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    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() {
                    "AmazonManagedKafkaEventSourceConfig" => {
                        builder = builder.set_amazon_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_amazon_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "BatchSize" => {
                        builder = builder.set_batch_size(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "BisectBatchOnFunctionError" => {
                        builder = builder.set_bisect_batch_on_function_error(
                            aws_smithy_json::deserialize::token::expect_bool_or_null(
                                tokens.next(),
                            )?,
                        );
                    }
                    "DestinationConfig" => {
                        builder = builder.set_destination_config(
                            crate::json_deser::deser_structure_crate_model_destination_config(
                                tokens,
                            )?,
                        );
                    }
                    "EventSourceArn" => {
                        builder = builder.set_event_source_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FilterCriteria" => {
                        builder = builder.set_filter_criteria(
                            crate::json_deser::deser_structure_crate_model_filter_criteria(tokens)?,
                        );
                    }
                    "FunctionArn" => {
                        builder = builder.set_function_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FunctionResponseTypes" => {
                        builder = builder.set_function_response_types(
                            crate::json_deser::deser_list_com_amazonaws_lambda_function_response_type_list(tokens)?
                        );
                    }
                    "LastModified" => {
                        builder = builder.set_last_modified(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "LastProcessingResult" => {
                        builder = builder.set_last_processing_result(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "MaximumBatchingWindowInSeconds" => {
                        builder = builder.set_maximum_batching_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRecordAgeInSeconds" => {
                        builder = builder.set_maximum_record_age_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRetryAttempts" => {
                        builder = builder.set_maximum_retry_attempts(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "ParallelizationFactor" => {
                        builder = builder.set_parallelization_factor(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "Queues" => {
                        builder = builder.set_queues(
                            crate::json_deser::deser_list_com_amazonaws_lambda_queues(tokens)?,
                        );
                    }
                    "SelfManagedEventSource" => {
                        builder = builder.set_self_managed_event_source(
                            crate::json_deser::deser_structure_crate_model_self_managed_event_source(tokens)?
                        );
                    }
                    "SelfManagedKafkaEventSourceConfig" => {
                        builder = builder.set_self_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_self_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "SourceAccessConfigurations" => {
                        builder = builder.set_source_access_configurations(
                            crate::json_deser::deser_list_com_amazonaws_lambda_source_access_configurations(tokens)?
                        );
                    }
                    "StartingPosition" => {
                        builder = builder.set_starting_position(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| {
                                s.to_unescaped()
                                    .map(|u| crate::model::EventSourcePosition::from(u.as_ref()))
                            })
                            .transpose()?,
                        );
                    }
                    "StartingPositionTimestamp" => {
                        builder = builder.set_starting_position_timestamp(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "State" => {
                        builder = builder.set_state(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "StateTransitionReason" => {
                        builder = builder.set_state_transition_reason(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "Topics" => {
                        builder = builder.set_topics(
                            crate::json_deser::deser_list_com_amazonaws_lambda_topics(tokens)?,
                        );
                    }
                    "TumblingWindowInSeconds" => {
                        builder = builder.set_tumbling_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "UUID" => {
                        builder = builder.set_uuid(
                            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
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

(Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.

(Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.

Examples found in repository?
src/json_deser.rs (lines 6218-6222)
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
pub(crate) fn deser_operation_crate_operation_update_event_source_mapping(
    value: &[u8],
    mut builder: crate::output::update_event_source_mapping_output::Builder,
) -> Result<
    crate::output::update_event_source_mapping_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    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() {
                    "AmazonManagedKafkaEventSourceConfig" => {
                        builder = builder.set_amazon_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_amazon_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "BatchSize" => {
                        builder = builder.set_batch_size(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "BisectBatchOnFunctionError" => {
                        builder = builder.set_bisect_batch_on_function_error(
                            aws_smithy_json::deserialize::token::expect_bool_or_null(
                                tokens.next(),
                            )?,
                        );
                    }
                    "DestinationConfig" => {
                        builder = builder.set_destination_config(
                            crate::json_deser::deser_structure_crate_model_destination_config(
                                tokens,
                            )?,
                        );
                    }
                    "EventSourceArn" => {
                        builder = builder.set_event_source_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FilterCriteria" => {
                        builder = builder.set_filter_criteria(
                            crate::json_deser::deser_structure_crate_model_filter_criteria(tokens)?,
                        );
                    }
                    "FunctionArn" => {
                        builder = builder.set_function_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FunctionResponseTypes" => {
                        builder = builder.set_function_response_types(
                            crate::json_deser::deser_list_com_amazonaws_lambda_function_response_type_list(tokens)?
                        );
                    }
                    "LastModified" => {
                        builder = builder.set_last_modified(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "LastProcessingResult" => {
                        builder = builder.set_last_processing_result(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "MaximumBatchingWindowInSeconds" => {
                        builder = builder.set_maximum_batching_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRecordAgeInSeconds" => {
                        builder = builder.set_maximum_record_age_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRetryAttempts" => {
                        builder = builder.set_maximum_retry_attempts(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "ParallelizationFactor" => {
                        builder = builder.set_parallelization_factor(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "Queues" => {
                        builder = builder.set_queues(
                            crate::json_deser::deser_list_com_amazonaws_lambda_queues(tokens)?,
                        );
                    }
                    "SelfManagedEventSource" => {
                        builder = builder.set_self_managed_event_source(
                            crate::json_deser::deser_structure_crate_model_self_managed_event_source(tokens)?
                        );
                    }
                    "SelfManagedKafkaEventSourceConfig" => {
                        builder = builder.set_self_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_self_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "SourceAccessConfigurations" => {
                        builder = builder.set_source_access_configurations(
                            crate::json_deser::deser_list_com_amazonaws_lambda_source_access_configurations(tokens)?
                        );
                    }
                    "StartingPosition" => {
                        builder = builder.set_starting_position(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| {
                                s.to_unescaped()
                                    .map(|u| crate::model::EventSourcePosition::from(u.as_ref()))
                            })
                            .transpose()?,
                        );
                    }
                    "StartingPositionTimestamp" => {
                        builder = builder.set_starting_position_timestamp(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "State" => {
                        builder = builder.set_state(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "StateTransitionReason" => {
                        builder = builder.set_state_transition_reason(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "Topics" => {
                        builder = builder.set_topics(
                            crate::json_deser::deser_list_com_amazonaws_lambda_topics(tokens)?,
                        );
                    }
                    "TumblingWindowInSeconds" => {
                        builder = builder.set_tumbling_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "UUID" => {
                        builder = builder.set_uuid(
                            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
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

Appends an item to topics.

To override the contents of this collection use set_topics.

The name of the Kafka topic.

The name of the Kafka topic.

Examples found in repository?
src/json_deser.rs (lines 6364-6366)
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
pub(crate) fn deser_operation_crate_operation_update_event_source_mapping(
    value: &[u8],
    mut builder: crate::output::update_event_source_mapping_output::Builder,
) -> Result<
    crate::output::update_event_source_mapping_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    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() {
                    "AmazonManagedKafkaEventSourceConfig" => {
                        builder = builder.set_amazon_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_amazon_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "BatchSize" => {
                        builder = builder.set_batch_size(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "BisectBatchOnFunctionError" => {
                        builder = builder.set_bisect_batch_on_function_error(
                            aws_smithy_json::deserialize::token::expect_bool_or_null(
                                tokens.next(),
                            )?,
                        );
                    }
                    "DestinationConfig" => {
                        builder = builder.set_destination_config(
                            crate::json_deser::deser_structure_crate_model_destination_config(
                                tokens,
                            )?,
                        );
                    }
                    "EventSourceArn" => {
                        builder = builder.set_event_source_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FilterCriteria" => {
                        builder = builder.set_filter_criteria(
                            crate::json_deser::deser_structure_crate_model_filter_criteria(tokens)?,
                        );
                    }
                    "FunctionArn" => {
                        builder = builder.set_function_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FunctionResponseTypes" => {
                        builder = builder.set_function_response_types(
                            crate::json_deser::deser_list_com_amazonaws_lambda_function_response_type_list(tokens)?
                        );
                    }
                    "LastModified" => {
                        builder = builder.set_last_modified(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "LastProcessingResult" => {
                        builder = builder.set_last_processing_result(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "MaximumBatchingWindowInSeconds" => {
                        builder = builder.set_maximum_batching_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRecordAgeInSeconds" => {
                        builder = builder.set_maximum_record_age_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRetryAttempts" => {
                        builder = builder.set_maximum_retry_attempts(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "ParallelizationFactor" => {
                        builder = builder.set_parallelization_factor(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "Queues" => {
                        builder = builder.set_queues(
                            crate::json_deser::deser_list_com_amazonaws_lambda_queues(tokens)?,
                        );
                    }
                    "SelfManagedEventSource" => {
                        builder = builder.set_self_managed_event_source(
                            crate::json_deser::deser_structure_crate_model_self_managed_event_source(tokens)?
                        );
                    }
                    "SelfManagedKafkaEventSourceConfig" => {
                        builder = builder.set_self_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_self_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "SourceAccessConfigurations" => {
                        builder = builder.set_source_access_configurations(
                            crate::json_deser::deser_list_com_amazonaws_lambda_source_access_configurations(tokens)?
                        );
                    }
                    "StartingPosition" => {
                        builder = builder.set_starting_position(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| {
                                s.to_unescaped()
                                    .map(|u| crate::model::EventSourcePosition::from(u.as_ref()))
                            })
                            .transpose()?,
                        );
                    }
                    "StartingPositionTimestamp" => {
                        builder = builder.set_starting_position_timestamp(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "State" => {
                        builder = builder.set_state(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "StateTransitionReason" => {
                        builder = builder.set_state_transition_reason(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "Topics" => {
                        builder = builder.set_topics(
                            crate::json_deser::deser_list_com_amazonaws_lambda_topics(tokens)?,
                        );
                    }
                    "TumblingWindowInSeconds" => {
                        builder = builder.set_tumbling_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "UUID" => {
                        builder = builder.set_uuid(
                            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
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

Appends an item to queues.

To override the contents of this collection use set_queues.

(Amazon MQ) The name of the Amazon MQ broker destination queue to consume.

(Amazon MQ) The name of the Amazon MQ broker destination queue to consume.

Examples found in repository?
src/json_deser.rs (lines 6306-6308)
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
pub(crate) fn deser_operation_crate_operation_update_event_source_mapping(
    value: &[u8],
    mut builder: crate::output::update_event_source_mapping_output::Builder,
) -> Result<
    crate::output::update_event_source_mapping_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    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() {
                    "AmazonManagedKafkaEventSourceConfig" => {
                        builder = builder.set_amazon_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_amazon_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "BatchSize" => {
                        builder = builder.set_batch_size(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "BisectBatchOnFunctionError" => {
                        builder = builder.set_bisect_batch_on_function_error(
                            aws_smithy_json::deserialize::token::expect_bool_or_null(
                                tokens.next(),
                            )?,
                        );
                    }
                    "DestinationConfig" => {
                        builder = builder.set_destination_config(
                            crate::json_deser::deser_structure_crate_model_destination_config(
                                tokens,
                            )?,
                        );
                    }
                    "EventSourceArn" => {
                        builder = builder.set_event_source_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FilterCriteria" => {
                        builder = builder.set_filter_criteria(
                            crate::json_deser::deser_structure_crate_model_filter_criteria(tokens)?,
                        );
                    }
                    "FunctionArn" => {
                        builder = builder.set_function_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FunctionResponseTypes" => {
                        builder = builder.set_function_response_types(
                            crate::json_deser::deser_list_com_amazonaws_lambda_function_response_type_list(tokens)?
                        );
                    }
                    "LastModified" => {
                        builder = builder.set_last_modified(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "LastProcessingResult" => {
                        builder = builder.set_last_processing_result(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "MaximumBatchingWindowInSeconds" => {
                        builder = builder.set_maximum_batching_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRecordAgeInSeconds" => {
                        builder = builder.set_maximum_record_age_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRetryAttempts" => {
                        builder = builder.set_maximum_retry_attempts(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "ParallelizationFactor" => {
                        builder = builder.set_parallelization_factor(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "Queues" => {
                        builder = builder.set_queues(
                            crate::json_deser::deser_list_com_amazonaws_lambda_queues(tokens)?,
                        );
                    }
                    "SelfManagedEventSource" => {
                        builder = builder.set_self_managed_event_source(
                            crate::json_deser::deser_structure_crate_model_self_managed_event_source(tokens)?
                        );
                    }
                    "SelfManagedKafkaEventSourceConfig" => {
                        builder = builder.set_self_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_self_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "SourceAccessConfigurations" => {
                        builder = builder.set_source_access_configurations(
                            crate::json_deser::deser_list_com_amazonaws_lambda_source_access_configurations(tokens)?
                        );
                    }
                    "StartingPosition" => {
                        builder = builder.set_starting_position(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| {
                                s.to_unescaped()
                                    .map(|u| crate::model::EventSourcePosition::from(u.as_ref()))
                            })
                            .transpose()?,
                        );
                    }
                    "StartingPositionTimestamp" => {
                        builder = builder.set_starting_position_timestamp(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "State" => {
                        builder = builder.set_state(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "StateTransitionReason" => {
                        builder = builder.set_state_transition_reason(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "Topics" => {
                        builder = builder.set_topics(
                            crate::json_deser::deser_list_com_amazonaws_lambda_topics(tokens)?,
                        );
                    }
                    "TumblingWindowInSeconds" => {
                        builder = builder.set_tumbling_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "UUID" => {
                        builder = builder.set_uuid(
                            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
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

Appends an item to source_access_configurations.

To override the contents of this collection use set_source_access_configurations.

An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.

An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.

Examples found in repository?
src/json_deser.rs (lines 6321-6323)
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
pub(crate) fn deser_operation_crate_operation_update_event_source_mapping(
    value: &[u8],
    mut builder: crate::output::update_event_source_mapping_output::Builder,
) -> Result<
    crate::output::update_event_source_mapping_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    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() {
                    "AmazonManagedKafkaEventSourceConfig" => {
                        builder = builder.set_amazon_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_amazon_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "BatchSize" => {
                        builder = builder.set_batch_size(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "BisectBatchOnFunctionError" => {
                        builder = builder.set_bisect_batch_on_function_error(
                            aws_smithy_json::deserialize::token::expect_bool_or_null(
                                tokens.next(),
                            )?,
                        );
                    }
                    "DestinationConfig" => {
                        builder = builder.set_destination_config(
                            crate::json_deser::deser_structure_crate_model_destination_config(
                                tokens,
                            )?,
                        );
                    }
                    "EventSourceArn" => {
                        builder = builder.set_event_source_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FilterCriteria" => {
                        builder = builder.set_filter_criteria(
                            crate::json_deser::deser_structure_crate_model_filter_criteria(tokens)?,
                        );
                    }
                    "FunctionArn" => {
                        builder = builder.set_function_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FunctionResponseTypes" => {
                        builder = builder.set_function_response_types(
                            crate::json_deser::deser_list_com_amazonaws_lambda_function_response_type_list(tokens)?
                        );
                    }
                    "LastModified" => {
                        builder = builder.set_last_modified(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "LastProcessingResult" => {
                        builder = builder.set_last_processing_result(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "MaximumBatchingWindowInSeconds" => {
                        builder = builder.set_maximum_batching_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRecordAgeInSeconds" => {
                        builder = builder.set_maximum_record_age_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRetryAttempts" => {
                        builder = builder.set_maximum_retry_attempts(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "ParallelizationFactor" => {
                        builder = builder.set_parallelization_factor(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "Queues" => {
                        builder = builder.set_queues(
                            crate::json_deser::deser_list_com_amazonaws_lambda_queues(tokens)?,
                        );
                    }
                    "SelfManagedEventSource" => {
                        builder = builder.set_self_managed_event_source(
                            crate::json_deser::deser_structure_crate_model_self_managed_event_source(tokens)?
                        );
                    }
                    "SelfManagedKafkaEventSourceConfig" => {
                        builder = builder.set_self_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_self_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "SourceAccessConfigurations" => {
                        builder = builder.set_source_access_configurations(
                            crate::json_deser::deser_list_com_amazonaws_lambda_source_access_configurations(tokens)?
                        );
                    }
                    "StartingPosition" => {
                        builder = builder.set_starting_position(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| {
                                s.to_unescaped()
                                    .map(|u| crate::model::EventSourcePosition::from(u.as_ref()))
                            })
                            .transpose()?,
                        );
                    }
                    "StartingPositionTimestamp" => {
                        builder = builder.set_starting_position_timestamp(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "State" => {
                        builder = builder.set_state(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "StateTransitionReason" => {
                        builder = builder.set_state_transition_reason(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "Topics" => {
                        builder = builder.set_topics(
                            crate::json_deser::deser_list_com_amazonaws_lambda_topics(tokens)?,
                        );
                    }
                    "TumblingWindowInSeconds" => {
                        builder = builder.set_tumbling_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "UUID" => {
                        builder = builder.set_uuid(
                            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
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

The self-managed Apache Kafka cluster for your event source.

The self-managed Apache Kafka cluster for your event source.

Examples found in repository?
src/json_deser.rs (lines 6311-6313)
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
pub(crate) fn deser_operation_crate_operation_update_event_source_mapping(
    value: &[u8],
    mut builder: crate::output::update_event_source_mapping_output::Builder,
) -> Result<
    crate::output::update_event_source_mapping_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    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() {
                    "AmazonManagedKafkaEventSourceConfig" => {
                        builder = builder.set_amazon_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_amazon_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "BatchSize" => {
                        builder = builder.set_batch_size(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "BisectBatchOnFunctionError" => {
                        builder = builder.set_bisect_batch_on_function_error(
                            aws_smithy_json::deserialize::token::expect_bool_or_null(
                                tokens.next(),
                            )?,
                        );
                    }
                    "DestinationConfig" => {
                        builder = builder.set_destination_config(
                            crate::json_deser::deser_structure_crate_model_destination_config(
                                tokens,
                            )?,
                        );
                    }
                    "EventSourceArn" => {
                        builder = builder.set_event_source_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FilterCriteria" => {
                        builder = builder.set_filter_criteria(
                            crate::json_deser::deser_structure_crate_model_filter_criteria(tokens)?,
                        );
                    }
                    "FunctionArn" => {
                        builder = builder.set_function_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FunctionResponseTypes" => {
                        builder = builder.set_function_response_types(
                            crate::json_deser::deser_list_com_amazonaws_lambda_function_response_type_list(tokens)?
                        );
                    }
                    "LastModified" => {
                        builder = builder.set_last_modified(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "LastProcessingResult" => {
                        builder = builder.set_last_processing_result(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "MaximumBatchingWindowInSeconds" => {
                        builder = builder.set_maximum_batching_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRecordAgeInSeconds" => {
                        builder = builder.set_maximum_record_age_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRetryAttempts" => {
                        builder = builder.set_maximum_retry_attempts(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "ParallelizationFactor" => {
                        builder = builder.set_parallelization_factor(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "Queues" => {
                        builder = builder.set_queues(
                            crate::json_deser::deser_list_com_amazonaws_lambda_queues(tokens)?,
                        );
                    }
                    "SelfManagedEventSource" => {
                        builder = builder.set_self_managed_event_source(
                            crate::json_deser::deser_structure_crate_model_self_managed_event_source(tokens)?
                        );
                    }
                    "SelfManagedKafkaEventSourceConfig" => {
                        builder = builder.set_self_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_self_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "SourceAccessConfigurations" => {
                        builder = builder.set_source_access_configurations(
                            crate::json_deser::deser_list_com_amazonaws_lambda_source_access_configurations(tokens)?
                        );
                    }
                    "StartingPosition" => {
                        builder = builder.set_starting_position(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| {
                                s.to_unescaped()
                                    .map(|u| crate::model::EventSourcePosition::from(u.as_ref()))
                            })
                            .transpose()?,
                        );
                    }
                    "StartingPositionTimestamp" => {
                        builder = builder.set_starting_position_timestamp(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "State" => {
                        builder = builder.set_state(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "StateTransitionReason" => {
                        builder = builder.set_state_transition_reason(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "Topics" => {
                        builder = builder.set_topics(
                            crate::json_deser::deser_list_com_amazonaws_lambda_topics(tokens)?,
                        );
                    }
                    "TumblingWindowInSeconds" => {
                        builder = builder.set_tumbling_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "UUID" => {
                        builder = builder.set_uuid(
                            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
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

(Streams only) Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, Lambda never discards old records.

(Streams only) Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, Lambda never discards old records.

Examples found in repository?
src/json_deser.rs (lines 6279-6285)
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
pub(crate) fn deser_operation_crate_operation_update_event_source_mapping(
    value: &[u8],
    mut builder: crate::output::update_event_source_mapping_output::Builder,
) -> Result<
    crate::output::update_event_source_mapping_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    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() {
                    "AmazonManagedKafkaEventSourceConfig" => {
                        builder = builder.set_amazon_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_amazon_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "BatchSize" => {
                        builder = builder.set_batch_size(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "BisectBatchOnFunctionError" => {
                        builder = builder.set_bisect_batch_on_function_error(
                            aws_smithy_json::deserialize::token::expect_bool_or_null(
                                tokens.next(),
                            )?,
                        );
                    }
                    "DestinationConfig" => {
                        builder = builder.set_destination_config(
                            crate::json_deser::deser_structure_crate_model_destination_config(
                                tokens,
                            )?,
                        );
                    }
                    "EventSourceArn" => {
                        builder = builder.set_event_source_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FilterCriteria" => {
                        builder = builder.set_filter_criteria(
                            crate::json_deser::deser_structure_crate_model_filter_criteria(tokens)?,
                        );
                    }
                    "FunctionArn" => {
                        builder = builder.set_function_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FunctionResponseTypes" => {
                        builder = builder.set_function_response_types(
                            crate::json_deser::deser_list_com_amazonaws_lambda_function_response_type_list(tokens)?
                        );
                    }
                    "LastModified" => {
                        builder = builder.set_last_modified(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "LastProcessingResult" => {
                        builder = builder.set_last_processing_result(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "MaximumBatchingWindowInSeconds" => {
                        builder = builder.set_maximum_batching_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRecordAgeInSeconds" => {
                        builder = builder.set_maximum_record_age_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRetryAttempts" => {
                        builder = builder.set_maximum_retry_attempts(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "ParallelizationFactor" => {
                        builder = builder.set_parallelization_factor(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "Queues" => {
                        builder = builder.set_queues(
                            crate::json_deser::deser_list_com_amazonaws_lambda_queues(tokens)?,
                        );
                    }
                    "SelfManagedEventSource" => {
                        builder = builder.set_self_managed_event_source(
                            crate::json_deser::deser_structure_crate_model_self_managed_event_source(tokens)?
                        );
                    }
                    "SelfManagedKafkaEventSourceConfig" => {
                        builder = builder.set_self_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_self_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "SourceAccessConfigurations" => {
                        builder = builder.set_source_access_configurations(
                            crate::json_deser::deser_list_com_amazonaws_lambda_source_access_configurations(tokens)?
                        );
                    }
                    "StartingPosition" => {
                        builder = builder.set_starting_position(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| {
                                s.to_unescaped()
                                    .map(|u| crate::model::EventSourcePosition::from(u.as_ref()))
                            })
                            .transpose()?,
                        );
                    }
                    "StartingPositionTimestamp" => {
                        builder = builder.set_starting_position_timestamp(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "State" => {
                        builder = builder.set_state(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "StateTransitionReason" => {
                        builder = builder.set_state_transition_reason(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "Topics" => {
                        builder = builder.set_topics(
                            crate::json_deser::deser_list_com_amazonaws_lambda_topics(tokens)?,
                        );
                    }
                    "TumblingWindowInSeconds" => {
                        builder = builder.set_tumbling_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "UUID" => {
                        builder = builder.set_uuid(
                            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
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

(Streams only) If the function returns an error, split the batch in two and retry. The default value is false.

(Streams only) If the function returns an error, split the batch in two and retry. The default value is false.

Examples found in repository?
src/json_deser.rs (lines 6211-6215)
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
pub(crate) fn deser_operation_crate_operation_update_event_source_mapping(
    value: &[u8],
    mut builder: crate::output::update_event_source_mapping_output::Builder,
) -> Result<
    crate::output::update_event_source_mapping_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    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() {
                    "AmazonManagedKafkaEventSourceConfig" => {
                        builder = builder.set_amazon_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_amazon_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "BatchSize" => {
                        builder = builder.set_batch_size(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "BisectBatchOnFunctionError" => {
                        builder = builder.set_bisect_batch_on_function_error(
                            aws_smithy_json::deserialize::token::expect_bool_or_null(
                                tokens.next(),
                            )?,
                        );
                    }
                    "DestinationConfig" => {
                        builder = builder.set_destination_config(
                            crate::json_deser::deser_structure_crate_model_destination_config(
                                tokens,
                            )?,
                        );
                    }
                    "EventSourceArn" => {
                        builder = builder.set_event_source_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FilterCriteria" => {
                        builder = builder.set_filter_criteria(
                            crate::json_deser::deser_structure_crate_model_filter_criteria(tokens)?,
                        );
                    }
                    "FunctionArn" => {
                        builder = builder.set_function_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FunctionResponseTypes" => {
                        builder = builder.set_function_response_types(
                            crate::json_deser::deser_list_com_amazonaws_lambda_function_response_type_list(tokens)?
                        );
                    }
                    "LastModified" => {
                        builder = builder.set_last_modified(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "LastProcessingResult" => {
                        builder = builder.set_last_processing_result(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "MaximumBatchingWindowInSeconds" => {
                        builder = builder.set_maximum_batching_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRecordAgeInSeconds" => {
                        builder = builder.set_maximum_record_age_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRetryAttempts" => {
                        builder = builder.set_maximum_retry_attempts(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "ParallelizationFactor" => {
                        builder = builder.set_parallelization_factor(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "Queues" => {
                        builder = builder.set_queues(
                            crate::json_deser::deser_list_com_amazonaws_lambda_queues(tokens)?,
                        );
                    }
                    "SelfManagedEventSource" => {
                        builder = builder.set_self_managed_event_source(
                            crate::json_deser::deser_structure_crate_model_self_managed_event_source(tokens)?
                        );
                    }
                    "SelfManagedKafkaEventSourceConfig" => {
                        builder = builder.set_self_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_self_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "SourceAccessConfigurations" => {
                        builder = builder.set_source_access_configurations(
                            crate::json_deser::deser_list_com_amazonaws_lambda_source_access_configurations(tokens)?
                        );
                    }
                    "StartingPosition" => {
                        builder = builder.set_starting_position(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| {
                                s.to_unescaped()
                                    .map(|u| crate::model::EventSourcePosition::from(u.as_ref()))
                            })
                            .transpose()?,
                        );
                    }
                    "StartingPositionTimestamp" => {
                        builder = builder.set_starting_position_timestamp(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "State" => {
                        builder = builder.set_state(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "StateTransitionReason" => {
                        builder = builder.set_state_transition_reason(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "Topics" => {
                        builder = builder.set_topics(
                            crate::json_deser::deser_list_com_amazonaws_lambda_topics(tokens)?,
                        );
                    }
                    "TumblingWindowInSeconds" => {
                        builder = builder.set_tumbling_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "UUID" => {
                        builder = builder.set_uuid(
                            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
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

(Streams only) Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source.

(Streams only) Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source.

Examples found in repository?
src/json_deser.rs (lines 6288-6294)
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
pub(crate) fn deser_operation_crate_operation_update_event_source_mapping(
    value: &[u8],
    mut builder: crate::output::update_event_source_mapping_output::Builder,
) -> Result<
    crate::output::update_event_source_mapping_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    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() {
                    "AmazonManagedKafkaEventSourceConfig" => {
                        builder = builder.set_amazon_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_amazon_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "BatchSize" => {
                        builder = builder.set_batch_size(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "BisectBatchOnFunctionError" => {
                        builder = builder.set_bisect_batch_on_function_error(
                            aws_smithy_json::deserialize::token::expect_bool_or_null(
                                tokens.next(),
                            )?,
                        );
                    }
                    "DestinationConfig" => {
                        builder = builder.set_destination_config(
                            crate::json_deser::deser_structure_crate_model_destination_config(
                                tokens,
                            )?,
                        );
                    }
                    "EventSourceArn" => {
                        builder = builder.set_event_source_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FilterCriteria" => {
                        builder = builder.set_filter_criteria(
                            crate::json_deser::deser_structure_crate_model_filter_criteria(tokens)?,
                        );
                    }
                    "FunctionArn" => {
                        builder = builder.set_function_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FunctionResponseTypes" => {
                        builder = builder.set_function_response_types(
                            crate::json_deser::deser_list_com_amazonaws_lambda_function_response_type_list(tokens)?
                        );
                    }
                    "LastModified" => {
                        builder = builder.set_last_modified(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "LastProcessingResult" => {
                        builder = builder.set_last_processing_result(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "MaximumBatchingWindowInSeconds" => {
                        builder = builder.set_maximum_batching_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRecordAgeInSeconds" => {
                        builder = builder.set_maximum_record_age_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRetryAttempts" => {
                        builder = builder.set_maximum_retry_attempts(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "ParallelizationFactor" => {
                        builder = builder.set_parallelization_factor(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "Queues" => {
                        builder = builder.set_queues(
                            crate::json_deser::deser_list_com_amazonaws_lambda_queues(tokens)?,
                        );
                    }
                    "SelfManagedEventSource" => {
                        builder = builder.set_self_managed_event_source(
                            crate::json_deser::deser_structure_crate_model_self_managed_event_source(tokens)?
                        );
                    }
                    "SelfManagedKafkaEventSourceConfig" => {
                        builder = builder.set_self_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_self_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "SourceAccessConfigurations" => {
                        builder = builder.set_source_access_configurations(
                            crate::json_deser::deser_list_com_amazonaws_lambda_source_access_configurations(tokens)?
                        );
                    }
                    "StartingPosition" => {
                        builder = builder.set_starting_position(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| {
                                s.to_unescaped()
                                    .map(|u| crate::model::EventSourcePosition::from(u.as_ref()))
                            })
                            .transpose()?,
                        );
                    }
                    "StartingPositionTimestamp" => {
                        builder = builder.set_starting_position_timestamp(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "State" => {
                        builder = builder.set_state(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "StateTransitionReason" => {
                        builder = builder.set_state_transition_reason(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "Topics" => {
                        builder = builder.set_topics(
                            crate::json_deser::deser_list_com_amazonaws_lambda_topics(tokens)?,
                        );
                    }
                    "TumblingWindowInSeconds" => {
                        builder = builder.set_tumbling_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "UUID" => {
                        builder = builder.set_uuid(
                            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
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

(Streams only) The duration in seconds of a processing window. The range is 1–900 seconds.

(Streams only) The duration in seconds of a processing window. The range is 1–900 seconds.

Examples found in repository?
src/json_deser.rs (lines 6369-6375)
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
pub(crate) fn deser_operation_crate_operation_update_event_source_mapping(
    value: &[u8],
    mut builder: crate::output::update_event_source_mapping_output::Builder,
) -> Result<
    crate::output::update_event_source_mapping_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    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() {
                    "AmazonManagedKafkaEventSourceConfig" => {
                        builder = builder.set_amazon_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_amazon_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "BatchSize" => {
                        builder = builder.set_batch_size(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "BisectBatchOnFunctionError" => {
                        builder = builder.set_bisect_batch_on_function_error(
                            aws_smithy_json::deserialize::token::expect_bool_or_null(
                                tokens.next(),
                            )?,
                        );
                    }
                    "DestinationConfig" => {
                        builder = builder.set_destination_config(
                            crate::json_deser::deser_structure_crate_model_destination_config(
                                tokens,
                            )?,
                        );
                    }
                    "EventSourceArn" => {
                        builder = builder.set_event_source_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FilterCriteria" => {
                        builder = builder.set_filter_criteria(
                            crate::json_deser::deser_structure_crate_model_filter_criteria(tokens)?,
                        );
                    }
                    "FunctionArn" => {
                        builder = builder.set_function_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FunctionResponseTypes" => {
                        builder = builder.set_function_response_types(
                            crate::json_deser::deser_list_com_amazonaws_lambda_function_response_type_list(tokens)?
                        );
                    }
                    "LastModified" => {
                        builder = builder.set_last_modified(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "LastProcessingResult" => {
                        builder = builder.set_last_processing_result(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "MaximumBatchingWindowInSeconds" => {
                        builder = builder.set_maximum_batching_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRecordAgeInSeconds" => {
                        builder = builder.set_maximum_record_age_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRetryAttempts" => {
                        builder = builder.set_maximum_retry_attempts(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "ParallelizationFactor" => {
                        builder = builder.set_parallelization_factor(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "Queues" => {
                        builder = builder.set_queues(
                            crate::json_deser::deser_list_com_amazonaws_lambda_queues(tokens)?,
                        );
                    }
                    "SelfManagedEventSource" => {
                        builder = builder.set_self_managed_event_source(
                            crate::json_deser::deser_structure_crate_model_self_managed_event_source(tokens)?
                        );
                    }
                    "SelfManagedKafkaEventSourceConfig" => {
                        builder = builder.set_self_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_self_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "SourceAccessConfigurations" => {
                        builder = builder.set_source_access_configurations(
                            crate::json_deser::deser_list_com_amazonaws_lambda_source_access_configurations(tokens)?
                        );
                    }
                    "StartingPosition" => {
                        builder = builder.set_starting_position(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| {
                                s.to_unescaped()
                                    .map(|u| crate::model::EventSourcePosition::from(u.as_ref()))
                            })
                            .transpose()?,
                        );
                    }
                    "StartingPositionTimestamp" => {
                        builder = builder.set_starting_position_timestamp(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "State" => {
                        builder = builder.set_state(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "StateTransitionReason" => {
                        builder = builder.set_state_transition_reason(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "Topics" => {
                        builder = builder.set_topics(
                            crate::json_deser::deser_list_com_amazonaws_lambda_topics(tokens)?,
                        );
                    }
                    "TumblingWindowInSeconds" => {
                        builder = builder.set_tumbling_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "UUID" => {
                        builder = builder.set_uuid(
                            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
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

Appends an item to function_response_types.

To override the contents of this collection use set_function_response_types.

(Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.

(Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.

Examples found in repository?
src/json_deser.rs (lines 6248-6250)
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
pub(crate) fn deser_operation_crate_operation_update_event_source_mapping(
    value: &[u8],
    mut builder: crate::output::update_event_source_mapping_output::Builder,
) -> Result<
    crate::output::update_event_source_mapping_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    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() {
                    "AmazonManagedKafkaEventSourceConfig" => {
                        builder = builder.set_amazon_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_amazon_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "BatchSize" => {
                        builder = builder.set_batch_size(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "BisectBatchOnFunctionError" => {
                        builder = builder.set_bisect_batch_on_function_error(
                            aws_smithy_json::deserialize::token::expect_bool_or_null(
                                tokens.next(),
                            )?,
                        );
                    }
                    "DestinationConfig" => {
                        builder = builder.set_destination_config(
                            crate::json_deser::deser_structure_crate_model_destination_config(
                                tokens,
                            )?,
                        );
                    }
                    "EventSourceArn" => {
                        builder = builder.set_event_source_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FilterCriteria" => {
                        builder = builder.set_filter_criteria(
                            crate::json_deser::deser_structure_crate_model_filter_criteria(tokens)?,
                        );
                    }
                    "FunctionArn" => {
                        builder = builder.set_function_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FunctionResponseTypes" => {
                        builder = builder.set_function_response_types(
                            crate::json_deser::deser_list_com_amazonaws_lambda_function_response_type_list(tokens)?
                        );
                    }
                    "LastModified" => {
                        builder = builder.set_last_modified(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "LastProcessingResult" => {
                        builder = builder.set_last_processing_result(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "MaximumBatchingWindowInSeconds" => {
                        builder = builder.set_maximum_batching_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRecordAgeInSeconds" => {
                        builder = builder.set_maximum_record_age_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRetryAttempts" => {
                        builder = builder.set_maximum_retry_attempts(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "ParallelizationFactor" => {
                        builder = builder.set_parallelization_factor(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "Queues" => {
                        builder = builder.set_queues(
                            crate::json_deser::deser_list_com_amazonaws_lambda_queues(tokens)?,
                        );
                    }
                    "SelfManagedEventSource" => {
                        builder = builder.set_self_managed_event_source(
                            crate::json_deser::deser_structure_crate_model_self_managed_event_source(tokens)?
                        );
                    }
                    "SelfManagedKafkaEventSourceConfig" => {
                        builder = builder.set_self_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_self_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "SourceAccessConfigurations" => {
                        builder = builder.set_source_access_configurations(
                            crate::json_deser::deser_list_com_amazonaws_lambda_source_access_configurations(tokens)?
                        );
                    }
                    "StartingPosition" => {
                        builder = builder.set_starting_position(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| {
                                s.to_unescaped()
                                    .map(|u| crate::model::EventSourcePosition::from(u.as_ref()))
                            })
                            .transpose()?,
                        );
                    }
                    "StartingPositionTimestamp" => {
                        builder = builder.set_starting_position_timestamp(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "State" => {
                        builder = builder.set_state(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "StateTransitionReason" => {
                        builder = builder.set_state_transition_reason(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "Topics" => {
                        builder = builder.set_topics(
                            crate::json_deser::deser_list_com_amazonaws_lambda_topics(tokens)?,
                        );
                    }
                    "TumblingWindowInSeconds" => {
                        builder = builder.set_tumbling_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "UUID" => {
                        builder = builder.set_uuid(
                            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
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.

Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.

Examples found in repository?
src/json_deser.rs (lines 6197-6199)
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
pub(crate) fn deser_operation_crate_operation_update_event_source_mapping(
    value: &[u8],
    mut builder: crate::output::update_event_source_mapping_output::Builder,
) -> Result<
    crate::output::update_event_source_mapping_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    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() {
                    "AmazonManagedKafkaEventSourceConfig" => {
                        builder = builder.set_amazon_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_amazon_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "BatchSize" => {
                        builder = builder.set_batch_size(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "BisectBatchOnFunctionError" => {
                        builder = builder.set_bisect_batch_on_function_error(
                            aws_smithy_json::deserialize::token::expect_bool_or_null(
                                tokens.next(),
                            )?,
                        );
                    }
                    "DestinationConfig" => {
                        builder = builder.set_destination_config(
                            crate::json_deser::deser_structure_crate_model_destination_config(
                                tokens,
                            )?,
                        );
                    }
                    "EventSourceArn" => {
                        builder = builder.set_event_source_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FilterCriteria" => {
                        builder = builder.set_filter_criteria(
                            crate::json_deser::deser_structure_crate_model_filter_criteria(tokens)?,
                        );
                    }
                    "FunctionArn" => {
                        builder = builder.set_function_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FunctionResponseTypes" => {
                        builder = builder.set_function_response_types(
                            crate::json_deser::deser_list_com_amazonaws_lambda_function_response_type_list(tokens)?
                        );
                    }
                    "LastModified" => {
                        builder = builder.set_last_modified(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "LastProcessingResult" => {
                        builder = builder.set_last_processing_result(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "MaximumBatchingWindowInSeconds" => {
                        builder = builder.set_maximum_batching_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRecordAgeInSeconds" => {
                        builder = builder.set_maximum_record_age_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRetryAttempts" => {
                        builder = builder.set_maximum_retry_attempts(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "ParallelizationFactor" => {
                        builder = builder.set_parallelization_factor(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "Queues" => {
                        builder = builder.set_queues(
                            crate::json_deser::deser_list_com_amazonaws_lambda_queues(tokens)?,
                        );
                    }
                    "SelfManagedEventSource" => {
                        builder = builder.set_self_managed_event_source(
                            crate::json_deser::deser_structure_crate_model_self_managed_event_source(tokens)?
                        );
                    }
                    "SelfManagedKafkaEventSourceConfig" => {
                        builder = builder.set_self_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_self_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "SourceAccessConfigurations" => {
                        builder = builder.set_source_access_configurations(
                            crate::json_deser::deser_list_com_amazonaws_lambda_source_access_configurations(tokens)?
                        );
                    }
                    "StartingPosition" => {
                        builder = builder.set_starting_position(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| {
                                s.to_unescaped()
                                    .map(|u| crate::model::EventSourcePosition::from(u.as_ref()))
                            })
                            .transpose()?,
                        );
                    }
                    "StartingPositionTimestamp" => {
                        builder = builder.set_starting_position_timestamp(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "State" => {
                        builder = builder.set_state(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "StateTransitionReason" => {
                        builder = builder.set_state_transition_reason(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "Topics" => {
                        builder = builder.set_topics(
                            crate::json_deser::deser_list_com_amazonaws_lambda_topics(tokens)?,
                        );
                    }
                    "TumblingWindowInSeconds" => {
                        builder = builder.set_tumbling_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "UUID" => {
                        builder = builder.set_uuid(
                            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
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

Specific configuration settings for a self-managed Apache Kafka event source.

Specific configuration settings for a self-managed Apache Kafka event source.

Examples found in repository?
src/json_deser.rs (lines 6316-6318)
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
pub(crate) fn deser_operation_crate_operation_update_event_source_mapping(
    value: &[u8],
    mut builder: crate::output::update_event_source_mapping_output::Builder,
) -> Result<
    crate::output::update_event_source_mapping_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    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() {
                    "AmazonManagedKafkaEventSourceConfig" => {
                        builder = builder.set_amazon_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_amazon_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "BatchSize" => {
                        builder = builder.set_batch_size(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "BisectBatchOnFunctionError" => {
                        builder = builder.set_bisect_batch_on_function_error(
                            aws_smithy_json::deserialize::token::expect_bool_or_null(
                                tokens.next(),
                            )?,
                        );
                    }
                    "DestinationConfig" => {
                        builder = builder.set_destination_config(
                            crate::json_deser::deser_structure_crate_model_destination_config(
                                tokens,
                            )?,
                        );
                    }
                    "EventSourceArn" => {
                        builder = builder.set_event_source_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FilterCriteria" => {
                        builder = builder.set_filter_criteria(
                            crate::json_deser::deser_structure_crate_model_filter_criteria(tokens)?,
                        );
                    }
                    "FunctionArn" => {
                        builder = builder.set_function_arn(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "FunctionResponseTypes" => {
                        builder = builder.set_function_response_types(
                            crate::json_deser::deser_list_com_amazonaws_lambda_function_response_type_list(tokens)?
                        );
                    }
                    "LastModified" => {
                        builder = builder.set_last_modified(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "LastProcessingResult" => {
                        builder = builder.set_last_processing_result(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "MaximumBatchingWindowInSeconds" => {
                        builder = builder.set_maximum_batching_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRecordAgeInSeconds" => {
                        builder = builder.set_maximum_record_age_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "MaximumRetryAttempts" => {
                        builder = builder.set_maximum_retry_attempts(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "ParallelizationFactor" => {
                        builder = builder.set_parallelization_factor(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "Queues" => {
                        builder = builder.set_queues(
                            crate::json_deser::deser_list_com_amazonaws_lambda_queues(tokens)?,
                        );
                    }
                    "SelfManagedEventSource" => {
                        builder = builder.set_self_managed_event_source(
                            crate::json_deser::deser_structure_crate_model_self_managed_event_source(tokens)?
                        );
                    }
                    "SelfManagedKafkaEventSourceConfig" => {
                        builder = builder.set_self_managed_kafka_event_source_config(
                            crate::json_deser::deser_structure_crate_model_self_managed_kafka_event_source_config(tokens)?
                        );
                    }
                    "SourceAccessConfigurations" => {
                        builder = builder.set_source_access_configurations(
                            crate::json_deser::deser_list_com_amazonaws_lambda_source_access_configurations(tokens)?
                        );
                    }
                    "StartingPosition" => {
                        builder = builder.set_starting_position(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| {
                                s.to_unescaped()
                                    .map(|u| crate::model::EventSourcePosition::from(u.as_ref()))
                            })
                            .transpose()?,
                        );
                    }
                    "StartingPositionTimestamp" => {
                        builder = builder.set_starting_position_timestamp(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "State" => {
                        builder = builder.set_state(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "StateTransitionReason" => {
                        builder = builder.set_state_transition_reason(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "Topics" => {
                        builder = builder.set_topics(
                            crate::json_deser::deser_list_com_amazonaws_lambda_topics(tokens)?,
                        );
                    }
                    "TumblingWindowInSeconds" => {
                        builder = builder.set_tumbling_window_in_seconds(
                            aws_smithy_json::deserialize::token::expect_number_or_null(
                                tokens.next(),
                            )?
                            .map(i32::try_from)
                            .transpose()?,
                        );
                    }
                    "UUID" => {
                        builder = builder.set_uuid(
                            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
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

Consumes the builder and constructs a UpdateEventSourceMappingOutput.

Examples found in repository?
src/operation_deser.rs (line 7415)
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
pub fn parse_update_event_source_mapping_response(
    response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
    crate::output::UpdateEventSourceMappingOutput,
    crate::error::UpdateEventSourceMappingError,
> {
    Ok({
        #[allow(unused_mut)]
        let mut output = crate::output::update_event_source_mapping_output::Builder::default();
        let _ = response;
        output = crate::json_deser::deser_operation_crate_operation_update_event_source_mapping(
            response.body().as_ref(),
            output,
        )
        .map_err(crate::error::UpdateEventSourceMappingError::unhandled)?;
        output.build()
    })
}

Trait Implementations§

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

Auto Trait Implementations§

Blanket Implementations§

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

Returns the argument unchanged.

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

Calls U::from(self).

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

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