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

com.pulumi.aws.datazone.kotlin.DatazoneFunctions.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.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.datazone.kotlin

import com.pulumi.aws.datazone.DatazoneFunctions.getEnvironmentBlueprintPlain
import com.pulumi.aws.datazone.kotlin.inputs.GetEnvironmentBlueprintPlainArgs
import com.pulumi.aws.datazone.kotlin.inputs.GetEnvironmentBlueprintPlainArgsBuilder
import com.pulumi.aws.datazone.kotlin.outputs.GetEnvironmentBlueprintResult
import com.pulumi.aws.datazone.kotlin.outputs.GetEnvironmentBlueprintResult.Companion.toKotlin
import kotlinx.coroutines.future.await
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit

public object DatazoneFunctions {
    /**
     * Data source for managing an AWS DataZone Environment Blueprint.
     * ## Example Usage
     * ### Basic Usage
     * 
     * ```typescript
     * import * as pulumi from "@pulumi/pulumi";
     * import * as aws from "@pulumi/aws";
     * const exampleDomain = new aws.datazone.Domain("example", {
     *     name: "example_domain",
     *     domainExecutionRole: domainExecutionRole.arn,
     * });
     * const example = aws.datazone.getEnvironmentBlueprintOutput({
     *     domainId: exampleDomain.id,
     *     name: "DefaultDataLake",
     *     managed: true,
     * });
     * ```
     * ```python
     * import pulumi
     * import pulumi_aws as aws
     * example_domain = aws.datazone.Domain("example",
     *     name="example_domain",
     *     domain_execution_role=domain_execution_role["arn"])
     * example = aws.datazone.get_environment_blueprint_output(domain_id=example_domain.id,
     *     name="DefaultDataLake",
     *     managed=True)
     * ```
     * ```csharp
     * using System.Collections.Generic;
     * using System.Linq;
     * using Pulumi;
     * using Aws = Pulumi.Aws;
     * return await Deployment.RunAsync(() =>
     * {
     *     var exampleDomain = new Aws.DataZone.Domain("example", new()
     *     {
     *         Name = "example_domain",
     *         DomainExecutionRole = domainExecutionRole.Arn,
     *     });
     *     var example = Aws.DataZone.GetEnvironmentBlueprint.Invoke(new()
     *     {
     *         DomainId = exampleDomain.Id,
     *         Name = "DefaultDataLake",
     *         Managed = true,
     *     });
     * });
     * ```
     * ```go
     * package main
     * import (
     * 	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/datazone"
     * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
     * )
     * func main() {
     * 	pulumi.Run(func(ctx *pulumi.Context) error {
     * 		exampleDomain, err := datazone.NewDomain(ctx, "example", &datazone.DomainArgs{
     * 			Name:                pulumi.String("example_domain"),
     * 			DomainExecutionRole: pulumi.Any(domainExecutionRole.Arn),
     * 		})
     * 		if err != nil {
     * 			return err
     * 		}
     * 		_ = datazone.GetEnvironmentBlueprintOutput(ctx, datazone.GetEnvironmentBlueprintOutputArgs{
     * 			DomainId: exampleDomain.ID(),
     * 			Name:     pulumi.String("DefaultDataLake"),
     * 			Managed:  pulumi.Bool(true),
     * 		}, nil)
     * 		return nil
     * 	})
     * }
     * ```
     * ```java
     * package generated_program;
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.aws.datazone.Domain;
     * import com.pulumi.aws.datazone.DomainArgs;
     * import com.pulumi.aws.datazone.DatazoneFunctions;
     * import com.pulumi.aws.datazone.inputs.GetEnvironmentBlueprintArgs;
     * 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) {
     *         var exampleDomain = new Domain("exampleDomain", DomainArgs.builder()
     *             .name("example_domain")
     *             .domainExecutionRole(domainExecutionRole.arn())
     *             .build());
     *         final var example = DatazoneFunctions.getEnvironmentBlueprint(GetEnvironmentBlueprintArgs.builder()
     *             .domainId(exampleDomain.id())
     *             .name("DefaultDataLake")
     *             .managed(true)
     *             .build());
     *     }
     * }
     * ```
     * ```yaml
     * resources:
     *   exampleDomain:
     *     type: aws:datazone:Domain
     *     name: example
     *     properties:
     *       name: example_domain
     *       domainExecutionRole: ${domainExecutionRole.arn}
     * variables:
     *   example:
     *     fn::invoke:
     *       Function: aws:datazone:getEnvironmentBlueprint
     *       Arguments:
     *         domainId: ${exampleDomain.id}
     *         name: DefaultDataLake
     *         managed: true
     * ```
     * 
     * @param argument A collection of arguments for invoking getEnvironmentBlueprint.
     * @return A collection of values returned by getEnvironmentBlueprint.
     */
    public suspend fun getEnvironmentBlueprint(argument: GetEnvironmentBlueprintPlainArgs): GetEnvironmentBlueprintResult =
        toKotlin(getEnvironmentBlueprintPlain(argument.toJava()).await())

    /**
     * @see [getEnvironmentBlueprint].
     * @param domainId ID of the domain.
     * @param managed Whether the blueprint is managed by Amazon DataZone.
     * @param name Name of the blueprint.
     * @return A collection of values returned by getEnvironmentBlueprint.
     */
    public suspend fun getEnvironmentBlueprint(
        domainId: String,
        managed: Boolean,
        name: String,
    ): GetEnvironmentBlueprintResult {
        val argument = GetEnvironmentBlueprintPlainArgs(
            domainId = domainId,
            managed = managed,
            name = name,
        )
        return toKotlin(getEnvironmentBlueprintPlain(argument.toJava()).await())
    }

    /**
     * @see [getEnvironmentBlueprint].
     * @param argument Builder for [com.pulumi.aws.datazone.kotlin.inputs.GetEnvironmentBlueprintPlainArgs].
     * @return A collection of values returned by getEnvironmentBlueprint.
     */
    public suspend fun getEnvironmentBlueprint(argument: suspend GetEnvironmentBlueprintPlainArgsBuilder.() -> Unit): GetEnvironmentBlueprintResult {
        val builder = GetEnvironmentBlueprintPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return toKotlin(getEnvironmentBlueprintPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy