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

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

    Create EnvironmentEc2 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new EnvironmentEc2(name: string, args?: EnvironmentEc2Args, opts?: CustomResourceOptions);
    @overload
    def EnvironmentEc2(resource_name: str,
                       args: Optional[EnvironmentEc2Args] = None,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def EnvironmentEc2(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       automatic_stop_time_minutes: Optional[int] = None,
                       connection_type: Optional[str] = None,
                       description: Optional[str] = None,
                       image_id: Optional[str] = None,
                       instance_type: Optional[str] = None,
                       name: Optional[str] = None,
                       owner_arn: Optional[str] = None,
                       repositories: Optional[Sequence[EnvironmentEc2RepositoryArgs]] = None,
                       subnet_id: Optional[str] = None,
                       tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
    func NewEnvironmentEc2(ctx *Context, name string, args *EnvironmentEc2Args, opts ...ResourceOption) (*EnvironmentEc2, error)
    public EnvironmentEc2(string name, EnvironmentEc2Args? args = null, CustomResourceOptions? opts = null)
    public EnvironmentEc2(String name, EnvironmentEc2Args args)
    public EnvironmentEc2(String name, EnvironmentEc2Args args, CustomResourceOptions options)
    
    type: aws-native:cloud9:EnvironmentEc2
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_cloud9_environment_ec2" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args EnvironmentEc2Args
    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 EnvironmentEc2Args
    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 EnvironmentEc2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EnvironmentEc2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EnvironmentEc2Args
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    EnvironmentEc2 Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The EnvironmentEc2 resource accepts the following input properties:

    AutomaticStopTimeMinutes int
    The number of minutes until the running instance is shut down after the environment was last used.
    ConnectionType string
    The connection type used for connecting to an Amazon EC2 environment.
    Description string
    The description of the environment.
    ImageId string
    The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance.
    InstanceType string
    The type of instance to connect to the environment.
    Name string
    The name of the environment.
    OwnerArn string
    The Amazon Resource Name (ARN) of the environment owner.
    Repositories List<Pulumi.AwsNative.Cloud9.Inputs.EnvironmentEc2Repository>
    Any AWS CodeCommit source code repositories to be cloned into the development environment.
    SubnetId string
    The ID of the subnet in Amazon VPC that AWS Cloud9 will use.
    Tags List<Pulumi.AwsNative.Inputs.Tag>
    An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.
    AutomaticStopTimeMinutes int
    The number of minutes until the running instance is shut down after the environment was last used.
    ConnectionType string
    The connection type used for connecting to an Amazon EC2 environment.
    Description string
    The description of the environment.
    ImageId string
    The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance.
    InstanceType string
    The type of instance to connect to the environment.
    Name string
    The name of the environment.
    OwnerArn string
    The Amazon Resource Name (ARN) of the environment owner.
    Repositories []EnvironmentEc2RepositoryArgs
    Any AWS CodeCommit source code repositories to be cloned into the development environment.
    SubnetId string
    The ID of the subnet in Amazon VPC that AWS Cloud9 will use.
    Tags TagArgs
    An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.
    automatic_stop_time_minutes number
    The number of minutes until the running instance is shut down after the environment was last used.
    connection_type string
    The connection type used for connecting to an Amazon EC2 environment.
    description string
    The description of the environment.
    image_id string
    The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance.
    instance_type string
    The type of instance to connect to the environment.
    name string
    The name of the environment.
    owner_arn string
    The Amazon Resource Name (ARN) of the environment owner.
    repositories list(object)
    Any AWS CodeCommit source code repositories to be cloned into the development environment.
    subnet_id string
    The ID of the subnet in Amazon VPC that AWS Cloud9 will use.
    tags list(object)
    An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.
    automaticStopTimeMinutes Integer
    The number of minutes until the running instance is shut down after the environment was last used.
    connectionType String
    The connection type used for connecting to an Amazon EC2 environment.
    description String
    The description of the environment.
    imageId String
    The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance.
    instanceType String
    The type of instance to connect to the environment.
    name String
    The name of the environment.
    ownerArn String
    The Amazon Resource Name (ARN) of the environment owner.
    repositories List<EnvironmentEc2Repository>
    Any AWS CodeCommit source code repositories to be cloned into the development environment.
    subnetId String
    The ID of the subnet in Amazon VPC that AWS Cloud9 will use.
    tags List<Tag>
    An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.
    automaticStopTimeMinutes number
    The number of minutes until the running instance is shut down after the environment was last used.
    connectionType string
    The connection type used for connecting to an Amazon EC2 environment.
    description string
    The description of the environment.
    imageId string
    The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance.
    instanceType string
    The type of instance to connect to the environment.
    name string
    The name of the environment.
    ownerArn string
    The Amazon Resource Name (ARN) of the environment owner.
    repositories EnvironmentEc2Repository[]
    Any AWS CodeCommit source code repositories to be cloned into the development environment.
    subnetId string
    The ID of the subnet in Amazon VPC that AWS Cloud9 will use.
    tags Tag[]
    An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.
    automatic_stop_time_minutes int
    The number of minutes until the running instance is shut down after the environment was last used.
    connection_type str
    The connection type used for connecting to an Amazon EC2 environment.
    description str
    The description of the environment.
    image_id str
    The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance.
    instance_type str
    The type of instance to connect to the environment.
    name str
    The name of the environment.
    owner_arn str
    The Amazon Resource Name (ARN) of the environment owner.
    repositories Sequence[EnvironmentEc2RepositoryArgs]
    Any AWS CodeCommit source code repositories to be cloned into the development environment.
    subnet_id str
    The ID of the subnet in Amazon VPC that AWS Cloud9 will use.
    tags Sequence[TagArgs]
    An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.
    automaticStopTimeMinutes Number
    The number of minutes until the running instance is shut down after the environment was last used.
    connectionType String
    The connection type used for connecting to an Amazon EC2 environment.
    description String
    The description of the environment.
    imageId String
    The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance.
    instanceType String
    The type of instance to connect to the environment.
    name String
    The name of the environment.
    ownerArn String
    The Amazon Resource Name (ARN) of the environment owner.
    repositories List<Property Map>
    Any AWS CodeCommit source code repositories to be cloned into the development environment.
    subnetId String
    The ID of the subnet in Amazon VPC that AWS Cloud9 will use.
    tags List<Property Map>
    An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the EnvironmentEc2 resource produces the following output properties:

    Arn string
    The Amazon Resource Name (ARN) of the development environment.
    EnvironmentId string
    The ID of the environment.
    Id string
    The provider-assigned unique ID for this managed resource.
    Arn string
    The Amazon Resource Name (ARN) of the development environment.
    EnvironmentId string
    The ID of the environment.
    Id string
    The provider-assigned unique ID for this managed resource.
    arn string
    The Amazon Resource Name (ARN) of the development environment.
    environment_id string
    The ID of the environment.
    id string
    The provider-assigned unique ID for this managed resource.
    arn String
    The Amazon Resource Name (ARN) of the development environment.
    environmentId String
    The ID of the environment.
    id String
    The provider-assigned unique ID for this managed resource.
    arn string
    The Amazon Resource Name (ARN) of the development environment.
    environmentId string
    The ID of the environment.
    id string
    The provider-assigned unique ID for this managed resource.
    arn str
    The Amazon Resource Name (ARN) of the development environment.
    environment_id str
    The ID of the environment.
    id str
    The provider-assigned unique ID for this managed resource.
    arn String
    The Amazon Resource Name (ARN) of the development environment.
    environmentId String
    The ID of the environment.
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    EnvironmentEc2Repository, EnvironmentEc2RepositoryArgs

    PathComponent string
    The path within the development environment's default file system location to clone the AWS CodeCommit repository into.
    RepositoryUrl string
    The clone URL of the AWS CodeCommit repository to be cloned.
    PathComponent string
    The path within the development environment's default file system location to clone the AWS CodeCommit repository into.
    RepositoryUrl string
    The clone URL of the AWS CodeCommit repository to be cloned.
    path_component string
    The path within the development environment's default file system location to clone the AWS CodeCommit repository into.
    repository_url string
    The clone URL of the AWS CodeCommit repository to be cloned.
    pathComponent String
    The path within the development environment's default file system location to clone the AWS CodeCommit repository into.
    repositoryUrl String
    The clone URL of the AWS CodeCommit repository to be cloned.
    pathComponent string
    The path within the development environment's default file system location to clone the AWS CodeCommit repository into.
    repositoryUrl string
    The clone URL of the AWS CodeCommit repository to be cloned.
    path_component str
    The path within the development environment's default file system location to clone the AWS CodeCommit repository into.
    repository_url str
    The clone URL of the AWS CodeCommit repository to be cloned.
    pathComponent String
    The path within the development environment's default file system location to clone the AWS CodeCommit repository into.
    repositoryUrl String
    The clone URL of the AWS CodeCommit repository to be cloned.

    Tag, TagArgs

    A set of tags to apply to the resource.
    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