EventTargetState constructor

const EventTargetState({
  1. Input<EventTargetAppsyncTarget?>? appsyncTarget,
  2. Input<String?>? arn,
  3. Input<EventTargetBatchTarget?>? batchTarget,
  4. Input<EventTargetDeadLetterConfig?>? deadLetterConfig,
  5. Input<EventTargetEcsTarget?>? ecsTarget,
  6. Input<String?>? eventBusName,
  7. Input<bool?>? forceDestroy,
  8. Input<EventTargetHttpTarget?>? httpTarget,
  9. Input<String?>? input,
  10. Input<String?>? inputPath,
  11. Input<EventTargetInputTransformer?>? inputTransformer,
  12. Input<EventTargetKinesisTarget?>? kinesisTarget,
  13. Input<EventTargetRedshiftTarget?>? redshiftTarget,
  14. Input<String?>? region,
  15. Input<EventTargetRetryPolicy?>? retryPolicy,
  16. Input<String?>? roleArn,
  17. Input<String?>? rule,
  18. Input<List<EventTargetRunCommandTarget>?>? runCommandTargets,
  19. Input<EventTargetSagemakerPipelineTarget?>? sagemakerPipelineTarget,
  20. Input<EventTargetSqsTarget?>? sqsTarget,
  21. Input<String?>? targetId,
})

Creates a new EventTargetState. appsyncTarget Parameters used when you are using the rule to invoke an AppSync GraphQL API mutation. Documented below. A maximum of 1 are allowed. arn ARN of the target. batchTarget Parameters used when you are using the rule to invoke an Amazon Batch Job. Documented below. A maximum of 1 are allowed. deadLetterConfig Parameters used when you are providing a dead letter config. Documented below. A maximum of 1 are allowed. ecsTarget Parameters used when you are using the rule to invoke Amazon ECS Task. Documented below. A maximum of 1 are allowed. eventBusName The name or ARN of the event bus to associate with the rule. forceDestroy Used to delete managed rules created by AWS. Defaults to false. httpTarget Parameters used when you are using the rule to invoke an API Gateway REST endpoint. Documented below. A maximum of 1 is allowed. input Valid JSON text passed to the target. Conflicts with inputPath and inputTransformer. inputPath The value of the JSONPath that is used for extracting part of the matched event when passing it to the target. Conflicts with input and inputTransformer. inputTransformer Parameters used when you are providing a custom input to a target based on certain event data. Conflicts with input and inputPath. kinesisTarget Parameters used when you are using the rule to invoke an Amazon Kinesis Stream. Documented below. A maximum of 1 are allowed. redshiftTarget Parameters used when you are using the rule to invoke an Amazon Redshift Statement. Documented below. A maximum of 1 are allowed. region Region where this resource will be managed. Defaults to the Region set in the provider configuration. retryPolicy Parameters used when you are providing retry policies. Documented below. A maximum of 1 are allowed. roleArn ARN of the IAM role to be used for this target when the rule is triggered. Required if ecsTarget is used or target in arn is EC2 instance, Kinesis data stream, Step Functions state machine, or Event Bus in different account or region. rule The name of the rule you want to add targets to. runCommandTargets Parameters used when you are using the rule to invoke Amazon EC2 Run Command. Documented below. A maximum of 5 are allowed. sagemakerPipelineTarget Parameters used when you are using the rule to invoke an Amazon SageMaker AI Pipeline. Documented below. A maximum of 1 are allowed. sqsTarget Parameters used when you are using the rule to invoke an Amazon SQS Queue. Documented below. A maximum of 1 are allowed. targetId The unique target assignment ID. If missing, will generate a random, unique id.

Implementation

const EventTargetState({
  this.appsyncTarget,
  this.arn,
  this.batchTarget,
  this.deadLetterConfig,
  this.ecsTarget,
  this.eventBusName,
  this.forceDestroy,
  this.httpTarget,
  this.input,
  this.inputPath,
  this.inputTransformer,
  this.kinesisTarget,
  this.redshiftTarget,
  this.region,
  this.retryPolicy,
  this.roleArn,
  this.rule,
  this.runCommandTargets,
  this.sagemakerPipelineTarget,
  this.sqsTarget,
  this.targetId,
});