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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofAwsApiInput.getAction()
apiVersion
(String apiVersion) Deprecated.the handler code was migrated to AWS SDK for JavaScript v3, which does not support this feature anymorebuild()
Builds the configured instance.catchErrorPattern
(String catchErrorPattern) Sets the value ofAwsApiInput.getCatchErrorPattern()
parameters
(Object parameters) Sets the value ofAwsApiInput.getParameters()
Sets the value ofAwsApiInput.getService()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
action
Sets the value ofAwsApiInput.getAction()
- Parameters:
action
- The service action to call. This parameter is required.- Returns:
this
-
service
Sets the value ofAwsApiInput.getService()
- Parameters:
service
- The service to call. This parameter is required.- Returns:
this
-
apiVersion
Deprecated.the handler code was migrated to AWS SDK for JavaScript v3, which does not support this feature anymoreSets the value ofAwsApiInput.getApiVersion()
- Parameters:
apiVersion
- API version to use for the service.- Returns:
this
-
catchErrorPattern
Sets the value ofAwsApiInput.getCatchErrorPattern()
- Parameters:
catchErrorPattern
- The regex pattern to use to catch API errors. Thecode
property of theError
object will be tested against this pattern. If there is a match an error will not be thrown.- Returns:
this
-
parameters
Sets the value ofAwsApiInput.getParameters()
- Parameters:
parameters
- The parameters for the service action.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AwsApiInput>
- Returns:
- a new instance of
AwsApiInput
- Throws:
NullPointerException
- if any required attribute was not provided
-