1. Packages
  2. AWS
  3. API Docs
  4. datazone
  5. getEnvironmentBlueprint
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.datazone.getEnvironmentBlueprint

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Data source for managing an AWS DataZone Environment Blueprint.

    Example Usage

    Basic Usage

    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,
    });
    
    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)
    
    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
    	})
    }
    
    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,
        });
    
    });
    
    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());
    
        }
    }
    
    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
    

    Using getEnvironmentBlueprint

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getEnvironmentBlueprint(args: GetEnvironmentBlueprintArgs, opts?: InvokeOptions): Promise<GetEnvironmentBlueprintResult>
    function getEnvironmentBlueprintOutput(args: GetEnvironmentBlueprintOutputArgs, opts?: InvokeOptions): Output<GetEnvironmentBlueprintResult>
    def get_environment_blueprint(domain_id: Optional[str] = None,
                                  managed: Optional[bool] = None,
                                  name: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetEnvironmentBlueprintResult
    def get_environment_blueprint_output(domain_id: Optional[pulumi.Input[str]] = None,
                                  managed: Optional[pulumi.Input[bool]] = None,
                                  name: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetEnvironmentBlueprintResult]
    func GetEnvironmentBlueprint(ctx *Context, args *GetEnvironmentBlueprintArgs, opts ...InvokeOption) (*GetEnvironmentBlueprintResult, error)
    func GetEnvironmentBlueprintOutput(ctx *Context, args *GetEnvironmentBlueprintOutputArgs, opts ...InvokeOption) GetEnvironmentBlueprintResultOutput

    > Note: This function is named GetEnvironmentBlueprint in the Go SDK.

    public static class GetEnvironmentBlueprint 
    {
        public static Task<GetEnvironmentBlueprintResult> InvokeAsync(GetEnvironmentBlueprintArgs args, InvokeOptions? opts = null)
        public static Output<GetEnvironmentBlueprintResult> Invoke(GetEnvironmentBlueprintInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEnvironmentBlueprintResult> getEnvironmentBlueprint(GetEnvironmentBlueprintArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:datazone/getEnvironmentBlueprint:getEnvironmentBlueprint
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DomainId string
    ID of the domain.
    Managed bool
    Whether the blueprint is managed by Amazon DataZone.
    Name string
    Name of the blueprint.
    DomainId string
    ID of the domain.
    Managed bool
    Whether the blueprint is managed by Amazon DataZone.
    Name string
    Name of the blueprint.
    domainId String
    ID of the domain.
    managed Boolean
    Whether the blueprint is managed by Amazon DataZone.
    name String
    Name of the blueprint.
    domainId string
    ID of the domain.
    managed boolean
    Whether the blueprint is managed by Amazon DataZone.
    name string
    Name of the blueprint.
    domain_id str
    ID of the domain.
    managed bool
    Whether the blueprint is managed by Amazon DataZone.
    name str
    Name of the blueprint.
    domainId String
    ID of the domain.
    managed Boolean
    Whether the blueprint is managed by Amazon DataZone.
    name String
    Name of the blueprint.

    getEnvironmentBlueprint Result

    The following output properties are available:

    BlueprintProvider string
    Provider of the blueprint
    Description string
    Description of the blueprint
    DomainId string
    Id string
    ID of the environment blueprint
    Managed bool
    Name string
    BlueprintProvider string
    Provider of the blueprint
    Description string
    Description of the blueprint
    DomainId string
    Id string
    ID of the environment blueprint
    Managed bool
    Name string
    blueprintProvider String
    Provider of the blueprint
    description String
    Description of the blueprint
    domainId String
    id String
    ID of the environment blueprint
    managed Boolean
    name String
    blueprintProvider string
    Provider of the blueprint
    description string
    Description of the blueprint
    domainId string
    id string
    ID of the environment blueprint
    managed boolean
    name string
    blueprint_provider str
    Provider of the blueprint
    description str
    Description of the blueprint
    domain_id str
    id str
    ID of the environment blueprint
    managed bool
    name str
    blueprintProvider String
    Provider of the blueprint
    description String
    Description of the blueprint
    domainId String
    id String
    ID of the environment blueprint
    managed Boolean
    name String

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi