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

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-cloud9/lib/aws-sdk-cloud9/types.rb

Overview

Note:

When making an API call, you may pass CreateEnvironmentEC2Request data as a 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",
}

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)


69
70
71
72
73
74
75
76
77
78
# File 'gems/aws-sdk-cloud9/lib/aws-sdk-cloud9/types.rb', line 69

class CreateEnvironmentEC2Request < Struct.new(
  :name,
  :description,
  :client_request_token,
  :instance_type,
  :subnet_id,
  :automatic_stop_time_minutes,
  :owner_arn)
  include Aws::Structure
end

#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)


69
70
71
72
73
74
75
76
77
78
# File 'gems/aws-sdk-cloud9/lib/aws-sdk-cloud9/types.rb', line 69

class CreateEnvironmentEC2Request < Struct.new(
  :name,
  :description,
  :client_request_token,
  :instance_type,
  :subnet_id,
  :automatic_stop_time_minutes,
  :owner_arn)
  include Aws::Structure
end

#descriptionString

The description of the environment to create.

Returns:

  • (String)


69
70
71
72
73
74
75
76
77
78
# File 'gems/aws-sdk-cloud9/lib/aws-sdk-cloud9/types.rb', line 69

class CreateEnvironmentEC2Request < Struct.new(
  :name,
  :description,
  :client_request_token,
  :instance_type,
  :subnet_id,
  :automatic_stop_time_minutes,
  :owner_arn)
  include Aws::Structure
end

#instance_typeString

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

Returns:

  • (String)


69
70
71
72
73
74
75
76
77
78
# File 'gems/aws-sdk-cloud9/lib/aws-sdk-cloud9/types.rb', line 69

class CreateEnvironmentEC2Request < Struct.new(
  :name,
  :description,
  :client_request_token,
  :instance_type,
  :subnet_id,
  :automatic_stop_time_minutes,
  :owner_arn)
  include Aws::Structure
end

#nameString

The name of the environment to create.

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

Returns:

  • (String)


69
70
71
72
73
74
75
76
77
78
# File 'gems/aws-sdk-cloud9/lib/aws-sdk-cloud9/types.rb', line 69

class CreateEnvironmentEC2Request < Struct.new(
  :name,
  :description,
  :client_request_token,
  :instance_type,
  :subnet_id,
  :automatic_stop_time_minutes,
  :owner_arn)
  include Aws::Structure
end

#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)


69
70
71
72
73
74
75
76
77
78
# File 'gems/aws-sdk-cloud9/lib/aws-sdk-cloud9/types.rb', line 69

class CreateEnvironmentEC2Request < Struct.new(
  :name,
  :description,
  :client_request_token,
  :instance_type,
  :subnet_id,
  :automatic_stop_time_minutes,
  :owner_arn)
  include Aws::Structure
end

#subnet_idString

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

Returns:

  • (String)


69
70
71
72
73
74
75
76
77
78
# File 'gems/aws-sdk-cloud9/lib/aws-sdk-cloud9/types.rb', line 69

class CreateEnvironmentEC2Request < Struct.new(
  :name,
  :description,
  :client_request_token,
  :instance_type,
  :subnet_id,
  :automatic_stop_time_minutes,
  :owner_arn)
  include Aws::Structure
end