@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.312Z") @Stability(value=Stable) public interface RuleTargetConfig extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.events.*;
import software.amazon.awscdk.services.iam.*;
import software.constructs.*;
Construct construct;
Role role;
RuleTargetInput ruleTargetInput;
RuleTargetConfig ruleTargetConfig = RuleTargetConfig.builder()
.arn("arn")
// the properties below are optional
.batchParameters(BatchParametersProperty.builder()
.jobDefinition("jobDefinition")
.jobName("jobName")
// the properties below are optional
.arrayProperties(BatchArrayPropertiesProperty.builder()
.size(123)
.build())
.retryStrategy(BatchRetryStrategyProperty.builder()
.attempts(123)
.build())
.build())
.deadLetterConfig(DeadLetterConfigProperty.builder()
.arn("arn")
.build())
.ecsParameters(EcsParametersProperty.builder()
.taskDefinitionArn("taskDefinitionArn")
// the properties below are optional
.capacityProviderStrategy(List.of(CapacityProviderStrategyItemProperty.builder()
.capacityProvider("capacityProvider")
// the properties below are optional
.base(123)
.weight(123)
.build()))
.enableEcsManagedTags(false)
.enableExecuteCommand(false)
.group("group")
.launchType("launchType")
.networkConfiguration(NetworkConfigurationProperty.builder()
.awsVpcConfiguration(AwsVpcConfigurationProperty.builder()
.subnets(List.of("subnets"))
// the properties below are optional
.assignPublicIp("assignPublicIp")
.securityGroups(List.of("securityGroups"))
.build())
.build())
.placementConstraints(List.of(PlacementConstraintProperty.builder()
.expression("expression")
.type("type")
.build()))
.placementStrategies(List.of(PlacementStrategyProperty.builder()
.field("field")
.type("type")
.build()))
.platformVersion("platformVersion")
.propagateTags("propagateTags")
.referenceId("referenceId")
.tagList(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.taskCount(123)
.build())
.httpParameters(HttpParametersProperty.builder()
.headerParameters(Map.of(
"headerParametersKey", "headerParameters"))
.pathParameterValues(List.of("pathParameterValues"))
.queryStringParameters(Map.of(
"queryStringParametersKey", "queryStringParameters"))
.build())
.input(ruleTargetInput)
.kinesisParameters(KinesisParametersProperty.builder()
.partitionKeyPath("partitionKeyPath")
.build())
.retryPolicy(RetryPolicyProperty.builder()
.maximumEventAgeInSeconds(123)
.maximumRetryAttempts(123)
.build())
.role(role)
.runCommandParameters(RunCommandParametersProperty.builder()
.runCommandTargets(List.of(RunCommandTargetProperty.builder()
.key("key")
.values(List.of("values"))
.build()))
.build())
.sqsParameters(SqsParametersProperty.builder()
.messageGroupId("messageGroupId")
.build())
.targetResource(construct)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
RuleTargetConfig.Builder
A builder for
RuleTargetConfig |
static class |
RuleTargetConfig.Jsii$Proxy
An implementation for
RuleTargetConfig |
| Modifier and Type | Method and Description |
|---|---|
static RuleTargetConfig.Builder |
builder() |
String |
getArn()
The Amazon Resource Name (ARN) of the target.
|
default CfnRule.BatchParametersProperty |
getBatchParameters()
Parameters used when the rule invokes Amazon AWS Batch Job/Queue.
|
default CfnRule.DeadLetterConfigProperty |
getDeadLetterConfig()
Contains information about a dead-letter queue configuration.
|
default CfnRule.EcsParametersProperty |
getEcsParameters()
The Amazon ECS task definition and task count to use, if the event target is an Amazon ECS task.
|
default CfnRule.HttpParametersProperty |
getHttpParameters()
Contains the HTTP parameters to use when the target is a API Gateway REST endpoint or EventBridge API destination.
|
default RuleTargetInput |
getInput()
What input to send to the event target.
|
default CfnRule.KinesisParametersProperty |
getKinesisParameters()
Settings that control shard assignment, when the target is a Kinesis stream.
|
default CfnRule.RetryPolicyProperty |
getRetryPolicy()
A RetryPolicy object that includes information about the retry policy settings.
|
default IRole |
getRole()
Role to use to invoke this event target.
|
default CfnRule.RunCommandParametersProperty |
getRunCommandParameters()
Parameters used when the rule invokes Amazon EC2 Systems Manager Run Command.
|
default CfnRule.SqsParametersProperty |
getSqsParameters()
Parameters used when the FIFO sqs queue is used an event target by the rule.
|
default software.constructs.IConstruct |
getTargetResource()
The resource that is backing this target.
|
@Stability(value=Stable) @NotNull String getArn()
@Stability(value=Stable) @Nullable default CfnRule.BatchParametersProperty getBatchParameters()
Default: no parameters set
@Stability(value=Stable) @Nullable default CfnRule.DeadLetterConfigProperty getDeadLetterConfig()
Default: no dead-letter queue set
@Stability(value=Stable) @Nullable default CfnRule.EcsParametersProperty getEcsParameters()
@Stability(value=Stable) @Nullable default CfnRule.HttpParametersProperty getHttpParameters()
Default: - None
@Stability(value=Stable) @Nullable default RuleTargetInput getInput()
Default: the entire event
@Stability(value=Stable) @Nullable default CfnRule.KinesisParametersProperty getKinesisParameters()
If you don't include this parameter, eventId is used as the partition key.
@Stability(value=Stable) @Nullable default CfnRule.RetryPolicyProperty getRetryPolicy()
Default: EventBridge default retry policy
@Stability(value=Stable) @Nullable default IRole getRole()
@Stability(value=Stable) @Nullable default CfnRule.RunCommandParametersProperty getRunCommandParameters()
@Stability(value=Stable) @Nullable default CfnRule.SqsParametersProperty getSqsParameters()
@Stability(value=Stable) @Nullable default software.constructs.IConstruct getTargetResource()
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.
Default: the target is not backed by any resource
@Stability(value=Stable) static RuleTargetConfig.Builder builder()
RuleTargetConfig.Builder of RuleTargetConfigCopyright © 2022. All rights reserved.