1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 - | pub use crate::operation::put_function_event_invoke_config::_put_function_event_invoke_config_output::PutFunctionEventInvokeConfigOutputBuilder;
|
3 - |
|
4 2 | pub use crate::operation::put_function_event_invoke_config::_put_function_event_invoke_config_input::PutFunctionEventInvokeConfigInputBuilder;
|
5 3 |
|
4 + | pub use crate::operation::put_function_event_invoke_config::_put_function_event_invoke_config_output::PutFunctionEventInvokeConfigOutputBuilder;
|
5 + |
|
6 6 | impl crate::operation::put_function_event_invoke_config::builders::PutFunctionEventInvokeConfigInputBuilder {
|
7 7 | /// Sends a request with this input using the given client.
|
8 8 | pub async fn send_with(
|
9 9 | self,
|
10 10 | client: &crate::Client,
|
11 11 | ) -> ::std::result::Result<
|
12 12 | crate::operation::put_function_event_invoke_config::PutFunctionEventInvokeConfigOutput,
|
13 13 | ::aws_smithy_runtime_api::client::result::SdkError<
|
14 14 | crate::operation::put_function_event_invoke_config::PutFunctionEventInvokeConfigError,
|
15 15 | ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
|
16 16 | >,
|
17 17 | > {
|
18 18 | let mut fluent_builder = client.put_function_event_invoke_config();
|
19 19 | fluent_builder.inner = self;
|
20 20 | fluent_builder.send().await
|
21 21 | }
|
22 22 | }
|
23 23 | /// Fluent builder constructing a request to `PutFunctionEventInvokeConfig`.
|
24 24 | ///
|
25 25 | /// <p>Configures options for <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html">asynchronous invocation</a> on a function, version, or alias. If a configuration already exists for a function, version, or alias, this operation overwrites it. If you exclude any settings, they are removed. To set one option without affecting existing settings for other options, use <code>UpdateFunctionEventInvokeConfig</code>.</p>
|
26 26 | /// <p>By default, Lambda retries an asynchronous invocation twice if the function returns an error. It retains events in a queue for up to six hours. When an event fails all processing attempts or stays in the asynchronous invocation queue for too long, Lambda discards it. To retain discarded events, configure a dead-letter queue with <code>UpdateFunctionConfiguration</code>.</p>
|
27 27 | /// <p>To send an invocation record to a queue, topic, S3 bucket, function, or event bus, specify a <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations">destination</a>. You can configure separate destinations for successful invocations (on-success) and events that fail all processing attempts (on-failure). You can configure destinations in addition to or instead of a dead-letter queue.</p><note>
|
28 28 | /// <p>S3 buckets are supported only for on-failure destinations. To retain records of successful invocations, use another destination type.</p>
|
29 29 | /// </note>
|
30 30 | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|
31 31 | pub struct PutFunctionEventInvokeConfigFluentBuilder {
|
32 32 | handle: ::std::sync::Arc<crate::client::Handle>,
|
33 33 | inner: crate::operation::put_function_event_invoke_config::builders::PutFunctionEventInvokeConfigInputBuilder,
|
34 34 | config_override: ::std::option::Option<crate::config::Builder>,
|
35 35 | }
|