
com.pulumi.awsnative.events.kotlin.outputs.RuleTarget.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.events.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property appSyncParameters Contains the GraphQL operation to be parsed and executed, if the event target is an AWS AppSync API.
* @property arn The Amazon Resource Name (ARN) of the target.
* @property batchParameters If the event target is an AWS Batch job, this contains the job definition, job name, and other parameters. For more information, see [Jobs](https://docs.aws.amazon.com/batch/latest/userguide/jobs.html) in the *AWS Batch User Guide* .
* @property deadLetterConfig The `DeadLetterConfig` that defines the target queue to send dead-letter queue events to.
* @property 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](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html) in the *Amazon EC2 Container Service Developer Guide* .
* @property httpParameters 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.
* @property 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.
* @property 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](https://docs.aws.amazon.com/http://www.rfc-editor.org/rfc/rfc7159.txt) .
* @property inputPath 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](https://docs.aws.amazon.com/http://goessner.net/articles/JsonPath/) .
* @property 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.
* @property 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.
* @property 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.
* @property retryPolicy The `RetryPolicy` object that contains the retry policy configuration to use for the dead-letter queue.
* @property 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.
* @property runCommandParameters Parameters used when you are using the rule to invoke Amazon EC2 Run Command.
* @property 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.
* @property 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.
*/
public data class RuleTarget(
public val appSyncParameters: RuleAppSyncParameters? = null,
public val arn: String,
public val batchParameters: RuleBatchParameters? = null,
public val deadLetterConfig: RuleDeadLetterConfig? = null,
public val ecsParameters: RuleEcsParameters? = null,
public val httpParameters: RuleHttpParameters? = null,
public val id: String,
public val input: String? = null,
public val inputPath: String? = null,
public val inputTransformer: RuleInputTransformer? = null,
public val kinesisParameters: RuleKinesisParameters? = null,
public val redshiftDataParameters: RuleRedshiftDataParameters? = null,
public val retryPolicy: RuleRetryPolicy? = null,
public val roleArn: String? = null,
public val runCommandParameters: RuleRunCommandParameters? = null,
public val sageMakerPipelineParameters: RuleSageMakerPipelineParameters? = null,
public val sqsParameters: RuleSqsParameters? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.events.outputs.RuleTarget): RuleTarget =
RuleTarget(
appSyncParameters = javaType.appSyncParameters().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.events.kotlin.outputs.RuleAppSyncParameters.Companion.toKotlin(args0)
})
}).orElse(null),
arn = javaType.arn(),
batchParameters = javaType.batchParameters().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.events.kotlin.outputs.RuleBatchParameters.Companion.toKotlin(args0)
})
}).orElse(null),
deadLetterConfig = javaType.deadLetterConfig().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.events.kotlin.outputs.RuleDeadLetterConfig.Companion.toKotlin(args0)
})
}).orElse(null),
ecsParameters = javaType.ecsParameters().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.events.kotlin.outputs.RuleEcsParameters.Companion.toKotlin(args0)
})
}).orElse(null),
httpParameters = javaType.httpParameters().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.events.kotlin.outputs.RuleHttpParameters.Companion.toKotlin(args0)
})
}).orElse(null),
id = javaType.id(),
input = javaType.input().map({ args0 -> args0 }).orElse(null),
inputPath = javaType.inputPath().map({ args0 -> args0 }).orElse(null),
inputTransformer = javaType.inputTransformer().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.events.kotlin.outputs.RuleInputTransformer.Companion.toKotlin(args0)
})
}).orElse(null),
kinesisParameters = javaType.kinesisParameters().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.events.kotlin.outputs.RuleKinesisParameters.Companion.toKotlin(args0)
})
}).orElse(null),
redshiftDataParameters = javaType.redshiftDataParameters().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.events.kotlin.outputs.RuleRedshiftDataParameters.Companion.toKotlin(args0)
})
}).orElse(null),
retryPolicy = javaType.retryPolicy().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.events.kotlin.outputs.RuleRetryPolicy.Companion.toKotlin(args0)
})
}).orElse(null),
roleArn = javaType.roleArn().map({ args0 -> args0 }).orElse(null),
runCommandParameters = javaType.runCommandParameters().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.events.kotlin.outputs.RuleRunCommandParameters.Companion.toKotlin(args0)
})
}).orElse(null),
sageMakerPipelineParameters = javaType.sageMakerPipelineParameters().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.events.kotlin.outputs.RuleSageMakerPipelineParameters.Companion.toKotlin(args0)
})
}).orElse(null),
sqsParameters = javaType.sqsParameters().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.events.kotlin.outputs.RuleSqsParameters.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy