All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.apigateway.kotlin.enums.MethodIntegrationPassthroughBehavior.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.apigateway.kotlin.enums

import com.pulumi.kotlin.ConvertibleToJava
import kotlin.Suppress

/**
 * Specifies how the method request body of an unmapped content type will be passed through the integration request to the back end without transformation. A content type is unmapped if no mapping template is defined in the integration or the content type does not match any of the mapped content types, as specified in ``requestTemplates``. The valid value is one of the following: ``WHEN_NO_MATCH``: passes the method request body through the integration request to the back end without transformation when the method request content type does not match any content type associated with the mapping templates defined in the integration request. ``WHEN_NO_TEMPLATES``: passes the method request body through the integration request to the back end without transformation when no mapping template is defined in the integration request. If a template is defined when this option is selected, the method request of an unmapped content-type will be rejected with an HTTP 415 Unsupported Media Type response. ``NEVER``: rejects the method request with an HTTP 415 Unsupported Media Type response when either the method request content type does not match any content type associated with the mapping templates defined in the integration request or no mapping template is defined in the integration request.
 */
public enum class MethodIntegrationPassthroughBehavior(
    public val javaValue: com.pulumi.awsnative.apigateway.enums.MethodIntegrationPassthroughBehavior,
) : ConvertibleToJava {
    WhenNoMatch(com.pulumi.awsnative.apigateway.enums.MethodIntegrationPassthroughBehavior.WhenNoMatch),
    WhenNoTemplates(com.pulumi.awsnative.apigateway.enums.MethodIntegrationPassthroughBehavior.WhenNoTemplates),
    Never(com.pulumi.awsnative.apigateway.enums.MethodIntegrationPassthroughBehavior.Never),
    ;

    override fun toJava(): com.pulumi.awsnative.apigateway.enums.MethodIntegrationPassthroughBehavior = javaValue

    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.apigateway.enums.MethodIntegrationPassthroughBehavior): MethodIntegrationPassthroughBehavior =
            MethodIntegrationPassthroughBehavior.values().first { it.javaValue == javaType }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy