1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. cloud9
  6. getEnvironmentEc2

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.85.0
published on Monday, Nov 2, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.85.0
published on Monday, Nov 2, 2026 by Pulumi

    Resource Type definition for AWS::Cloud9::EnvironmentEC2

    Using getEnvironmentEc2

    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 getEnvironmentEc2(args: GetEnvironmentEc2Args, opts?: InvokeOptions): Promise<GetEnvironmentEc2Result>
    function getEnvironmentEc2Output(args: GetEnvironmentEc2OutputArgs, opts?: InvokeOutputOptions): Output<GetEnvironmentEc2Result>
    def get_environment_ec2(environment_id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetEnvironmentEc2Result
    def get_environment_ec2_output(environment_id: pulumi.Input[Optional[str]] = None,
                            opts: Optional[InvokeOutputOptions] = None) -> Output[GetEnvironmentEc2Result]
    func LookupEnvironmentEc2(ctx *Context, args *LookupEnvironmentEc2Args, opts ...InvokeOption) (*LookupEnvironmentEc2Result, error)
    func LookupEnvironmentEc2Output(ctx *Context, args *LookupEnvironmentEc2OutputArgs, opts ...InvokeOption) LookupEnvironmentEc2ResultOutput

    > Note: This function is named LookupEnvironmentEc2 in the Go SDK.

    public static class GetEnvironmentEc2 
    {
        public static Task<GetEnvironmentEc2Result> InvokeAsync(GetEnvironmentEc2Args args, InvokeOptions? opts = null)
        public static Output<GetEnvironmentEc2Result> Invoke(GetEnvironmentEc2InvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetEnvironmentEc2Result> Invoke(GetEnvironmentEc2InvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetEnvironmentEc2Result> getEnvironmentEc2(GetEnvironmentEc2Args args, InvokeOptions options)
    public static Output<GetEnvironmentEc2Result> getEnvironmentEc2(GetEnvironmentEc2Args args, InvokeOptions options)
    public static Output<GetEnvironmentEc2Result> getEnvironmentEc2(GetEnvironmentEc2Args args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:cloud9:getEnvironmentEc2
      arguments:
        # arguments dictionary
    data "aws-native_cloud9_get_environment_ec2" "name" {
        # arguments
    }

    The following arguments are supported:

    EnvironmentId string
    The ID of the environment.
    EnvironmentId string
    The ID of the environment.
    environment_id string
    The ID of the environment.
    environmentId String
    The ID of the environment.
    environmentId string
    The ID of the environment.
    environment_id str
    The ID of the environment.
    environmentId String
    The ID of the environment.

    getEnvironmentEc2 Result

    The following output properties are available:

    Arn string
    The Amazon Resource Name (ARN) of the development environment.
    Description string
    The description of the environment.
    EnvironmentId string
    The ID of the environment.
    Name string
    The name of the environment.
    Tags List<Pulumi.AwsNative.Outputs.Tag>
    An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.
    Arn string
    The Amazon Resource Name (ARN) of the development environment.
    Description string
    The description of the environment.
    EnvironmentId string
    The ID of the environment.
    Name string
    The name of the environment.
    Tags Tag
    An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.
    arn string
    The Amazon Resource Name (ARN) of the development environment.
    description string
    The description of the environment.
    environment_id string
    The ID of the environment.
    name string
    The name of the environment.
    tags list(object)
    An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.
    arn String
    The Amazon Resource Name (ARN) of the development environment.
    description String
    The description of the environment.
    environmentId String
    The ID of the environment.
    name String
    The name of the environment.
    tags List<Tag>
    An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.
    arn string
    The Amazon Resource Name (ARN) of the development environment.
    description string
    The description of the environment.
    environmentId string
    The ID of the environment.
    name string
    The name of the environment.
    tags Tag[]
    An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.
    arn str
    The Amazon Resource Name (ARN) of the development environment.
    description str
    The description of the environment.
    environment_id str
    The ID of the environment.
    name str
    The name of the environment.
    tags Sequence[root_Tag]
    An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.
    arn String
    The Amazon Resource Name (ARN) of the development environment.
    description String
    The description of the environment.
    environmentId String
    The ID of the environment.
    name String
    The name of the environment.
    tags List<Property Map>
    An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.

    Supporting Types

    Tag

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo AWS Cloud Control

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.85.0
    published on Monday, Nov 2, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial