Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi
aws.codecatalyst.getDevEnvironment
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi
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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:codecatalyst/getDevEnvironment:getDevEnvironment
arguments:
# arguments dictionary
The following arguments are supported:
- Env
Id 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.
- Project
Name string - The name of the project in the space.
- Space
Name string - The name of the space.
- Alias string
- The user-specified alias for the Dev Environment.
- Creator
Id string - The system-generated unique ID of the user who created the Dev Environment.
- Repositories
List<Get
Dev Environment Repository> - The source repository that contains the branch to clone into the Dev Environment.
- Dictionary<string, string>
- Env
Id 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.
- Project
Name string - The name of the project in the space.
- Space
Name string - The name of the space.
- Alias string
- The user-specified alias for the Dev Environment.
- Creator
Id string - The system-generated unique ID of the user who created the Dev Environment.
- Repositories
[]Get
Dev Environment Repository - The source repository that contains the branch to clone into the Dev Environment.
- map[string]string
- env
Id 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.
- project
Name String - The name of the project in the space.
- space
Name String - The name of the space.
- alias String
- The user-specified alias for the Dev Environment.
- creator
Id String - The system-generated unique ID of the user who created the Dev Environment.
- repositories
List<Get
Dev Environment Repository> - The source repository that contains the branch to clone into the Dev Environment.
- Map<String,String>
- env
Id 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.
- project
Name string - The name of the project in the space.
- space
Name string - The name of the space.
- alias string
- The user-specified alias for the Dev Environment.
- creator
Id string - The system-generated unique ID of the user who created the Dev Environment.
- repositories
Get
Dev 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[Get
Dev Environment Repository] - The source repository that contains the branch to clone into the Dev Environment.
- Mapping[str, str]
- env
Id 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.
- project
Name String - The name of the project in the space.
- space
Name String - The name of the space.
- alias String
- The user-specified alias for the Dev Environment.
- creator
Id 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:
- Env
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Ides
List<Get
Dev 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 string - The Amazon EC2 instace type to use for the Dev Environment.
- Last
Updated stringTime - The time when the Dev Environment was last updated, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.
- Persistent
Storages List<GetDev Environment Persistent Storage> - Information about the amount of storage allocated to the Dev Environment.
- Project
Name string - Space
Name string - Status string
- The current status of the Dev Environment. From: PENDING | RUNNING | STARTING | STOPPING | STOPPED | FAILED | DELETING | DELETED.
- Status
Reason string - The reason for the status.
- Dictionary<string, string>
- Alias string
- The user-specified alias for the Dev Environment.
- Creator
Id string - The system-generated unique ID of the user who created the Dev Environment.
- Repositories
List<Get
Dev Environment Repository> - The source repository that contains the branch to clone into the Dev Environment.
- Env
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Ides
[]Get
Dev 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 string - The Amazon EC2 instace type to use for the Dev Environment.
- Last
Updated stringTime - The time when the Dev Environment was last updated, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.
- Persistent
Storages []GetDev Environment Persistent Storage - Information about the amount of storage allocated to the Dev Environment.
- Project
Name string - Space
Name string - Status string
- The current status of the Dev Environment. From: PENDING | RUNNING | STARTING | STOPPING | STOPPED | FAILED | DELETING | DELETED.
- Status
Reason string - The reason for the status.
- map[string]string
- Alias string
- The user-specified alias for the Dev Environment.
- Creator
Id string - The system-generated unique ID of the user who created the Dev Environment.
- Repositories
[]Get
Dev Environment Repository - The source repository that contains the branch to clone into the Dev Environment.
- env
Id String - id String
- The provider-assigned unique ID for this managed resource.
- ides
List<Get
Dev Environment Ide> - 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.
- last
Updated StringTime - The time when the Dev Environment was last updated, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.
- persistent
Storages List<GetDev Environment Persistent Storage> - Information about the amount of storage allocated to the Dev Environment.
- project
Name String - space
Name String - status String
- The current status of the Dev Environment. From: PENDING | RUNNING | STARTING | STOPPING | STOPPED | FAILED | DELETING | DELETED.
- status
Reason String - The reason for the status.
- Map<String,String>
- alias String
- The user-specified alias for the Dev Environment.
- creator
Id String - The system-generated unique ID of the user who created the Dev Environment.
- repositories
List<Get
Dev Environment Repository> - The source repository that contains the branch to clone into the Dev Environment.
- env
Id string - id string
- The provider-assigned unique ID for this managed resource.
- ides
Get
Dev Environment Ide[] - 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.
- last
Updated stringTime - The time when the Dev Environment was last updated, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.
- persistent
Storages GetDev Environment Persistent Storage[] - Information about the amount of storage allocated to the Dev Environment.
- project
Name string - space
Name string - status string
- The current status of the Dev Environment. From: PENDING | RUNNING | STARTING | STOPPING | STOPPED | FAILED | DELETING | DELETED.
- status
Reason string - The reason for the status.
- {[key: string]: string}
- alias string
- The user-specified alias for the Dev Environment.
- creator
Id string - The system-generated unique ID of the user who created the Dev Environment.
- repositories
Get
Dev 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[Get
Dev 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[Get
Dev Environment Repository] - The source repository that contains the branch to clone into the Dev Environment.
- env
Id 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.
- 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.
- last
Updated StringTime - The time when the Dev Environment was last updated, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.
- persistent
Storages List<Property Map> - Information about the amount of storage allocated to the Dev Environment.
- project
Name String - space
Name String - status String
- The current status of the Dev Environment. From: PENDING | RUNNING | STARTING | STOPPING | STOPPED | FAILED | DELETING | DELETED.
- status
Reason String - The reason for the status.
- Map<String>
- alias String
- The user-specified alias for the Dev Environment.
- creator
Id 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
- Branch
Name string - Repository
Name string
- Branch
Name string - Repository
Name string
- branch
Name String - repository
Name String
- branch
Name string - repository
Name string
- branch_
name str - repository_
name str
- branch
Name String - repository
Name String
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.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi