Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data Target = Target' {
- batchParameters :: Maybe BatchParameters
- deadLetterConfig :: Maybe DeadLetterConfig
- ecsParameters :: Maybe EcsParameters
- httpParameters :: Maybe HttpParameters
- input :: Maybe Text
- inputPath :: Maybe Text
- inputTransformer :: Maybe InputTransformer
- kinesisParameters :: Maybe KinesisParameters
- redshiftDataParameters :: Maybe RedshiftDataParameters
- retryPolicy :: Maybe RetryPolicy
- roleArn :: Maybe Text
- runCommandParameters :: Maybe RunCommandParameters
- sageMakerPipelineParameters :: Maybe SageMakerPipelineParameters
- sqsParameters :: Maybe SqsParameters
- id :: Text
- arn :: Text
- newTarget :: Text -> Text -> Target
- target_batchParameters :: Lens' Target (Maybe BatchParameters)
- target_deadLetterConfig :: Lens' Target (Maybe DeadLetterConfig)
- target_ecsParameters :: Lens' Target (Maybe EcsParameters)
- target_httpParameters :: Lens' Target (Maybe HttpParameters)
- target_input :: Lens' Target (Maybe Text)
- target_inputPath :: Lens' Target (Maybe Text)
- target_inputTransformer :: Lens' Target (Maybe InputTransformer)
- target_kinesisParameters :: Lens' Target (Maybe KinesisParameters)
- target_redshiftDataParameters :: Lens' Target (Maybe RedshiftDataParameters)
- target_retryPolicy :: Lens' Target (Maybe RetryPolicy)
- target_roleArn :: Lens' Target (Maybe Text)
- target_runCommandParameters :: Lens' Target (Maybe RunCommandParameters)
- target_sageMakerPipelineParameters :: Lens' Target (Maybe SageMakerPipelineParameters)
- target_sqsParameters :: Lens' Target (Maybe SqsParameters)
- target_id :: Lens' Target Text
- target_arn :: Lens' Target Text
Documentation
Targets are the resources to be invoked when a rule is triggered. For a complete list of services and resources that can be set as a target, see PutTargets.
If you are setting the event bus of another account as the target, and
that account granted permission to your account through an organization
instead of directly by the account ID, then you must specify a RoleArn
with proper permissions in the Target
structure. For more information,
see
Sending and Receiving Events Between Amazon Web Services Accounts
in the Amazon EventBridge User Guide.
See: newTarget
smart constructor.
Target' | |
|
Instances
Create a value of Target
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:batchParameters:Target'
, target_batchParameters
- If the event target is an Batch job, this contains the job definition,
job name, and other parameters. For more information, see
Jobs in
the Batch User Guide.
$sel:deadLetterConfig:Target'
, target_deadLetterConfig
- The DeadLetterConfig
that defines the target queue to send dead-letter
queue events to.
$sel:ecsParameters:Target'
, target_ecsParameters
- Contains the Amazon ECS task definition and task count to be used, if
the event target is an Amazon ECS task. For more information about
Amazon ECS tasks, see
Task Definitions
in the Amazon EC2 Container Service Developer Guide.
$sel:httpParameters:Target'
, target_httpParameters
- Contains the HTTP parameters to use when the target is a API Gateway
REST endpoint or EventBridge ApiDestination.
If you specify an API Gateway REST API or EventBridge ApiDestination as a target, you can use this parameter to specify headers, path parameters, and query string keys/values as part of your target invoking request. If you're using ApiDestinations, the corresponding Connection can also have these values configured. In case of any conflicting keys, values from the Connection take precedence.
$sel:input:Target'
, target_input
- Valid JSON text passed to the target. In this case, nothing from the
event itself is passed to the target. For more information, see
The JavaScript Object Notation (JSON) Data Interchange Format.
$sel:inputPath:Target'
, target_inputPath
- The value of the JSONPath that is used for extracting part of the
matched event when passing it to the target. You must use JSON dot
notation, not bracket notation. For more information about JSON paths,
see JSONPath.
$sel:inputTransformer:Target'
, target_inputTransformer
- Settings to enable you to provide custom input to a target based on
certain event data. You can extract one or more key-value pairs from the
event and then use that data to send customized input to the target.
$sel:kinesisParameters:Target'
, target_kinesisParameters
- The custom parameter you can use to control the shard assignment, when
the target is a Kinesis data stream. If you do not include this
parameter, the default is to use the eventId
as the partition key.
$sel:redshiftDataParameters:Target'
, target_redshiftDataParameters
- Contains the Amazon Redshift Data API parameters to use when the target
is a Amazon Redshift cluster.
If you specify a Amazon Redshift Cluster as a Target, you can use this to specify parameters to invoke the Amazon Redshift Data API ExecuteStatement based on EventBridge events.
$sel:retryPolicy:Target'
, target_retryPolicy
- The RetryPolicy
object that contains the retry policy configuration to
use for the dead-letter queue.
$sel:roleArn:Target'
, target_roleArn
- The Amazon Resource Name (ARN) of the IAM role to be used for this
target when the rule is triggered. If one rule triggers multiple
targets, you can use a different IAM role for each target.
$sel:runCommandParameters:Target'
, target_runCommandParameters
- Parameters used when you are using the rule to invoke Amazon EC2 Run
Command.
$sel:sageMakerPipelineParameters:Target'
, target_sageMakerPipelineParameters
- Contains the SageMaker Model Building Pipeline parameters to start
execution of a SageMaker Model Building Pipeline.
If you specify a SageMaker Model Building Pipeline as a target, you can use this to specify parameters to start a pipeline execution based on EventBridge events.
$sel:sqsParameters:Target'
, target_sqsParameters
- Contains the message group ID to use when the target is a FIFO queue.
If you specify an SQS FIFO queue as a target, the queue must have content-based deduplication enabled.
$sel:id:Target'
, target_id
- The ID of the target within the specified rule. Use this ID to reference
the target when updating the rule. We recommend using a memorable and
unique string.
Target
, target_arn
- The Amazon Resource Name (ARN) of the target.
target_batchParameters :: Lens' Target (Maybe BatchParameters) Source #
If the event target is an Batch job, this contains the job definition, job name, and other parameters. For more information, see Jobs in the Batch User Guide.
target_deadLetterConfig :: Lens' Target (Maybe DeadLetterConfig) Source #
The DeadLetterConfig
that defines the target queue to send dead-letter
queue events to.
target_ecsParameters :: Lens' Target (Maybe EcsParameters) Source #
Contains the Amazon ECS task definition and task count to be used, if the event target is an Amazon ECS task. For more information about Amazon ECS tasks, see Task Definitions in the Amazon EC2 Container Service Developer Guide.
target_httpParameters :: Lens' Target (Maybe HttpParameters) Source #
Contains the HTTP parameters to use when the target is a API Gateway REST endpoint or EventBridge ApiDestination.
If you specify an API Gateway REST API or EventBridge ApiDestination as a target, you can use this parameter to specify headers, path parameters, and query string keys/values as part of your target invoking request. If you're using ApiDestinations, the corresponding Connection can also have these values configured. In case of any conflicting keys, values from the Connection take precedence.
target_input :: Lens' Target (Maybe Text) Source #
Valid JSON text passed to the target. In this case, nothing from the event itself is passed to the target. For more information, see The JavaScript Object Notation (JSON) Data Interchange Format.
target_inputPath :: Lens' Target (Maybe Text) Source #
The value of the JSONPath that is used for extracting part of the matched event when passing it to the target. You must use JSON dot notation, not bracket notation. For more information about JSON paths, see JSONPath.
target_inputTransformer :: Lens' Target (Maybe InputTransformer) Source #
Settings to enable you to provide custom input to a target based on certain event data. You can extract one or more key-value pairs from the event and then use that data to send customized input to the target.
target_kinesisParameters :: Lens' Target (Maybe KinesisParameters) Source #
The custom parameter you can use to control the shard assignment, when
the target is a Kinesis data stream. If you do not include this
parameter, the default is to use the eventId
as the partition key.
target_redshiftDataParameters :: Lens' Target (Maybe RedshiftDataParameters) Source #
Contains the Amazon Redshift Data API parameters to use when the target is a Amazon Redshift cluster.
If you specify a Amazon Redshift Cluster as a Target, you can use this to specify parameters to invoke the Amazon Redshift Data API ExecuteStatement based on EventBridge events.
target_retryPolicy :: Lens' Target (Maybe RetryPolicy) Source #
The RetryPolicy
object that contains the retry policy configuration to
use for the dead-letter queue.
target_roleArn :: Lens' Target (Maybe Text) Source #
The Amazon Resource Name (ARN) of the IAM role to be used for this target when the rule is triggered. If one rule triggers multiple targets, you can use a different IAM role for each target.
target_runCommandParameters :: Lens' Target (Maybe RunCommandParameters) Source #
Parameters used when you are using the rule to invoke Amazon EC2 Run Command.
target_sageMakerPipelineParameters :: Lens' Target (Maybe SageMakerPipelineParameters) Source #
Contains the SageMaker Model Building Pipeline parameters to start execution of a SageMaker Model Building Pipeline.
If you specify a SageMaker Model Building Pipeline as a target, you can use this to specify parameters to start a pipeline execution based on EventBridge events.
target_sqsParameters :: Lens' Target (Maybe SqsParameters) Source #
Contains the message group ID to use when the target is a FIFO queue.
If you specify an SQS FIFO queue as a target, the queue must have content-based deduplication enabled.