![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.apigateway.kotlin.GatewayResponse.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.apigateway.kotlin
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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
/**
* Builder for [GatewayResponse].
*/
@PulumiTagMarker
public class GatewayResponseResourceBuilder internal constructor() {
public var name: String? = null
public var args: GatewayResponseArgs = GatewayResponseArgs()
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 GatewayResponseArgsBuilder.() -> Unit) {
val builder = GatewayResponseArgsBuilder()
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(): GatewayResponse {
val builtJavaResource = com.pulumi.awsnative.apigateway.GatewayResponse(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return GatewayResponse(builtJavaResource)
}
}
/**
* The ``AWS::ApiGateway::GatewayResponse`` resource creates a gateway response for your API. For more information, see [API Gateway Responses](https://docs.aws.amazon.com/apigateway/latest/developerguide/customize-gateway-responses.html#api-gateway-gatewayResponse-definition) in the *API Gateway Developer Guide*.
*/
public class GatewayResponse internal constructor(
override val javaResource: com.pulumi.awsnative.apigateway.GatewayResponse,
) : KotlinCustomResource(javaResource, GatewayResponseMapper) {
/**
* The ID for the gateway response. For example: `abc123` .
*/
public val awsId: Output
get() = javaResource.awsId().applyValue({ args0 -> args0 })
/**
* Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.
*/
public val responseParameters: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy