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
new EnvironmentEC2(name: string, args: EnvironmentEC2Args, opts?: CustomResourceOptions);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);func NewEnvironmentEC2(ctx *Context, name string, args EnvironmentEC2Args, opts ...ResourceOption) (*EnvironmentEC2, error)public EnvironmentEC2(string name, EnvironmentEC2Args args, CustomResourceOptions? opts = null)- 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:
- Instance
Type string The type of instance to connect to the environment, e.g.
t2.micro.- Automatic
Stop intTime Minutes 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.
- Owner
Arn string The ARN of the environment owner. This can be ARN of any AWS IAM principal. Defaults to the environment’s creator.
- Subnet
Id string The ID of the subnet in Amazon VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance.
- Dictionary<string, string>
Key-value map of resource tags
- Instance
Type string The type of instance to connect to the environment, e.g.
t2.micro.- Automatic
Stop intTime Minutes 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.
- Owner
Arn string The ARN of the environment owner. This can be ARN of any AWS IAM principal. Defaults to the environment’s creator.
- Subnet
Id string The ID of the subnet in Amazon VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance.
- map[string]string
Key-value map of resource tags
- instance
Type string The type of instance to connect to the environment, e.g.
t2.micro.- automatic
Stop numberTime Minutes 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.
- owner
Arn string The ARN of the environment owner. This can be ARN of any AWS IAM principal. Defaults to the environment’s creator.
- subnet
Id string The ID of the subnet in Amazon VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance.
- {[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_ floattime_ minutes 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.
- 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:
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): EnvironmentEC2static 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.
- Automatic
Stop intTime Minutes 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.
- Instance
Type string The type of instance to connect to the environment, e.g.
t2.micro.- Name string
The name of the environment.
- Owner
Arn string The ARN of the environment owner. This can be ARN of any AWS IAM principal. Defaults to the environment’s creator.
- Subnet
Id string The ID of the subnet in Amazon VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance.
- Dictionary<string, string>
Key-value map of resource tags
- Type string
The type of the environment (e.g.
sshorec2)
- Arn string
The ARN of the environment.
- Automatic
Stop intTime Minutes 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.
- Instance
Type string The type of instance to connect to the environment, e.g.
t2.micro.- Name string
The name of the environment.
- Owner
Arn string The ARN of the environment owner. This can be ARN of any AWS IAM principal. Defaults to the environment’s creator.
- Subnet
Id string The ID of the subnet in Amazon VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance.
- map[string]string
Key-value map of resource tags
- Type string
The type of the environment (e.g.
sshorec2)
- arn string
The ARN of the environment.
- automatic
Stop numberTime Minutes 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.
- instance
Type string The type of instance to connect to the environment, e.g.
t2.micro.- name string
The name of the environment.
- owner
Arn string The ARN of the environment owner. This can be ARN of any AWS IAM principal. Defaults to the environment’s creator.
- subnet
Id string The ID of the subnet in Amazon VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance.
- {[key: string]: string}
Key-value map of resource tags
- type string
The type of the environment (e.g.
sshorec2)
- arn str
The ARN of the environment.
- automatic_
stop_ floattime_ minutes 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.
- Dict[str, str]
Key-value map of resource tags
- type str
The type of the environment (e.g.
sshorec2)
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.