Try AWS Native preview for resources not in the classic version.
aws.codecatalyst.DevEnvironment
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Resource for managing an AWS CodeCatalyst Dev Environment.
Example Usage
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()
{
Alias = "devenv",
Ides = new Aws.CodeCatalyst.Inputs.DevEnvironmentIdesArgs
{
Name = "PyCharm",
Runtime = "public.ecr.aws/jetbrains/py",
},
InactivityTimeoutMinutes = 40,
InstanceType = "dev.standard1.small",
PersistentStorage = new Aws.CodeCatalyst.Inputs.DevEnvironmentPersistentStorageArgs
{
Size = 16,
},
ProjectName = "myproject",
Repositories = new[]
{
new Aws.CodeCatalyst.Inputs.DevEnvironmentRepositoryArgs
{
BranchName = "main",
RepositoryName = "TODO-provider-aws",
},
},
SpaceName = "myspace",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/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{
Alias: pulumi.String("devenv"),
Ides: &codecatalyst.DevEnvironmentIdesArgs{
Name: pulumi.String("PyCharm"),
Runtime: pulumi.String("public.ecr.aws/jetbrains/py"),
},
InactivityTimeoutMinutes: pulumi.Int(40),
InstanceType: pulumi.String("dev.standard1.small"),
PersistentStorage: &codecatalyst.DevEnvironmentPersistentStorageArgs{
Size: pulumi.Int(16),
},
ProjectName: pulumi.String("myproject"),
Repositories: codecatalyst.DevEnvironmentRepositoryArray{
&codecatalyst.DevEnvironmentRepositoryArgs{
BranchName: pulumi.String("main"),
RepositoryName: pulumi.String("TODO-provider-aws"),
},
},
SpaceName: pulumi.String("myspace"),
})
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.codecatalyst.DevEnvironment;
import com.pulumi.aws.codecatalyst.DevEnvironmentArgs;
import com.pulumi.aws.codecatalyst.inputs.DevEnvironmentIdesArgs;
import com.pulumi.aws.codecatalyst.inputs.DevEnvironmentPersistentStorageArgs;
import com.pulumi.aws.codecatalyst.inputs.DevEnvironmentRepositoryArgs;
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 test = new DevEnvironment("test", DevEnvironmentArgs.builder()
.alias("devenv")
.ides(DevEnvironmentIdesArgs.builder()
.name("PyCharm")
.runtime("public.ecr.aws/jetbrains/py")
.build())
.inactivityTimeoutMinutes(40)
.instanceType("dev.standard1.small")
.persistentStorage(DevEnvironmentPersistentStorageArgs.builder()
.size(16)
.build())
.projectName("myproject")
.repositories(DevEnvironmentRepositoryArgs.builder()
.branchName("main")
.repositoryName("TODO-provider-aws")
.build())
.spaceName("myspace")
.build());
}
}
import pulumi
import pulumi_aws as aws
test = aws.codecatalyst.DevEnvironment("test",
alias="devenv",
ides=aws.codecatalyst.DevEnvironmentIdesArgs(
name="PyCharm",
runtime="public.ecr.aws/jetbrains/py",
),
inactivity_timeout_minutes=40,
instance_type="dev.standard1.small",
persistent_storage=aws.codecatalyst.DevEnvironmentPersistentStorageArgs(
size=16,
),
project_name="myproject",
repositories=[aws.codecatalyst.DevEnvironmentRepositoryArgs(
branch_name="main",
repository_name="TODO-provider-aws",
)],
space_name="myspace")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = new aws.codecatalyst.DevEnvironment("test", {
alias: "devenv",
ides: {
name: "PyCharm",
runtime: "public.ecr.aws/jetbrains/py",
},
inactivityTimeoutMinutes: 40,
instanceType: "dev.standard1.small",
persistentStorage: {
size: 16,
},
projectName: "myproject",
repositories: [{
branchName: "main",
repositoryName: "TODO-provider-aws",
}],
spaceName: "myspace",
});
resources:
test:
type: aws:codecatalyst:DevEnvironment
properties:
alias: devenv
ides:
name: PyCharm
runtime: public.ecr.aws/jetbrains/py
inactivityTimeoutMinutes: 40
instanceType: dev.standard1.small
persistentStorage:
size: 16
projectName: myproject
repositories:
- branchName: main
repositoryName: TODO-provider-aws
spaceName: myspace
Create DevEnvironment Resource
new DevEnvironment(name: string, args: DevEnvironmentArgs, opts?: CustomResourceOptions);
@overload
def DevEnvironment(resource_name: str,
opts: Optional[ResourceOptions] = None,
alias: Optional[str] = None,
ides: Optional[DevEnvironmentIdesArgs] = None,
inactivity_timeout_minutes: Optional[int] = None,
instance_type: Optional[str] = None,
persistent_storage: Optional[DevEnvironmentPersistentStorageArgs] = None,
project_name: Optional[str] = None,
repositories: Optional[Sequence[DevEnvironmentRepositoryArgs]] = None,
space_name: Optional[str] = None)
@overload
def DevEnvironment(resource_name: str,
args: DevEnvironmentArgs,
opts: Optional[ResourceOptions] = None)
func NewDevEnvironment(ctx *Context, name string, args DevEnvironmentArgs, opts ...ResourceOption) (*DevEnvironment, error)
public DevEnvironment(string name, DevEnvironmentArgs args, CustomResourceOptions? opts = null)
public DevEnvironment(String name, DevEnvironmentArgs args)
public DevEnvironment(String name, DevEnvironmentArgs args, CustomResourceOptions options)
type: aws:codecatalyst:DevEnvironment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DevEnvironmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DevEnvironmentArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DevEnvironmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DevEnvironmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DevEnvironmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DevEnvironment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The DevEnvironment resource accepts the following input properties:
- Ides
Dev
Environment Ides Information about the integrated development environment (IDE) configured for a Dev Environment.
- Instance
Type 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
The following arguments are optional:
- Persistent
Storage DevEnvironment Persistent Storage Information about the amount of storage allocated to the Dev Environment.
- Project
Name string The name of the project in the space.
- Space
Name string The name of the space.
- Alias string
- Inactivity
Timeout intMinutes 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.
- Repositories
List<Dev
Environment Repository> The source repository that contains the branch to clone into the Dev Environment.
- Ides
Dev
Environment Ides Args Information about the integrated development environment (IDE) configured for a Dev Environment.
- Instance
Type 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
The following arguments are optional:
- Persistent
Storage DevEnvironment Persistent Storage Args Information about the amount of storage allocated to the Dev Environment.
- Project
Name string The name of the project in the space.
- Space
Name string The name of the space.
- Alias string
- Inactivity
Timeout intMinutes 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.
- Repositories
[]Dev
Environment Repository Args The source repository that contains the branch to clone into the Dev Environment.
- ides
Dev
Environment Ides Information about the integrated development environment (IDE) configured for a Dev Environment.
- instance
Type 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
The following arguments are optional:
- persistent
Storage DevEnvironment Persistent Storage Information about the amount of storage allocated to the Dev Environment.
- project
Name String The name of the project in the space.
- space
Name String The name of the space.
- alias String
- inactivity
Timeout IntegerMinutes 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.
- repositories
List<Dev
Environment Repository> The source repository that contains the branch to clone into the Dev Environment.
- ides
Dev
Environment Ides Information about the integrated development environment (IDE) configured for a Dev Environment.
- instance
Type 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
The following arguments are optional:
- persistent
Storage DevEnvironment Persistent Storage Information about the amount of storage allocated to the Dev Environment.
- project
Name string The name of the project in the space.
- space
Name string The name of the space.
- alias string
- inactivity
Timeout numberMinutes 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.
- repositories
Dev
Environment Repository[] The source repository that contains the branch to clone into the Dev Environment.
- ides
Dev
Environment Ides Args Information about the integrated development environment (IDE) configured for a Dev Environment.
- instance_
type str 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
The following arguments are optional:
- persistent_
storage DevEnvironment Persistent Storage Args Information about the amount of storage allocated to the Dev Environment.
- project_
name str The name of the project in the space.
- space_
name str The name of the space.
- alias str
- inactivity_
timeout_ intminutes 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.
- repositories
Sequence[Dev
Environment Repository Args] The source repository that contains the branch to clone into the Dev Environment.
- ides Property Map
Information about the integrated development environment (IDE) configured for a Dev Environment.
- instance
Type 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
The following arguments are optional:
- persistent
Storage Property Map Information about the amount of storage allocated to the Dev Environment.
- project
Name String The name of the project in the space.
- space
Name String The name of the space.
- alias String
- inactivity
Timeout NumberMinutes 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.
- repositories List<Property Map>
The source repository that contains the branch to clone into the Dev Environment.
Outputs
All input properties are implicitly available as output properties. Additionally, the DevEnvironment resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing DevEnvironment Resource
Get an existing DevEnvironment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DevEnvironmentState, opts?: CustomResourceOptions): DevEnvironment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alias: Optional[str] = None,
ides: Optional[DevEnvironmentIdesArgs] = None,
inactivity_timeout_minutes: Optional[int] = None,
instance_type: Optional[str] = None,
persistent_storage: Optional[DevEnvironmentPersistentStorageArgs] = None,
project_name: Optional[str] = None,
repositories: Optional[Sequence[DevEnvironmentRepositoryArgs]] = None,
space_name: Optional[str] = None) -> DevEnvironment
func GetDevEnvironment(ctx *Context, name string, id IDInput, state *DevEnvironmentState, opts ...ResourceOption) (*DevEnvironment, error)
public static DevEnvironment Get(string name, Input<string> id, DevEnvironmentState? state, CustomResourceOptions? opts = null)
public static DevEnvironment get(String name, Output<String> id, DevEnvironmentState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Alias string
- Ides
Dev
Environment Ides Information about the integrated development environment (IDE) configured for a Dev Environment.
- Inactivity
Timeout intMinutes 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.
- Instance
Type 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
The following arguments are optional:
- Persistent
Storage DevEnvironment Persistent Storage Information about the amount of storage allocated to the Dev Environment.
- Project
Name string The name of the project in the space.
- Repositories
List<Dev
Environment Repository> The source repository that contains the branch to clone into the Dev Environment.
- Space
Name string The name of the space.
- Alias string
- Ides
Dev
Environment Ides Args Information about the integrated development environment (IDE) configured for a Dev Environment.
- Inactivity
Timeout intMinutes 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.
- Instance
Type 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
The following arguments are optional:
- Persistent
Storage DevEnvironment Persistent Storage Args Information about the amount of storage allocated to the Dev Environment.
- Project
Name string The name of the project in the space.
- Repositories
[]Dev
Environment Repository Args The source repository that contains the branch to clone into the Dev Environment.
- Space
Name string The name of the space.
- alias String
- ides
Dev
Environment Ides Information about the integrated development environment (IDE) configured for a Dev Environment.
- inactivity
Timeout IntegerMinutes 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.
- instance
Type 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
The following arguments are optional:
- persistent
Storage DevEnvironment Persistent Storage Information about the amount of storage allocated to the Dev Environment.
- project
Name String The name of the project in the space.
- repositories
List<Dev
Environment Repository> The source repository that contains the branch to clone into the Dev Environment.
- space
Name String The name of the space.
- alias string
- ides
Dev
Environment Ides Information about the integrated development environment (IDE) configured for a Dev Environment.
- inactivity
Timeout numberMinutes 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.
- instance
Type 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
The following arguments are optional:
- persistent
Storage DevEnvironment Persistent Storage Information about the amount of storage allocated to the Dev Environment.
- project
Name string The name of the project in the space.
- repositories
Dev
Environment Repository[] The source repository that contains the branch to clone into the Dev Environment.
- space
Name string The name of the space.
- alias str
- ides
Dev
Environment Ides Args Information about the integrated development environment (IDE) configured for a Dev Environment.
- inactivity_
timeout_ intminutes 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.
- instance_
type str 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
The following arguments are optional:
- persistent_
storage DevEnvironment Persistent Storage Args Information about the amount of storage allocated to the Dev Environment.
- project_
name str The name of the project in the space.
- repositories
Sequence[Dev
Environment Repository Args] The source repository that contains the branch to clone into the Dev Environment.
- space_
name str The name of the space.
- alias String
- ides Property Map
Information about the integrated development environment (IDE) configured for a Dev Environment.
- inactivity
Timeout NumberMinutes 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.
- instance
Type 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
The following arguments are optional:
- persistent
Storage Property Map Information about the amount of storage allocated to the Dev Environment.
- project
Name String The name of the project in the space.
- repositories List<Property Map>
The source repository that contains the branch to clone into the Dev Environment.
- space
Name String The name of the space.
Supporting Types
DevEnvironmentIdes, DevEnvironmentIdesArgs
DevEnvironmentPersistentStorage, DevEnvironmentPersistentStorageArgs
- Size int
The size of the persistent storage in gigabytes (specifically GiB). Valid values for storage are based on memory sizes in 16GB increments. Valid values are 16, 32, and 64.
- Size int
The size of the persistent storage in gigabytes (specifically GiB). Valid values for storage are based on memory sizes in 16GB increments. Valid values are 16, 32, and 64.
- size Integer
The size of the persistent storage in gigabytes (specifically GiB). Valid values for storage are based on memory sizes in 16GB increments. Valid values are 16, 32, and 64.
- size number
The size of the persistent storage in gigabytes (specifically GiB). Valid values for storage are based on memory sizes in 16GB increments. Valid values are 16, 32, and 64.
- size int
The size of the persistent storage in gigabytes (specifically GiB). Valid values for storage are based on memory sizes in 16GB increments. Valid values are 16, 32, and 64.
- size Number
The size of the persistent storage in gigabytes (specifically GiB). Valid values for storage are based on memory sizes in 16GB increments. Valid values are 16, 32, and 64.
DevEnvironmentRepository, DevEnvironmentRepositoryArgs
- Repository
Name string The name of the source repository.
- Branch
Name string The name of the branch in a source repository.
persistent storage (
persistent_storage
) supports the following:
- Repository
Name string The name of the source repository.
- Branch
Name string The name of the branch in a source repository.
persistent storage (
persistent_storage
) supports the following:
- repository
Name String The name of the source repository.
- branch
Name String The name of the branch in a source repository.
persistent storage (
persistent_storage
) supports the following:
- repository
Name string The name of the source repository.
- branch
Name string The name of the branch in a source repository.
persistent storage (
persistent_storage
) supports the following:
- repository_
name str The name of the source repository.
- branch_
name str The name of the branch in a source repository.
persistent storage (
persistent_storage
) supports the following:
- repository
Name String The name of the source repository.
- branch
Name String The name of the branch in a source repository.
persistent storage (
persistent_storage
) supports the following:
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.