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

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

package com.pulumi.awsnative.apigatewayv2.kotlin

import com.pulumi.awsnative.apigatewayv2.Apigatewayv2Functions.getApiMappingPlain
import com.pulumi.awsnative.apigatewayv2.Apigatewayv2Functions.getApiPlain
import com.pulumi.awsnative.apigatewayv2.Apigatewayv2Functions.getAuthorizerPlain
import com.pulumi.awsnative.apigatewayv2.Apigatewayv2Functions.getDeploymentPlain
import com.pulumi.awsnative.apigatewayv2.Apigatewayv2Functions.getDomainNamePlain
import com.pulumi.awsnative.apigatewayv2.Apigatewayv2Functions.getIntegrationPlain
import com.pulumi.awsnative.apigatewayv2.Apigatewayv2Functions.getIntegrationResponsePlain
import com.pulumi.awsnative.apigatewayv2.Apigatewayv2Functions.getModelPlain
import com.pulumi.awsnative.apigatewayv2.Apigatewayv2Functions.getRoutePlain
import com.pulumi.awsnative.apigatewayv2.Apigatewayv2Functions.getRouteResponsePlain
import com.pulumi.awsnative.apigatewayv2.Apigatewayv2Functions.getVpcLinkPlain
import com.pulumi.awsnative.apigatewayv2.kotlin.inputs.GetApiMappingPlainArgs
import com.pulumi.awsnative.apigatewayv2.kotlin.inputs.GetApiMappingPlainArgsBuilder
import com.pulumi.awsnative.apigatewayv2.kotlin.inputs.GetApiPlainArgs
import com.pulumi.awsnative.apigatewayv2.kotlin.inputs.GetApiPlainArgsBuilder
import com.pulumi.awsnative.apigatewayv2.kotlin.inputs.GetAuthorizerPlainArgs
import com.pulumi.awsnative.apigatewayv2.kotlin.inputs.GetAuthorizerPlainArgsBuilder
import com.pulumi.awsnative.apigatewayv2.kotlin.inputs.GetDeploymentPlainArgs
import com.pulumi.awsnative.apigatewayv2.kotlin.inputs.GetDeploymentPlainArgsBuilder
import com.pulumi.awsnative.apigatewayv2.kotlin.inputs.GetDomainNamePlainArgs
import com.pulumi.awsnative.apigatewayv2.kotlin.inputs.GetDomainNamePlainArgsBuilder
import com.pulumi.awsnative.apigatewayv2.kotlin.inputs.GetIntegrationPlainArgs
import com.pulumi.awsnative.apigatewayv2.kotlin.inputs.GetIntegrationPlainArgsBuilder
import com.pulumi.awsnative.apigatewayv2.kotlin.inputs.GetIntegrationResponsePlainArgs
import com.pulumi.awsnative.apigatewayv2.kotlin.inputs.GetIntegrationResponsePlainArgsBuilder
import com.pulumi.awsnative.apigatewayv2.kotlin.inputs.GetModelPlainArgs
import com.pulumi.awsnative.apigatewayv2.kotlin.inputs.GetModelPlainArgsBuilder
import com.pulumi.awsnative.apigatewayv2.kotlin.inputs.GetRoutePlainArgs
import com.pulumi.awsnative.apigatewayv2.kotlin.inputs.GetRoutePlainArgsBuilder
import com.pulumi.awsnative.apigatewayv2.kotlin.inputs.GetRouteResponsePlainArgs
import com.pulumi.awsnative.apigatewayv2.kotlin.inputs.GetRouteResponsePlainArgsBuilder
import com.pulumi.awsnative.apigatewayv2.kotlin.inputs.GetVpcLinkPlainArgs
import com.pulumi.awsnative.apigatewayv2.kotlin.inputs.GetVpcLinkPlainArgsBuilder
import com.pulumi.awsnative.apigatewayv2.kotlin.outputs.GetApiMappingResult
import com.pulumi.awsnative.apigatewayv2.kotlin.outputs.GetApiResult
import com.pulumi.awsnative.apigatewayv2.kotlin.outputs.GetAuthorizerResult
import com.pulumi.awsnative.apigatewayv2.kotlin.outputs.GetDeploymentResult
import com.pulumi.awsnative.apigatewayv2.kotlin.outputs.GetDomainNameResult
import com.pulumi.awsnative.apigatewayv2.kotlin.outputs.GetIntegrationResponseResult
import com.pulumi.awsnative.apigatewayv2.kotlin.outputs.GetIntegrationResult
import com.pulumi.awsnative.apigatewayv2.kotlin.outputs.GetModelResult
import com.pulumi.awsnative.apigatewayv2.kotlin.outputs.GetRouteResponseResult
import com.pulumi.awsnative.apigatewayv2.kotlin.outputs.GetRouteResult
import com.pulumi.awsnative.apigatewayv2.kotlin.outputs.GetVpcLinkResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.apigatewayv2.kotlin.outputs.GetApiMappingResult.Companion.toKotlin as getApiMappingResultToKotlin
import com.pulumi.awsnative.apigatewayv2.kotlin.outputs.GetApiResult.Companion.toKotlin as getApiResultToKotlin
import com.pulumi.awsnative.apigatewayv2.kotlin.outputs.GetAuthorizerResult.Companion.toKotlin as getAuthorizerResultToKotlin
import com.pulumi.awsnative.apigatewayv2.kotlin.outputs.GetDeploymentResult.Companion.toKotlin as getDeploymentResultToKotlin
import com.pulumi.awsnative.apigatewayv2.kotlin.outputs.GetDomainNameResult.Companion.toKotlin as getDomainNameResultToKotlin
import com.pulumi.awsnative.apigatewayv2.kotlin.outputs.GetIntegrationResponseResult.Companion.toKotlin as getIntegrationResponseResultToKotlin
import com.pulumi.awsnative.apigatewayv2.kotlin.outputs.GetIntegrationResult.Companion.toKotlin as getIntegrationResultToKotlin
import com.pulumi.awsnative.apigatewayv2.kotlin.outputs.GetModelResult.Companion.toKotlin as getModelResultToKotlin
import com.pulumi.awsnative.apigatewayv2.kotlin.outputs.GetRouteResponseResult.Companion.toKotlin as getRouteResponseResultToKotlin
import com.pulumi.awsnative.apigatewayv2.kotlin.outputs.GetRouteResult.Companion.toKotlin as getRouteResultToKotlin
import com.pulumi.awsnative.apigatewayv2.kotlin.outputs.GetVpcLinkResult.Companion.toKotlin as getVpcLinkResultToKotlin

public object Apigatewayv2Functions {
    /**
     * 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.*
     * @param argument null
     * @return null
     */
    public suspend fun getApi(argument: GetApiPlainArgs): GetApiResult =
        getApiResultToKotlin(getApiPlain(argument.toJava()).await())

    /**
     * @see [getApi].
     * @param apiId The API identifier.
     * @return null
     */
    public suspend fun getApi(apiId: String): GetApiResult {
        val argument = GetApiPlainArgs(
            apiId = apiId,
        )
        return getApiResultToKotlin(getApiPlain(argument.toJava()).await())
    }

    /**
     * @see [getApi].
     * @param argument Builder for [com.pulumi.awsnative.apigatewayv2.kotlin.inputs.GetApiPlainArgs].
     * @return null
     */
    public suspend fun getApi(argument: suspend GetApiPlainArgsBuilder.() -> Unit): GetApiResult {
        val builder = GetApiPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getApiResultToKotlin(getApiPlain(builtArgument.toJava()).await())
    }

    /**
     * The ``AWS::ApiGatewayV2::ApiMapping`` resource contains an API mapping. An API mapping relates a path of your custom domain name to a stage of your API. A custom domain name can have multiple API mappings, but the paths can't overlap. A custom domain can map only to APIs of the same protocol type. For more information, see [CreateApiMapping](https://docs.aws.amazon.com/apigatewayv2/latest/api-reference/domainnames-domainname-apimappings.html#CreateApiMapping) in the *Amazon API Gateway V2 API Reference*.
     * @param argument null
     * @return null
     */
    public suspend fun getApiMapping(argument: GetApiMappingPlainArgs): GetApiMappingResult =
        getApiMappingResultToKotlin(getApiMappingPlain(argument.toJava()).await())

    /**
     * @see [getApiMapping].
     * @param apiMappingId The API mapping resource ID.
     * @param domainName The domain name.
     * @return null
     */
    public suspend fun getApiMapping(apiMappingId: String, domainName: String): GetApiMappingResult {
        val argument = GetApiMappingPlainArgs(
            apiMappingId = apiMappingId,
            domainName = domainName,
        )
        return getApiMappingResultToKotlin(getApiMappingPlain(argument.toJava()).await())
    }

    /**
     * @see [getApiMapping].
     * @param argument Builder for [com.pulumi.awsnative.apigatewayv2.kotlin.inputs.GetApiMappingPlainArgs].
     * @return null
     */
    public suspend fun getApiMapping(argument: suspend GetApiMappingPlainArgsBuilder.() -> Unit): GetApiMappingResult {
        val builder = GetApiMappingPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getApiMappingResultToKotlin(getApiMappingPlain(builtArgument.toJava()).await())
    }

    /**
     * The ``AWS::ApiGatewayV2::Authorizer`` resource creates an authorizer for a WebSocket API or an HTTP API. To learn more, see [Controlling and managing access to a WebSocket API in API Gateway](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-control-access.html) and [Controlling and managing access to an HTTP API in API Gateway](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-access-control.html) in the *API Gateway Developer Guide*.
     * @param argument null
     * @return null
     */
    public suspend fun getAuthorizer(argument: GetAuthorizerPlainArgs): GetAuthorizerResult =
        getAuthorizerResultToKotlin(getAuthorizerPlain(argument.toJava()).await())

    /**
     * @see [getAuthorizer].
     * @param apiId The API identifier.
     * @param authorizerId The authorizer ID.
     * @return null
     */
    public suspend fun getAuthorizer(apiId: String, authorizerId: String): GetAuthorizerResult {
        val argument = GetAuthorizerPlainArgs(
            apiId = apiId,
            authorizerId = authorizerId,
        )
        return getAuthorizerResultToKotlin(getAuthorizerPlain(argument.toJava()).await())
    }

    /**
     * @see [getAuthorizer].
     * @param argument Builder for [com.pulumi.awsnative.apigatewayv2.kotlin.inputs.GetAuthorizerPlainArgs].
     * @return null
     */
    public suspend fun getAuthorizer(argument: suspend GetAuthorizerPlainArgsBuilder.() -> Unit): GetAuthorizerResult {
        val builder = GetAuthorizerPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getAuthorizerResultToKotlin(getAuthorizerPlain(builtArgument.toJava()).await())
    }

    /**
     * The ``AWS::ApiGatewayV2::Deployment`` resource creates a deployment for an API.
     * @param argument null
     * @return null
     */
    public suspend fun getDeployment(argument: GetDeploymentPlainArgs): GetDeploymentResult =
        getDeploymentResultToKotlin(getDeploymentPlain(argument.toJava()).await())

    /**
     * @see [getDeployment].
     * @param apiId The API identifier.
     * @param deploymentId The deployment ID.
     * @return null
     */
    public suspend fun getDeployment(apiId: String, deploymentId: String): GetDeploymentResult {
        val argument = GetDeploymentPlainArgs(
            apiId = apiId,
            deploymentId = deploymentId,
        )
        return getDeploymentResultToKotlin(getDeploymentPlain(argument.toJava()).await())
    }

    /**
     * @see [getDeployment].
     * @param argument Builder for [com.pulumi.awsnative.apigatewayv2.kotlin.inputs.GetDeploymentPlainArgs].
     * @return null
     */
    public suspend fun getDeployment(argument: suspend GetDeploymentPlainArgsBuilder.() -> Unit): GetDeploymentResult {
        val builder = GetDeploymentPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getDeploymentResultToKotlin(getDeploymentPlain(builtArgument.toJava()).await())
    }

    /**
     * The ``AWS::ApiGatewayV2::DomainName`` resource specifies a custom domain name for your API in Amazon API Gateway (API Gateway).
     *  You can use a custom domain name to provide a URL that's more intuitive and easier to recall. For more information about using custom domain names, see [Set up Custom Domain Name for an API in API Gateway](https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html) in the *API Gateway Developer Guide*.
     * @param argument null
     * @return null
     */
    public suspend fun getDomainName(argument: GetDomainNamePlainArgs): GetDomainNameResult =
        getDomainNameResultToKotlin(getDomainNamePlain(argument.toJava()).await())

    /**
     * @see [getDomainName].
     * @param domainName The custom domain name for your API in Amazon API Gateway. Uppercase letters are not supported.
     * @return null
     */
    public suspend fun getDomainName(domainName: String): GetDomainNameResult {
        val argument = GetDomainNamePlainArgs(
            domainName = domainName,
        )
        return getDomainNameResultToKotlin(getDomainNamePlain(argument.toJava()).await())
    }

    /**
     * @see [getDomainName].
     * @param argument Builder for [com.pulumi.awsnative.apigatewayv2.kotlin.inputs.GetDomainNamePlainArgs].
     * @return null
     */
    public suspend fun getDomainName(argument: suspend GetDomainNamePlainArgsBuilder.() -> Unit): GetDomainNameResult {
        val builder = GetDomainNamePlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getDomainNameResultToKotlin(getDomainNamePlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::ApiGatewayV2::Integration
     * @param argument null
     * @return null
     */
    public suspend fun getIntegration(argument: GetIntegrationPlainArgs): GetIntegrationResult =
        getIntegrationResultToKotlin(getIntegrationPlain(argument.toJava()).await())

    /**
     * @see [getIntegration].
     * @param id The identifier.
     * @return null
     */
    public suspend fun getIntegration(id: String): GetIntegrationResult {
        val argument = GetIntegrationPlainArgs(
            id = id,
        )
        return getIntegrationResultToKotlin(getIntegrationPlain(argument.toJava()).await())
    }

    /**
     * @see [getIntegration].
     * @param argument Builder for [com.pulumi.awsnative.apigatewayv2.kotlin.inputs.GetIntegrationPlainArgs].
     * @return null
     */
    public suspend fun getIntegration(argument: suspend GetIntegrationPlainArgsBuilder.() -> Unit): GetIntegrationResult {
        val builder = GetIntegrationPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getIntegrationResultToKotlin(getIntegrationPlain(builtArgument.toJava()).await())
    }

    /**
     * The ``AWS::ApiGatewayV2::IntegrationResponse`` resource updates an integration response for an WebSocket API. For more information, see [Set up WebSocket API Integration Responses in API Gateway](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-integration-responses.html) in the *API Gateway Developer Guide*.
     * @param argument null
     * @return null
     */
    public suspend fun getIntegrationResponse(argument: GetIntegrationResponsePlainArgs): GetIntegrationResponseResult =
        getIntegrationResponseResultToKotlin(getIntegrationResponsePlain(argument.toJava()).await())

    /**
     * @see [getIntegrationResponse].
     * @param apiId The API identifier.
     * @param integrationId The integration ID.
     * @param integrationResponseId The integration response ID.
     * @return null
     */
    public suspend fun getIntegrationResponse(
        apiId: String,
        integrationId: String,
        integrationResponseId: String,
    ): GetIntegrationResponseResult {
        val argument = GetIntegrationResponsePlainArgs(
            apiId = apiId,
            integrationId = integrationId,
            integrationResponseId = integrationResponseId,
        )
        return getIntegrationResponseResultToKotlin(getIntegrationResponsePlain(argument.toJava()).await())
    }

    /**
     * @see [getIntegrationResponse].
     * @param argument Builder for [com.pulumi.awsnative.apigatewayv2.kotlin.inputs.GetIntegrationResponsePlainArgs].
     * @return null
     */
    public suspend fun getIntegrationResponse(argument: suspend GetIntegrationResponsePlainArgsBuilder.() -> Unit): GetIntegrationResponseResult {
        val builder = GetIntegrationResponsePlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getIntegrationResponseResultToKotlin(getIntegrationResponsePlain(builtArgument.toJava()).await())
    }

    /**
     * The ``AWS::ApiGatewayV2::Model`` resource updates data model for a WebSocket API. For more information, see [Model Selection Expressions](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-selection-expressions.html#apigateway-websocket-api-model-selection-expressions) in the *API Gateway Developer Guide*.
     * @param argument null
     * @return null
     */
    public suspend fun getModel(argument: GetModelPlainArgs): GetModelResult =
        getModelResultToKotlin(getModelPlain(argument.toJava()).await())

    /**
     * @see [getModel].
     * @param apiId The API identifier.
     * @param modelId The model ID.
     * @return null
     */
    public suspend fun getModel(apiId: String, modelId: String): GetModelResult {
        val argument = GetModelPlainArgs(
            apiId = apiId,
            modelId = modelId,
        )
        return getModelResultToKotlin(getModelPlain(argument.toJava()).await())
    }

    /**
     * @see [getModel].
     * @param argument Builder for [com.pulumi.awsnative.apigatewayv2.kotlin.inputs.GetModelPlainArgs].
     * @return null
     */
    public suspend fun getModel(argument: suspend GetModelPlainArgsBuilder.() -> Unit): GetModelResult {
        val builder = GetModelPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getModelResultToKotlin(getModelPlain(builtArgument.toJava()).await())
    }

    /**
     * The ``AWS::ApiGatewayV2::Route`` resource creates a route for an API.
     * @param argument null
     * @return null
     */
    public suspend fun getRoute(argument: GetRoutePlainArgs): GetRouteResult =
        getRouteResultToKotlin(getRoutePlain(argument.toJava()).await())

    /**
     * @see [getRoute].
     * @param apiId The API identifier.
     * @param routeId The route ID.
     * @return null
     */
    public suspend fun getRoute(apiId: String, routeId: String): GetRouteResult {
        val argument = GetRoutePlainArgs(
            apiId = apiId,
            routeId = routeId,
        )
        return getRouteResultToKotlin(getRoutePlain(argument.toJava()).await())
    }

    /**
     * @see [getRoute].
     * @param argument Builder for [com.pulumi.awsnative.apigatewayv2.kotlin.inputs.GetRoutePlainArgs].
     * @return null
     */
    public suspend fun getRoute(argument: suspend GetRoutePlainArgsBuilder.() -> Unit): GetRouteResult {
        val builder = GetRoutePlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getRouteResultToKotlin(getRoutePlain(builtArgument.toJava()).await())
    }

    /**
     * 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*.
     * @param argument null
     * @return null
     */
    public suspend fun getRouteResponse(argument: GetRouteResponsePlainArgs): GetRouteResponseResult =
        getRouteResponseResultToKotlin(getRouteResponsePlain(argument.toJava()).await())

    /**
     * @see [getRouteResponse].
     * @param apiId The API identifier.
     * @param routeId The route ID.
     * @param routeResponseId The route response ID.
     * @return null
     */
    public suspend fun getRouteResponse(
        apiId: String,
        routeId: String,
        routeResponseId: String,
    ): GetRouteResponseResult {
        val argument = GetRouteResponsePlainArgs(
            apiId = apiId,
            routeId = routeId,
            routeResponseId = routeResponseId,
        )
        return getRouteResponseResultToKotlin(getRouteResponsePlain(argument.toJava()).await())
    }

    /**
     * @see [getRouteResponse].
     * @param argument Builder for [com.pulumi.awsnative.apigatewayv2.kotlin.inputs.GetRouteResponsePlainArgs].
     * @return null
     */
    public suspend fun getRouteResponse(argument: suspend GetRouteResponsePlainArgsBuilder.() -> Unit): GetRouteResponseResult {
        val builder = GetRouteResponsePlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getRouteResponseResultToKotlin(getRouteResponsePlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::ApiGatewayV2::VpcLink
     * @param argument null
     * @return null
     */
    public suspend fun getVpcLink(argument: GetVpcLinkPlainArgs): GetVpcLinkResult =
        getVpcLinkResultToKotlin(getVpcLinkPlain(argument.toJava()).await())

    /**
     * @see [getVpcLink].
     * @param vpcLinkId The VPC link ID.
     * @return null
     */
    public suspend fun getVpcLink(vpcLinkId: String): GetVpcLinkResult {
        val argument = GetVpcLinkPlainArgs(
            vpcLinkId = vpcLinkId,
        )
        return getVpcLinkResultToKotlin(getVpcLinkPlain(argument.toJava()).await())
    }

    /**
     * @see [getVpcLink].
     * @param argument Builder for [com.pulumi.awsnative.apigatewayv2.kotlin.inputs.GetVpcLinkPlainArgs].
     * @return null
     */
    public suspend fun getVpcLink(argument: suspend GetVpcLinkPlainArgsBuilder.() -> Unit): GetVpcLinkResult {
        val builder = GetVpcLinkPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getVpcLinkResultToKotlin(getVpcLinkPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy