DevEnvironment class

Resource for managing an AWS CodeCatalyst Dev Environment.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const test = new aws.codecatalyst.DevEnvironment("test", {
    persistentStorage: {
        size: 16,
    },
    ides: {
        name: "PyCharm",
        runtime: "public.ecr.aws/jetbrains/py",
    },
    repositories: [{
        repositoryName: "pulumi-provider-aws",
        branchName: "main",
    }],
    alias: "devenv",
    spaceName: "myspace",
    projectName: "myproject",
    instanceType: "dev.standard1.small",
    inactivityTimeoutMinutes: 40,
});
import pulumi
import pulumi_aws as aws

test = aws.codecatalyst.DevEnvironment("test",
    persistent_storage={
        "size": 16,
    },
    ides={
        "name": "PyCharm",
        "runtime": "public.ecr.aws/jetbrains/py",
    },
    repositories=[{
        "repository_name": "pulumi-provider-aws",
        "branch_name": "main",
    }],
    alias="devenv",
    space_name="myspace",
    project_name="myproject",
    instance_type="dev.standard1.small",
    inactivity_timeout_minutes=40)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() =>
{
    var test = new Aws.CodeCatalyst.DevEnvironment("test", new()
    {
        PersistentStorage = new Aws.CodeCatalyst.Inputs.DevEnvironmentPersistentStorageArgs
        {
            Size = 16,
        },
        Ides = new Aws.CodeCatalyst.Inputs.DevEnvironmentIdesArgs
        {
            Name = "PyCharm",
            Runtime = "public.ecr.aws/jetbrains/py",
        },
        Repositories = new[]
        {
            new Aws.CodeCatalyst.Inputs.DevEnvironmentRepositoryArgs
            {
                RepositoryName = "pulumi-provider-aws",
                BranchName = "main",
            },
        },
        Alias = "devenv",
        SpaceName = "myspace",
        ProjectName = "myproject",
        InstanceType = "dev.standard1.small",
        InactivityTimeoutMinutes = 40,
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/codecatalyst"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := codecatalyst.NewDevEnvironment(ctx, "test", &codecatalyst.DevEnvironmentArgs{
			PersistentStorage: &codecatalyst.DevEnvironmentPersistentStorageArgs{
				Size: pulumi.Int(16),
			},
			Ides: &codecatalyst.DevEnvironmentIdesArgs{
				Name:    pulumi.String("PyCharm"),
				Runtime: pulumi.String("public.ecr.aws/jetbrains/py"),
			},
			Repositories: codecatalyst.DevEnvironmentRepositoryArray{
				&codecatalyst.DevEnvironmentRepositoryArgs{
					RepositoryName: pulumi.String("pulumi-provider-aws"),
					BranchName:     pulumi.String("main"),
				},
			},
			Alias:                    pulumi.String("devenv"),
			SpaceName:                pulumi.String("myspace"),
			ProjectName:              pulumi.String("myproject"),
			InstanceType:             pulumi.String("dev.standard1.small"),
			InactivityTimeoutMinutes: pulumi.Int(40),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
pulumi {
  required_providers {
    aws = {
      source = "pulumi/aws"
    }
  }
}

resource "aws_codecatalyst_devenvironment" "test" {
  persistent_storage = {
    size = 16
  }
  ides = {
    name    = "PyCharm"
    runtime = "public.ecr.aws/jetbrains/py"
  }
  repositories {
    repository_name = "pulumi-provider-aws"
    branch_name     = "main"
  }
  alias                      = "devenv"
  space_name                 = "myspace"
  project_name               = "myproject"
  instance_type              = "dev.standard1.small"
  inactivity_timeout_minutes = 40
}
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());

    }
}
resources:
  test:
    type: aws:codecatalyst:DevEnvironment
    properties:
      persistentStorage:
        size: 16
      ides:
        name: PyCharm
        runtime: public.ecr.aws/jetbrains/py
      repositories:
        - repositoryName: pulumi-provider-aws
          branchName: main
      alias: devenv
      spaceName: myspace
      projectName: myproject
      instanceType: dev.standard1.small
      inactivityTimeoutMinutes: 40

Constructors

DevEnvironment(String name, {DevEnvironmentArgs? args, CustomResourceOptions? options})
Creates a new DevEnvironment. name The Pulumi resource name. args Arguments used to configure this DevEnvironment. The set of arguments for DevEnvironment. options Resource options controlling this resource's behavior.
DevEnvironment.reference(String urn)
Creates a typed reference to an existing DevEnvironment resource.

Properties

alias ↔ Output<String?>
latefinal
childResources Set<Resource>
finalinherited
completionSources Map<String, IOutputCompletionSource>
latefinalinherited
hashCode int
The hash code for this object.
no setterinherited
id ↔ Output<String>
getter/setter pairinherited
ides ↔ Output<DevEnvironmentIdes>
Information about the integrated development environment (IDE) configured for a Dev Environment.
latefinal
inactivityTimeoutMinutes ↔ Output<int?>
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.
latefinal
instanceType ↔ Output<String>
The Amazon EC2 instace type to use for the Dev Environment. Valid values include dev.standard1.small,dev.standard1.medium,dev.standard1.large,dev.standard1.xlarge
latefinal
isCustom bool
Returns whether this resource is provider-managed.
no setterinherited
isProtected bool
Returns whether this resource is protected from deletion.
no setterinherited
isRemote bool
Whether this resource is registered as remote.
no setterinherited
isResourceReference bool
Whether this instance represents a resource value returned over RPC.
finalinherited
persistentStorage ↔ Output<DevEnvironmentPersistentStorage>
Information about the amount of storage allocated to the Dev Environment.
latefinal
projectName ↔ Output<String>
The name of the project in the space.
latefinal
region ↔ Output<String>
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
latefinal
repositories ↔ Output<List<DevEnvironmentRepository>?>
The source repository that contains the branch to clone into the Dev Environment.
latefinal
resourceTransforms List<ResourceTransform>
Inherited/explicit async transforms.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spaceName ↔ Output<String>
The name of the space.
latefinal
transformations List<ResourceTransformation>
Inherited/explicit legacy transformations.
no setterinherited
urn ↔ Output<String>
latefinalinherited

Methods

failId(Object error) → void
Completes this resource ID with an error when registration fails.
inherited
failOutputs(Object error) → void
Completes all output properties with error.
inherited
failUrn(Object error) → void
Completes this resource URN with an error when registration fails.
inherited
getProvider(String moduleMember) → ProviderResource?
Returns provider for moduleMember's package, if configured.
inherited
getResourceName() String
Returns this resource's logical name.
inherited
getResourceType() String
Returns this resource's Pulumi type token.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerOutput<T>(String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output<T>
Registers a dynamic output property for this resource.
inherited
resolveId(String? value, {required bool isKnown}) → void
Resolves the provider-assigned ID for this resource.
inherited
resolveOutputs(Struct outputs) → void
Resolves all output properties from a monitor response payload.
inherited
resolveUrn(String value) → void
Resolves this resource's URN once assigned by the engine.
inherited
serializeProperties(Map<String, dynamic> properties) Future<Struct>
Serializes resource properties for RPC transmission.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

get(String name, Input<String> id, {DevEnvironmentState? state, CustomResourceOptions? options}) DevEnvironment
Gets an existing DevEnvironment resource's state with the given name and id.