![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.apigateway.kotlin.inputs.RestApiS3LocationArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.apigateway.kotlin.inputs
import com.pulumi.awsnative.apigateway.inputs.RestApiS3LocationArgs.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
/**
* ``S3Location`` is a property of the [AWS::ApiGateway::RestApi](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-restapi.html) resource that specifies the Amazon S3 location of a OpenAPI (formerly Swagger) file that defines a set of RESTful APIs in JSON or YAML.
* On January 1, 2016, the Swagger Specification was donated to the [OpenAPI initiative](https://docs.aws.amazon.com/https://www.openapis.org/), becoming the foundation of the OpenAPI Specification.
* @property bucket The name of the S3 bucket where the OpenAPI file is stored.
* @property eTag The Amazon S3 ETag (a file checksum) of the OpenAPI file. If you don't specify a value, API Gateway skips ETag validation of your OpenAPI file.
* @property key The file name of the OpenAPI file (Amazon S3 object name).
* @property version For versioning-enabled buckets, a specific version of the OpenAPI file.
*/
public data class RestApiS3LocationArgs(
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.apigateway.inputs.RestApiS3LocationArgs =
com.pulumi.awsnative.apigateway.inputs.RestApiS3LocationArgs.builder()
.bucket(bucket?.applyValue({ args0 -> args0 }))
.eTag(eTag?.applyValue({ args0 -> args0 }))
.key(key?.applyValue({ args0 -> args0 }))
.version(version?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RestApiS3LocationArgs].
*/
@PulumiTagMarker
public class RestApiS3LocationArgsBuilder 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 name of the S3 bucket where the OpenAPI file is stored.
*/
@JvmName("blsyvxoqonijjlel")
public suspend fun bucket(`value`: Output) {
this.bucket = value
}
/**
* @param value The Amazon S3 ETag (a file checksum) of the OpenAPI file. If you don't specify a value, API Gateway skips ETag validation of your OpenAPI file.
*/
@JvmName("lhlrodqgodcpnkqk")
public suspend fun eTag(`value`: Output) {
this.eTag = value
}
/**
* @param value The file name of the OpenAPI file (Amazon S3 object name).
*/
@JvmName("rwkmoqgmcjupnmlh")
public suspend fun key(`value`: Output) {
this.key = value
}
/**
* @param value For versioning-enabled buckets, a specific version of the OpenAPI file.
*/
@JvmName("quaroruajkojtakh")
public suspend fun version(`value`: Output) {
this.version = value
}
/**
* @param value The name of the S3 bucket where the OpenAPI file is stored.
*/
@JvmName("xaljklhlijbnbkay")
public suspend fun bucket(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.bucket = mapped
}
/**
* @param value The Amazon S3 ETag (a file checksum) of the OpenAPI file. If you don't specify a value, API Gateway skips ETag validation of your OpenAPI file.
*/
@JvmName("ttextiqxvswoihpy")
public suspend fun eTag(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.eTag = mapped
}
/**
* @param value The file name of the OpenAPI file (Amazon S3 object name).
*/
@JvmName("uyrmpvrepcelybgi")
public suspend fun key(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.key = mapped
}
/**
* @param value For versioning-enabled buckets, a specific version of the OpenAPI file.
*/
@JvmName("abpdvlnqatshevja")
public suspend fun version(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.version = mapped
}
internal fun build(): RestApiS3LocationArgs = RestApiS3LocationArgs(
bucket = bucket,
eTag = eTag,
key = key,
version = version,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy