
com.pulumi.aws.datazone.Environment Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.datazone;
import com.pulumi.aws.Utilities;
import com.pulumi.aws.datazone.EnvironmentArgs;
import com.pulumi.aws.datazone.inputs.EnvironmentState;
import com.pulumi.aws.datazone.outputs.EnvironmentLastDeployment;
import com.pulumi.aws.datazone.outputs.EnvironmentProvisionedResource;
import com.pulumi.aws.datazone.outputs.EnvironmentTimeouts;
import com.pulumi.aws.datazone.outputs.EnvironmentUserParameter;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Resource for managing an AWS DataZone Environment.
*
* ## Example Usage
*
* ### Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* Using `pulumi import`, import DataZone Environment using the `domain_idntifier,id`. For example:
*
* ```sh
* $ pulumi import aws:datazone/environment:Environment example dzd_d2i7tzk3tnjjf4,5vpywijpwryec0
* ```
*
*/
@ResourceType(type="aws:datazone/environment:Environment")
public class Environment extends com.pulumi.resources.CustomResource {
/**
* The ID of the Amazon Web Services account where the environment exists
*
*/
@Export(name="accountIdentifier", refs={String.class}, tree="[0]")
private Output accountIdentifier;
/**
* @return The ID of the Amazon Web Services account where the environment exists
*
*/
public Output accountIdentifier() {
return this.accountIdentifier;
}
/**
* The Amazon Web Services region where the environment exists.
*
*/
@Export(name="accountRegion", refs={String.class}, tree="[0]")
private Output accountRegion;
/**
* @return The Amazon Web Services region where the environment exists.
*
*/
public Output accountRegion() {
return this.accountRegion;
}
/**
* The blueprint with which the environment is created.
*
*/
@Export(name="blueprintIdentifier", refs={String.class}, tree="[0]")
private Output blueprintIdentifier;
/**
* @return The blueprint with which the environment is created.
*
*/
public Output blueprintIdentifier() {
return this.blueprintIdentifier;
}
/**
* The time the environment was created.
*
*/
@Export(name="createdAt", refs={String.class}, tree="[0]")
private Output createdAt;
/**
* @return The time the environment was created.
*
*/
public Output createdAt() {
return this.createdAt;
}
/**
* The user who created the environment.
*
*/
@Export(name="createdBy", refs={String.class}, tree="[0]")
private Output createdBy;
/**
* @return The user who created the environment.
*
*/
public Output createdBy() {
return this.createdBy;
}
@Export(name="description", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> description;
public Output> description() {
return Codegen.optional(this.description);
}
/**
* The ID of the domain where the environment exists.
*
*/
@Export(name="domainIdentifier", refs={String.class}, tree="[0]")
private Output domainIdentifier;
/**
* @return The ID of the domain where the environment exists.
*
*/
public Output domainIdentifier() {
return this.domainIdentifier;
}
/**
* The business glossary terms that can be used in this environment.
*
*/
@Export(name="glossaryTerms", refs={List.class,String.class}, tree="[0,1]")
private Output* @Nullable */ List> glossaryTerms;
/**
* @return The business glossary terms that can be used in this environment.
*
*/
public Output>> glossaryTerms() {
return Codegen.optional(this.glossaryTerms);
}
/**
* The details of the last deployment of the environment.
*
*/
@Export(name="lastDeployments", refs={List.class,EnvironmentLastDeployment.class}, tree="[0,1]")
private Output> lastDeployments;
/**
* @return The details of the last deployment of the environment.
*
*/
public Output> lastDeployments() {
return this.lastDeployments;
}
/**
* The name of the environment.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return The name of the environment.
*
*/
public Output name() {
return this.name;
}
/**
* The ID of the profile with which the environment is created.
*
*/
@Export(name="profileIdentifier", refs={String.class}, tree="[0]")
private Output profileIdentifier;
/**
* @return The ID of the profile with which the environment is created.
*
*/
public Output profileIdentifier() {
return this.profileIdentifier;
}
/**
* The ID of the project where the environment exists.
*
* The following arguments are optional:
*
*/
@Export(name="projectIdentifier", refs={String.class}, tree="[0]")
private Output projectIdentifier;
/**
* @return The ID of the project where the environment exists.
*
* The following arguments are optional:
*
*/
public Output projectIdentifier() {
return this.projectIdentifier;
}
/**
* The provider of the environment.
*
*/
@Export(name="providerEnvironment", refs={String.class}, tree="[0]")
private Output providerEnvironment;
/**
* @return The provider of the environment.
*
*/
public Output providerEnvironment() {
return this.providerEnvironment;
}
@Export(name="provisionedResources", refs={List.class,EnvironmentProvisionedResource.class}, tree="[0,1]")
private Output> provisionedResources;
public Output> provisionedResources() {
return this.provisionedResources;
}
@Export(name="timeouts", refs={EnvironmentTimeouts.class}, tree="[0]")
private Output* @Nullable */ EnvironmentTimeouts> timeouts;
public Output> timeouts() {
return Codegen.optional(this.timeouts);
}
/**
* The user parameters that are used in the environment. See User Parameters for more information.
*
*/
@Export(name="userParameters", refs={List.class,EnvironmentUserParameter.class}, tree="[0,1]")
private Output* @Nullable */ List> userParameters;
/**
* @return The user parameters that are used in the environment. See User Parameters for more information.
*
*/
public Output>> userParameters() {
return Codegen.optional(this.userParameters);
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public Environment(java.lang.String name) {
this(name, EnvironmentArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public Environment(java.lang.String name, EnvironmentArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public Environment(java.lang.String name, EnvironmentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("aws:datazone/environment:Environment", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private Environment(java.lang.String name, Output id, @Nullable EnvironmentState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("aws:datazone/environment:Environment", name, state, makeResourceOptions(options, id), false);
}
private static EnvironmentArgs makeArgs(EnvironmentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? EnvironmentArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static Environment get(java.lang.String name, Output id, @Nullable EnvironmentState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new Environment(name, id, state, options);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy