1. Packages
  2. AWS
  3. API Docs
  4. datazone
  5. EnvironmentProfile
AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi

aws.datazone.EnvironmentProfile

Explore with Pulumi AI

aws logo
AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi

    Resource for managing an AWS DataZone Environment Profile.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const domainExecutionRole = new aws.iam.Role("domain_execution_role", {
        name: "example-name",
        assumeRolePolicy: JSON.stringify({
            Version: "2012-10-17",
            Statement: [
                {
                    Action: [
                        "sts:AssumeRole",
                        "sts:TagSession",
                    ],
                    Effect: "Allow",
                    Principal: {
                        Service: "datazone.amazonaws.com",
                    },
                },
                {
                    Action: [
                        "sts:AssumeRole",
                        "sts:TagSession",
                    ],
                    Effect: "Allow",
                    Principal: {
                        Service: "cloudformation.amazonaws.com",
                    },
                },
            ],
        }),
        inlinePolicies: [{
            name: "example-name",
            policy: JSON.stringify({
                Version: "2012-10-17",
                Statement: [{
                    Action: [
                        "datazone:*",
                        "ram:*",
                        "sso:*",
                        "kms:*",
                    ],
                    Effect: "Allow",
                    Resource: "*",
                }],
            }),
        }],
    });
    const testDomain = new aws.datazone.Domain("test", {
        name: "example-name",
        domainExecutionRole: domainExecutionRole.arn,
    });
    const testSecurityGroup = new aws.ec2.SecurityGroup("test", {name: "example-name"});
    const testProject = new aws.datazone.Project("test", {
        domainIdentifier: testDomain.id,
        glossaryTerms: ["2N8w6XJCwZf"],
        name: "example-name",
        description: "desc",
        skipDeletionCheck: true,
    });
    const test = aws.getCallerIdentity({});
    const testGetRegion = aws.getRegion({});
    const testGetEnvironmentBlueprint = aws.datazone.getEnvironmentBlueprintOutput({
        domainId: testDomain.id,
        name: "DefaultDataLake",
        managed: true,
    });
    const testEnvironmentBlueprintConfiguration = new aws.datazone.EnvironmentBlueprintConfiguration("test", {
        domainId: testDomain.id,
        environmentBlueprintId: testGetEnvironmentBlueprint.apply(testGetEnvironmentBlueprint => testGetEnvironmentBlueprint.id),
        provisioningRoleArn: domainExecutionRole.arn,
        enabledRegions: [testGetRegion.then(testGetRegion => testGetRegion.name)],
    });
    const testEnvironmentProfile = new aws.datazone.EnvironmentProfile("test", {
        awsAccountId: test.then(test => test.accountId),
        awsAccountRegion: testGetRegion.then(testGetRegion => testGetRegion.name),
        description: "description",
        environmentBlueprintIdentifier: testGetEnvironmentBlueprint.apply(testGetEnvironmentBlueprint => testGetEnvironmentBlueprint.id),
        name: "example-name",
        projectIdentifier: testProject.id,
        domainIdentifier: testDomain.id,
        userParameters: [{
            name: "consumerGlueDbName",
            value: "value",
        }],
    });
    
    import pulumi
    import json
    import pulumi_aws as aws
    
    domain_execution_role = aws.iam.Role("domain_execution_role",
        name="example-name",
        assume_role_policy=json.dumps({
            "Version": "2012-10-17",
            "Statement": [
                {
                    "Action": [
                        "sts:AssumeRole",
                        "sts:TagSession",
                    ],
                    "Effect": "Allow",
                    "Principal": {
                        "Service": "datazone.amazonaws.com",
                    },
                },
                {
                    "Action": [
                        "sts:AssumeRole",
                        "sts:TagSession",
                    ],
                    "Effect": "Allow",
                    "Principal": {
                        "Service": "cloudformation.amazonaws.com",
                    },
                },
            ],
        }),
        inline_policies=[{
            "name": "example-name",
            "policy": json.dumps({
                "version": "2012-10-17",
                "statement": [{
                    "action": [
                        "datazone:*",
                        "ram:*",
                        "sso:*",
                        "kms:*",
                    ],
                    "effect": "Allow",
                    "resource": "*",
                }],
            }),
        }])
    test_domain = aws.datazone.Domain("test",
        name="example-name",
        domain_execution_role=domain_execution_role.arn)
    test_security_group = aws.ec2.SecurityGroup("test", name="example-name")
    test_project = aws.datazone.Project("test",
        domain_identifier=test_domain.id,
        glossary_terms=["2N8w6XJCwZf"],
        name="example-name",
        description="desc",
        skip_deletion_check=True)
    test = aws.get_caller_identity()
    test_get_region = aws.get_region()
    test_get_environment_blueprint = aws.datazone.get_environment_blueprint_output(domain_id=test_domain.id,
        name="DefaultDataLake",
        managed=True)
    test_environment_blueprint_configuration = aws.datazone.EnvironmentBlueprintConfiguration("test",
        domain_id=test_domain.id,
        environment_blueprint_id=test_get_environment_blueprint.id,
        provisioning_role_arn=domain_execution_role.arn,
        enabled_regions=[test_get_region.name])
    test_environment_profile = aws.datazone.EnvironmentProfile("test",
        aws_account_id=test.account_id,
        aws_account_region=test_get_region.name,
        description="description",
        environment_blueprint_identifier=test_get_environment_blueprint.id,
        name="example-name",
        project_identifier=test_project.id,
        domain_identifier=test_domain.id,
        user_parameters=[{
            "name": "consumerGlueDbName",
            "value": "value",
        }])
    
    package main
    
    import (
    	"encoding/json"
    
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws"
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/datazone"
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2"
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		tmpJSON0, err := json.Marshal(map[string]interface{}{
    			"Version": "2012-10-17",
    			"Statement": []map[string]interface{}{
    				map[string]interface{}{
    					"Action": []string{
    						"sts:AssumeRole",
    						"sts:TagSession",
    					},
    					"Effect": "Allow",
    					"Principal": map[string]interface{}{
    						"Service": "datazone.amazonaws.com",
    					},
    				},
    				map[string]interface{}{
    					"Action": []string{
    						"sts:AssumeRole",
    						"sts:TagSession",
    					},
    					"Effect": "Allow",
    					"Principal": map[string]interface{}{
    						"Service": "cloudformation.amazonaws.com",
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		json0 := string(tmpJSON0)
    		tmpJSON1, err := json.Marshal(map[string]interface{}{
    			"Version": "2012-10-17",
    			"Statement": []map[string]interface{}{
    				map[string]interface{}{
    					"Action": []string{
    						"datazone:*",
    						"ram:*",
    						"sso:*",
    						"kms:*",
    					},
    					"Effect":   "Allow",
    					"Resource": "*",
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		json1 := string(tmpJSON1)
    		domainExecutionRole, err := iam.NewRole(ctx, "domain_execution_role", &iam.RoleArgs{
    			Name:             pulumi.String("example-name"),
    			AssumeRolePolicy: pulumi.String(json0),
    			InlinePolicies: iam.RoleInlinePolicyArray{
    				&iam.RoleInlinePolicyArgs{
    					Name:   pulumi.String("example-name"),
    					Policy: pulumi.String(json1),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		testDomain, err := datazone.NewDomain(ctx, "test", &datazone.DomainArgs{
    			Name:                pulumi.String("example-name"),
    			DomainExecutionRole: domainExecutionRole.Arn,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ec2.NewSecurityGroup(ctx, "test", &ec2.SecurityGroupArgs{
    			Name: pulumi.String("example-name"),
    		})
    		if err != nil {
    			return err
    		}
    		testProject, err := datazone.NewProject(ctx, "test", &datazone.ProjectArgs{
    			DomainIdentifier: testDomain.ID(),
    			GlossaryTerms: pulumi.StringArray{
    				pulumi.String("2N8w6XJCwZf"),
    			},
    			Name:              pulumi.String("example-name"),
    			Description:       pulumi.String("desc"),
    			SkipDeletionCheck: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		test, err := aws.GetCallerIdentity(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		testGetRegion, err := aws.GetRegion(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		testGetEnvironmentBlueprint := datazone.GetEnvironmentBlueprintOutput(ctx, datazone.GetEnvironmentBlueprintOutputArgs{
    			DomainId: testDomain.ID(),
    			Name:     pulumi.String("DefaultDataLake"),
    			Managed:  pulumi.Bool(true),
    		}, nil)
    		_, err = datazone.NewEnvironmentBlueprintConfiguration(ctx, "test", &datazone.EnvironmentBlueprintConfigurationArgs{
    			DomainId: testDomain.ID(),
    			EnvironmentBlueprintId: pulumi.String(testGetEnvironmentBlueprint.ApplyT(func(testGetEnvironmentBlueprint datazone.GetEnvironmentBlueprintResult) (*string, error) {
    				return &testGetEnvironmentBlueprint.Id, nil
    			}).(pulumi.StringPtrOutput)),
    			ProvisioningRoleArn: domainExecutionRole.Arn,
    			EnabledRegions: pulumi.StringArray{
    				pulumi.String(testGetRegion.Name),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = datazone.NewEnvironmentProfile(ctx, "test", &datazone.EnvironmentProfileArgs{
    			AwsAccountId:     pulumi.String(test.AccountId),
    			AwsAccountRegion: pulumi.String(testGetRegion.Name),
    			Description:      pulumi.String("description"),
    			EnvironmentBlueprintIdentifier: pulumi.String(testGetEnvironmentBlueprint.ApplyT(func(testGetEnvironmentBlueprint datazone.GetEnvironmentBlueprintResult) (*string, error) {
    				return &testGetEnvironmentBlueprint.Id, nil
    			}).(pulumi.StringPtrOutput)),
    			Name:              pulumi.String("example-name"),
    			ProjectIdentifier: testProject.ID(),
    			DomainIdentifier:  testDomain.ID(),
    			UserParameters: datazone.EnvironmentProfileUserParameterArray{
    				&datazone.EnvironmentProfileUserParameterArgs{
    					Name:  pulumi.String("consumerGlueDbName"),
    					Value: pulumi.String("value"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var domainExecutionRole = new Aws.Iam.Role("domain_execution_role", new()
        {
            Name = "example-name",
            AssumeRolePolicy = JsonSerializer.Serialize(new Dictionary<string, object?>
            {
                ["Version"] = "2012-10-17",
                ["Statement"] = new[]
                {
                    new Dictionary<string, object?>
                    {
                        ["Action"] = new[]
                        {
                            "sts:AssumeRole",
                            "sts:TagSession",
                        },
                        ["Effect"] = "Allow",
                        ["Principal"] = new Dictionary<string, object?>
                        {
                            ["Service"] = "datazone.amazonaws.com",
                        },
                    },
                    new Dictionary<string, object?>
                    {
                        ["Action"] = new[]
                        {
                            "sts:AssumeRole",
                            "sts:TagSession",
                        },
                        ["Effect"] = "Allow",
                        ["Principal"] = new Dictionary<string, object?>
                        {
                            ["Service"] = "cloudformation.amazonaws.com",
                        },
                    },
                },
            }),
            InlinePolicies = new[]
            {
                new Aws.Iam.Inputs.RoleInlinePolicyArgs
                {
                    Name = "example-name",
                    Policy = JsonSerializer.Serialize(new Dictionary<string, object?>
                    {
                        ["Version"] = "2012-10-17",
                        ["Statement"] = new[]
                        {
                            new Dictionary<string, object?>
                            {
                                ["Action"] = new[]
                                {
                                    "datazone:*",
                                    "ram:*",
                                    "sso:*",
                                    "kms:*",
                                },
                                ["Effect"] = "Allow",
                                ["Resource"] = "*",
                            },
                        },
                    }),
                },
            },
        });
    
        var testDomain = new Aws.DataZone.Domain("test", new()
        {
            Name = "example-name",
            DomainExecutionRole = domainExecutionRole.Arn,
        });
    
        var testSecurityGroup = new Aws.Ec2.SecurityGroup("test", new()
        {
            Name = "example-name",
        });
    
        var testProject = new Aws.DataZone.Project("test", new()
        {
            DomainIdentifier = testDomain.Id,
            GlossaryTerms = new[]
            {
                "2N8w6XJCwZf",
            },
            Name = "example-name",
            Description = "desc",
            SkipDeletionCheck = true,
        });
    
        var test = Aws.GetCallerIdentity.Invoke();
    
        var testGetRegion = Aws.GetRegion.Invoke();
    
        var testGetEnvironmentBlueprint = Aws.DataZone.GetEnvironmentBlueprint.Invoke(new()
        {
            DomainId = testDomain.Id,
            Name = "DefaultDataLake",
            Managed = true,
        });
    
        var testEnvironmentBlueprintConfiguration = new Aws.DataZone.EnvironmentBlueprintConfiguration("test", new()
        {
            DomainId = testDomain.Id,
            EnvironmentBlueprintId = testGetEnvironmentBlueprint.Apply(getEnvironmentBlueprintResult => getEnvironmentBlueprintResult.Id),
            ProvisioningRoleArn = domainExecutionRole.Arn,
            EnabledRegions = new[]
            {
                testGetRegion.Apply(getRegionResult => getRegionResult.Name),
            },
        });
    
        var testEnvironmentProfile = new Aws.DataZone.EnvironmentProfile("test", new()
        {
            AwsAccountId = test.Apply(getCallerIdentityResult => getCallerIdentityResult.AccountId),
            AwsAccountRegion = testGetRegion.Apply(getRegionResult => getRegionResult.Name),
            Description = "description",
            EnvironmentBlueprintIdentifier = testGetEnvironmentBlueprint.Apply(getEnvironmentBlueprintResult => getEnvironmentBlueprintResult.Id),
            Name = "example-name",
            ProjectIdentifier = testProject.Id,
            DomainIdentifier = testDomain.Id,
            UserParameters = new[]
            {
                new Aws.DataZone.Inputs.EnvironmentProfileUserParameterArgs
                {
                    Name = "consumerGlueDbName",
                    Value = "value",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.iam.Role;
    import com.pulumi.aws.iam.RoleArgs;
    import com.pulumi.aws.iam.inputs.RoleInlinePolicyArgs;
    import com.pulumi.aws.datazone.Domain;
    import com.pulumi.aws.datazone.DomainArgs;
    import com.pulumi.aws.ec2.SecurityGroup;
    import com.pulumi.aws.ec2.SecurityGroupArgs;
    import com.pulumi.aws.datazone.Project;
    import com.pulumi.aws.datazone.ProjectArgs;
    import com.pulumi.aws.AwsFunctions;
    import com.pulumi.aws.inputs.GetCallerIdentityArgs;
    import com.pulumi.aws.inputs.GetRegionArgs;
    import com.pulumi.aws.datazone.DatazoneFunctions;
    import com.pulumi.aws.datazone.inputs.GetEnvironmentBlueprintArgs;
    import com.pulumi.aws.datazone.EnvironmentBlueprintConfiguration;
    import com.pulumi.aws.datazone.EnvironmentBlueprintConfigurationArgs;
    import com.pulumi.aws.datazone.EnvironmentProfile;
    import com.pulumi.aws.datazone.EnvironmentProfileArgs;
    import com.pulumi.aws.datazone.inputs.EnvironmentProfileUserParameterArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    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 domainExecutionRole = new Role("domainExecutionRole", RoleArgs.builder()
                .name("example-name")
                .assumeRolePolicy(serializeJson(
                    jsonObject(
                        jsonProperty("Version", "2012-10-17"),
                        jsonProperty("Statement", jsonArray(
                            jsonObject(
                                jsonProperty("Action", jsonArray(
                                    "sts:AssumeRole", 
                                    "sts:TagSession"
                                )),
                                jsonProperty("Effect", "Allow"),
                                jsonProperty("Principal", jsonObject(
                                    jsonProperty("Service", "datazone.amazonaws.com")
                                ))
                            ), 
                            jsonObject(
                                jsonProperty("Action", jsonArray(
                                    "sts:AssumeRole", 
                                    "sts:TagSession"
                                )),
                                jsonProperty("Effect", "Allow"),
                                jsonProperty("Principal", jsonObject(
                                    jsonProperty("Service", "cloudformation.amazonaws.com")
                                ))
                            )
                        ))
                    )))
                .inlinePolicies(RoleInlinePolicyArgs.builder()
                    .name("example-name")
                    .policy(serializeJson(
                        jsonObject(
                            jsonProperty("Version", "2012-10-17"),
                            jsonProperty("Statement", jsonArray(jsonObject(
                                jsonProperty("Action", jsonArray(
                                    "datazone:*", 
                                    "ram:*", 
                                    "sso:*", 
                                    "kms:*"
                                )),
                                jsonProperty("Effect", "Allow"),
                                jsonProperty("Resource", "*")
                            )))
                        )))
                    .build())
                .build());
    
            var testDomain = new Domain("testDomain", DomainArgs.builder()
                .name("example-name")
                .domainExecutionRole(domainExecutionRole.arn())
                .build());
    
            var testSecurityGroup = new SecurityGroup("testSecurityGroup", SecurityGroupArgs.builder()
                .name("example-name")
                .build());
    
            var testProject = new Project("testProject", ProjectArgs.builder()
                .domainIdentifier(testDomain.id())
                .glossaryTerms("2N8w6XJCwZf")
                .name("example-name")
                .description("desc")
                .skipDeletionCheck(true)
                .build());
    
            final var test = AwsFunctions.getCallerIdentity();
    
            final var testGetRegion = AwsFunctions.getRegion();
    
            final var testGetEnvironmentBlueprint = DatazoneFunctions.getEnvironmentBlueprint(GetEnvironmentBlueprintArgs.builder()
                .domainId(testDomain.id())
                .name("DefaultDataLake")
                .managed(true)
                .build());
    
            var testEnvironmentBlueprintConfiguration = new EnvironmentBlueprintConfiguration("testEnvironmentBlueprintConfiguration", EnvironmentBlueprintConfigurationArgs.builder()
                .domainId(testDomain.id())
                .environmentBlueprintId(testGetEnvironmentBlueprint.applyValue(getEnvironmentBlueprintResult -> getEnvironmentBlueprintResult).applyValue(testGetEnvironmentBlueprint -> testGetEnvironmentBlueprint.applyValue(getEnvironmentBlueprintResult -> getEnvironmentBlueprintResult.id())))
                .provisioningRoleArn(domainExecutionRole.arn())
                .enabledRegions(testGetRegion.applyValue(getRegionResult -> getRegionResult.name()))
                .build());
    
            var testEnvironmentProfile = new EnvironmentProfile("testEnvironmentProfile", EnvironmentProfileArgs.builder()
                .awsAccountId(test.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId()))
                .awsAccountRegion(testGetRegion.applyValue(getRegionResult -> getRegionResult.name()))
                .description("description")
                .environmentBlueprintIdentifier(testGetEnvironmentBlueprint.applyValue(getEnvironmentBlueprintResult -> getEnvironmentBlueprintResult).applyValue(testGetEnvironmentBlueprint -> testGetEnvironmentBlueprint.applyValue(getEnvironmentBlueprintResult -> getEnvironmentBlueprintResult.id())))
                .name("example-name")
                .projectIdentifier(testProject.id())
                .domainIdentifier(testDomain.id())
                .userParameters(EnvironmentProfileUserParameterArgs.builder()
                    .name("consumerGlueDbName")
                    .value("value")
                    .build())
                .build());
    
        }
    }
    
    resources:
      domainExecutionRole:
        type: aws:iam:Role
        name: domain_execution_role
        properties:
          name: example-name
          assumeRolePolicy:
            fn::toJSON:
              Version: 2012-10-17
              Statement:
                - Action:
                    - sts:AssumeRole
                    - sts:TagSession
                  Effect: Allow
                  Principal:
                    Service: datazone.amazonaws.com
                - Action:
                    - sts:AssumeRole
                    - sts:TagSession
                  Effect: Allow
                  Principal:
                    Service: cloudformation.amazonaws.com
          inlinePolicies:
            - name: example-name
              policy:
                fn::toJSON:
                  Version: 2012-10-17
                  Statement:
                    - Action:
                        - datazone:*
                        - ram:*
                        - sso:*
                        - kms:*
                      Effect: Allow
                      Resource: '*'
      testDomain:
        type: aws:datazone:Domain
        name: test
        properties:
          name: example-name
          domainExecutionRole: ${domainExecutionRole.arn}
      testSecurityGroup:
        type: aws:ec2:SecurityGroup
        name: test
        properties:
          name: example-name
      testProject:
        type: aws:datazone:Project
        name: test
        properties:
          domainIdentifier: ${testDomain.id}
          glossaryTerms:
            - 2N8w6XJCwZf
          name: example-name
          description: desc
          skipDeletionCheck: true
      testEnvironmentBlueprintConfiguration:
        type: aws:datazone:EnvironmentBlueprintConfiguration
        name: test
        properties:
          domainId: ${testDomain.id}
          environmentBlueprintId: ${testGetEnvironmentBlueprint.id}
          provisioningRoleArn: ${domainExecutionRole.arn}
          enabledRegions:
            - ${testGetRegion.name}
      testEnvironmentProfile:
        type: aws:datazone:EnvironmentProfile
        name: test
        properties:
          awsAccountId: ${test.accountId}
          awsAccountRegion: ${testGetRegion.name}
          description: description
          environmentBlueprintIdentifier: ${testGetEnvironmentBlueprint.id}
          name: example-name
          projectIdentifier: ${testProject.id}
          domainIdentifier: ${testDomain.id}
          userParameters:
            - name: consumerGlueDbName
              value: value
    variables:
      test:
        fn::invoke:
          Function: aws:getCallerIdentity
          Arguments: {}
      testGetRegion:
        fn::invoke:
          Function: aws:getRegion
          Arguments: {}
      testGetEnvironmentBlueprint:
        fn::invoke:
          Function: aws:datazone:getEnvironmentBlueprint
          Arguments:
            domainId: ${testDomain.id}
            name: DefaultDataLake
            managed: true
    

    Create EnvironmentProfile Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new EnvironmentProfile(name: string, args: EnvironmentProfileArgs, opts?: CustomResourceOptions);
    @overload
    def EnvironmentProfile(resource_name: str,
                           args: EnvironmentProfileArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def EnvironmentProfile(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           aws_account_region: Optional[str] = None,
                           domain_identifier: Optional[str] = None,
                           environment_blueprint_identifier: Optional[str] = None,
                           project_identifier: Optional[str] = None,
                           aws_account_id: Optional[str] = None,
                           description: Optional[str] = None,
                           name: Optional[str] = None,
                           user_parameters: Optional[Sequence[EnvironmentProfileUserParameterArgs]] = None)
    func NewEnvironmentProfile(ctx *Context, name string, args EnvironmentProfileArgs, opts ...ResourceOption) (*EnvironmentProfile, error)
    public EnvironmentProfile(string name, EnvironmentProfileArgs args, CustomResourceOptions? opts = null)
    public EnvironmentProfile(String name, EnvironmentProfileArgs args)
    public EnvironmentProfile(String name, EnvironmentProfileArgs args, CustomResourceOptions options)
    
    type: aws:datazone:EnvironmentProfile
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args EnvironmentProfileArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args EnvironmentProfileArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args EnvironmentProfileArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EnvironmentProfileArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EnvironmentProfileArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var environmentProfileResource = new Aws.DataZone.EnvironmentProfile("environmentProfileResource", new()
    {
        AwsAccountRegion = "string",
        DomainIdentifier = "string",
        EnvironmentBlueprintIdentifier = "string",
        ProjectIdentifier = "string",
        AwsAccountId = "string",
        Description = "string",
        Name = "string",
        UserParameters = new[]
        {
            new Aws.DataZone.Inputs.EnvironmentProfileUserParameterArgs
            {
                Name = "string",
                Value = "string",
            },
        },
    });
    
    example, err := datazone.NewEnvironmentProfile(ctx, "environmentProfileResource", &datazone.EnvironmentProfileArgs{
    	AwsAccountRegion:               pulumi.String("string"),
    	DomainIdentifier:               pulumi.String("string"),
    	EnvironmentBlueprintIdentifier: pulumi.String("string"),
    	ProjectIdentifier:              pulumi.String("string"),
    	AwsAccountId:                   pulumi.String("string"),
    	Description:                    pulumi.String("string"),
    	Name:                           pulumi.String("string"),
    	UserParameters: datazone.EnvironmentProfileUserParameterArray{
    		&datazone.EnvironmentProfileUserParameterArgs{
    			Name:  pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    })
    
    var environmentProfileResource = new EnvironmentProfile("environmentProfileResource", EnvironmentProfileArgs.builder()
        .awsAccountRegion("string")
        .domainIdentifier("string")
        .environmentBlueprintIdentifier("string")
        .projectIdentifier("string")
        .awsAccountId("string")
        .description("string")
        .name("string")
        .userParameters(EnvironmentProfileUserParameterArgs.builder()
            .name("string")
            .value("string")
            .build())
        .build());
    
    environment_profile_resource = aws.datazone.EnvironmentProfile("environmentProfileResource",
        aws_account_region="string",
        domain_identifier="string",
        environment_blueprint_identifier="string",
        project_identifier="string",
        aws_account_id="string",
        description="string",
        name="string",
        user_parameters=[{
            "name": "string",
            "value": "string",
        }])
    
    const environmentProfileResource = new aws.datazone.EnvironmentProfile("environmentProfileResource", {
        awsAccountRegion: "string",
        domainIdentifier: "string",
        environmentBlueprintIdentifier: "string",
        projectIdentifier: "string",
        awsAccountId: "string",
        description: "string",
        name: "string",
        userParameters: [{
            name: "string",
            value: "string",
        }],
    });
    
    type: aws:datazone:EnvironmentProfile
    properties:
        awsAccountId: string
        awsAccountRegion: string
        description: string
        domainIdentifier: string
        environmentBlueprintIdentifier: string
        name: string
        projectIdentifier: string
        userParameters:
            - name: string
              value: string
    

    EnvironmentProfile Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The EnvironmentProfile resource accepts the following input properties:

    AwsAccountRegion string
    Desired region for environment profile.
    DomainIdentifier string
    Domain Identifier for environment profile.
    EnvironmentBlueprintIdentifier string
    ID of the blueprint which the environment will be created with.
    ProjectIdentifier string

    Project identifier for environment profile.

    The following arguments are optional:

    AwsAccountId string
    Id of the AWS account being used.
    Description string
    Description of environment profile.
    Name string
    Name of the environment profile.
    UserParameters List<EnvironmentProfileUserParameter>
    Array of user parameters of the environment profile with the following attributes:
    AwsAccountRegion string
    Desired region for environment profile.
    DomainIdentifier string
    Domain Identifier for environment profile.
    EnvironmentBlueprintIdentifier string
    ID of the blueprint which the environment will be created with.
    ProjectIdentifier string

    Project identifier for environment profile.

    The following arguments are optional:

    AwsAccountId string
    Id of the AWS account being used.
    Description string
    Description of environment profile.
    Name string
    Name of the environment profile.
    UserParameters []EnvironmentProfileUserParameterArgs
    Array of user parameters of the environment profile with the following attributes:
    awsAccountRegion String
    Desired region for environment profile.
    domainIdentifier String
    Domain Identifier for environment profile.
    environmentBlueprintIdentifier String
    ID of the blueprint which the environment will be created with.
    projectIdentifier String

    Project identifier for environment profile.

    The following arguments are optional:

    awsAccountId String
    Id of the AWS account being used.
    description String
    Description of environment profile.
    name String
    Name of the environment profile.
    userParameters List<EnvironmentProfileUserParameter>
    Array of user parameters of the environment profile with the following attributes:
    awsAccountRegion string
    Desired region for environment profile.
    domainIdentifier string
    Domain Identifier for environment profile.
    environmentBlueprintIdentifier string
    ID of the blueprint which the environment will be created with.
    projectIdentifier string

    Project identifier for environment profile.

    The following arguments are optional:

    awsAccountId string
    Id of the AWS account being used.
    description string
    Description of environment profile.
    name string
    Name of the environment profile.
    userParameters EnvironmentProfileUserParameter[]
    Array of user parameters of the environment profile with the following attributes:
    aws_account_region str
    Desired region for environment profile.
    domain_identifier str
    Domain Identifier for environment profile.
    environment_blueprint_identifier str
    ID of the blueprint which the environment will be created with.
    project_identifier str

    Project identifier for environment profile.

    The following arguments are optional:

    aws_account_id str
    Id of the AWS account being used.
    description str
    Description of environment profile.
    name str
    Name of the environment profile.
    user_parameters Sequence[EnvironmentProfileUserParameterArgs]
    Array of user parameters of the environment profile with the following attributes:
    awsAccountRegion String
    Desired region for environment profile.
    domainIdentifier String
    Domain Identifier for environment profile.
    environmentBlueprintIdentifier String
    ID of the blueprint which the environment will be created with.
    projectIdentifier String

    Project identifier for environment profile.

    The following arguments are optional:

    awsAccountId String
    Id of the AWS account being used.
    description String
    Description of environment profile.
    name String
    Name of the environment profile.
    userParameters List<Property Map>
    Array of user parameters of the environment profile with the following attributes:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the EnvironmentProfile resource produces the following output properties:

    CreatedAt string
    Creation time of environment profile.
    CreatedBy string
    Creator of environment profile.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    Time of last update to environment profile.
    CreatedAt string
    Creation time of environment profile.
    CreatedBy string
    Creator of environment profile.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    Time of last update to environment profile.
    createdAt String
    Creation time of environment profile.
    createdBy String
    Creator of environment profile.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    Time of last update to environment profile.
    createdAt string
    Creation time of environment profile.
    createdBy string
    Creator of environment profile.
    id string
    The provider-assigned unique ID for this managed resource.
    updatedAt string
    Time of last update to environment profile.
    created_at str
    Creation time of environment profile.
    created_by str
    Creator of environment profile.
    id str
    The provider-assigned unique ID for this managed resource.
    updated_at str
    Time of last update to environment profile.
    createdAt String
    Creation time of environment profile.
    createdBy String
    Creator of environment profile.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    Time of last update to environment profile.

    Look up Existing EnvironmentProfile Resource

    Get an existing EnvironmentProfile resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: EnvironmentProfileState, opts?: CustomResourceOptions): EnvironmentProfile
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            aws_account_id: Optional[str] = None,
            aws_account_region: Optional[str] = None,
            created_at: Optional[str] = None,
            created_by: Optional[str] = None,
            description: Optional[str] = None,
            domain_identifier: Optional[str] = None,
            environment_blueprint_identifier: Optional[str] = None,
            name: Optional[str] = None,
            project_identifier: Optional[str] = None,
            updated_at: Optional[str] = None,
            user_parameters: Optional[Sequence[EnvironmentProfileUserParameterArgs]] = None) -> EnvironmentProfile
    func GetEnvironmentProfile(ctx *Context, name string, id IDInput, state *EnvironmentProfileState, opts ...ResourceOption) (*EnvironmentProfile, error)
    public static EnvironmentProfile Get(string name, Input<string> id, EnvironmentProfileState? state, CustomResourceOptions? opts = null)
    public static EnvironmentProfile get(String name, Output<String> id, EnvironmentProfileState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AwsAccountId string
    Id of the AWS account being used.
    AwsAccountRegion string
    Desired region for environment profile.
    CreatedAt string
    Creation time of environment profile.
    CreatedBy string
    Creator of environment profile.
    Description string
    Description of environment profile.
    DomainIdentifier string
    Domain Identifier for environment profile.
    EnvironmentBlueprintIdentifier string
    ID of the blueprint which the environment will be created with.
    Name string
    Name of the environment profile.
    ProjectIdentifier string

    Project identifier for environment profile.

    The following arguments are optional:

    UpdatedAt string
    Time of last update to environment profile.
    UserParameters List<EnvironmentProfileUserParameter>
    Array of user parameters of the environment profile with the following attributes:
    AwsAccountId string
    Id of the AWS account being used.
    AwsAccountRegion string
    Desired region for environment profile.
    CreatedAt string
    Creation time of environment profile.
    CreatedBy string
    Creator of environment profile.
    Description string
    Description of environment profile.
    DomainIdentifier string
    Domain Identifier for environment profile.
    EnvironmentBlueprintIdentifier string
    ID of the blueprint which the environment will be created with.
    Name string
    Name of the environment profile.
    ProjectIdentifier string

    Project identifier for environment profile.

    The following arguments are optional:

    UpdatedAt string
    Time of last update to environment profile.
    UserParameters []EnvironmentProfileUserParameterArgs
    Array of user parameters of the environment profile with the following attributes:
    awsAccountId String
    Id of the AWS account being used.
    awsAccountRegion String
    Desired region for environment profile.
    createdAt String
    Creation time of environment profile.
    createdBy String
    Creator of environment profile.
    description String
    Description of environment profile.
    domainIdentifier String
    Domain Identifier for environment profile.
    environmentBlueprintIdentifier String
    ID of the blueprint which the environment will be created with.
    name String
    Name of the environment profile.
    projectIdentifier String

    Project identifier for environment profile.

    The following arguments are optional:

    updatedAt String
    Time of last update to environment profile.
    userParameters List<EnvironmentProfileUserParameter>
    Array of user parameters of the environment profile with the following attributes:
    awsAccountId string
    Id of the AWS account being used.
    awsAccountRegion string
    Desired region for environment profile.
    createdAt string
    Creation time of environment profile.
    createdBy string
    Creator of environment profile.
    description string
    Description of environment profile.
    domainIdentifier string
    Domain Identifier for environment profile.
    environmentBlueprintIdentifier string
    ID of the blueprint which the environment will be created with.
    name string
    Name of the environment profile.
    projectIdentifier string

    Project identifier for environment profile.

    The following arguments are optional:

    updatedAt string
    Time of last update to environment profile.
    userParameters EnvironmentProfileUserParameter[]
    Array of user parameters of the environment profile with the following attributes:
    aws_account_id str
    Id of the AWS account being used.
    aws_account_region str
    Desired region for environment profile.
    created_at str
    Creation time of environment profile.
    created_by str
    Creator of environment profile.
    description str
    Description of environment profile.
    domain_identifier str
    Domain Identifier for environment profile.
    environment_blueprint_identifier str
    ID of the blueprint which the environment will be created with.
    name str
    Name of the environment profile.
    project_identifier str

    Project identifier for environment profile.

    The following arguments are optional:

    updated_at str
    Time of last update to environment profile.
    user_parameters Sequence[EnvironmentProfileUserParameterArgs]
    Array of user parameters of the environment profile with the following attributes:
    awsAccountId String
    Id of the AWS account being used.
    awsAccountRegion String
    Desired region for environment profile.
    createdAt String
    Creation time of environment profile.
    createdBy String
    Creator of environment profile.
    description String
    Description of environment profile.
    domainIdentifier String
    Domain Identifier for environment profile.
    environmentBlueprintIdentifier String
    ID of the blueprint which the environment will be created with.
    name String
    Name of the environment profile.
    projectIdentifier String

    Project identifier for environment profile.

    The following arguments are optional:

    updatedAt String
    Time of last update to environment profile.
    userParameters List<Property Map>
    Array of user parameters of the environment profile with the following attributes:

    Supporting Types

    EnvironmentProfileUserParameter, EnvironmentProfileUserParameterArgs

    Name string
    Name of the environment profile parameter.
    Value string
    Value of the environment profile parameter.
    Name string
    Name of the environment profile parameter.
    Value string
    Value of the environment profile parameter.
    name String
    Name of the environment profile parameter.
    value String
    Value of the environment profile parameter.
    name string
    Name of the environment profile parameter.
    value string
    Value of the environment profile parameter.
    name str
    Name of the environment profile parameter.
    value str
    Value of the environment profile parameter.
    name String
    Name of the environment profile parameter.
    value String
    Value of the environment profile parameter.

    Import

    Using pulumi import, import DataZone Environment Profile using a comma-delimited string combining id and domain_identifier. For example:

    $ pulumi import aws:datazone/environmentProfile:EnvironmentProfile example environment_profile-id-12345678,domain-id-12345678
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.54.0 published on Friday, Sep 27, 2024 by Pulumi