![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.apigatewayv2.kotlin.inputs.ApiBodyS3LocationArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.apigatewayv2.kotlin.inputs
import com.pulumi.awsnative.apigatewayv2.inputs.ApiBodyS3LocationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* The ``BodyS3Location`` property specifies an S3 location from which to import an OpenAPI definition. Supported only for HTTP APIs.
* @property bucket The S3 bucket that contains the OpenAPI definition to import. Required if you specify a ``BodyS3Location`` for an API.
* @property etag The Etag of the S3 object.
* @property key The key of the S3 object. Required if you specify a ``BodyS3Location`` for an API.
* @property version The version of the S3 object.
*/
public data class ApiBodyS3LocationArgs(
public val bucket: Output? = null,
public val etag: Output? = null,
public val key: Output? = null,
public val version: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.apigatewayv2.inputs.ApiBodyS3LocationArgs =
com.pulumi.awsnative.apigatewayv2.inputs.ApiBodyS3LocationArgs.builder()
.bucket(bucket?.applyValue({ args0 -> args0 }))
.etag(etag?.applyValue({ args0 -> args0 }))
.key(key?.applyValue({ args0 -> args0 }))
.version(version?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ApiBodyS3LocationArgs].
*/
@PulumiTagMarker
public class ApiBodyS3LocationArgsBuilder internal constructor() {
private var bucket: Output? = null
private var etag: Output? = null
private var key: Output? = null
private var version: Output? = null
/**
* @param value The S3 bucket that contains the OpenAPI definition to import. Required if you specify a ``BodyS3Location`` for an API.
*/
@JvmName("wednnaksvssngomm")
public suspend fun bucket(`value`: Output) {
this.bucket = value
}
/**
* @param value The Etag of the S3 object.
*/
@JvmName("gytajhmtnipnclwa")
public suspend fun etag(`value`: Output) {
this.etag = value
}
/**
* @param value The key of the S3 object. Required if you specify a ``BodyS3Location`` for an API.
*/
@JvmName("hwkgfhycewfgkcop")
public suspend fun key(`value`: Output) {
this.key = value
}
/**
* @param value The version of the S3 object.
*/
@JvmName("ietmnevmtnjlcqvk")
public suspend fun version(`value`: Output) {
this.version = value
}
/**
* @param value The S3 bucket that contains the OpenAPI definition to import. Required if you specify a ``BodyS3Location`` for an API.
*/
@JvmName("hfeneycnfwehlaqq")
public suspend fun bucket(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.bucket = mapped
}
/**
* @param value The Etag of the S3 object.
*/
@JvmName("hetdbqeesbpmiobi")
public suspend fun etag(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.etag = mapped
}
/**
* @param value The key of the S3 object. Required if you specify a ``BodyS3Location`` for an API.
*/
@JvmName("fyxogmjvaaogdjuw")
public suspend fun key(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.key = mapped
}
/**
* @param value The version of the S3 object.
*/
@JvmName("ufjksjmormldoqhi")
public suspend fun version(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.version = mapped
}
internal fun build(): ApiBodyS3LocationArgs = ApiBodyS3LocationArgs(
bucket = bucket,
etag = etag,
key = key,
version = version,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy