1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>A mapping between an Amazon Web Services resource and a Lambda function. For details, see <code>CreateEventSourceMapping</code>.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct EventSourceMappingConfiguration {
/// <p>The identifier of the event source mapping.</p>
pub uuid: ::std::option::Option<::std::string::String>,
/// <p>The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB Stream event sources. <code>AT_TIMESTAMP</code> is supported only for Amazon Kinesis streams, Amazon DocumentDB, Amazon MSK, and self-managed Apache Kafka.</p>
pub starting_position: ::std::option::Option<crate::types::EventSourcePosition>,
/// <p>With <code>StartingPosition</code> set to <code>AT_TIMESTAMP</code>, the time from which to start reading. <code>StartingPositionTimestamp</code> cannot be in the future.</p>
pub starting_position_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>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).</p>
/// <p>Default value: Varies by service. For Amazon SQS, the default is 10. For all other services, the default is 100.</p>
/// <p>Related setting: When you set <code>BatchSize</code> to a value greater than 10, you must set <code>MaximumBatchingWindowInSeconds</code> to at least 1.</p>
pub batch_size: ::std::option::Option<i32>,
/// <p>The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. You can configure <code>MaximumBatchingWindowInSeconds</code> to any value from 0 seconds to 300 seconds in increments of seconds.</p>
/// <p>For streams and Amazon SQS event sources, the default batching window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, Amazon MQ, and DocumentDB event sources, the default batching window is 500 ms. Note that because you can only change <code>MaximumBatchingWindowInSeconds</code> in increments of seconds, you cannot revert back to the 500 ms default batching window after you have changed it. To restore the default batching window, you must create a new event source mapping.</p>
/// <p>Related setting: For streams and Amazon SQS event sources, when you set <code>BatchSize</code> to a value greater than 10, you must set <code>MaximumBatchingWindowInSeconds</code> to at least 1.</p>
pub maximum_batching_window_in_seconds: ::std::option::Option<i32>,
/// <p>(Kinesis and DynamoDB Streams only) The number of batches to process concurrently from each shard. The default value is 1.</p>
pub parallelization_factor: ::std::option::Option<i32>,
/// <p>The Amazon Resource Name (ARN) of the event source.</p>
pub event_source_arn: ::std::option::Option<::std::string::String>,
/// <p>An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html">Lambda event filtering</a>.</p>
pub filter_criteria: ::std::option::Option<crate::types::FilterCriteria>,
/// <p>The ARN of the Lambda function.</p>
pub function_arn: ::std::option::Option<::std::string::String>,
/// <p>The date that the event source mapping was last updated or that its state changed.</p>
pub last_modified: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>The result of the last Lambda invocation of your function.</p>
pub last_processing_result: ::std::option::Option<::std::string::String>,
/// <p>The state of the event source mapping. It can be one of the following: <code>Creating</code>, <code>Enabling</code>, <code>Enabled</code>, <code>Disabling</code>, <code>Disabled</code>, <code>Updating</code>, or <code>Deleting</code>.</p>
pub state: ::std::option::Option<::std::string::String>,
/// <p>Indicates whether a user or Lambda made the last change to the event source mapping.</p>
pub state_transition_reason: ::std::option::Option<::std::string::String>,
/// <p>(Kinesis and DynamoDB Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.</p>
pub destination_config: ::std::option::Option<crate::types::DestinationConfig>,
/// <p>The name of the Kafka topic.</p>
pub topics: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <p> (Amazon MQ) The name of the Amazon MQ broker destination queue to consume.</p>
pub queues: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <p>An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.</p>
pub source_access_configurations: ::std::option::Option<::std::vec::Vec<crate::types::SourceAccessConfiguration>>,
/// <p>The self-managed Apache Kafka cluster for your event source.</p>
pub self_managed_event_source: ::std::option::Option<crate::types::SelfManagedEventSource>,
/// <p>(Kinesis and DynamoDB 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.</p> <note>
/// <p>The minimum valid value for maximum record age is 60s. Although values less than 60 and greater than -1 fall within the parameter's absolute range, they are not allowed</p>
/// </note>
pub maximum_record_age_in_seconds: ::std::option::Option<i32>,
/// <p>(Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two and retry. The default value is false.</p>
pub bisect_batch_on_function_error: ::std::option::Option<bool>,
/// <p>(Kinesis and DynamoDB 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.</p>
pub maximum_retry_attempts: ::std::option::Option<i32>,
/// <p>(Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB and Kinesis Streams event sources. A value of 0 seconds indicates no tumbling window.</p>
pub tumbling_window_in_seconds: ::std::option::Option<i32>,
/// <p>(Kinesis, DynamoDB Streams, and Amazon SQS) A list of current response type enums applied to the event source mapping.</p>
pub function_response_types: ::std::option::Option<::std::vec::Vec<crate::types::FunctionResponseType>>,
/// <p>Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.</p>
pub amazon_managed_kafka_event_source_config: ::std::option::Option<crate::types::AmazonManagedKafkaEventSourceConfig>,
/// <p>Specific configuration settings for a self-managed Apache Kafka event source.</p>
pub self_managed_kafka_event_source_config: ::std::option::Option<crate::types::SelfManagedKafkaEventSourceConfig>,
/// <p>(Amazon SQS only) The scaling configuration for the event source. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency">Configuring maximum concurrency for Amazon SQS event sources</a>.</p>
pub scaling_config: ::std::option::Option<crate::types::ScalingConfig>,
/// <p>Specific configuration settings for a DocumentDB event source.</p>
pub document_db_event_source_config: ::std::option::Option<crate::types::DocumentDbEventSourceConfig>,
}
impl EventSourceMappingConfiguration {
/// <p>The identifier of the event source mapping.</p>
pub fn uuid(&self) -> ::std::option::Option<&str> {
self.uuid.as_deref()
}
/// <p>The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB Stream event sources. <code>AT_TIMESTAMP</code> is supported only for Amazon Kinesis streams, Amazon DocumentDB, Amazon MSK, and self-managed Apache Kafka.</p>
pub fn starting_position(&self) -> ::std::option::Option<&crate::types::EventSourcePosition> {
self.starting_position.as_ref()
}
/// <p>With <code>StartingPosition</code> set to <code>AT_TIMESTAMP</code>, the time from which to start reading. <code>StartingPositionTimestamp</code> cannot be in the future.</p>
pub fn starting_position_timestamp(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.starting_position_timestamp.as_ref()
}
/// <p>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).</p>
/// <p>Default value: Varies by service. For Amazon SQS, the default is 10. For all other services, the default is 100.</p>
/// <p>Related setting: When you set <code>BatchSize</code> to a value greater than 10, you must set <code>MaximumBatchingWindowInSeconds</code> to at least 1.</p>
pub fn batch_size(&self) -> ::std::option::Option<i32> {
self.batch_size
}
/// <p>The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. You can configure <code>MaximumBatchingWindowInSeconds</code> to any value from 0 seconds to 300 seconds in increments of seconds.</p>
/// <p>For streams and Amazon SQS event sources, the default batching window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, Amazon MQ, and DocumentDB event sources, the default batching window is 500 ms. Note that because you can only change <code>MaximumBatchingWindowInSeconds</code> in increments of seconds, you cannot revert back to the 500 ms default batching window after you have changed it. To restore the default batching window, you must create a new event source mapping.</p>
/// <p>Related setting: For streams and Amazon SQS event sources, when you set <code>BatchSize</code> to a value greater than 10, you must set <code>MaximumBatchingWindowInSeconds</code> to at least 1.</p>
pub fn maximum_batching_window_in_seconds(&self) -> ::std::option::Option<i32> {
self.maximum_batching_window_in_seconds
}
/// <p>(Kinesis and DynamoDB Streams only) The number of batches to process concurrently from each shard. The default value is 1.</p>
pub fn parallelization_factor(&self) -> ::std::option::Option<i32> {
self.parallelization_factor
}
/// <p>The Amazon Resource Name (ARN) of the event source.</p>
pub fn event_source_arn(&self) -> ::std::option::Option<&str> {
self.event_source_arn.as_deref()
}
/// <p>An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html">Lambda event filtering</a>.</p>
pub fn filter_criteria(&self) -> ::std::option::Option<&crate::types::FilterCriteria> {
self.filter_criteria.as_ref()
}
/// <p>The ARN of the Lambda function.</p>
pub fn function_arn(&self) -> ::std::option::Option<&str> {
self.function_arn.as_deref()
}
/// <p>The date that the event source mapping was last updated or that its state changed.</p>
pub fn last_modified(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.last_modified.as_ref()
}
/// <p>The result of the last Lambda invocation of your function.</p>
pub fn last_processing_result(&self) -> ::std::option::Option<&str> {
self.last_processing_result.as_deref()
}
/// <p>The state of the event source mapping. It can be one of the following: <code>Creating</code>, <code>Enabling</code>, <code>Enabled</code>, <code>Disabling</code>, <code>Disabled</code>, <code>Updating</code>, or <code>Deleting</code>.</p>
pub fn state(&self) -> ::std::option::Option<&str> {
self.state.as_deref()
}
/// <p>Indicates whether a user or Lambda made the last change to the event source mapping.</p>
pub fn state_transition_reason(&self) -> ::std::option::Option<&str> {
self.state_transition_reason.as_deref()
}
/// <p>(Kinesis and DynamoDB Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.</p>
pub fn destination_config(&self) -> ::std::option::Option<&crate::types::DestinationConfig> {
self.destination_config.as_ref()
}
/// <p>The name of the Kafka topic.</p>
pub fn topics(&self) -> ::std::option::Option<&[::std::string::String]> {
self.topics.as_deref()
}
/// <p> (Amazon MQ) The name of the Amazon MQ broker destination queue to consume.</p>
pub fn queues(&self) -> ::std::option::Option<&[::std::string::String]> {
self.queues.as_deref()
}
/// <p>An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.</p>
pub fn source_access_configurations(&self) -> ::std::option::Option<&[crate::types::SourceAccessConfiguration]> {
self.source_access_configurations.as_deref()
}
/// <p>The self-managed Apache Kafka cluster for your event source.</p>
pub fn self_managed_event_source(&self) -> ::std::option::Option<&crate::types::SelfManagedEventSource> {
self.self_managed_event_source.as_ref()
}
/// <p>(Kinesis and DynamoDB 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.</p> <note>
/// <p>The minimum valid value for maximum record age is 60s. Although values less than 60 and greater than -1 fall within the parameter's absolute range, they are not allowed</p>
/// </note>
pub fn maximum_record_age_in_seconds(&self) -> ::std::option::Option<i32> {
self.maximum_record_age_in_seconds
}
/// <p>(Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two and retry. The default value is false.</p>
pub fn bisect_batch_on_function_error(&self) -> ::std::option::Option<bool> {
self.bisect_batch_on_function_error
}
/// <p>(Kinesis and DynamoDB 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.</p>
pub fn maximum_retry_attempts(&self) -> ::std::option::Option<i32> {
self.maximum_retry_attempts
}
/// <p>(Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB and Kinesis Streams event sources. A value of 0 seconds indicates no tumbling window.</p>
pub fn tumbling_window_in_seconds(&self) -> ::std::option::Option<i32> {
self.tumbling_window_in_seconds
}
/// <p>(Kinesis, DynamoDB Streams, and Amazon SQS) A list of current response type enums applied to the event source mapping.</p>
pub fn function_response_types(&self) -> ::std::option::Option<&[crate::types::FunctionResponseType]> {
self.function_response_types.as_deref()
}
/// <p>Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.</p>
pub fn amazon_managed_kafka_event_source_config(&self) -> ::std::option::Option<&crate::types::AmazonManagedKafkaEventSourceConfig> {
self.amazon_managed_kafka_event_source_config.as_ref()
}
/// <p>Specific configuration settings for a self-managed Apache Kafka event source.</p>
pub fn self_managed_kafka_event_source_config(&self) -> ::std::option::Option<&crate::types::SelfManagedKafkaEventSourceConfig> {
self.self_managed_kafka_event_source_config.as_ref()
}
/// <p>(Amazon SQS only) The scaling configuration for the event source. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency">Configuring maximum concurrency for Amazon SQS event sources</a>.</p>
pub fn scaling_config(&self) -> ::std::option::Option<&crate::types::ScalingConfig> {
self.scaling_config.as_ref()
}
/// <p>Specific configuration settings for a DocumentDB event source.</p>
pub fn document_db_event_source_config(&self) -> ::std::option::Option<&crate::types::DocumentDbEventSourceConfig> {
self.document_db_event_source_config.as_ref()
}
}
impl EventSourceMappingConfiguration {
/// Creates a new builder-style object to manufacture [`EventSourceMappingConfiguration`](crate::types::EventSourceMappingConfiguration).
pub fn builder() -> crate::types::builders::EventSourceMappingConfigurationBuilder {
crate::types::builders::EventSourceMappingConfigurationBuilder::default()
}
}
/// A builder for [`EventSourceMappingConfiguration`](crate::types::EventSourceMappingConfiguration).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct EventSourceMappingConfigurationBuilder {
pub(crate) uuid: ::std::option::Option<::std::string::String>,
pub(crate) starting_position: ::std::option::Option<crate::types::EventSourcePosition>,
pub(crate) starting_position_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) batch_size: ::std::option::Option<i32>,
pub(crate) maximum_batching_window_in_seconds: ::std::option::Option<i32>,
pub(crate) parallelization_factor: ::std::option::Option<i32>,
pub(crate) event_source_arn: ::std::option::Option<::std::string::String>,
pub(crate) filter_criteria: ::std::option::Option<crate::types::FilterCriteria>,
pub(crate) function_arn: ::std::option::Option<::std::string::String>,
pub(crate) last_modified: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) last_processing_result: ::std::option::Option<::std::string::String>,
pub(crate) state: ::std::option::Option<::std::string::String>,
pub(crate) state_transition_reason: ::std::option::Option<::std::string::String>,
pub(crate) destination_config: ::std::option::Option<crate::types::DestinationConfig>,
pub(crate) topics: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) queues: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) source_access_configurations: ::std::option::Option<::std::vec::Vec<crate::types::SourceAccessConfiguration>>,
pub(crate) self_managed_event_source: ::std::option::Option<crate::types::SelfManagedEventSource>,
pub(crate) maximum_record_age_in_seconds: ::std::option::Option<i32>,
pub(crate) bisect_batch_on_function_error: ::std::option::Option<bool>,
pub(crate) maximum_retry_attempts: ::std::option::Option<i32>,
pub(crate) tumbling_window_in_seconds: ::std::option::Option<i32>,
pub(crate) function_response_types: ::std::option::Option<::std::vec::Vec<crate::types::FunctionResponseType>>,
pub(crate) amazon_managed_kafka_event_source_config: ::std::option::Option<crate::types::AmazonManagedKafkaEventSourceConfig>,
pub(crate) self_managed_kafka_event_source_config: ::std::option::Option<crate::types::SelfManagedKafkaEventSourceConfig>,
pub(crate) scaling_config: ::std::option::Option<crate::types::ScalingConfig>,
pub(crate) document_db_event_source_config: ::std::option::Option<crate::types::DocumentDbEventSourceConfig>,
}
impl EventSourceMappingConfigurationBuilder {
/// <p>The identifier of the event source mapping.</p>
pub fn uuid(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.uuid = ::std::option::Option::Some(input.into());
self
}
/// <p>The identifier of the event source mapping.</p>
pub fn set_uuid(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.uuid = input;
self
}
/// <p>The identifier of the event source mapping.</p>
pub fn get_uuid(&self) -> &::std::option::Option<::std::string::String> {
&self.uuid
}
/// <p>The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB Stream event sources. <code>AT_TIMESTAMP</code> is supported only for Amazon Kinesis streams, Amazon DocumentDB, Amazon MSK, and self-managed Apache Kafka.</p>
pub fn starting_position(mut self, input: crate::types::EventSourcePosition) -> Self {
self.starting_position = ::std::option::Option::Some(input);
self
}
/// <p>The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB Stream event sources. <code>AT_TIMESTAMP</code> is supported only for Amazon Kinesis streams, Amazon DocumentDB, Amazon MSK, and self-managed Apache Kafka.</p>
pub fn set_starting_position(mut self, input: ::std::option::Option<crate::types::EventSourcePosition>) -> Self {
self.starting_position = input;
self
}
/// <p>The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB Stream event sources. <code>AT_TIMESTAMP</code> is supported only for Amazon Kinesis streams, Amazon DocumentDB, Amazon MSK, and self-managed Apache Kafka.</p>
pub fn get_starting_position(&self) -> &::std::option::Option<crate::types::EventSourcePosition> {
&self.starting_position
}
/// <p>With <code>StartingPosition</code> set to <code>AT_TIMESTAMP</code>, the time from which to start reading. <code>StartingPositionTimestamp</code> cannot be in the future.</p>
pub fn starting_position_timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.starting_position_timestamp = ::std::option::Option::Some(input);
self
}
/// <p>With <code>StartingPosition</code> set to <code>AT_TIMESTAMP</code>, the time from which to start reading. <code>StartingPositionTimestamp</code> cannot be in the future.</p>
pub fn set_starting_position_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.starting_position_timestamp = input;
self
}
/// <p>With <code>StartingPosition</code> set to <code>AT_TIMESTAMP</code>, the time from which to start reading. <code>StartingPositionTimestamp</code> cannot be in the future.</p>
pub fn get_starting_position_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.starting_position_timestamp
}
/// <p>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).</p>
/// <p>Default value: Varies by service. For Amazon SQS, the default is 10. For all other services, the default is 100.</p>
/// <p>Related setting: When you set <code>BatchSize</code> to a value greater than 10, you must set <code>MaximumBatchingWindowInSeconds</code> to at least 1.</p>
pub fn batch_size(mut self, input: i32) -> Self {
self.batch_size = ::std::option::Option::Some(input);
self
}
/// <p>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).</p>
/// <p>Default value: Varies by service. For Amazon SQS, the default is 10. For all other services, the default is 100.</p>
/// <p>Related setting: When you set <code>BatchSize</code> to a value greater than 10, you must set <code>MaximumBatchingWindowInSeconds</code> to at least 1.</p>
pub fn set_batch_size(mut self, input: ::std::option::Option<i32>) -> Self {
self.batch_size = input;
self
}
/// <p>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).</p>
/// <p>Default value: Varies by service. For Amazon SQS, the default is 10. For all other services, the default is 100.</p>
/// <p>Related setting: When you set <code>BatchSize</code> to a value greater than 10, you must set <code>MaximumBatchingWindowInSeconds</code> to at least 1.</p>
pub fn get_batch_size(&self) -> &::std::option::Option<i32> {
&self.batch_size
}
/// <p>The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. You can configure <code>MaximumBatchingWindowInSeconds</code> to any value from 0 seconds to 300 seconds in increments of seconds.</p>
/// <p>For streams and Amazon SQS event sources, the default batching window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, Amazon MQ, and DocumentDB event sources, the default batching window is 500 ms. Note that because you can only change <code>MaximumBatchingWindowInSeconds</code> in increments of seconds, you cannot revert back to the 500 ms default batching window after you have changed it. To restore the default batching window, you must create a new event source mapping.</p>
/// <p>Related setting: For streams and Amazon SQS event sources, when you set <code>BatchSize</code> to a value greater than 10, you must set <code>MaximumBatchingWindowInSeconds</code> to at least 1.</p>
pub fn maximum_batching_window_in_seconds(mut self, input: i32) -> Self {
self.maximum_batching_window_in_seconds = ::std::option::Option::Some(input);
self
}
/// <p>The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. You can configure <code>MaximumBatchingWindowInSeconds</code> to any value from 0 seconds to 300 seconds in increments of seconds.</p>
/// <p>For streams and Amazon SQS event sources, the default batching window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, Amazon MQ, and DocumentDB event sources, the default batching window is 500 ms. Note that because you can only change <code>MaximumBatchingWindowInSeconds</code> in increments of seconds, you cannot revert back to the 500 ms default batching window after you have changed it. To restore the default batching window, you must create a new event source mapping.</p>
/// <p>Related setting: For streams and Amazon SQS event sources, when you set <code>BatchSize</code> to a value greater than 10, you must set <code>MaximumBatchingWindowInSeconds</code> to at least 1.</p>
pub fn set_maximum_batching_window_in_seconds(mut self, input: ::std::option::Option<i32>) -> Self {
self.maximum_batching_window_in_seconds = input;
self
}
/// <p>The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. You can configure <code>MaximumBatchingWindowInSeconds</code> to any value from 0 seconds to 300 seconds in increments of seconds.</p>
/// <p>For streams and Amazon SQS event sources, the default batching window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, Amazon MQ, and DocumentDB event sources, the default batching window is 500 ms. Note that because you can only change <code>MaximumBatchingWindowInSeconds</code> in increments of seconds, you cannot revert back to the 500 ms default batching window after you have changed it. To restore the default batching window, you must create a new event source mapping.</p>
/// <p>Related setting: For streams and Amazon SQS event sources, when you set <code>BatchSize</code> to a value greater than 10, you must set <code>MaximumBatchingWindowInSeconds</code> to at least 1.</p>
pub fn get_maximum_batching_window_in_seconds(&self) -> &::std::option::Option<i32> {
&self.maximum_batching_window_in_seconds
}
/// <p>(Kinesis and DynamoDB Streams only) The number of batches to process concurrently from each shard. The default value is 1.</p>
pub fn parallelization_factor(mut self, input: i32) -> Self {
self.parallelization_factor = ::std::option::Option::Some(input);
self
}
/// <p>(Kinesis and DynamoDB Streams only) The number of batches to process concurrently from each shard. The default value is 1.</p>
pub fn set_parallelization_factor(mut self, input: ::std::option::Option<i32>) -> Self {
self.parallelization_factor = input;
self
}
/// <p>(Kinesis and DynamoDB Streams only) The number of batches to process concurrently from each shard. The default value is 1.</p>
pub fn get_parallelization_factor(&self) -> &::std::option::Option<i32> {
&self.parallelization_factor
}
/// <p>The Amazon Resource Name (ARN) of the event source.</p>
pub fn event_source_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.event_source_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the event source.</p>
pub fn set_event_source_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.event_source_arn = input;
self
}
/// <p>The Amazon Resource Name (ARN) of the event source.</p>
pub fn get_event_source_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.event_source_arn
}
/// <p>An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html">Lambda event filtering</a>.</p>
pub fn filter_criteria(mut self, input: crate::types::FilterCriteria) -> Self {
self.filter_criteria = ::std::option::Option::Some(input);
self
}
/// <p>An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html">Lambda event filtering</a>.</p>
pub fn set_filter_criteria(mut self, input: ::std::option::Option<crate::types::FilterCriteria>) -> Self {
self.filter_criteria = input;
self
}
/// <p>An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html">Lambda event filtering</a>.</p>
pub fn get_filter_criteria(&self) -> &::std::option::Option<crate::types::FilterCriteria> {
&self.filter_criteria
}
/// <p>The ARN of the Lambda function.</p>
pub fn function_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.function_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The ARN of the Lambda function.</p>
pub fn set_function_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.function_arn = input;
self
}
/// <p>The ARN of the Lambda function.</p>
pub fn get_function_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.function_arn
}
/// <p>The date that the event source mapping was last updated or that its state changed.</p>
pub fn last_modified(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.last_modified = ::std::option::Option::Some(input);
self
}
/// <p>The date that the event source mapping was last updated or that its state changed.</p>
pub fn set_last_modified(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.last_modified = input;
self
}
/// <p>The date that the event source mapping was last updated or that its state changed.</p>
pub fn get_last_modified(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.last_modified
}
/// <p>The result of the last Lambda invocation of your function.</p>
pub fn last_processing_result(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.last_processing_result = ::std::option::Option::Some(input.into());
self
}
/// <p>The result of the last Lambda invocation of your function.</p>
pub fn set_last_processing_result(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.last_processing_result = input;
self
}
/// <p>The result of the last Lambda invocation of your function.</p>
pub fn get_last_processing_result(&self) -> &::std::option::Option<::std::string::String> {
&self.last_processing_result
}
/// <p>The state of the event source mapping. It can be one of the following: <code>Creating</code>, <code>Enabling</code>, <code>Enabled</code>, <code>Disabling</code>, <code>Disabled</code>, <code>Updating</code>, or <code>Deleting</code>.</p>
pub fn state(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.state = ::std::option::Option::Some(input.into());
self
}
/// <p>The state of the event source mapping. It can be one of the following: <code>Creating</code>, <code>Enabling</code>, <code>Enabled</code>, <code>Disabling</code>, <code>Disabled</code>, <code>Updating</code>, or <code>Deleting</code>.</p>
pub fn set_state(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.state = input;
self
}
/// <p>The state of the event source mapping. It can be one of the following: <code>Creating</code>, <code>Enabling</code>, <code>Enabled</code>, <code>Disabling</code>, <code>Disabled</code>, <code>Updating</code>, or <code>Deleting</code>.</p>
pub fn get_state(&self) -> &::std::option::Option<::std::string::String> {
&self.state
}
/// <p>Indicates whether a user or Lambda made the last change to the event source mapping.</p>
pub fn state_transition_reason(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.state_transition_reason = ::std::option::Option::Some(input.into());
self
}
/// <p>Indicates whether a user or Lambda made the last change to the event source mapping.</p>
pub fn set_state_transition_reason(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.state_transition_reason = input;
self
}
/// <p>Indicates whether a user or Lambda made the last change to the event source mapping.</p>
pub fn get_state_transition_reason(&self) -> &::std::option::Option<::std::string::String> {
&self.state_transition_reason
}
/// <p>(Kinesis and DynamoDB Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.</p>
pub fn destination_config(mut self, input: crate::types::DestinationConfig) -> Self {
self.destination_config = ::std::option::Option::Some(input);
self
}
/// <p>(Kinesis and DynamoDB Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.</p>
pub fn set_destination_config(mut self, input: ::std::option::Option<crate::types::DestinationConfig>) -> Self {
self.destination_config = input;
self
}
/// <p>(Kinesis and DynamoDB Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.</p>
pub fn get_destination_config(&self) -> &::std::option::Option<crate::types::DestinationConfig> {
&self.destination_config
}
/// Appends an item to `topics`.
///
/// To override the contents of this collection use [`set_topics`](Self::set_topics).
///
/// <p>The name of the Kafka topic.</p>
pub fn topics(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.topics.unwrap_or_default();
v.push(input.into());
self.topics = ::std::option::Option::Some(v);
self
}
/// <p>The name of the Kafka topic.</p>
pub fn set_topics(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.topics = input;
self
}
/// <p>The name of the Kafka topic.</p>
pub fn get_topics(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.topics
}
/// Appends an item to `queues`.
///
/// To override the contents of this collection use [`set_queues`](Self::set_queues).
///
/// <p> (Amazon MQ) The name of the Amazon MQ broker destination queue to consume.</p>
pub fn queues(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.queues.unwrap_or_default();
v.push(input.into());
self.queues = ::std::option::Option::Some(v);
self
}
/// <p> (Amazon MQ) The name of the Amazon MQ broker destination queue to consume.</p>
pub fn set_queues(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.queues = input;
self
}
/// <p> (Amazon MQ) The name of the Amazon MQ broker destination queue to consume.</p>
pub fn get_queues(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.queues
}
/// Appends an item to `source_access_configurations`.
///
/// To override the contents of this collection use [`set_source_access_configurations`](Self::set_source_access_configurations).
///
/// <p>An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.</p>
pub fn source_access_configurations(mut self, input: crate::types::SourceAccessConfiguration) -> Self {
let mut v = self.source_access_configurations.unwrap_or_default();
v.push(input);
self.source_access_configurations = ::std::option::Option::Some(v);
self
}
/// <p>An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.</p>
pub fn set_source_access_configurations(
mut self,
input: ::std::option::Option<::std::vec::Vec<crate::types::SourceAccessConfiguration>>,
) -> Self {
self.source_access_configurations = input;
self
}
/// <p>An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.</p>
pub fn get_source_access_configurations(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::SourceAccessConfiguration>> {
&self.source_access_configurations
}
/// <p>The self-managed Apache Kafka cluster for your event source.</p>
pub fn self_managed_event_source(mut self, input: crate::types::SelfManagedEventSource) -> Self {
self.self_managed_event_source = ::std::option::Option::Some(input);
self
}
/// <p>The self-managed Apache Kafka cluster for your event source.</p>
pub fn set_self_managed_event_source(mut self, input: ::std::option::Option<crate::types::SelfManagedEventSource>) -> Self {
self.self_managed_event_source = input;
self
}
/// <p>The self-managed Apache Kafka cluster for your event source.</p>
pub fn get_self_managed_event_source(&self) -> &::std::option::Option<crate::types::SelfManagedEventSource> {
&self.self_managed_event_source
}
/// <p>(Kinesis and DynamoDB 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.</p> <note>
/// <p>The minimum valid value for maximum record age is 60s. Although values less than 60 and greater than -1 fall within the parameter's absolute range, they are not allowed</p>
/// </note>
pub fn maximum_record_age_in_seconds(mut self, input: i32) -> Self {
self.maximum_record_age_in_seconds = ::std::option::Option::Some(input);
self
}
/// <p>(Kinesis and DynamoDB 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.</p> <note>
/// <p>The minimum valid value for maximum record age is 60s. Although values less than 60 and greater than -1 fall within the parameter's absolute range, they are not allowed</p>
/// </note>
pub fn set_maximum_record_age_in_seconds(mut self, input: ::std::option::Option<i32>) -> Self {
self.maximum_record_age_in_seconds = input;
self
}
/// <p>(Kinesis and DynamoDB 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.</p> <note>
/// <p>The minimum valid value for maximum record age is 60s. Although values less than 60 and greater than -1 fall within the parameter's absolute range, they are not allowed</p>
/// </note>
pub fn get_maximum_record_age_in_seconds(&self) -> &::std::option::Option<i32> {
&self.maximum_record_age_in_seconds
}
/// <p>(Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two and retry. The default value is false.</p>
pub fn bisect_batch_on_function_error(mut self, input: bool) -> Self {
self.bisect_batch_on_function_error = ::std::option::Option::Some(input);
self
}
/// <p>(Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two and retry. The default value is false.</p>
pub fn set_bisect_batch_on_function_error(mut self, input: ::std::option::Option<bool>) -> Self {
self.bisect_batch_on_function_error = input;
self
}
/// <p>(Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two and retry. The default value is false.</p>
pub fn get_bisect_batch_on_function_error(&self) -> &::std::option::Option<bool> {
&self.bisect_batch_on_function_error
}
/// <p>(Kinesis and DynamoDB 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.</p>
pub fn maximum_retry_attempts(mut self, input: i32) -> Self {
self.maximum_retry_attempts = ::std::option::Option::Some(input);
self
}
/// <p>(Kinesis and DynamoDB 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.</p>
pub fn set_maximum_retry_attempts(mut self, input: ::std::option::Option<i32>) -> Self {
self.maximum_retry_attempts = input;
self
}
/// <p>(Kinesis and DynamoDB 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.</p>
pub fn get_maximum_retry_attempts(&self) -> &::std::option::Option<i32> {
&self.maximum_retry_attempts
}
/// <p>(Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB and Kinesis Streams event sources. A value of 0 seconds indicates no tumbling window.</p>
pub fn tumbling_window_in_seconds(mut self, input: i32) -> Self {
self.tumbling_window_in_seconds = ::std::option::Option::Some(input);
self
}
/// <p>(Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB and Kinesis Streams event sources. A value of 0 seconds indicates no tumbling window.</p>
pub fn set_tumbling_window_in_seconds(mut self, input: ::std::option::Option<i32>) -> Self {
self.tumbling_window_in_seconds = input;
self
}
/// <p>(Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB and Kinesis Streams event sources. A value of 0 seconds indicates no tumbling window.</p>
pub fn get_tumbling_window_in_seconds(&self) -> &::std::option::Option<i32> {
&self.tumbling_window_in_seconds
}
/// Appends an item to `function_response_types`.
///
/// To override the contents of this collection use [`set_function_response_types`](Self::set_function_response_types).
///
/// <p>(Kinesis, DynamoDB Streams, and Amazon SQS) A list of current response type enums applied to the event source mapping.</p>
pub fn function_response_types(mut self, input: crate::types::FunctionResponseType) -> Self {
let mut v = self.function_response_types.unwrap_or_default();
v.push(input);
self.function_response_types = ::std::option::Option::Some(v);
self
}
/// <p>(Kinesis, DynamoDB Streams, and Amazon SQS) A list of current response type enums applied to the event source mapping.</p>
pub fn set_function_response_types(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::FunctionResponseType>>) -> Self {
self.function_response_types = input;
self
}
/// <p>(Kinesis, DynamoDB Streams, and Amazon SQS) A list of current response type enums applied to the event source mapping.</p>
pub fn get_function_response_types(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::FunctionResponseType>> {
&self.function_response_types
}
/// <p>Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.</p>
pub fn amazon_managed_kafka_event_source_config(mut self, input: crate::types::AmazonManagedKafkaEventSourceConfig) -> Self {
self.amazon_managed_kafka_event_source_config = ::std::option::Option::Some(input);
self
}
/// <p>Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.</p>
pub fn set_amazon_managed_kafka_event_source_config(
mut self,
input: ::std::option::Option<crate::types::AmazonManagedKafkaEventSourceConfig>,
) -> Self {
self.amazon_managed_kafka_event_source_config = input;
self
}
/// <p>Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.</p>
pub fn get_amazon_managed_kafka_event_source_config(&self) -> &::std::option::Option<crate::types::AmazonManagedKafkaEventSourceConfig> {
&self.amazon_managed_kafka_event_source_config
}
/// <p>Specific configuration settings for a self-managed Apache Kafka event source.</p>
pub fn self_managed_kafka_event_source_config(mut self, input: crate::types::SelfManagedKafkaEventSourceConfig) -> Self {
self.self_managed_kafka_event_source_config = ::std::option::Option::Some(input);
self
}
/// <p>Specific configuration settings for a self-managed Apache Kafka event source.</p>
pub fn set_self_managed_kafka_event_source_config(
mut self,
input: ::std::option::Option<crate::types::SelfManagedKafkaEventSourceConfig>,
) -> Self {
self.self_managed_kafka_event_source_config = input;
self
}
/// <p>Specific configuration settings for a self-managed Apache Kafka event source.</p>
pub fn get_self_managed_kafka_event_source_config(&self) -> &::std::option::Option<crate::types::SelfManagedKafkaEventSourceConfig> {
&self.self_managed_kafka_event_source_config
}
/// <p>(Amazon SQS only) The scaling configuration for the event source. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency">Configuring maximum concurrency for Amazon SQS event sources</a>.</p>
pub fn scaling_config(mut self, input: crate::types::ScalingConfig) -> Self {
self.scaling_config = ::std::option::Option::Some(input);
self
}
/// <p>(Amazon SQS only) The scaling configuration for the event source. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency">Configuring maximum concurrency for Amazon SQS event sources</a>.</p>
pub fn set_scaling_config(mut self, input: ::std::option::Option<crate::types::ScalingConfig>) -> Self {
self.scaling_config = input;
self
}
/// <p>(Amazon SQS only) The scaling configuration for the event source. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency">Configuring maximum concurrency for Amazon SQS event sources</a>.</p>
pub fn get_scaling_config(&self) -> &::std::option::Option<crate::types::ScalingConfig> {
&self.scaling_config
}
/// <p>Specific configuration settings for a DocumentDB event source.</p>
pub fn document_db_event_source_config(mut self, input: crate::types::DocumentDbEventSourceConfig) -> Self {
self.document_db_event_source_config = ::std::option::Option::Some(input);
self
}
/// <p>Specific configuration settings for a DocumentDB event source.</p>
pub fn set_document_db_event_source_config(mut self, input: ::std::option::Option<crate::types::DocumentDbEventSourceConfig>) -> Self {
self.document_db_event_source_config = input;
self
}
/// <p>Specific configuration settings for a DocumentDB event source.</p>
pub fn get_document_db_event_source_config(&self) -> &::std::option::Option<crate::types::DocumentDbEventSourceConfig> {
&self.document_db_event_source_config
}
/// Consumes the builder and constructs a [`EventSourceMappingConfiguration`](crate::types::EventSourceMappingConfiguration).
pub fn build(self) -> crate::types::EventSourceMappingConfiguration {
crate::types::EventSourceMappingConfiguration {
uuid: self.uuid,
starting_position: self.starting_position,
starting_position_timestamp: self.starting_position_timestamp,
batch_size: self.batch_size,
maximum_batching_window_in_seconds: self.maximum_batching_window_in_seconds,
parallelization_factor: self.parallelization_factor,
event_source_arn: self.event_source_arn,
filter_criteria: self.filter_criteria,
function_arn: self.function_arn,
last_modified: self.last_modified,
last_processing_result: self.last_processing_result,
state: self.state,
state_transition_reason: self.state_transition_reason,
destination_config: self.destination_config,
topics: self.topics,
queues: self.queues,
source_access_configurations: self.source_access_configurations,
self_managed_event_source: self.self_managed_event_source,
maximum_record_age_in_seconds: self.maximum_record_age_in_seconds,
bisect_batch_on_function_error: self.bisect_batch_on_function_error,
maximum_retry_attempts: self.maximum_retry_attempts,
tumbling_window_in_seconds: self.tumbling_window_in_seconds,
function_response_types: self.function_response_types,
amazon_managed_kafka_event_source_config: self.amazon_managed_kafka_event_source_config,
self_managed_kafka_event_source_config: self.self_managed_kafka_event_source_config,
scaling_config: self.scaling_config,
document_db_event_source_config: self.document_db_event_source_config,
}
}
}