Class OnSuccess
- java.lang.Object
-
- software.amazon.awssdk.services.lambda.model.OnSuccess
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<OnSuccess.Builder,OnSuccess>
@Generated("software.amazon.awssdk:codegen") public final class OnSuccess extends Object implements SdkPojo, Serializable, ToCopyableBuilder<OnSuccess.Builder,OnSuccess>
A destination for events that were processed successfully.
To retain records of successful asynchronous invocations, you can configure an Amazon SNS topic, Amazon SQS queue, Lambda function, or Amazon EventBridge event bus as the destination.
OnSuccessis not supported inCreateEventSourceMappingorUpdateEventSourceMappingrequests.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceOnSuccess.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OnSuccess.Builderbuilder()Stringdestination()The Amazon Resource Name (ARN) of the destination resource.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends OnSuccess.Builder>serializableBuilderClass()OnSuccess.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
destination
public final String destination()
The Amazon Resource Name (ARN) of the destination resource.
Amazon SNS destinations have a message size limit of 256 KB. If the combined size of the function request and response payload exceeds the limit, Lambda will drop the payload when sending
OnFailureevent to the destination. For details on this behavior, refer to Retaining records of asynchronous invocations.- Returns:
- The Amazon Resource Name (ARN) of the destination resource.
Amazon SNS destinations have a message size limit of 256 KB. If the combined size of the function request and response payload exceeds the limit, Lambda will drop the payload when sending
OnFailureevent to the destination. For details on this behavior, refer to Retaining records of asynchronous invocations.
-
toBuilder
public OnSuccess.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<OnSuccess.Builder,OnSuccess>
-
builder
public static OnSuccess.Builder builder()
-
serializableBuilderClass
public static Class<? extends OnSuccess.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-