EnvironmentArgs

data class EnvironmentArgs(val accountIdentifier: Output<String>? = null, val accountRegion: Output<String>? = null, val blueprintIdentifier: Output<String>? = null, val description: Output<String>? = null, val domainIdentifier: Output<String>? = null, val glossaryTerms: Output<List<String>>? = null, val name: Output<String>? = null, val profileIdentifier: Output<String>? = null, val projectIdentifier: Output<String>? = null, val timeouts: Output<EnvironmentTimeoutsArgs>? = null, val userParameters: Output<List<EnvironmentUserParameterArgs>>? = null) : ConvertibleToJava<EnvironmentArgs>

Resource for managing an AWS DataZone Environment.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.datazone.Environment("example", {
name: "example",
accountIdentifier: test.accountId,
accountRegion: testAwsRegion.name,
blueprintIdentifier: testAwsDatazoneEnvironmentBlueprintConfiguration.environmentBlueprintId,
profileIdentifier: testAwsDatazoneEnvironmentProfile.id,
projectIdentifier: testAwsDatazoneProject.id,
domainIdentifier: testAwsDatazoneDomain.id,
userParameters: [
{
name: "consumerGlueDbName",
value: "consumer",
},
{
name: "producerGlueDbName",
value: "producer",
},
{
name: "workgroupName",
value: "workgroup",
},
],
});
import pulumi
import pulumi_aws as aws
example = aws.datazone.Environment("example",
name="example",
account_identifier=test["accountId"],
account_region=test_aws_region["name"],
blueprint_identifier=test_aws_datazone_environment_blueprint_configuration["environmentBlueprintId"],
profile_identifier=test_aws_datazone_environment_profile["id"],
project_identifier=test_aws_datazone_project["id"],
domain_identifier=test_aws_datazone_domain["id"],
user_parameters=[
{
"name": "consumerGlueDbName",
"value": "consumer",
},
{
"name": "producerGlueDbName",
"value": "producer",
},
{
"name": "workgroupName",
"value": "workgroup",
},
])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.DataZone.Environment("example", new()
{
Name = "example",
AccountIdentifier = test.AccountId,
AccountRegion = testAwsRegion.Name,
BlueprintIdentifier = testAwsDatazoneEnvironmentBlueprintConfiguration.EnvironmentBlueprintId,
ProfileIdentifier = testAwsDatazoneEnvironmentProfile.Id,
ProjectIdentifier = testAwsDatazoneProject.Id,
DomainIdentifier = testAwsDatazoneDomain.Id,
UserParameters = new[]
{
new Aws.DataZone.Inputs.EnvironmentUserParameterArgs
{
Name = "consumerGlueDbName",
Value = "consumer",
},
new Aws.DataZone.Inputs.EnvironmentUserParameterArgs
{
Name = "producerGlueDbName",
Value = "producer",
},
new Aws.DataZone.Inputs.EnvironmentUserParameterArgs
{
Name = "workgroupName",
Value = "workgroup",
},
},
});
});
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 {
_, err := datazone.NewEnvironment(ctx, "example", &datazone.EnvironmentArgs{
Name: pulumi.String("example"),
AccountIdentifier: pulumi.Any(test.AccountId),
AccountRegion: pulumi.Any(testAwsRegion.Name),
BlueprintIdentifier: pulumi.Any(testAwsDatazoneEnvironmentBlueprintConfiguration.EnvironmentBlueprintId),
ProfileIdentifier: pulumi.Any(testAwsDatazoneEnvironmentProfile.Id),
ProjectIdentifier: pulumi.Any(testAwsDatazoneProject.Id),
DomainIdentifier: pulumi.Any(testAwsDatazoneDomain.Id),
UserParameters: datazone.EnvironmentUserParameterArray{
&datazone.EnvironmentUserParameterArgs{
Name: pulumi.String("consumerGlueDbName"),
Value: pulumi.String("consumer"),
},
&datazone.EnvironmentUserParameterArgs{
Name: pulumi.String("producerGlueDbName"),
Value: pulumi.String("producer"),
},
&datazone.EnvironmentUserParameterArgs{
Name: pulumi.String("workgroupName"),
Value: pulumi.String("workgroup"),
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.datazone.Environment;
import com.pulumi.aws.datazone.EnvironmentArgs;
import com.pulumi.aws.datazone.inputs.EnvironmentUserParameterArgs;
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 example = new Environment("example", EnvironmentArgs.builder()
.name("example")
.accountIdentifier(test.accountId())
.accountRegion(testAwsRegion.name())
.blueprintIdentifier(testAwsDatazoneEnvironmentBlueprintConfiguration.environmentBlueprintId())
.profileIdentifier(testAwsDatazoneEnvironmentProfile.id())
.projectIdentifier(testAwsDatazoneProject.id())
.domainIdentifier(testAwsDatazoneDomain.id())
.userParameters(
EnvironmentUserParameterArgs.builder()
.name("consumerGlueDbName")
.value("consumer")
.build(),
EnvironmentUserParameterArgs.builder()
.name("producerGlueDbName")
.value("producer")
.build(),
EnvironmentUserParameterArgs.builder()
.name("workgroupName")
.value("workgroup")
.build())
.build());
}
}
resources:
example:
type: aws:datazone:Environment
properties:
name: example
accountIdentifier: ${test.accountId}
accountRegion: ${testAwsRegion.name}
blueprintIdentifier: ${testAwsDatazoneEnvironmentBlueprintConfiguration.environmentBlueprintId}
profileIdentifier: ${testAwsDatazoneEnvironmentProfile.id}
projectIdentifier: ${testAwsDatazoneProject.id}
domainIdentifier: ${testAwsDatazoneDomain.id}
userParameters:
- name: consumerGlueDbName
value: consumer
- name: producerGlueDbName
value: producer
- name: workgroupName
value: workgroup

Import

Using pulumi import, import DataZone Environment using the domain_idntifier,id. For example:

$ pulumi import aws:datazone/environment:Environment example dzd_d2i7tzk3tnjjf4,5vpywijpwryec0

Constructors

Link copied to clipboard
constructor(accountIdentifier: Output<String>? = null, accountRegion: Output<String>? = null, blueprintIdentifier: Output<String>? = null, description: Output<String>? = null, domainIdentifier: Output<String>? = null, glossaryTerms: Output<List<String>>? = null, name: Output<String>? = null, profileIdentifier: Output<String>? = null, projectIdentifier: Output<String>? = null, timeouts: Output<EnvironmentTimeoutsArgs>? = null, userParameters: Output<List<EnvironmentUserParameterArgs>>? = null)

Properties

Link copied to clipboard
val accountIdentifier: Output<String>? = null

The ID of the Amazon Web Services account where the environment exists

Link copied to clipboard
val accountRegion: Output<String>? = null

The Amazon Web Services region where the environment exists.

Link copied to clipboard
val blueprintIdentifier: Output<String>? = null

The blueprint with which the environment is created.

Link copied to clipboard
val description: Output<String>? = null

The description of the environment.

Link copied to clipboard
val domainIdentifier: Output<String>? = null

The ID of the domain where the environment exists.

Link copied to clipboard
val glossaryTerms: Output<List<String>>? = null

The business glossary terms that can be used in this environment.

Link copied to clipboard
val name: Output<String>? = null

The name of the environment.

Link copied to clipboard
val profileIdentifier: Output<String>? = null

The ID of the profile with which the environment is created.

Link copied to clipboard
val projectIdentifier: Output<String>? = null

The ID of the project where the environment exists. The following arguments are optional:

Link copied to clipboard
val timeouts: Output<EnvironmentTimeoutsArgs>? = null
Link copied to clipboard

The user parameters that are used in the environment. See User Parameters for more information.

Functions

Link copied to clipboard
open override fun toJava(): EnvironmentArgs