Class RuleTargetConfig.Builder
java.lang.Object
software.amazon.awscdk.services.events.RuleTargetConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RuleTargetConfig>
- Enclosing interface:
RuleTargetConfig
@Stability(Stable)
public static final class RuleTargetConfig.Builder
extends Object
implements software.amazon.jsii.Builder<RuleTargetConfig>
A builder for
RuleTargetConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappSyncParameters
(CfnRule.AppSyncParametersProperty appSyncParameters) Sets the value ofRuleTargetConfig.getAppSyncParameters()
Sets the value ofRuleTargetConfig.getArn()
batchParameters
(CfnRule.BatchParametersProperty batchParameters) Sets the value ofRuleTargetConfig.getBatchParameters()
build()
Builds the configured instance.deadLetterConfig
(CfnRule.DeadLetterConfigProperty deadLetterConfig) Sets the value ofRuleTargetConfig.getDeadLetterConfig()
ecsParameters
(CfnRule.EcsParametersProperty ecsParameters) Sets the value ofRuleTargetConfig.getEcsParameters()
httpParameters
(CfnRule.HttpParametersProperty httpParameters) Sets the value ofRuleTargetConfig.getHttpParameters()
input
(RuleTargetInput input) Sets the value ofRuleTargetConfig.getInput()
kinesisParameters
(CfnRule.KinesisParametersProperty kinesisParameters) Sets the value ofRuleTargetConfig.getKinesisParameters()
redshiftDataParameters
(CfnRule.RedshiftDataParametersProperty redshiftDataParameters) Sets the value ofRuleTargetConfig.getRedshiftDataParameters()
retryPolicy
(CfnRule.RetryPolicyProperty retryPolicy) Sets the value ofRuleTargetConfig.getRetryPolicy()
Sets the value ofRuleTargetConfig.getRole()
runCommandParameters
(CfnRule.RunCommandParametersProperty runCommandParameters) Sets the value ofRuleTargetConfig.getRunCommandParameters()
sqsParameters
(CfnRule.SqsParametersProperty sqsParameters) Sets the value ofRuleTargetConfig.getSqsParameters()
targetResource
(software.constructs.IConstruct targetResource) Sets the value ofRuleTargetConfig.getTargetResource()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
arn
Sets the value ofRuleTargetConfig.getArn()
- Parameters:
arn
- The Amazon Resource Name (ARN) of the target. This parameter is required.- Returns:
this
-
appSyncParameters
@Stability(Stable) public RuleTargetConfig.Builder appSyncParameters(CfnRule.AppSyncParametersProperty appSyncParameters) Sets the value ofRuleTargetConfig.getAppSyncParameters()
- Parameters:
appSyncParameters
- Contains the GraphQL operation to be parsed and executed, if the event target is an AWS AppSync API.- Returns:
this
-
batchParameters
@Stability(Stable) public RuleTargetConfig.Builder batchParameters(CfnRule.BatchParametersProperty batchParameters) Sets the value ofRuleTargetConfig.getBatchParameters()
- Parameters:
batchParameters
- Parameters used when the rule invokes Amazon AWS Batch Job/Queue.- Returns:
this
-
deadLetterConfig
@Stability(Stable) public RuleTargetConfig.Builder deadLetterConfig(CfnRule.DeadLetterConfigProperty deadLetterConfig) Sets the value ofRuleTargetConfig.getDeadLetterConfig()
- Parameters:
deadLetterConfig
- Contains information about a dead-letter queue configuration.- Returns:
this
-
ecsParameters
@Stability(Stable) public RuleTargetConfig.Builder ecsParameters(CfnRule.EcsParametersProperty ecsParameters) Sets the value ofRuleTargetConfig.getEcsParameters()
- Parameters:
ecsParameters
- The Amazon ECS task definition and task count to use, if the event target is an Amazon ECS task.- Returns:
this
-
httpParameters
@Stability(Stable) public RuleTargetConfig.Builder httpParameters(CfnRule.HttpParametersProperty httpParameters) Sets the value ofRuleTargetConfig.getHttpParameters()
- Parameters:
httpParameters
- Contains the HTTP parameters to use when the target is a API Gateway REST endpoint or EventBridge API destination.- Returns:
this
-
input
Sets the value ofRuleTargetConfig.getInput()
- Parameters:
input
- What input to send to the event target.- Returns:
this
-
kinesisParameters
@Stability(Stable) public RuleTargetConfig.Builder kinesisParameters(CfnRule.KinesisParametersProperty kinesisParameters) Sets the value ofRuleTargetConfig.getKinesisParameters()
- Parameters:
kinesisParameters
- Settings that control shard assignment, when the target is a Kinesis stream. If you don't include this parameter, eventId is used as the partition key.- Returns:
this
-
redshiftDataParameters
@Stability(Stable) public RuleTargetConfig.Builder redshiftDataParameters(CfnRule.RedshiftDataParametersProperty redshiftDataParameters) Sets the value ofRuleTargetConfig.getRedshiftDataParameters()
- Parameters:
redshiftDataParameters
- Parameters used when the rule invokes Amazon Redshift Queries.- Returns:
this
-
retryPolicy
@Stability(Stable) public RuleTargetConfig.Builder retryPolicy(CfnRule.RetryPolicyProperty retryPolicy) Sets the value ofRuleTargetConfig.getRetryPolicy()
- Parameters:
retryPolicy
- A RetryPolicy object that includes information about the retry policy settings.- Returns:
this
-
role
Sets the value ofRuleTargetConfig.getRole()
- Parameters:
role
- Role to use to invoke this event target.- Returns:
this
-
runCommandParameters
@Stability(Stable) public RuleTargetConfig.Builder runCommandParameters(CfnRule.RunCommandParametersProperty runCommandParameters) Sets the value ofRuleTargetConfig.getRunCommandParameters()
- Parameters:
runCommandParameters
- Parameters used when the rule invokes Amazon EC2 Systems Manager Run Command.- Returns:
this
-
sqsParameters
@Stability(Stable) public RuleTargetConfig.Builder sqsParameters(CfnRule.SqsParametersProperty sqsParameters) Sets the value ofRuleTargetConfig.getSqsParameters()
- Parameters:
sqsParameters
- Parameters used when the FIFO sqs queue is used an event target by the rule.- Returns:
this
-
targetResource
@Stability(Stable) public RuleTargetConfig.Builder targetResource(software.constructs.IConstruct targetResource) Sets the value ofRuleTargetConfig.getTargetResource()
- Parameters:
targetResource
- The resource that is backing this target. This is the resource that will actually have some action performed on it when used as a target (for example, start a build for a CodeBuild project). We need it to determine whether the rule belongs to a different account than the target - if so, we generate a more complex setup, including an additional stack containing the EventBusPolicy.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<RuleTargetConfig>
- Returns:
- a new instance of
RuleTargetConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-