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

com.pulumi.awsnative.apigatewayv2.kotlin.ApiArgs.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: 1.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.apigatewayv2.kotlin

import com.pulumi.awsnative.apigatewayv2.ApiArgs.builder
import com.pulumi.awsnative.apigatewayv2.kotlin.inputs.ApiBodyS3LocationArgs
import com.pulumi.awsnative.apigatewayv2.kotlin.inputs.ApiBodyS3LocationArgsBuilder
import com.pulumi.awsnative.apigatewayv2.kotlin.inputs.ApiCorsArgs
import com.pulumi.awsnative.apigatewayv2.kotlin.inputs.ApiCorsArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Any
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * The ``AWS::ApiGatewayV2::Api`` resource creates an API. WebSocket APIs and HTTP APIs are supported. For more information about WebSocket APIs, see [About WebSocket APIs in API Gateway](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-overview.html) in the *API Gateway Developer Guide*. For more information about HTTP APIs, see [HTTP APIs](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api.html) in the *API Gateway Developer Guide.*
 * @property apiKeySelectionExpression An API key selection expression. Supported only for WebSocket APIs. See [API Key Selection Expressions](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-selection-expressions.html#apigateway-websocket-api-apikey-selection-expressions).
 * @property basePath Specifies how to interpret the base path of the API during import. Valid values are ``ignore``, ``prepend``, and ``split``. The default value is ``ignore``. To learn more, see [Set the OpenAPI basePath Property](https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-import-api-basePath.html). Supported only for HTTP APIs.
 * @property body The OpenAPI definition. Supported only for HTTP APIs. To import an HTTP API, you must specify a ``Body`` or ``BodyS3Location``. If you specify a ``Body`` or ``BodyS3Location``, don't specify CloudFormation resources such as ``AWS::ApiGatewayV2::Authorizer`` or ``AWS::ApiGatewayV2::Route``. API Gateway doesn't support the combination of OpenAPI and CloudFormation resources.
 * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::ApiGatewayV2::Api` for more information about the expected schema for this property.
 * @property bodyS3Location The S3 location of an OpenAPI definition. Supported only for HTTP APIs. To import an HTTP API, you must specify a ``Body`` or ``BodyS3Location``. If you specify a ``Body`` or ``BodyS3Location``, don't specify CloudFormation resources such as ``AWS::ApiGatewayV2::Authorizer`` or ``AWS::ApiGatewayV2::Route``. API Gateway doesn't support the combination of OpenAPI and CloudFormation resources.
 * @property corsConfiguration A CORS configuration. Supported only for HTTP APIs. See [Configuring CORS](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-cors.html) for more information.
 * @property credentialsArn This property is part of quick create. It specifies the credentials required for the integration, if any. For a Lambda integration, three options are available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, specify ``arn:aws:iam::*:user/*``. To use resource-based permissions on supported AWS services, specify ``null``. Currently, this property is not used for HTTP integrations. Supported only for HTTP APIs.
 * @property description The description of the API.
 * @property disableExecuteApiEndpoint Specifies whether clients can invoke your API by using the default ``execute-api`` endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.
 * @property disableSchemaValidation Avoid validating models when creating a deployment. Supported only for WebSocket APIs.
 * @property failOnWarnings Specifies whether to rollback the API creation when a warning is encountered. By default, API creation continues if a warning is encountered.
 * @property name The name of the API. Required unless you specify an OpenAPI definition for ``Body`` or ``S3BodyLocation``.
 * @property protocolType The API protocol. Valid values are ``WEBSOCKET`` or ``HTTP``. Required unless you specify an OpenAPI definition for ``Body`` or ``S3BodyLocation``.
 * @property routeKey This property is part of quick create. If you don't specify a ``routeKey``, a default route of ``$default`` is created. The ``$default`` route acts as a catch-all for any request made to your API, for a particular stage. The ``$default`` route key can't be modified. You can add routes after creating the API, and you can update the route keys of additional routes. Supported only for HTTP APIs.
 * @property routeSelectionExpression The route selection expression for the API. For HTTP APIs, the ``routeSelectionExpression`` must be ``${request.method} ${request.path}``. If not provided, this will be the default for HTTP APIs. This property is required for WebSocket APIs.
 * @property tags The collection of tags. Each tag element is associated with a given resource.
 * @property target This property is part of quick create. Quick create produces an API with an integration, a default catch-all route, and a default stage which is configured to automatically deploy changes. For HTTP integrations, specify a fully qualified URL. For Lambda integrations, specify a function ARN. The type of the integration will be HTTP_PROXY or AWS_PROXY, respectively. Supported only for HTTP APIs.
 * @property version A version identifier for the API.
 * */
 */
public data class ApiArgs(
    public val apiKeySelectionExpression: Output? = null,
    public val basePath: Output? = null,
    public val body: Output? = null,
    public val bodyS3Location: Output? = null,
    public val corsConfiguration: Output? = null,
    public val credentialsArn: Output? = null,
    public val description: Output? = null,
    public val disableExecuteApiEndpoint: Output? = null,
    public val disableSchemaValidation: Output? = null,
    public val failOnWarnings: Output? = null,
    public val name: Output? = null,
    public val protocolType: Output? = null,
    public val routeKey: Output? = null,
    public val routeSelectionExpression: Output? = null,
    public val tags: Output>? = null,
    public val target: Output? = null,
    public val version: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.apigatewayv2.ApiArgs =
        com.pulumi.awsnative.apigatewayv2.ApiArgs.builder()
            .apiKeySelectionExpression(apiKeySelectionExpression?.applyValue({ args0 -> args0 }))
            .basePath(basePath?.applyValue({ args0 -> args0 }))
            .body(body?.applyValue({ args0 -> args0 }))
            .bodyS3Location(bodyS3Location?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .corsConfiguration(corsConfiguration?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .credentialsArn(credentialsArn?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .disableExecuteApiEndpoint(disableExecuteApiEndpoint?.applyValue({ args0 -> args0 }))
            .disableSchemaValidation(disableSchemaValidation?.applyValue({ args0 -> args0 }))
            .failOnWarnings(failOnWarnings?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .protocolType(protocolType?.applyValue({ args0 -> args0 }))
            .routeKey(routeKey?.applyValue({ args0 -> args0 }))
            .routeSelectionExpression(routeSelectionExpression?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .target(target?.applyValue({ args0 -> args0 }))
            .version(version?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ApiArgs].
 */
@PulumiTagMarker
public class ApiArgsBuilder internal constructor() {
    private var apiKeySelectionExpression: Output? = null

    private var basePath: Output? = null

    private var body: Output? = null

    private var bodyS3Location: Output? = null

    private var corsConfiguration: Output? = null

    private var credentialsArn: Output? = null

    private var description: Output? = null

    private var disableExecuteApiEndpoint: Output? = null

    private var disableSchemaValidation: Output? = null

    private var failOnWarnings: Output? = null

    private var name: Output? = null

    private var protocolType: Output? = null

    private var routeKey: Output? = null

    private var routeSelectionExpression: Output? = null

    private var tags: Output>? = null

    private var target: Output? = null

    private var version: Output? = null

    /**
     * @param value An API key selection expression. Supported only for WebSocket APIs. See [API Key Selection Expressions](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-selection-expressions.html#apigateway-websocket-api-apikey-selection-expressions).
     */
    @JvmName("veswgshcecfwcwtm")
    public suspend fun apiKeySelectionExpression(`value`: Output) {
        this.apiKeySelectionExpression = value
    }

    /**
     * @param value Specifies how to interpret the base path of the API during import. Valid values are ``ignore``, ``prepend``, and ``split``. The default value is ``ignore``. To learn more, see [Set the OpenAPI basePath Property](https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-import-api-basePath.html). Supported only for HTTP APIs.
     */
    @JvmName("jpgwnxdwfppbvefj")
    public suspend fun basePath(`value`: Output) {
        this.basePath = value
    }

    /**
     * @param value The OpenAPI definition. Supported only for HTTP APIs. To import an HTTP API, you must specify a ``Body`` or ``BodyS3Location``. If you specify a ``Body`` or ``BodyS3Location``, don't specify CloudFormation resources such as ``AWS::ApiGatewayV2::Authorizer`` or ``AWS::ApiGatewayV2::Route``. API Gateway doesn't support the combination of OpenAPI and CloudFormation resources.
     * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::ApiGatewayV2::Api` for more information about the expected schema for this property.
     */
    @JvmName("jknvyrvntgigtkst")
    public suspend fun body(`value`: Output) {
        this.body = value
    }

    /**
     * @param value The S3 location of an OpenAPI definition. Supported only for HTTP APIs. To import an HTTP API, you must specify a ``Body`` or ``BodyS3Location``. If you specify a ``Body`` or ``BodyS3Location``, don't specify CloudFormation resources such as ``AWS::ApiGatewayV2::Authorizer`` or ``AWS::ApiGatewayV2::Route``. API Gateway doesn't support the combination of OpenAPI and CloudFormation resources.
     */
    @JvmName("ilsgnayygeynqwck")
    public suspend fun bodyS3Location(`value`: Output) {
        this.bodyS3Location = value
    }

    /**
     * @param value A CORS configuration. Supported only for HTTP APIs. See [Configuring CORS](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-cors.html) for more information.
     */
    @JvmName("dblcqnvubbjnlpye")
    public suspend fun corsConfiguration(`value`: Output) {
        this.corsConfiguration = value
    }

    /**
     * @param value This property is part of quick create. It specifies the credentials required for the integration, if any. For a Lambda integration, three options are available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, specify ``arn:aws:iam::*:user/*``. To use resource-based permissions on supported AWS services, specify ``null``. Currently, this property is not used for HTTP integrations. Supported only for HTTP APIs.
     * */
     */
    @JvmName("guybawopsmbviqxd")
    public suspend fun credentialsArn(`value`: Output) {
        this.credentialsArn = value
    }

    /**
     * @param value The description of the API.
     */
    @JvmName("sxancqcwpcuwqcas")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Specifies whether clients can invoke your API by using the default ``execute-api`` endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.
     */
    @JvmName("naecqyyifmuqpvqj")
    public suspend fun disableExecuteApiEndpoint(`value`: Output) {
        this.disableExecuteApiEndpoint = value
    }

    /**
     * @param value Avoid validating models when creating a deployment. Supported only for WebSocket APIs.
     */
    @JvmName("eaavooaflqtmqdhu")
    public suspend fun disableSchemaValidation(`value`: Output) {
        this.disableSchemaValidation = value
    }

    /**
     * @param value Specifies whether to rollback the API creation when a warning is encountered. By default, API creation continues if a warning is encountered.
     */
    @JvmName("prrqansfdbmrxqkj")
    public suspend fun failOnWarnings(`value`: Output) {
        this.failOnWarnings = value
    }

    /**
     * @param value The name of the API. Required unless you specify an OpenAPI definition for ``Body`` or ``S3BodyLocation``.
     */
    @JvmName("phudjqamfqsvesxs")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The API protocol. Valid values are ``WEBSOCKET`` or ``HTTP``. Required unless you specify an OpenAPI definition for ``Body`` or ``S3BodyLocation``.
     */
    @JvmName("aobxfcquqjhjorut")
    public suspend fun protocolType(`value`: Output) {
        this.protocolType = value
    }

    /**
     * @param value This property is part of quick create. If you don't specify a ``routeKey``, a default route of ``$default`` is created. The ``$default`` route acts as a catch-all for any request made to your API, for a particular stage. The ``$default`` route key can't be modified. You can add routes after creating the API, and you can update the route keys of additional routes. Supported only for HTTP APIs.
     */
    @JvmName("wsutallalveeuxyf")
    public suspend fun routeKey(`value`: Output) {
        this.routeKey = value
    }

    /**
     * @param value The route selection expression for the API. For HTTP APIs, the ``routeSelectionExpression`` must be ``${request.method} ${request.path}``. If not provided, this will be the default for HTTP APIs. This property is required for WebSocket APIs.
     */
    @JvmName("olggyhuwqwvklyrp")
    public suspend fun routeSelectionExpression(`value`: Output) {
        this.routeSelectionExpression = value
    }

    /**
     * @param value The collection of tags. Each tag element is associated with a given resource.
     */
    @JvmName("kkmxgowaymoggcfc")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value This property is part of quick create. Quick create produces an API with an integration, a default catch-all route, and a default stage which is configured to automatically deploy changes. For HTTP integrations, specify a fully qualified URL. For Lambda integrations, specify a function ARN. The type of the integration will be HTTP_PROXY or AWS_PROXY, respectively. Supported only for HTTP APIs.
     */
    @JvmName("pbxerveadjlyksii")
    public suspend fun target(`value`: Output) {
        this.target = value
    }

    /**
     * @param value A version identifier for the API.
     */
    @JvmName("hkssfibvccojnqfi")
    public suspend fun version(`value`: Output) {
        this.version = value
    }

    /**
     * @param value An API key selection expression. Supported only for WebSocket APIs. See [API Key Selection Expressions](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-selection-expressions.html#apigateway-websocket-api-apikey-selection-expressions).
     */
    @JvmName("gsaodushdgjvpoeb")
    public suspend fun apiKeySelectionExpression(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.apiKeySelectionExpression = mapped
    }

    /**
     * @param value Specifies how to interpret the base path of the API during import. Valid values are ``ignore``, ``prepend``, and ``split``. The default value is ``ignore``. To learn more, see [Set the OpenAPI basePath Property](https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-import-api-basePath.html). Supported only for HTTP APIs.
     */
    @JvmName("gvwnxvqwanxallwh")
    public suspend fun basePath(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.basePath = mapped
    }

    /**
     * @param value The OpenAPI definition. Supported only for HTTP APIs. To import an HTTP API, you must specify a ``Body`` or ``BodyS3Location``. If you specify a ``Body`` or ``BodyS3Location``, don't specify CloudFormation resources such as ``AWS::ApiGatewayV2::Authorizer`` or ``AWS::ApiGatewayV2::Route``. API Gateway doesn't support the combination of OpenAPI and CloudFormation resources.
     * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::ApiGatewayV2::Api` for more information about the expected schema for this property.
     */
    @JvmName("yoguxkkqnjkqpwbb")
    public suspend fun body(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.body = mapped
    }

    /**
     * @param value The S3 location of an OpenAPI definition. Supported only for HTTP APIs. To import an HTTP API, you must specify a ``Body`` or ``BodyS3Location``. If you specify a ``Body`` or ``BodyS3Location``, don't specify CloudFormation resources such as ``AWS::ApiGatewayV2::Authorizer`` or ``AWS::ApiGatewayV2::Route``. API Gateway doesn't support the combination of OpenAPI and CloudFormation resources.
     */
    @JvmName("ksexlvbaxwjaqgus")
    public suspend fun bodyS3Location(`value`: ApiBodyS3LocationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bodyS3Location = mapped
    }

    /**
     * @param argument The S3 location of an OpenAPI definition. Supported only for HTTP APIs. To import an HTTP API, you must specify a ``Body`` or ``BodyS3Location``. If you specify a ``Body`` or ``BodyS3Location``, don't specify CloudFormation resources such as ``AWS::ApiGatewayV2::Authorizer`` or ``AWS::ApiGatewayV2::Route``. API Gateway doesn't support the combination of OpenAPI and CloudFormation resources.
     */
    @JvmName("fubnitwpnjnjvluu")
    public suspend fun bodyS3Location(argument: suspend ApiBodyS3LocationArgsBuilder.() -> Unit) {
        val toBeMapped = ApiBodyS3LocationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.bodyS3Location = mapped
    }

    /**
     * @param value A CORS configuration. Supported only for HTTP APIs. See [Configuring CORS](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-cors.html) for more information.
     */
    @JvmName("iptejjwbxwxtnwrv")
    public suspend fun corsConfiguration(`value`: ApiCorsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.corsConfiguration = mapped
    }

    /**
     * @param argument A CORS configuration. Supported only for HTTP APIs. See [Configuring CORS](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-cors.html) for more information.
     */
    @JvmName("vnvuyoytkfspbjbb")
    public suspend fun corsConfiguration(argument: suspend ApiCorsArgsBuilder.() -> Unit) {
        val toBeMapped = ApiCorsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.corsConfiguration = mapped
    }

    /**
     * @param value This property is part of quick create. It specifies the credentials required for the integration, if any. For a Lambda integration, three options are available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, specify ``arn:aws:iam::*:user/*``. To use resource-based permissions on supported AWS services, specify ``null``. Currently, this property is not used for HTTP integrations. Supported only for HTTP APIs.
     * */
     */
    @JvmName("qcqtwxtvasfolxxj")
    public suspend fun credentialsArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.credentialsArn = mapped
    }

    /**
     * @param value The description of the API.
     */
    @JvmName("jruwxfptippxnlfc")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Specifies whether clients can invoke your API by using the default ``execute-api`` endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.
     */
    @JvmName("efweweurlkbhdbkr")
    public suspend fun disableExecuteApiEndpoint(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.disableExecuteApiEndpoint = mapped
    }

    /**
     * @param value Avoid validating models when creating a deployment. Supported only for WebSocket APIs.
     */
    @JvmName("leanfikxsnmjobuf")
    public suspend fun disableSchemaValidation(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.disableSchemaValidation = mapped
    }

    /**
     * @param value Specifies whether to rollback the API creation when a warning is encountered. By default, API creation continues if a warning is encountered.
     */
    @JvmName("jrolmlqeeoxokwei")
    public suspend fun failOnWarnings(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.failOnWarnings = mapped
    }

    /**
     * @param value The name of the API. Required unless you specify an OpenAPI definition for ``Body`` or ``S3BodyLocation``.
     */
    @JvmName("hvuavplmfcotbvfb")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The API protocol. Valid values are ``WEBSOCKET`` or ``HTTP``. Required unless you specify an OpenAPI definition for ``Body`` or ``S3BodyLocation``.
     */
    @JvmName("bfwmkudmaglwmkpy")
    public suspend fun protocolType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.protocolType = mapped
    }

    /**
     * @param value This property is part of quick create. If you don't specify a ``routeKey``, a default route of ``$default`` is created. The ``$default`` route acts as a catch-all for any request made to your API, for a particular stage. The ``$default`` route key can't be modified. You can add routes after creating the API, and you can update the route keys of additional routes. Supported only for HTTP APIs.
     */
    @JvmName("aqtcrywspvkidjxc")
    public suspend fun routeKey(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.routeKey = mapped
    }

    /**
     * @param value The route selection expression for the API. For HTTP APIs, the ``routeSelectionExpression`` must be ``${request.method} ${request.path}``. If not provided, this will be the default for HTTP APIs. This property is required for WebSocket APIs.
     */
    @JvmName("fpnpusqiwygqcecr")
    public suspend fun routeSelectionExpression(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.routeSelectionExpression = mapped
    }

    /**
     * @param value The collection of tags. Each tag element is associated with a given resource.
     */
    @JvmName("avhsvdiyckuipqkd")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values The collection of tags. Each tag element is associated with a given resource.
     */
    @JvmName("ndygotuwdssfrybe")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value This property is part of quick create. Quick create produces an API with an integration, a default catch-all route, and a default stage which is configured to automatically deploy changes. For HTTP integrations, specify a fully qualified URL. For Lambda integrations, specify a function ARN. The type of the integration will be HTTP_PROXY or AWS_PROXY, respectively. Supported only for HTTP APIs.
     */
    @JvmName("yybbxnhvcenbnieb")
    public suspend fun target(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.target = mapped
    }

    /**
     * @param value A version identifier for the API.
     */
    @JvmName("gpqiwjetiutltair")
    public suspend fun version(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.version = mapped
    }

    internal fun build(): ApiArgs = ApiArgs(
        apiKeySelectionExpression = apiKeySelectionExpression,
        basePath = basePath,
        body = body,
        bodyS3Location = bodyS3Location,
        corsConfiguration = corsConfiguration,
        credentialsArn = credentialsArn,
        description = description,
        disableExecuteApiEndpoint = disableExecuteApiEndpoint,
        disableSchemaValidation = disableSchemaValidation,
        failOnWarnings = failOnWarnings,
        name = name,
        protocolType = protocolType,
        routeKey = routeKey,
        routeSelectionExpression = routeSelectionExpression,
        tags = tags,
        target = target,
        version = version,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy