Class AwsApiInput.Builder

java.lang.Object
software.amazon.awscdk.services.events.targets.AwsApiInput.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<AwsApiInput>
Enclosing interface:
AwsApiInput

@Stability(Stable) public static final class AwsApiInput.Builder extends Object implements software.amazon.jsii.Builder<AwsApiInput>
A builder for AwsApiInput
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • action

      @Stability(Stable) public AwsApiInput.Builder action(String action)
      Sets the value of AwsApiInput.getAction()
      Parameters:
      action - The service action to call. This parameter is required.
      Returns:
      this
    • service

      @Stability(Stable) public AwsApiInput.Builder service(String service)
      Sets the value of AwsApiInput.getService()
      Parameters:
      service - The service to call. This parameter is required.
      Returns:
      this
    • apiVersion

      @Stability(Deprecated) @Deprecated public AwsApiInput.Builder apiVersion(String apiVersion)
      Deprecated.
      the handler code was migrated to AWS SDK for JavaScript v3, which does not support this feature anymore
      Sets the value of AwsApiInput.getApiVersion()
      Parameters:
      apiVersion - API version to use for the service.
      Returns:
      this
    • catchErrorPattern

      @Stability(Stable) public AwsApiInput.Builder catchErrorPattern(String catchErrorPattern)
      Parameters:
      catchErrorPattern - The regex pattern to use to catch API errors. The code property of the Error object will be tested against this pattern. If there is a match an error will not be thrown.
      Returns:
      this
    • parameters

      @Stability(Stable) public AwsApiInput.Builder parameters(Object parameters)
      Sets the value of AwsApiInput.getParameters()
      Parameters:
      parameters - The parameters for the service action.
      Returns:
      this
    • build

      @Stability(Stable) public AwsApiInput build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<AwsApiInput>
      Returns:
      a new instance of AwsApiInput
      Throws:
      NullPointerException - if any required attribute was not provided