We recommend new projects start with resources from the AWS provider.
published on Monday, Nov 2, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
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:
- Automatic
Stop intTime Minutes - 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<Pulumi.
Aws Native. Cloud9. Inputs. Environment Ec2Repository> - 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.
-
List<Pulumi.
Aws Native. Inputs. Tag> - An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.
- Automatic
Stop intTime Minutes - 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
[]Environment
Ec2Repository Args - 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.
-
Tag
Args - An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.
- automatic_
stop_ numbertime_ minutes - 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.
- list(object)
- An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.
- automatic
Stop IntegerTime Minutes - 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<Environment
Ec2Repository> - 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.
- List<Tag>
- An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.
- automatic
Stop numberTime Minutes - 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
Environment
Ec2Repository[] - 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.
- Tag[]
- An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.
- automatic_
stop_ inttime_ minutes - 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[Environment
Ec2Repository Args] - 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.
-
Sequence[Tag
Args] - An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.
- automatic
Stop NumberTime Minutes - 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<Property Map>
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- environment
Id 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.
- environment
Id String - The ID of the environment.
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
EnvironmentEc2Repository, EnvironmentEc2RepositoryArgs
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
Tag, TagArgs
A set of tags to apply to the resource.Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, Nov 2, 2026 by Pulumi