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",
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/cloud9"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := cloud9.NewEnvironmentEC2(ctx, "example", &cloud9.EnvironmentEC2Args{
            InstanceType: pulumi.String("t2.micro"),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

example = aws.cloud9.EnvironmentEC2("example", instance_type="t2.micro")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.cloud9.EnvironmentEC2("example", {
    instanceType: "t2.micro",
});

Create a EnvironmentEC2 Resource

def EnvironmentEC2(resource_name, opts=None, automatic_stop_time_minutes=None, description=None, instance_type=None, name=None, owner_arn=None, subnet_id=None, tags=None, __props__=None);
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.
opts ResourceOptions
A bag of options that control this 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.

EnvironmentEC2 Resource Properties

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

Inputs

The EnvironmentEC2 resource accepts the following input properties:

InstanceType string

The type of instance to connect to the environment, e.g. t2.micro.

AutomaticStopTimeMinutes int

The number of minutes until the running instance is shut down after the environment has last been used.

Description string

The description of the environment.

Name string

The name of the environment.

OwnerArn string

The ARN of the environment owner. This can be ARN of any AWS IAM principal. Defaults to the environment’s creator.

SubnetId string

The ID of the subnet in Amazon VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance.

Tags Dictionary<string, string>

Key-value map of resource tags

InstanceType string

The type of instance to connect to the environment, e.g. t2.micro.

AutomaticStopTimeMinutes int

The number of minutes until the running instance is shut down after the environment has last been used.

Description string

The description of the environment.

Name string

The name of the environment.

OwnerArn string

The ARN of the environment owner. This can be ARN of any AWS IAM principal. Defaults to the environment’s creator.

SubnetId string

The ID of the subnet in Amazon VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance.

Tags map[string]string

Key-value map of resource tags

instanceType string

The type of instance to connect to the environment, e.g. t2.micro.

automaticStopTimeMinutes number

The number of minutes until the running instance is shut down after the environment has last been used.

description string

The description of the environment.

name string

The name of the environment.

ownerArn string

The ARN of the environment owner. This can be ARN of any AWS IAM principal. Defaults to the environment’s creator.

subnetId string

The ID of the subnet in Amazon VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance.

tags {[key: string]: string}

Key-value map of resource tags

instance_type str

The type of instance to connect to the environment, e.g. t2.micro.

automatic_stop_time_minutes float

The number of minutes until the running instance is shut down after the environment has last been used.

description str

The description of the environment.

name str

The name of the environment.

owner_arn str

The ARN of the environment owner. This can be ARN of any AWS IAM principal. Defaults to the environment’s creator.

subnet_id str

The ID of the subnet in Amazon VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance.

tags Dict[str, str]

Key-value map of resource tags

Outputs

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

Arn string

The ARN of the environment.

Id string
The provider-assigned unique ID for this managed resource.
Type string

The type of the environment (e.g. ssh or ec2)

Arn string

The ARN of the environment.

Id string
The provider-assigned unique ID for this managed resource.
Type string

The type of the environment (e.g. ssh or ec2)

arn string

The ARN of the environment.

id string
The provider-assigned unique ID for this managed resource.
type string

The type of the environment (e.g. ssh or ec2)

arn str

The ARN of the environment.

id str
The provider-assigned unique ID for this managed resource.
type str

The type of the environment (e.g. ssh or ec2)

Look up an Existing EnvironmentEC2 Resource

Get an existing EnvironmentEC2 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: EnvironmentEC2State, opts?: CustomResourceOptions): EnvironmentEC2
static get(resource_name, id, opts=None, arn=None, automatic_stop_time_minutes=None, description=None, instance_type=None, name=None, owner_arn=None, subnet_id=None, tags=None, type=None, __props__=None);
func GetEnvironmentEC2(ctx *Context, name string, id IDInput, state *EnvironmentEC2State, opts ...ResourceOption) (*EnvironmentEC2, error)
public static EnvironmentEC2 Get(string name, Input<string> id, EnvironmentEC2State? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

Arn string

The ARN of the environment.

AutomaticStopTimeMinutes int

The number of minutes until the running instance is shut down after the environment has last been used.

Description string

The description of the environment.

InstanceType string

The type of instance to connect to the environment, e.g. t2.micro.

Name string

The name of the environment.

OwnerArn string

The ARN of the environment owner. This can be ARN of any AWS IAM principal. Defaults to the environment’s creator.

SubnetId string

The ID of the subnet in Amazon VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance.

Tags Dictionary<string, string>

Key-value map of resource tags

Type string

The type of the environment (e.g. ssh or ec2)

Arn string

The ARN of the environment.

AutomaticStopTimeMinutes int

The number of minutes until the running instance is shut down after the environment has last been used.

Description string

The description of the environment.

InstanceType string

The type of instance to connect to the environment, e.g. t2.micro.

Name string

The name of the environment.

OwnerArn string

The ARN of the environment owner. This can be ARN of any AWS IAM principal. Defaults to the environment’s creator.

SubnetId string

The ID of the subnet in Amazon VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance.

Tags map[string]string

Key-value map of resource tags

Type string

The type of the environment (e.g. ssh or ec2)

arn string

The ARN of the environment.

automaticStopTimeMinutes number

The number of minutes until the running instance is shut down after the environment has last been used.

description string

The description of the environment.

instanceType string

The type of instance to connect to the environment, e.g. t2.micro.

name string

The name of the environment.

ownerArn string

The ARN of the environment owner. This can be ARN of any AWS IAM principal. Defaults to the environment’s creator.

subnetId string

The ID of the subnet in Amazon VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance.

tags {[key: string]: string}

Key-value map of resource tags

type string

The type of the environment (e.g. ssh or ec2)

arn str

The ARN of the environment.

automatic_stop_time_minutes float

The number of minutes until the running instance is shut down after the environment has last been used.

description str

The description of the environment.

instance_type str

The type of instance to connect to the environment, e.g. t2.micro.

name str

The name of the environment.

owner_arn str

The ARN of the environment owner. This can be ARN of any AWS IAM principal. Defaults to the environment’s creator.

subnet_id str

The ID of the subnet in Amazon VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance.

tags Dict[str, str]

Key-value map of resource tags

type str

The type of the environment (e.g. ssh or ec2)

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.