Class AppSyncGraphQLApiProps.Builder
java.lang.Object
software.amazon.awscdk.services.events.targets.AppSyncGraphQLApiProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AppSyncGraphQLApiProps>
- Enclosing interface:
AppSyncGraphQLApiProps
@Stability(Stable)
public static final class AppSyncGraphQLApiProps.Builder
extends Object
implements software.amazon.jsii.Builder<AppSyncGraphQLApiProps>
A builder for
AppSyncGraphQLApiProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.deadLetterQueue
(IQueue deadLetterQueue) Sets the value ofTargetBaseProps.getDeadLetterQueue()
Sets the value ofAppSyncGraphQLApiProps.getEventRole()
graphQlOperation
(String graphQlOperation) Sets the value ofinvalid @link
AppSyncGraphQLApiProps#getGraphQlOperation
maxEventAge
(Duration maxEventAge) Sets the value ofTargetBaseProps.getMaxEventAge()
retryAttempts
(Number retryAttempts) Sets the value ofTargetBaseProps.getRetryAttempts()
variables
(RuleTargetInput variables) Sets the value ofAppSyncGraphQLApiProps.getVariables()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
graphQlOperation
Sets the value ofinvalid @link
AppSyncGraphQLApiProps#getGraphQlOperation
- Parameters:
graphQlOperation
- The GraphQL operation;. This parameter is required. that is, the query, mutation, or subscription to be parsed and executed by the GraphQL service.- Returns:
this
-
eventRole
Sets the value ofAppSyncGraphQLApiProps.getEventRole()
- Parameters:
eventRole
- The role to assume before invoking the target (i.e., the pipeline) when the given rule is triggered.- Returns:
this
-
variables
Sets the value ofAppSyncGraphQLApiProps.getVariables()
- Parameters:
variables
- The variables that are include in the GraphQL operation.- Returns:
this
-
deadLetterQueue
Sets the value ofTargetBaseProps.getDeadLetterQueue()
- Parameters:
deadLetterQueue
- The SQS queue to be used as deadLetterQueue. Check out the considerations for using a dead-letter queue. The events not successfully delivered are automatically retried for a specified period of time, depending on the retry policy of the target. If an event is not delivered before all retry attempts are exhausted, it will be sent to the dead letter queue.- Returns:
this
-
maxEventAge
Sets the value ofTargetBaseProps.getMaxEventAge()
- Parameters:
maxEventAge
- The maximum age of a request that Lambda sends to a function for processing. Minimum value of 60. Maximum value of 86400.- Returns:
this
-
retryAttempts
Sets the value ofTargetBaseProps.getRetryAttempts()
- Parameters:
retryAttempts
- The maximum number of times to retry when the function returns an error. Minimum value of 0. Maximum value of 185.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AppSyncGraphQLApiProps>
- Returns:
- a new instance of
AppSyncGraphQLApiProps
- Throws:
NullPointerException
- if any required attribute was not provided
-