Class Environment


  • public class Environment
    extends com.pulumi.resources.CustomResource
    Resource for managing an AWS DataZone Environment. ## Example Usage ### Basic Usage
     
     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.ArrayList;
     import java.util.Arrays;
     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()
                 .userParameters(            
                     EnvironmentUserParameterArgs.builder()
                         .name("consumerGlueDbName")
                         .value("consumer")
                         .build(),
                     EnvironmentUserParameterArgs.builder()
                         .name("producerGlueDbName")
                         .value("producer")
                         .build(),
                     EnvironmentUserParameterArgs.builder()
                         .name("workgroupName")
                         .value("workgroup")
                         .build())
                 .name("example")
                 .blueprintIdentifier(test.environmentBlueprintId())
                 .profileIdentifier(testAwsDatazoneEnvironmentProfile.id())
                 .projectIdentifier(testAwsDatazoneProject.id())
                 .domainIdentifier(testAwsDatazoneDomain.id())
                 .build());
     
         }
     }
     
     
    ## Import ### Identity Schema #### Required * `domainIdentifier` - (String) Identifier of the DataZone domain. * `id` - (String) ID of the environment. #### Optional * `accountId` (String) AWS Account where this resource is managed. * `region` (String) Region where this resource is managed. Using `pulumi import`, import DataZone Environment using the `domain_idntifier,id`. For example: ```sh $ pulumi import aws:datazone/environment:Environment example dzd_d2i7tzk3tnjjf4,5vpywijpwryec0 ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.lang.String> accountIdentifier()  
      com.pulumi.core.Output<java.lang.String> accountRegion()  
      com.pulumi.core.Output<java.lang.String> blueprintIdentifier()  
      com.pulumi.core.Output<java.lang.String> createdAt()  
      com.pulumi.core.Output<java.lang.String> createdBy()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()  
      com.pulumi.core.Output<java.lang.String> domainIdentifier()  
      static Environment get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, EnvironmentState state, com.pulumi.resources.CustomResourceOptions options)
      Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
      com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> glossaryTerms()  
      com.pulumi.core.Output<java.util.List<EnvironmentLastDeployment>> lastDeployments()  
      com.pulumi.core.Output<java.lang.String> name()  
      com.pulumi.core.Output<java.lang.String> profileIdentifier()  
      com.pulumi.core.Output<java.lang.String> projectIdentifier()  
      com.pulumi.core.Output<java.lang.String> providerEnvironment()  
      com.pulumi.core.Output<java.util.List<EnvironmentProvisionedResource>> provisionedResources()  
      com.pulumi.core.Output<java.lang.String> region()  
      com.pulumi.core.Output<java.util.Optional<EnvironmentTimeouts>> timeouts()  
      com.pulumi.core.Output<java.util.Optional<java.util.List<EnvironmentUserParameter>>> userParameters()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Environment

        public Environment​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • Environment

        public Environment​(java.lang.String name,
                           EnvironmentArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • Environment

        public Environment​(java.lang.String name,
                           EnvironmentArgs args,
                           @Nullable
                           com.pulumi.resources.CustomResourceOptions options)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
        options - A bag of options that control this resource's behavior.
    • Method Detail

      • accountIdentifier

        public com.pulumi.core.Output<java.lang.String> accountIdentifier()
        Returns:
        The ID of the Amazon Web Services account where the environment exists
      • accountRegion

        public com.pulumi.core.Output<java.lang.String> accountRegion()
        Returns:
        The Amazon Web Services region where the environment exists.
      • blueprintIdentifier

        public com.pulumi.core.Output<java.lang.String> blueprintIdentifier()
        Returns:
        The blueprint with which the environment is created.
      • createdAt

        public com.pulumi.core.Output<java.lang.String> createdAt()
        Returns:
        The time the environment was created.
      • createdBy

        public com.pulumi.core.Output<java.lang.String> createdBy()
        Returns:
        The user who created the environment.
      • description

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()
        Returns:
        The description of the environment.
      • domainIdentifier

        public com.pulumi.core.Output<java.lang.String> domainIdentifier()
        Returns:
        The ID of the domain where the environment exists.
      • glossaryTerms

        public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> glossaryTerms()
        Returns:
        The business glossary terms that can be used in this environment.
      • lastDeployments

        public com.pulumi.core.Output<java.util.List<EnvironmentLastDeployment>> lastDeployments()
        Returns:
        The details of the last deployment of the environment.
      • name

        public com.pulumi.core.Output<java.lang.String> name()
        Returns:
        The name of the environment.
      • profileIdentifier

        public com.pulumi.core.Output<java.lang.String> profileIdentifier()
        Returns:
        The ID of the profile with which the environment is created.
      • projectIdentifier

        public com.pulumi.core.Output<java.lang.String> projectIdentifier()
        Returns:
        The ID of the project where the environment exists. The following arguments are optional:
      • providerEnvironment

        public com.pulumi.core.Output<java.lang.String> providerEnvironment()
        Returns:
        The provider of the environment.
      • region

        public com.pulumi.core.Output<java.lang.String> region()
        Returns:
        Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
      • userParameters

        public com.pulumi.core.Output<java.util.Optional<java.util.List<EnvironmentUserParameter>>> userParameters()
        Returns:
        The user parameters that are used in the environment. See User Parameters for more information. Changing these values recreates the resource.
      • get

        public static Environment get​(java.lang.String name,
                                      com.pulumi.core.Output<java.lang.String> id,
                                      @Nullable
                                      EnvironmentState state,
                                      @Nullable
                                      com.pulumi.resources.CustomResourceOptions options)
        Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
        Parameters:
        name - The _unique_ name of the resulting resource.
        id - The _unique_ provider ID of the resource to lookup.
        state -
        options - Optional settings to control the behavior of the CustomResource.