
com.pulumi.awsnative.apigateway.kotlin.outputs.RestApiS3Location.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.apigateway.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
* ``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 RestApiS3Location(
public val bucket: String? = null,
public val eTag: String? = null,
public val key: String? = null,
public val version: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.apigateway.outputs.RestApiS3Location): RestApiS3Location = RestApiS3Location(
bucket = javaType.bucket().map({ args0 -> args0 }).orElse(null),
eTag = javaType.eTag().map({ args0 -> args0 }).orElse(null),
key = javaType.key().map({ args0 -> args0 }).orElse(null),
version = javaType.version().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy