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

com.pulumi.awsnative.location.kotlin.LocationFunctions.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.location.kotlin

import com.pulumi.awsnative.location.LocationFunctions.getApiKeyPlain
import com.pulumi.awsnative.location.LocationFunctions.getGeofenceCollectionPlain
import com.pulumi.awsnative.location.LocationFunctions.getMapPlain
import com.pulumi.awsnative.location.LocationFunctions.getPlaceIndexPlain
import com.pulumi.awsnative.location.LocationFunctions.getRouteCalculatorPlain
import com.pulumi.awsnative.location.LocationFunctions.getTrackerPlain
import com.pulumi.awsnative.location.kotlin.inputs.GetApiKeyPlainArgs
import com.pulumi.awsnative.location.kotlin.inputs.GetApiKeyPlainArgsBuilder
import com.pulumi.awsnative.location.kotlin.inputs.GetGeofenceCollectionPlainArgs
import com.pulumi.awsnative.location.kotlin.inputs.GetGeofenceCollectionPlainArgsBuilder
import com.pulumi.awsnative.location.kotlin.inputs.GetMapPlainArgs
import com.pulumi.awsnative.location.kotlin.inputs.GetMapPlainArgsBuilder
import com.pulumi.awsnative.location.kotlin.inputs.GetPlaceIndexPlainArgs
import com.pulumi.awsnative.location.kotlin.inputs.GetPlaceIndexPlainArgsBuilder
import com.pulumi.awsnative.location.kotlin.inputs.GetRouteCalculatorPlainArgs
import com.pulumi.awsnative.location.kotlin.inputs.GetRouteCalculatorPlainArgsBuilder
import com.pulumi.awsnative.location.kotlin.inputs.GetTrackerPlainArgs
import com.pulumi.awsnative.location.kotlin.inputs.GetTrackerPlainArgsBuilder
import com.pulumi.awsnative.location.kotlin.outputs.GetApiKeyResult
import com.pulumi.awsnative.location.kotlin.outputs.GetGeofenceCollectionResult
import com.pulumi.awsnative.location.kotlin.outputs.GetMapResult
import com.pulumi.awsnative.location.kotlin.outputs.GetPlaceIndexResult
import com.pulumi.awsnative.location.kotlin.outputs.GetRouteCalculatorResult
import com.pulumi.awsnative.location.kotlin.outputs.GetTrackerResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.location.kotlin.outputs.GetApiKeyResult.Companion.toKotlin as getApiKeyResultToKotlin
import com.pulumi.awsnative.location.kotlin.outputs.GetGeofenceCollectionResult.Companion.toKotlin as getGeofenceCollectionResultToKotlin
import com.pulumi.awsnative.location.kotlin.outputs.GetMapResult.Companion.toKotlin as getMapResultToKotlin
import com.pulumi.awsnative.location.kotlin.outputs.GetPlaceIndexResult.Companion.toKotlin as getPlaceIndexResultToKotlin
import com.pulumi.awsnative.location.kotlin.outputs.GetRouteCalculatorResult.Companion.toKotlin as getRouteCalculatorResultToKotlin
import com.pulumi.awsnative.location.kotlin.outputs.GetTrackerResult.Companion.toKotlin as getTrackerResultToKotlin

public object LocationFunctions {
    /**
     * Definition of AWS::Location::APIKey Resource Type
     * @param argument null
     * @return null
     */
    public suspend fun getApiKey(argument: GetApiKeyPlainArgs): GetApiKeyResult =
        getApiKeyResultToKotlin(getApiKeyPlain(argument.toJava()).await())

    /**
     * @see [getApiKey].
     * @param keyName A custom name for the API key resource.
     * Requirements:
     * - Contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_).
     * - Must be a unique API key name.
     * - No spaces allowed. For example, `ExampleAPIKey` .
     * @return null
     */
    public suspend fun getApiKey(keyName: String): GetApiKeyResult {
        val argument = GetApiKeyPlainArgs(
            keyName = keyName,
        )
        return getApiKeyResultToKotlin(getApiKeyPlain(argument.toJava()).await())
    }

    /**
     * @see [getApiKey].
     * @param argument Builder for [com.pulumi.awsnative.location.kotlin.inputs.GetApiKeyPlainArgs].
     * @return null
     */
    public suspend fun getApiKey(argument: suspend GetApiKeyPlainArgsBuilder.() -> Unit): GetApiKeyResult {
        val builder = GetApiKeyPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getApiKeyResultToKotlin(getApiKeyPlain(builtArgument.toJava()).await())
    }

    /**
     * Definition of AWS::Location::GeofenceCollection Resource Type
     * @param argument null
     * @return null
     */
    public suspend fun getGeofenceCollection(argument: GetGeofenceCollectionPlainArgs): GetGeofenceCollectionResult =
        getGeofenceCollectionResultToKotlin(getGeofenceCollectionPlain(argument.toJava()).await())

    /**
     * @see [getGeofenceCollection].
     * @param collectionName A custom name for the geofence collection.
     * Requirements:
     * - Contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_).
     * - Must be a unique geofence collection name.
     * - No spaces allowed. For example, `ExampleGeofenceCollection` .
     * @return null
     */
    public suspend fun getGeofenceCollection(collectionName: String): GetGeofenceCollectionResult {
        val argument = GetGeofenceCollectionPlainArgs(
            collectionName = collectionName,
        )
        return getGeofenceCollectionResultToKotlin(getGeofenceCollectionPlain(argument.toJava()).await())
    }

    /**
     * @see [getGeofenceCollection].
     * @param argument Builder for [com.pulumi.awsnative.location.kotlin.inputs.GetGeofenceCollectionPlainArgs].
     * @return null
     */
    public suspend fun getGeofenceCollection(argument: suspend GetGeofenceCollectionPlainArgsBuilder.() -> Unit): GetGeofenceCollectionResult {
        val builder = GetGeofenceCollectionPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getGeofenceCollectionResultToKotlin(getGeofenceCollectionPlain(builtArgument.toJava()).await())
    }

    /**
     * Definition of AWS::Location::Map Resource Type
     * @param argument null
     * @return null
     */
    public suspend fun getMap(argument: GetMapPlainArgs): GetMapResult =
        getMapResultToKotlin(getMapPlain(argument.toJava()).await())

    /**
     * @see [getMap].
     * @param mapName The name for the map resource.
     * Requirements:
     * - Must contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_).
     * - Must be a unique map resource name.
     * - No spaces allowed. For example, `ExampleMap` .
     * @return null
     */
    public suspend fun getMap(mapName: String): GetMapResult {
        val argument = GetMapPlainArgs(
            mapName = mapName,
        )
        return getMapResultToKotlin(getMapPlain(argument.toJava()).await())
    }

    /**
     * @see [getMap].
     * @param argument Builder for [com.pulumi.awsnative.location.kotlin.inputs.GetMapPlainArgs].
     * @return null
     */
    public suspend fun getMap(argument: suspend GetMapPlainArgsBuilder.() -> Unit): GetMapResult {
        val builder = GetMapPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getMapResultToKotlin(getMapPlain(builtArgument.toJava()).await())
    }

    /**
     * Definition of AWS::Location::PlaceIndex Resource Type
     * @param argument null
     * @return null
     */
    public suspend fun getPlaceIndex(argument: GetPlaceIndexPlainArgs): GetPlaceIndexResult =
        getPlaceIndexResultToKotlin(getPlaceIndexPlain(argument.toJava()).await())

    /**
     * @see [getPlaceIndex].
     * @param indexName The name of the place index resource.
     * Requirements:
     * - Contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_).
     * - Must be a unique place index resource name.
     * - No spaces allowed. For example, `ExamplePlaceIndex` .
     * @return null
     */
    public suspend fun getPlaceIndex(indexName: String): GetPlaceIndexResult {
        val argument = GetPlaceIndexPlainArgs(
            indexName = indexName,
        )
        return getPlaceIndexResultToKotlin(getPlaceIndexPlain(argument.toJava()).await())
    }

    /**
     * @see [getPlaceIndex].
     * @param argument Builder for [com.pulumi.awsnative.location.kotlin.inputs.GetPlaceIndexPlainArgs].
     * @return null
     */
    public suspend fun getPlaceIndex(argument: suspend GetPlaceIndexPlainArgsBuilder.() -> Unit): GetPlaceIndexResult {
        val builder = GetPlaceIndexPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getPlaceIndexResultToKotlin(getPlaceIndexPlain(builtArgument.toJava()).await())
    }

    /**
     * Definition of AWS::Location::RouteCalculator Resource Type
     * @param argument null
     * @return null
     */
    public suspend fun getRouteCalculator(argument: GetRouteCalculatorPlainArgs): GetRouteCalculatorResult =
        getRouteCalculatorResultToKotlin(getRouteCalculatorPlain(argument.toJava()).await())

    /**
     * @see [getRouteCalculator].
     * @param calculatorName The name of the route calculator resource.
     * Requirements:
     * - Can use alphanumeric characters (A–Z, a–z, 0–9) , hyphens (-), periods (.), and underscores (_).
     * - Must be a unique Route calculator resource name.
     * - No spaces allowed. For example, `ExampleRouteCalculator` .
     * @return null
     */
    public suspend fun getRouteCalculator(calculatorName: String): GetRouteCalculatorResult {
        val argument = GetRouteCalculatorPlainArgs(
            calculatorName = calculatorName,
        )
        return getRouteCalculatorResultToKotlin(getRouteCalculatorPlain(argument.toJava()).await())
    }

    /**
     * @see [getRouteCalculator].
     * @param argument Builder for [com.pulumi.awsnative.location.kotlin.inputs.GetRouteCalculatorPlainArgs].
     * @return null
     */
    public suspend fun getRouteCalculator(argument: suspend GetRouteCalculatorPlainArgsBuilder.() -> Unit): GetRouteCalculatorResult {
        val builder = GetRouteCalculatorPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getRouteCalculatorResultToKotlin(getRouteCalculatorPlain(builtArgument.toJava()).await())
    }

    /**
     * Definition of AWS::Location::Tracker Resource Type
     * @param argument null
     * @return null
     */
    public suspend fun getTracker(argument: GetTrackerPlainArgs): GetTrackerResult =
        getTrackerResultToKotlin(getTrackerPlain(argument.toJava()).await())

    /**
     * @see [getTracker].
     * @param trackerName The name for the tracker resource.
     * Requirements:
     * - Contain only alphanumeric characters (A-Z, a-z, 0-9) , hyphens (-), periods (.), and underscores (_).
     * - Must be a unique tracker resource name.
     * - No spaces allowed. For example, `ExampleTracker` .
     * @return null
     */
    public suspend fun getTracker(trackerName: String): GetTrackerResult {
        val argument = GetTrackerPlainArgs(
            trackerName = trackerName,
        )
        return getTrackerResultToKotlin(getTrackerPlain(argument.toJava()).await())
    }

    /**
     * @see [getTracker].
     * @param argument Builder for [com.pulumi.awsnative.location.kotlin.inputs.GetTrackerPlainArgs].
     * @return null
     */
    public suspend fun getTracker(argument: suspend GetTrackerPlainArgsBuilder.() -> Unit): GetTrackerResult {
        val builder = GetTrackerPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getTrackerResultToKotlin(getTrackerPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy