Class DevEnvironment


  • public class DevEnvironment
    extends com.pulumi.resources.CustomResource
    Resource for managing an AWS CodeCatalyst Dev Environment. ## Example Usage
     
     package generated_program;
     
     import com.pulumi.Context;
     import com.pulumi.Pulumi;
     import com.pulumi.core.Output;
     import com.pulumi.aws.codecatalyst.DevEnvironment;
     import com.pulumi.aws.codecatalyst.DevEnvironmentArgs;
     import com.pulumi.aws.codecatalyst.inputs.DevEnvironmentPersistentStorageArgs;
     import com.pulumi.aws.codecatalyst.inputs.DevEnvironmentIdesArgs;
     import com.pulumi.aws.codecatalyst.inputs.DevEnvironmentRepositoryArgs;
     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 test = new DevEnvironment("test", DevEnvironmentArgs.builder()
                 .persistentStorage(DevEnvironmentPersistentStorageArgs.builder()
                     .size(16)
                     .build())
                 .ides(DevEnvironmentIdesArgs.builder()
                     .name("PyCharm")
                     .runtime("public.ecr.aws/jetbrains/py")
                     .build())
                 .repositories(DevEnvironmentRepositoryArgs.builder()
                     .repositoryName("pulumi-provider-aws")
                     .branchName("main")
                     .build())
                 .alias("devenv")
                 .spaceName("myspace")
                 .projectName("myproject")
                 .instanceType("dev.standard1.small")
                 .inactivityTimeoutMinutes(40)
                 .build());
     
         }
     }
     
     
    • 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.util.Optional<java.lang.String>> alias()  
      static DevEnvironment get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, DevEnvironmentState 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<DevEnvironmentIdes> ides()  
      com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> inactivityTimeoutMinutes()  
      com.pulumi.core.Output<java.lang.String> instanceType()  
      com.pulumi.core.Output<DevEnvironmentPersistentStorage> persistentStorage()  
      com.pulumi.core.Output<java.lang.String> projectName()  
      com.pulumi.core.Output<java.lang.String> region()  
      com.pulumi.core.Output<java.util.Optional<java.util.List<DevEnvironmentRepository>>> repositories()  
      com.pulumi.core.Output<java.lang.String> spaceName()  
      • 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

      • DevEnvironment

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

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

        public DevEnvironment​(java.lang.String name,
                              DevEnvironmentArgs 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

      • alias

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> alias()
      • ides

        public com.pulumi.core.Output<DevEnvironmentIdes> ides()
        Returns:
        Information about the integrated development environment (IDE) configured for a Dev Environment.
      • inactivityTimeoutMinutes

        public com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> inactivityTimeoutMinutes()
        Returns:
        The amount of time the Dev Environment will run without any activity detected before stopping, in minutes. Only whole integers are allowed. Dev Environments consume compute minutes when running.
      • instanceType

        public com.pulumi.core.Output<java.lang.String> instanceType()
        Returns:
        The Amazon EC2 instance type to use for the Dev Environment. Valid values include dev.standard1.small,dev.standard1.medium,dev.standard1.large,dev.standard1.xlarge The following arguments are optional:
      • persistentStorage

        public com.pulumi.core.Output<DevEnvironmentPersistentStorage> persistentStorage()
        Returns:
        Information about the amount of storage allocated to the Dev Environment.
      • projectName

        public com.pulumi.core.Output<java.lang.String> projectName()
        Returns:
        The name of the project in the space.
      • 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.
      • repositories

        public com.pulumi.core.Output<java.util.Optional<java.util.List<DevEnvironmentRepository>>> repositories()
        Returns:
        The source repository that contains the branch to clone into the Dev Environment.
      • spaceName

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

        public static DevEnvironment get​(java.lang.String name,
                                         com.pulumi.core.Output<java.lang.String> id,
                                         @Nullable
                                         DevEnvironmentState 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.