AWS v6.73.0 published on Wednesday, Mar 19, 2025 by Pulumi
aws.codecatalyst.getDevEnvironment
Explore with Pulumi AI
Data source for managing an AWS CodeCatalyst Dev Environment.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.codecatalyst.getDevEnvironment({
    spaceName: "myspace",
    projectName: "myproject",
    envId: exampleAwsCodecatalystDevEnvironment.id,
});
import pulumi
import pulumi_aws as aws
example = aws.codecatalyst.get_dev_environment(space_name="myspace",
    project_name="myproject",
    env_id=example_aws_codecatalyst_dev_environment["id"])
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.LookupDevEnvironment(ctx, &codecatalyst.LookupDevEnvironmentArgs{
			SpaceName:   "myspace",
			ProjectName: "myproject",
			EnvId:       exampleAwsCodecatalystDevEnvironment.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var example = Aws.CodeCatalyst.GetDevEnvironment.Invoke(new()
    {
        SpaceName = "myspace",
        ProjectName = "myproject",
        EnvId = exampleAwsCodecatalystDevEnvironment.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.codecatalyst.CodecatalystFunctions;
import com.pulumi.aws.codecatalyst.inputs.GetDevEnvironmentArgs;
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) {
        final var example = CodecatalystFunctions.getDevEnvironment(GetDevEnvironmentArgs.builder()
            .spaceName("myspace")
            .projectName("myproject")
            .envId(exampleAwsCodecatalystDevEnvironment.id())
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: aws:codecatalyst:getDevEnvironment
      arguments:
        spaceName: myspace
        projectName: myproject
        envId: ${exampleAwsCodecatalystDevEnvironment.id}
Using getDevEnvironment
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDevEnvironment(args: GetDevEnvironmentArgs, opts?: InvokeOptions): Promise<GetDevEnvironmentResult>
function getDevEnvironmentOutput(args: GetDevEnvironmentOutputArgs, opts?: InvokeOptions): Output<GetDevEnvironmentResult>def get_dev_environment(alias: Optional[str] = None,
                        creator_id: Optional[str] = None,
                        env_id: Optional[str] = None,
                        project_name: Optional[str] = None,
                        repositories: Optional[Sequence[GetDevEnvironmentRepository]] = None,
                        space_name: Optional[str] = None,
                        tags: Optional[Mapping[str, str]] = None,
                        opts: Optional[InvokeOptions] = None) -> GetDevEnvironmentResult
def get_dev_environment_output(alias: Optional[pulumi.Input[str]] = None,
                        creator_id: Optional[pulumi.Input[str]] = None,
                        env_id: Optional[pulumi.Input[str]] = None,
                        project_name: Optional[pulumi.Input[str]] = None,
                        repositories: Optional[pulumi.Input[Sequence[pulumi.Input[GetDevEnvironmentRepositoryArgs]]]] = None,
                        space_name: Optional[pulumi.Input[str]] = None,
                        tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetDevEnvironmentResult]func LookupDevEnvironment(ctx *Context, args *LookupDevEnvironmentArgs, opts ...InvokeOption) (*LookupDevEnvironmentResult, error)
func LookupDevEnvironmentOutput(ctx *Context, args *LookupDevEnvironmentOutputArgs, opts ...InvokeOption) LookupDevEnvironmentResultOutput> Note: This function is named LookupDevEnvironment in the Go SDK.
public static class GetDevEnvironment 
{
    public static Task<GetDevEnvironmentResult> InvokeAsync(GetDevEnvironmentArgs args, InvokeOptions? opts = null)
    public static Output<GetDevEnvironmentResult> Invoke(GetDevEnvironmentInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDevEnvironmentResult> getDevEnvironment(GetDevEnvironmentArgs args, InvokeOptions options)
public static Output<GetDevEnvironmentResult> getDevEnvironment(GetDevEnvironmentArgs args, InvokeOptions options)
fn::invoke:
  function: aws:codecatalyst/getDevEnvironment:getDevEnvironment
  arguments:
    # arguments dictionaryThe following arguments are supported:
- EnvId string
- (Required) The system-generated unique ID of the Dev Environment for which you want to view information. To retrieve a list of Dev Environment IDs, use ListDevEnvironments.
 
- ProjectName string
- The name of the project in the space.
- SpaceName string
- The name of the space.
- Alias string
- The user-specified alias for the Dev Environment.
- CreatorId string
- The system-generated unique ID of the user who created the Dev Environment.
- Repositories
List<GetDev Environment Repository> 
- The source repository that contains the branch to clone into the Dev Environment.
- Dictionary<string, string>
- EnvId string
- (Required) The system-generated unique ID of the Dev Environment for which you want to view information. To retrieve a list of Dev Environment IDs, use ListDevEnvironments.
 
- ProjectName string
- The name of the project in the space.
- SpaceName string
- The name of the space.
- Alias string
- The user-specified alias for the Dev Environment.
- CreatorId string
- The system-generated unique ID of the user who created the Dev Environment.
- Repositories
[]GetDev Environment Repository 
- The source repository that contains the branch to clone into the Dev Environment.
- map[string]string
- envId String
- (Required) The system-generated unique ID of the Dev Environment for which you want to view information. To retrieve a list of Dev Environment IDs, use ListDevEnvironments.
 
- projectName String
- The name of the project in the space.
- spaceName String
- The name of the space.
- alias String
- The user-specified alias for the Dev Environment.
- creatorId String
- The system-generated unique ID of the user who created the Dev Environment.
- repositories
List<GetDev Environment Repository> 
- The source repository that contains the branch to clone into the Dev Environment.
- Map<String,String>
- envId string
- (Required) The system-generated unique ID of the Dev Environment for which you want to view information. To retrieve a list of Dev Environment IDs, use ListDevEnvironments.
 
- projectName string
- The name of the project in the space.
- spaceName string
- The name of the space.
- alias string
- The user-specified alias for the Dev Environment.
- creatorId string
- The system-generated unique ID of the user who created the Dev Environment.
- repositories
GetDev Environment Repository[] 
- The source repository that contains the branch to clone into the Dev Environment.
- {[key: string]: string}
- env_id str
- (Required) The system-generated unique ID of the Dev Environment for which you want to view information. To retrieve a list of Dev Environment IDs, use ListDevEnvironments.
 
- project_name str
- The name of the project in the space.
- space_name str
- The name of the space.
- alias str
- The user-specified alias for the Dev Environment.
- creator_id str
- The system-generated unique ID of the user who created the Dev Environment.
- repositories
Sequence[GetDev Environment Repository] 
- The source repository that contains the branch to clone into the Dev Environment.
- Mapping[str, str]
- envId String
- (Required) The system-generated unique ID of the Dev Environment for which you want to view information. To retrieve a list of Dev Environment IDs, use ListDevEnvironments.
 
- projectName String
- The name of the project in the space.
- spaceName String
- The name of the space.
- alias String
- The user-specified alias for the Dev Environment.
- creatorId String
- The system-generated unique ID of the user who created the Dev Environment.
- repositories List<Property Map>
- The source repository that contains the branch to clone into the Dev Environment.
- Map<String>
getDevEnvironment Result
The following output properties are available:
- EnvId string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ides
List<GetDev Environment Ide> 
- Information about the integrated development environment (IDE) configured for a Dev Environment.
- InactivityTimeout 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.
- InstanceType string
- The Amazon EC2 instace type to use for the Dev Environment.
- LastUpdated stringTime 
- The time when the Dev Environment was last updated, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.
- PersistentStorages List<GetDev Environment Persistent Storage> 
- Information about the amount of storage allocated to the Dev Environment.
- ProjectName string
- SpaceName string
- Status string
- The current status of the Dev Environment. From: PENDING | RUNNING | STARTING | STOPPING | STOPPED | FAILED | DELETING | DELETED.
- StatusReason string
- The reason for the status.
- Dictionary<string, string>
- Alias string
- The user-specified alias for the Dev Environment.
- CreatorId string
- The system-generated unique ID of the user who created the Dev Environment.
- Repositories
List<GetDev Environment Repository> 
- The source repository that contains the branch to clone into the Dev Environment.
- EnvId string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ides
[]GetDev Environment Ide 
- Information about the integrated development environment (IDE) configured for a Dev Environment.
- InactivityTimeout 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.
- InstanceType string
- The Amazon EC2 instace type to use for the Dev Environment.
- LastUpdated stringTime 
- The time when the Dev Environment was last updated, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.
- PersistentStorages []GetDev Environment Persistent Storage 
- Information about the amount of storage allocated to the Dev Environment.
- ProjectName string
- SpaceName string
- Status string
- The current status of the Dev Environment. From: PENDING | RUNNING | STARTING | STOPPING | STOPPED | FAILED | DELETING | DELETED.
- StatusReason string
- The reason for the status.
- map[string]string
- Alias string
- The user-specified alias for the Dev Environment.
- CreatorId string
- The system-generated unique ID of the user who created the Dev Environment.
- Repositories
[]GetDev Environment Repository 
- The source repository that contains the branch to clone into the Dev Environment.
- envId String
- id String
- The provider-assigned unique ID for this managed resource.
- ides
List<GetDev Environment Ide> 
- Information about the integrated development environment (IDE) configured for a Dev Environment.
- inactivityTimeout 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.
- instanceType String
- The Amazon EC2 instace type to use for the Dev Environment.
- lastUpdated StringTime 
- The time when the Dev Environment was last updated, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.
- persistentStorages List<GetDev Environment Persistent Storage> 
- Information about the amount of storage allocated to the Dev Environment.
- projectName String
- spaceName String
- status String
- The current status of the Dev Environment. From: PENDING | RUNNING | STARTING | STOPPING | STOPPED | FAILED | DELETING | DELETED.
- statusReason String
- The reason for the status.
- Map<String,String>
- alias String
- The user-specified alias for the Dev Environment.
- creatorId String
- The system-generated unique ID of the user who created the Dev Environment.
- repositories
List<GetDev Environment Repository> 
- The source repository that contains the branch to clone into the Dev Environment.
- envId string
- id string
- The provider-assigned unique ID for this managed resource.
- ides
GetDev Environment Ide[] 
- Information about the integrated development environment (IDE) configured for a Dev Environment.
- inactivityTimeout 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.
- instanceType string
- The Amazon EC2 instace type to use for the Dev Environment.
- lastUpdated stringTime 
- The time when the Dev Environment was last updated, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.
- persistentStorages GetDev Environment Persistent Storage[] 
- Information about the amount of storage allocated to the Dev Environment.
- projectName string
- spaceName string
- status string
- The current status of the Dev Environment. From: PENDING | RUNNING | STARTING | STOPPING | STOPPED | FAILED | DELETING | DELETED.
- statusReason string
- The reason for the status.
- {[key: string]: string}
- alias string
- The user-specified alias for the Dev Environment.
- creatorId string
- The system-generated unique ID of the user who created the Dev Environment.
- repositories
GetDev Environment Repository[] 
- The source repository that contains the branch to clone into the Dev Environment.
- env_id str
- id str
- The provider-assigned unique ID for this managed resource.
- ides
Sequence[GetDev Environment Ide] 
- 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.
- last_updated_ strtime 
- The time when the Dev Environment was last updated, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.
- persistent_storages Sequence[GetDev Environment Persistent Storage] 
- Information about the amount of storage allocated to the Dev Environment.
- project_name str
- space_name str
- status str
- The current status of the Dev Environment. From: PENDING | RUNNING | STARTING | STOPPING | STOPPED | FAILED | DELETING | DELETED.
- status_reason str
- The reason for the status.
- Mapping[str, str]
- alias str
- The user-specified alias for the Dev Environment.
- creator_id str
- The system-generated unique ID of the user who created the Dev Environment.
- repositories
Sequence[GetDev Environment Repository] 
- The source repository that contains the branch to clone into the Dev Environment.
- envId String
- id String
- The provider-assigned unique ID for this managed resource.
- ides List<Property Map>
- Information about the integrated development environment (IDE) configured for a Dev Environment.
- inactivityTimeout 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.
- instanceType String
- The Amazon EC2 instace type to use for the Dev Environment.
- lastUpdated StringTime 
- The time when the Dev Environment was last updated, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.
- persistentStorages List<Property Map>
- Information about the amount of storage allocated to the Dev Environment.
- projectName String
- spaceName String
- status String
- The current status of the Dev Environment. From: PENDING | RUNNING | STARTING | STOPPING | STOPPED | FAILED | DELETING | DELETED.
- statusReason String
- The reason for the status.
- Map<String>
- alias String
- The user-specified alias for the Dev Environment.
- creatorId String
- The system-generated unique ID of the user who created the Dev Environment.
- repositories List<Property Map>
- The source repository that contains the branch to clone into the Dev Environment.
Supporting Types
GetDevEnvironmentIde   
GetDevEnvironmentPersistentStorage    
- Size int
- Size int
- size Integer
- size number
- size int
- size Number
GetDevEnvironmentRepository   
- BranchName string
- RepositoryName string
- BranchName string
- RepositoryName string
- branchName String
- repositoryName String
- branchName string
- repositoryName string
- branch_name str
- repository_name str
- branchName String
- repositoryName String
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.