com.pulumi.awsnative.events.kotlin.ApiDestinationArgs.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
import com.pulumi.awsnative.events.ApiDestinationArgs.builder
import com.pulumi.awsnative.events.kotlin.enums.ApiDestinationHttpMethod
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Resource Type definition for AWS::Events::ApiDestination.
* @property connectionArn The arn of the connection.
* @property description A description for the API destination to create.
* @property httpMethod The method to use for the request to the HTTP invocation endpoint.
* @property invocationEndpoint Url endpoint to invoke.
* @property invocationRateLimitPerSecond The maximum number of requests per second to send to the HTTP invocation endpoint.
* @property name Name of the apiDestination.
*/
public data class ApiDestinationArgs(
public val connectionArn: Output? = null,
public val description: Output? = null,
public val httpMethod: Output? = null,
public val invocationEndpoint: Output? = null,
public val invocationRateLimitPerSecond: Output? = null,
public val name: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.events.ApiDestinationArgs =
com.pulumi.awsnative.events.ApiDestinationArgs.builder()
.connectionArn(connectionArn?.applyValue({ args0 -> args0 }))
.description(description?.applyValue({ args0 -> args0 }))
.httpMethod(httpMethod?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.invocationEndpoint(invocationEndpoint?.applyValue({ args0 -> args0 }))
.invocationRateLimitPerSecond(invocationRateLimitPerSecond?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ApiDestinationArgs].
*/
@PulumiTagMarker
public class ApiDestinationArgsBuilder internal constructor() {
private var connectionArn: Output? = null
private var description: Output? = null
private var httpMethod: Output? = null
private var invocationEndpoint: Output? = null
private var invocationRateLimitPerSecond: Output? = null
private var name: Output? = null
/**
* @param value The arn of the connection.
*/
@JvmName("sjnsniespfbcbmwv")
public suspend fun connectionArn(`value`: Output) {
this.connectionArn = value
}
/**
* @param value A description for the API destination to create.
*/
@JvmName("dnrdjamfwyolkafx")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value The method to use for the request to the HTTP invocation endpoint.
*/
@JvmName("ifoirvsldrovthoc")
public suspend fun httpMethod(`value`: Output) {
this.httpMethod = value
}
/**
* @param value Url endpoint to invoke.
*/
@JvmName("xdcrjouxnjharqgg")
public suspend fun invocationEndpoint(`value`: Output) {
this.invocationEndpoint = value
}
/**
* @param value The maximum number of requests per second to send to the HTTP invocation endpoint.
*/
@JvmName("qshndtvhdryuxbbn")
public suspend fun invocationRateLimitPerSecond(`value`: Output) {
this.invocationRateLimitPerSecond = value
}
/**
* @param value Name of the apiDestination.
*/
@JvmName("gjcwgjcxexmxwurb")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The arn of the connection.
*/
@JvmName("eimgfvjyhgfipgcc")
public suspend fun connectionArn(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.connectionArn = mapped
}
/**
* @param value A description for the API destination to create.
*/
@JvmName("cvjcgptwrgybcdtc")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value The method to use for the request to the HTTP invocation endpoint.
*/
@JvmName("pdauiuacdwrakqxk")
public suspend fun httpMethod(`value`: ApiDestinationHttpMethod?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.httpMethod = mapped
}
/**
* @param value Url endpoint to invoke.
*/
@JvmName("jmksflcvnkwycdwi")
public suspend fun invocationEndpoint(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.invocationEndpoint = mapped
}
/**
* @param value The maximum number of requests per second to send to the HTTP invocation endpoint.
*/
@JvmName("sisyurdjoydvyiwi")
public suspend fun invocationRateLimitPerSecond(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.invocationRateLimitPerSecond = mapped
}
/**
* @param value Name of the apiDestination.
*/
@JvmName("aijnmhunykjowrjh")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
internal fun build(): ApiDestinationArgs = ApiDestinationArgs(
connectionArn = connectionArn,
description = description,
httpMethod = httpMethod,
invocationEndpoint = invocationEndpoint,
invocationRateLimitPerSecond = invocationRateLimitPerSecond,
name = name,
)
}