com.pulumi.awsnative.iot.kotlin.outputs.TopicRuleHttpAction.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.iot.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property auth The authentication method to use when sending data to an HTTPS endpoint.
* @property confirmationUrl The URL to which AWS IoT sends a confirmation message. The value of the confirmation URL must be a prefix of the endpoint URL. If you do not specify a confirmation URL AWS IoT uses the endpoint URL as the confirmation URL. If you use substitution templates in the confirmationUrl, you must create and enable topic rule destinations that match each possible value of the substitution template before traffic is allowed to your endpoint URL.
* @property headers The HTTP headers to send with the message data.
* @property url The endpoint URL. If substitution templates are used in the URL, you must also specify a `confirmationUrl` . If this is a new destination, a new `TopicRuleDestination` is created if possible.
*/
public data class TopicRuleHttpAction(
public val auth: TopicRuleHttpAuthorization? = null,
public val confirmationUrl: String? = null,
public val headers: List? = null,
public val url: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.iot.outputs.TopicRuleHttpAction): TopicRuleHttpAction = TopicRuleHttpAction(
auth = javaType.auth().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.iot.kotlin.outputs.TopicRuleHttpAuthorization.Companion.toKotlin(args0)
})
}).orElse(null),
confirmationUrl = javaType.confirmationUrl().map({ args0 -> args0 }).orElse(null),
headers = javaType.headers().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.iot.kotlin.outputs.TopicRuleHttpActionHeader.Companion.toKotlin(args0)
})
}),
url = javaType.url(),
)
}
}