You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Cloud9::Types::CreateEnvironmentEC2Request

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing CreateEnvironmentEC2Request as input to an Aws::Client method, you can use a vanilla Hash:

{
  name: "EnvironmentName", # required
  description: "EnvironmentDescription",
  client_request_token: "ClientRequestToken",
  instance_type: "InstanceType", # required
  subnet_id: "SubnetId",
  automatic_stop_time_minutes: 1,
  owner_arn: "UserArn",
  tags: [
    {
      key: "TagKey", # required
      value: "TagValue", # required
    },
  ],
  connection_type: "CONNECT_SSH", # accepts CONNECT_SSH, CONNECT_SSM
}

Instance Attribute Summary collapse

Instance Attribute Details

#automatic_stop_time_minutesInteger

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

Returns:

  • (Integer)

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

#client_request_tokenString

A unique, case-sensitive string that helps AWS Cloud9 to ensure this operation completes no more than one time.

For more information, see Client Tokens in the Amazon EC2 API Reference.

Returns:

  • (String)

    A unique, case-sensitive string that helps AWS Cloud9 to ensure this operation completes no more than one time.

#connection_typeString

The connection type used for connecting to an Amazon EC2 environment.

Possible values:

  • CONNECT_SSH
  • CONNECT_SSM

Returns:

  • (String)

    The connection type used for connecting to an Amazon EC2 environment.

#descriptionString

The description of the environment to create.

Returns:

  • (String)

    The description of the environment to create.

#instance_typeString

The type of instance to connect to the environment (for example, t2.micro).

Returns:

  • (String)

    The type of instance to connect to the environment (for example, t2.micro).

#nameString

The name of the environment to create.

This name is visible to other AWS IAM users in the same AWS account.

Returns:

  • (String)

    The name of the environment to create.

#owner_arnString

The Amazon Resource Name (ARN) of the environment owner. This ARN can be the ARN of any AWS IAM principal. If this value is not specified, the ARN defaults to this environment\'s creator.

Returns:

  • (String)

    The Amazon Resource Name (ARN) of the environment owner.

#subnet_idString

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

Returns:

  • (String)

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

#tagsArray<Types::Tag>

An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.

Returns:

  • (Array<Types::Tag>)

    An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.