Class InvokeConfiguration

java.lang.Object
software.amazon.awssdk.services.eventbridgev2.model.InvokeConfiguration
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<InvokeConfiguration.Builder,InvokeConfiguration>

@Generated("software.amazon.awssdk:codegen") public final class InvokeConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InvokeConfiguration.Builder,InvokeConfiguration>

Configuration for how the subscriber invokes its target.

See Also:
  • Method Details

    • roleArn

      public final String roleArn()

      IAM role the service assumes to invoke the target. Must belong to the calling account.

      Returns:
      IAM role the service assumes to invoke the target. Must belong to the calling account.
    • lambdaParameters

      public final LambdaParameters lambdaParameters()

      Lambda invocation parameters for subscribers. Values are forwarded to the Lambda Invoke API. Every string member accepts a literal or a JSONata expression (e.g. "{% $events.Data.qualifier %}").

      Returns:
      Lambda invocation parameters for subscribers. Values are forwarded to the Lambda Invoke API. Every string member accepts a literal or a JSONata expression (e.g. "{% $events.Data.qualifier %}").
    • sqsParameters

      public final SqsParameters sqsParameters()

      SQS invocation parameters for subscribers. Values are forwarded to the SQS SendMessageBatch API. All scalar values accept a literal or a JSONata expression (e.g. "{% $events.Data.groupId %}").

      Returns:
      SQS invocation parameters for subscribers. Values are forwarded to the SQS SendMessageBatch API. All scalar values accept a literal or a JSONata expression (e.g. "{% $events.Data.groupId %}").
    • snsParameters

      public final SnsParameters snsParameters()

      SNS invocation parameters for subscribers. Values are forwarded to the SNS PublishBatch API. All scalar values accept a literal or a JSONata expression (e.g. "{% $events.Data.groupId %}").

      Returns:
      SNS invocation parameters for subscribers. Values are forwarded to the SNS PublishBatch API. All scalar values accept a literal or a JSONata expression (e.g. "{% $events.Data.groupId %}").
    • kinesisParameters

      public final KinesisParameters kinesisParameters()

      Kinesis Data Streams invocation parameters for subscribers. Values are forwarded to the Kinesis PutRecords API. All scalar values accept a literal or a JSONata expression (e.g. "{% $events.Data.partitionKey %}").

      Returns:
      Kinesis Data Streams invocation parameters for subscribers. Values are forwarded to the Kinesis PutRecords API. All scalar values accept a literal or a JSONata expression (e.g. "{% $events.Data.partitionKey %}").
    • stepFunctionsParameters

      public final StepFunctionsParameters stepFunctionsParameters()

      Step Functions invocation parameters for subscribers. Values are forwarded to the Step Functions StartExecution or StartSyncExecution API. Every string member accepts a literal or a JSONata expression (e.g. "{% $events.Data.executionName %}").

      Returns:
      Step Functions invocation parameters for subscribers. Values are forwarded to the Step Functions StartExecution or StartSyncExecution API. Every string member accepts a literal or a JSONata expression (e.g. "{% $events.Data.executionName %}").
    • httpParameters

      public final HttpParameters httpParameters()

      HTTP invocation parameters for subscribers (API Gateway / API Destination). Values are forwarded to the HTTP endpoint.

      Returns:
      HTTP invocation parameters for subscribers (API Gateway / API Destination). Values are forwarded to the HTTP endpoint.
    • universalTargetParameters

      public final UniversalTargetParameters universalTargetParameters()

      Parameters for USI (Universal Service Integration) targets. Used when TargetArn is in the format arn:aws:events:::aws-sdk:{service}:{apiAction}

      Returns:
      Parameters for USI (Universal Service Integration) targets. Used when TargetArn is in the format arn:aws:events:::aws-sdk:{service}:{apiAction}
    • eventBusV2Parameters

      public final EventBusV2Parameters eventBusV2Parameters()

      Parameters for forwarding events to another EventBridge event bus.

      Returns:
      Parameters for forwarding events to another EventBridge event bus.
    • mskParameters

      public final MskParameters mskParameters()

      MSK (Apache Kafka) invocation parameters for subscribers targeting an Amazon MSK cluster.

      Returns:
      MSK (Apache Kafka) invocation parameters for subscribers targeting an Amazon MSK cluster.
    • targetArn

      public final String targetArn()

      ARN of the target a subscriber invokes. The resource grammar is service-neutral because target services use different separators and the USI form omits region and account.

      Returns:
      ARN of the target a subscriber invokes. The resource grammar is service-neutral because target services use different separators and the USI form omits region and account.
    • toBuilder

      public InvokeConfiguration.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<InvokeConfiguration.Builder,InvokeConfiguration>
      Returns:
      a builder for type T
    • builder

      public static InvokeConfiguration.Builder builder()
    • serializableBuilderClass

      public static Class<? extends InvokeConfiguration.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.