Class EnvironmentEC2
Provides a Cloud9 EC2 Development Environment.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Cloud9.EnvironmentEC2("example", new Aws.Cloud9.EnvironmentEC2Args
{
InstanceType = "t2.micro",
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Cloud9
Assembly: Pulumi.Aws.dll
Syntax
public class EnvironmentEC2 : CustomResource
Constructors
View SourceEnvironmentEC2(String, EnvironmentEC2Args, CustomResourceOptions)
Create a EnvironmentEC2 resource with the given unique name, arguments, and options.
Declaration
public EnvironmentEC2(string name, EnvironmentEC2Args args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| EnvironmentEC2Args | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceArn
The ARN of the environment.
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
AutomaticStopTimeMinutes
The number of minutes until the running instance is shut down after the environment has last been used.
Declaration
public Output<int?> AutomaticStopTimeMinutes { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
Description
The description of the environment.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
InstanceType
The type of instance to connect to the environment, e.g. t2.micro.
Declaration
public Output<string> InstanceType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The name of the environment.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
OwnerArn
The ARN of the environment owner. This can be ARN of any AWS IAM principal. Defaults to the environment's creator.
Declaration
public Output<string> OwnerArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SubnetId
The ID of the subnet in Amazon VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance.
Declaration
public Output<string> SubnetId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Tags
Key-value map of resource tags
Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
Type
The type of the environment (e.g. ssh or ec2)
Declaration
public Output<string> Type { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, EnvironmentEC2State, CustomResourceOptions)
Get an existing EnvironmentEC2 resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static EnvironmentEC2 Get(string name, Input<string> id, EnvironmentEC2State state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| EnvironmentEC2State | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| EnvironmentEC2 |