#[non_exhaustive]pub struct PutFunctionEventInvokeConfigInput { /* private fields */ }
Implementations§
source§impl PutFunctionEventInvokeConfigInput
impl PutFunctionEventInvokeConfigInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutFunctionEventInvokeConfig, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutFunctionEventInvokeConfig, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<PutFunctionEventInvokeConfig
>
Examples found in repository?
7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::PutFunctionEventInvokeConfig,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::PutFunctionEventInvokeConfigError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::PutFunctionEventInvokeConfigOutput,
aws_smithy_http::result::SdkError<crate::error::PutFunctionEventInvokeConfigError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PutFunctionEventInvokeConfigInput
.
source§impl PutFunctionEventInvokeConfigInput
impl PutFunctionEventInvokeConfigInput
sourcepub fn function_name(&self) -> Option<&str>
pub fn function_name(&self) -> Option<&str>
The name of the Lambda function, version, or alias.
Name formats
-
Function name -
my-function
(name-only),my-function:v1
(with alias). -
Function ARN -
arn:aws:lambda:us-west-2:123456789012:function:my-function
. -
Partial ARN -
123456789012:function:my-function
.
You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
sourcepub fn maximum_retry_attempts(&self) -> Option<i32>
pub fn maximum_retry_attempts(&self) -> Option<i32>
The maximum number of times to retry when the function returns an error.
sourcepub fn maximum_event_age_in_seconds(&self) -> Option<i32>
pub fn maximum_event_age_in_seconds(&self) -> Option<i32>
The maximum age of a request that Lambda sends to a function for processing.
sourcepub fn destination_config(&self) -> Option<&DestinationConfig>
pub fn destination_config(&self) -> Option<&DestinationConfig>
A destination for events after they have been sent to a function for processing.
Destinations
-
Function - The Amazon Resource Name (ARN) of a Lambda function.
-
Queue - The ARN of an SQS queue.
-
Topic - The ARN of an SNS topic.
-
Event Bus - The ARN of an Amazon EventBridge event bus.
Trait Implementations§
source§impl Clone for PutFunctionEventInvokeConfigInput
impl Clone for PutFunctionEventInvokeConfigInput
source§fn clone(&self) -> PutFunctionEventInvokeConfigInput
fn clone(&self) -> PutFunctionEventInvokeConfigInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more