class
Amazonite::EventBridge::Target
- Amazonite::EventBridge::Target
- Reference
- Object
Overview
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.
Included Modules
- JSON::Serializable
Defined in:
eventbridge/target.crConstructors
- .new(id : String, arn : String, role_arn : String | Nil = nil, input : String | Nil = nil, input_path : String | Nil = nil, input_transformer : InputTransformer | Nil = nil, kinesis_parameters : KinesisParameters | Nil = nil, run_command_parameters : RunCommandParameters | Nil = nil, ecs_parameters : EcsParameters | Nil = nil, batch_parameters : BatchParameters | Nil = nil, sqs_parameters : SqsParameters | Nil = nil, http_parameters : HttpParameters | Nil = nil, redshift_data_parameters : RedshiftDataParameters | Nil = nil, sage_maker_pipeline_parameters : SageMakerPipelineParameters | Nil = nil, dead_letter_config : DeadLetterConfig | Nil = nil, retry_policy : RetryPolicy | Nil = nil, app_sync_parameters : AppSyncParameters | Nil = nil)
- .new(pull : JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#app_sync_parameters : AppSyncParameters | Nil
Contains the GraphQL operation to be parsed and executed, if the event target is an AppSync API.
-
#app_sync_parameters=(app_sync_parameters : AppSyncParameters | Nil)
Contains the GraphQL operation to be parsed and executed, if the event target is an AppSync API.
-
#arn : String
The Amazon Resource Name (ARN) of the target.
-
#arn=(arn : String)
The Amazon Resource Name (ARN) of the target.
-
#batch_parameters : BatchParameters | Nil
If the event target is an Batch job, this contains the job definition, job name, and other parameters.
-
#batch_parameters=(batch_parameters : BatchParameters | Nil)
If the event target is an Batch job, this contains the job definition, job name, and other parameters.
-
#dead_letter_config : DeadLetterConfig | Nil
The
DeadLetterConfigthat defines the target queue to send dead-letter queue events to. -
#dead_letter_config=(dead_letter_config : DeadLetterConfig | Nil)
The
DeadLetterConfigthat defines the target queue to send dead-letter queue events to. -
#ecs_parameters : EcsParameters | Nil
Contains the Amazon ECS task definition and task count to be used, if the event target is an Amazon ECS task.
-
#ecs_parameters=(ecs_parameters : EcsParameters | Nil)
Contains the Amazon ECS task definition and task count to be used, if the event target is an Amazon ECS task.
-
#hash(hasher)
See
Object#hash(hasher) -
#http_parameters : HttpParameters | Nil
Contains the HTTP parameters to use when the target is a API Gateway endpoint or EventBridge ApiDestination.
-
#http_parameters=(http_parameters : HttpParameters | Nil)
Contains the HTTP parameters to use when the target is a API Gateway endpoint or EventBridge ApiDestination.
-
#id : String
The ID of the target within the specified rule.
-
#id=(id : String)
The ID of the target within the specified rule.
-
#input : String | Nil
Valid JSON text passed to the target.
-
#input=(input : String | Nil)
Valid JSON text passed to the target.
-
#input_path : String | Nil
The value of the JSONPath that is used for extracting part of the matched event when passing it to the target.
-
#input_path=(input_path : String | Nil)
The value of the JSONPath that is used for extracting part of the matched event when passing it to the target.
-
#input_transformer : InputTransformer | Nil
Settings to enable you to provide custom input to a target based on certain event data.
-
#input_transformer=(input_transformer : InputTransformer | Nil)
Settings to enable you to provide custom input to a target based on certain event data.
-
#kinesis_parameters : KinesisParameters | Nil
The custom parameter you can use to control the shard assignment, when the target is a Kinesis data stream.
-
#kinesis_parameters=(kinesis_parameters : KinesisParameters | Nil)
The custom parameter you can use to control the shard assignment, when the target is a Kinesis data stream.
-
#redshift_data_parameters : RedshiftDataParameters | Nil
Contains the Amazon Redshift Data API parameters to use when the target is a Amazon Redshift cluster.
-
#redshift_data_parameters=(redshift_data_parameters : RedshiftDataParameters | Nil)
Contains the Amazon Redshift Data API parameters to use when the target is a Amazon Redshift cluster.
-
#retry_policy : RetryPolicy | Nil
The retry policy configuration to use for the dead-letter queue.
-
#retry_policy=(retry_policy : RetryPolicy | Nil)
The retry policy configuration to use for the dead-letter queue.
-
#role_arn : String | Nil
The Amazon Resource Name (ARN) of the IAM role to be used for this target when the rule is triggered.
-
#role_arn=(role_arn : String | Nil)
The Amazon Resource Name (ARN) of the IAM role to be used for this target when the rule is triggered.
-
#run_command_parameters : RunCommandParameters | Nil
Parameters used when you are using the rule to invoke Amazon EC2 Run Command.
-
#run_command_parameters=(run_command_parameters : RunCommandParameters | Nil)
Parameters used when you are using the rule to invoke Amazon EC2 Run Command.
-
#sage_maker_pipeline_parameters : SageMakerPipelineParameters | Nil
Contains the SageMaker AI Model Building Pipeline parameters to start execution of a SageMaker AI Model Building Pipeline.
-
#sage_maker_pipeline_parameters=(sage_maker_pipeline_parameters : SageMakerPipelineParameters | Nil)
Contains the SageMaker AI Model Building Pipeline parameters to start execution of a SageMaker AI Model Building Pipeline.
-
#sqs_parameters : SqsParameters | Nil
Contains the message group ID to use when the target is a FIFO queue.
-
#sqs_parameters=(sqs_parameters : SqsParameters | Nil)
Contains the message group ID to use when the target is a FIFO queue.
- #validate! : Nil
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
Contains the GraphQL operation to be parsed and executed, if the event target is an AppSync API.
Contains the GraphQL operation to be parsed and executed, if the event target is an AppSync API.
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.
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.
The DeadLetterConfig that defines the target queue to send dead-letter queue events to.
The DeadLetterConfig that defines the target queue to send dead-letter queue events to.
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.
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.
Contains the HTTP parameters to use when the target is a API Gateway endpoint or EventBridge ApiDestination.
If you specify an API Gateway 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.
Contains the HTTP parameters to use when the target is a API Gateway endpoint or EventBridge ApiDestination.
If you specify an API Gateway 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.
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.
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.
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.
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.
The value of the JSONPath that is used for extracting part of the matched event when passing it to the target. You may use JSON dot notation or bracket notation. For more information about JSON paths, see JSONPath.
The value of the JSONPath that is used for extracting part of the matched event when passing it to the target. You may use JSON dot notation or bracket notation. For more information about JSON paths, see JSONPath.
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.
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.
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.
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.
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.
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.
The retry policy configuration to use for the dead-letter queue.
The retry policy configuration to use for the dead-letter queue.
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.
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.
Parameters used when you are using the rule to invoke Amazon EC2 Run Command.
Parameters used when you are using the rule to invoke Amazon EC2 Run Command.
Contains the SageMaker AI Model Building Pipeline parameters to start execution of a SageMaker AI Model Building Pipeline.
If you specify a SageMaker AI Model Building Pipeline as a target, you can use this to specify parameters to start a pipeline execution based on EventBridge events.
Contains the SageMaker AI Model Building Pipeline parameters to start execution of a SageMaker AI Model Building Pipeline.
If you specify a SageMaker AI Model Building Pipeline as a target, you can use this to specify parameters to start a pipeline execution based on EventBridge events.
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.
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.