Interface RuleTargetConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
RuleTargetConfig.Jsii$Proxy
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.amazon.awscdk.core.*; 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()) .id("id") .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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forRuleTargetConfig
static final class
An implementation forRuleTargetConfig
-
Method Summary
Modifier and TypeMethodDescriptionstatic RuleTargetConfig.Builder
builder()
getArn()
The Amazon Resource Name (ARN) of the target.default CfnRule.BatchParametersProperty
Parameters used when the rule invokes Amazon AWS Batch Job/Queue.default CfnRule.DeadLetterConfigProperty
Contains information about a dead-letter queue configuration.default CfnRule.EcsParametersProperty
The Amazon ECS task definition and task count to use, if the event target is an Amazon ECS task.default CfnRule.HttpParametersProperty
Contains the HTTP parameters to use when the target is a API Gateway REST endpoint or EventBridge API destination.default String
getId()
Deprecated.no replacement.default RuleTargetInput
getInput()
What input to send to the event target.Settings that control shard assignment, when the target is a Kinesis stream.default CfnRule.RetryPolicyProperty
A RetryPolicy object that includes information about the retry policy settings.default IRole
getRole()
Role to use to invoke this event target.Parameters used when the rule invokes Amazon EC2 Systems Manager Run Command.default CfnRule.SqsParametersProperty
Parameters used when the FIFO sqs queue is used an event target by the rule.default IConstruct
The resource that is backing this target.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getArn
The Amazon Resource Name (ARN) of the target. -
getBatchParameters
Parameters used when the rule invokes Amazon AWS Batch Job/Queue.Default: no parameters set
-
getDeadLetterConfig
Contains information about a dead-letter queue configuration.Default: no dead-letter queue set
-
getEcsParameters
The Amazon ECS task definition and task count to use, if the event target is an Amazon ECS task. -
getHttpParameters
Contains the HTTP parameters to use when the target is a API Gateway REST endpoint or EventBridge API destination.Default: - None
-
getId
Deprecated.no replacement. we will always use an autogenerated id.(deprecated) A unique, user-defined identifier for the target.Acceptable values include alphanumeric characters, periods (.), hyphens (-), and underscores (_).
Default: - an auto-generated id
-
getInput
What input to send to the event target.Default: the entire event
-
getKinesisParameters
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.
-
getRetryPolicy
A RetryPolicy object that includes information about the retry policy settings.Default: EventBridge default retry policy
-
getRole
Role to use to invoke this event target. -
getRunCommandParameters
Parameters used when the rule invokes Amazon EC2 Systems Manager Run Command. -
getSqsParameters
Parameters used when the FIFO sqs queue is used an event target by the rule. -
getTargetResource
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.
Default: the target is not backed by any resource
- See Also:
-
builder
- Returns:
- a
RuleTargetConfig.Builder
ofRuleTargetConfig
-