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

com.pulumi.azure.mixedreality.kotlin.MixedrealityFunctions.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.mixedreality.kotlin

import com.pulumi.azure.mixedreality.MixedrealityFunctions.getSpatialAnchorsAccountPlain
import com.pulumi.azure.mixedreality.kotlin.inputs.GetSpatialAnchorsAccountPlainArgs
import com.pulumi.azure.mixedreality.kotlin.inputs.GetSpatialAnchorsAccountPlainArgsBuilder
import com.pulumi.azure.mixedreality.kotlin.outputs.GetSpatialAnchorsAccountResult
import com.pulumi.azure.mixedreality.kotlin.outputs.GetSpatialAnchorsAccountResult.Companion.toKotlin
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit

public object MixedrealityFunctions {
    /**
     * Get information about an Azure Spatial Anchors Account.
     * ## Example Usage
     * 
     * ```typescript
     * import * as pulumi from "@pulumi/pulumi";
     * import * as azure from "@pulumi/azure";
     * const example = azure.mixedreality.getSpatialAnchorsAccount({
     *     name: "example",
     *     resourceGroupName: exampleAzurermResourceGroup.name,
     * });
     * export const accountDomain = accountDomainAzurermSpatialAnchorsAccount;
     * ```
     * ```python
     * import pulumi
     * import pulumi_azure as azure
     * example = azure.mixedreality.get_spatial_anchors_account(name="example",
     *     resource_group_name=example_azurerm_resource_group["name"])
     * pulumi.export("accountDomain", account_domain_azurerm_spatial_anchors_account)
     * ```
     * ```csharp
     * using System.Collections.Generic;
     * using System.Linq;
     * using Pulumi;
     * using Azure = Pulumi.Azure;
     * return await Deployment.RunAsync(() =>
     * {
     *     var example = Azure.MixedReality.GetSpatialAnchorsAccount.Invoke(new()
     *     {
     *         Name = "example",
     *         ResourceGroupName = exampleAzurermResourceGroup.Name,
     *     });
     *     return new Dictionary
     *     {
     *         ["accountDomain"] = accountDomainAzurermSpatialAnchorsAccount,
     *     };
     * });
     * ```
     * ```go
     * package main
     * import (
     * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/mixedreality"
     * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
     * )
     * func main() {
     * 	pulumi.Run(func(ctx *pulumi.Context) error {
     * 		_, err := mixedreality.LookupSpatialAnchorsAccount(ctx, &mixedreality.LookupSpatialAnchorsAccountArgs{
     * 			Name:              "example",
     * 			ResourceGroupName: exampleAzurermResourceGroup.Name,
     * 		}, nil)
     * 		if err != nil {
     * 			return err
     * 		}
     * 		ctx.Export("accountDomain", accountDomainAzurermSpatialAnchorsAccount)
     * 		return nil
     * 	})
     * }
     * ```
     * ```java
     * package generated_program;
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.mixedreality.MixedrealityFunctions;
     * import com.pulumi.azure.mixedreality.inputs.GetSpatialAnchorsAccountArgs;
     * import java.util.List;
     * import java.util.ArrayList;
     * import java.util.Map;
     * import java.io.File;
     * import java.nio.file.Files;
     * import java.nio.file.Paths;
     * public class App {
     *     public static void main(String[] args) {
     *         Pulumi.run(App::stack);
     *     }
     *     public static void stack(Context ctx) {
     *         final var example = MixedrealityFunctions.getSpatialAnchorsAccount(GetSpatialAnchorsAccountArgs.builder()
     *             .name("example")
     *             .resourceGroupName(exampleAzurermResourceGroup.name())
     *             .build());
     *         ctx.export("accountDomain", accountDomainAzurermSpatialAnchorsAccount);
     *     }
     * }
     * ```
     * ```yaml
     * variables:
     *   example:
     *     fn::invoke:
     *       Function: azure:mixedreality:getSpatialAnchorsAccount
     *       Arguments:
     *         name: example
     *         resourceGroupName: ${exampleAzurermResourceGroup.name}
     * outputs:
     *   accountDomain: ${accountDomainAzurermSpatialAnchorsAccount}
     * ```
     * 
     * @param argument A collection of arguments for invoking getSpatialAnchorsAccount.
     * @return A collection of values returned by getSpatialAnchorsAccount.
     */
    public suspend fun getSpatialAnchorsAccount(argument: GetSpatialAnchorsAccountPlainArgs): GetSpatialAnchorsAccountResult =
        toKotlin(getSpatialAnchorsAccountPlain(argument.toJava()).await())

    /**
     * @see [getSpatialAnchorsAccount].
     * @param name Specifies the name of the Spatial Anchors Account. Changing this forces a new resource to be created. Must be globally unique.
     * @param resourceGroupName The name of the resource group in which to create the Spatial Anchors Account.
     * @return A collection of values returned by getSpatialAnchorsAccount.
     */
    public suspend fun getSpatialAnchorsAccount(name: String, resourceGroupName: String): GetSpatialAnchorsAccountResult {
        val argument = GetSpatialAnchorsAccountPlainArgs(
            name = name,
            resourceGroupName = resourceGroupName,
        )
        return toKotlin(getSpatialAnchorsAccountPlain(argument.toJava()).await())
    }

    /**
     * @see [getSpatialAnchorsAccount].
     * @param argument Builder for [com.pulumi.azure.mixedreality.kotlin.inputs.GetSpatialAnchorsAccountPlainArgs].
     * @return A collection of values returned by getSpatialAnchorsAccount.
     */
    public suspend fun getSpatialAnchorsAccount(argument: suspend GetSpatialAnchorsAccountPlainArgsBuilder.() -> Unit): GetSpatialAnchorsAccountResult {
        val builder = GetSpatialAnchorsAccountPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return toKotlin(getSpatialAnchorsAccountPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy