![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.apigatewayv2.kotlin.RouteResponse.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.apigatewayv2.kotlin
import com.pulumi.awsnative.apigatewayv2.kotlin.outputs.RouteResponseParameterConstraints
import com.pulumi.awsnative.apigatewayv2.kotlin.outputs.RouteResponseParameterConstraints.Companion.toKotlin
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Any
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
/**
* Builder for [RouteResponse].
*/
@PulumiTagMarker
public class RouteResponseResourceBuilder internal constructor() {
public var name: String? = null
public var args: RouteResponseArgs = RouteResponseArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend RouteResponseArgsBuilder.() -> Unit) {
val builder = RouteResponseArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): RouteResponse {
val builtJavaResource = com.pulumi.awsnative.apigatewayv2.RouteResponse(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return RouteResponse(builtJavaResource)
}
}
/**
* The ``AWS::ApiGatewayV2::RouteResponse`` resource creates a route response for a WebSocket API. For more information, see [Set up Route Responses for a WebSocket API in API Gateway](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-route-response.html) in the *API Gateway Developer Guide*.
*/
public class RouteResponse internal constructor(
override val javaResource: com.pulumi.awsnative.apigatewayv2.RouteResponse,
) : KotlinCustomResource(javaResource, RouteResponseMapper) {
/**
* The API identifier.
*/
public val apiId: Output
get() = javaResource.apiId().applyValue({ args0 -> args0 })
/**
* The model selection expression for the route response. Supported only for WebSocket APIs.
*/
public val modelSelectionExpression: Output?
get() = javaResource.modelSelectionExpression().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The response models for the route response.
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::ApiGatewayV2::RouteResponse` for more information about the expected schema for this property.
*/
public val responseModels: Output?
get() = javaResource.responseModels().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The route response parameters.
*/
public val responseParameters: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy