Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data Target = Target' {
- runCommandParameters :: Maybe RunCommandParameters
- httpParameters :: Maybe HttpParameters
- kinesisParameters :: Maybe KinesisParameters
- inputTransformer :: Maybe InputTransformer
- deadLetterConfig :: Maybe DeadLetterConfig
- sageMakerPipelineParameters :: Maybe SageMakerPipelineParameters
- sqsParameters :: Maybe SqsParameters
- input :: Maybe Text
- batchParameters :: Maybe BatchParameters
- redshiftDataParameters :: Maybe RedshiftDataParameters
- ecsParameters :: Maybe EcsParameters
- retryPolicy :: Maybe RetryPolicy
- inputPath :: Maybe Text
- roleArn :: Maybe Text
- id :: Text
- arn :: Text
- newTarget :: Text -> Text -> Target
- target_runCommandParameters :: Lens' Target (Maybe RunCommandParameters)
- target_httpParameters :: Lens' Target (Maybe HttpParameters)
- target_kinesisParameters :: Lens' Target (Maybe KinesisParameters)
- target_inputTransformer :: Lens' Target (Maybe InputTransformer)
- target_deadLetterConfig :: Lens' Target (Maybe DeadLetterConfig)
- target_sageMakerPipelineParameters :: Lens' Target (Maybe SageMakerPipelineParameters)
- target_sqsParameters :: Lens' Target (Maybe SqsParameters)
- target_input :: Lens' Target (Maybe Text)
- target_batchParameters :: Lens' Target (Maybe BatchParameters)
- target_redshiftDataParameters :: Lens' Target (Maybe RedshiftDataParameters)
- target_ecsParameters :: Lens' Target (Maybe EcsParameters)
- target_retryPolicy :: Lens' Target (Maybe RetryPolicy)
- target_inputPath :: Lens' Target (Maybe Text)
- target_roleArn :: Lens' Target (Maybe Text)
- 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:runCommandParameters:Target'
, target_runCommandParameters
- Parameters used when you are using the rule to invoke Amazon EC2 Run
Command.
$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: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: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:deadLetterConfig:Target'
, target_deadLetterConfig
- The DeadLetterConfig
that defines the target queue to send dead-letter
queue events to.
$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: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: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: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: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:retryPolicy:Target'
, target_retryPolicy
- The RetryPolicy
object that contains the retry policy configuration to
use for the dead-letter queue.
$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: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:id:Target'
, target_id
- The ID of the target. We recommend using a memorable and unique string.
$sel:arn:Target'
, target_arn
- The Amazon Resource Name (ARN) of the target.
target_runCommandParameters :: Lens' Target (Maybe RunCommandParameters) Source #
Parameters used when you are using the rule to invoke Amazon EC2 Run Command.
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_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_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_deadLetterConfig :: Lens' Target (Maybe DeadLetterConfig) Source #
The DeadLetterConfig
that defines the target queue to send dead-letter
queue events to.
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.
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_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_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_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_retryPolicy :: Lens' Target (Maybe RetryPolicy) Source #
The RetryPolicy
object that contains the retry policy configuration to
use for the dead-letter queue.
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_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.