amazonka-cloud9-2.0: Amazon Cloud9 SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Cloud9.CreateEnvironmentEC2

Description

Creates an Cloud9 development environment, launches an Amazon Elastic Compute Cloud (Amazon EC2) instance, and then connects from the instance to the environment.

Synopsis

Creating a Request

data CreateEnvironmentEC2 Source #

See: newCreateEnvironmentEC2 smart constructor.

Constructors

CreateEnvironmentEC2' 

Fields

  • automaticStopTimeMinutes :: Maybe Int

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

  • clientRequestToken :: Maybe Text

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

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

  • connectionType :: Maybe ConnectionType

    The connection type used for connecting to an Amazon EC2 environment. Valid values are CONNECT_SSH (default) and CONNECT_SSM (connected through Amazon EC2 Systems Manager).

    For more information, see Accessing no-ingress EC2 instances with Amazon EC2 Systems Manager in the Cloud9 User Guide.

  • description :: Maybe (Sensitive Text)

    The description of the environment to create.

  • dryRun :: Maybe Bool

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

  • imageId :: Maybe Text

    The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance. To choose an AMI for the instance, you must specify a valid AMI alias or a valid Amazon EC2 Systems Manager (SSM) path.

    The default Amazon Linux AMI is currently used if the parameter isn't explicitly assigned a value in the request.

    In the future the parameter for Amazon Linux will no longer be available when you specify an AMI for your instance. Amazon Linux 2 will then become the default AMI, which is used to launch your instance if no parameter is explicitly defined.

    AMI aliases

    • Amazon Linux (default): amazonlinux-1-x86_64
    • Amazon Linux 2: amazonlinux-2-x86_64
    • Ubuntu 18.04: ubuntu-18.04-x86_64

    SSM paths

    • __Amazon Linux (default): resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64__
    • Amazon Linux 2: resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64
    • Ubuntu 18.04: resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64
  • ownerArn :: Maybe Text

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

  • subnetId :: Maybe Text

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

  • tags :: Maybe (Sensitive [Sensitive Tag])

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

  • name :: Text

    The name of the environment to create.

    This name is visible to other IAM users in the same Amazon Web Services account.

  • instanceType :: Text

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

Instances

Instances details
ToJSON CreateEnvironmentEC2 Source # 
Instance details

Defined in Amazonka.Cloud9.CreateEnvironmentEC2

ToHeaders CreateEnvironmentEC2 Source # 
Instance details

Defined in Amazonka.Cloud9.CreateEnvironmentEC2

ToPath CreateEnvironmentEC2 Source # 
Instance details

Defined in Amazonka.Cloud9.CreateEnvironmentEC2

ToQuery CreateEnvironmentEC2 Source # 
Instance details

Defined in Amazonka.Cloud9.CreateEnvironmentEC2

AWSRequest CreateEnvironmentEC2 Source # 
Instance details

Defined in Amazonka.Cloud9.CreateEnvironmentEC2

Associated Types

type AWSResponse CreateEnvironmentEC2 #

Generic CreateEnvironmentEC2 Source # 
Instance details

Defined in Amazonka.Cloud9.CreateEnvironmentEC2

Associated Types

type Rep CreateEnvironmentEC2 :: Type -> Type #

Show CreateEnvironmentEC2 Source # 
Instance details

Defined in Amazonka.Cloud9.CreateEnvironmentEC2

NFData CreateEnvironmentEC2 Source # 
Instance details

Defined in Amazonka.Cloud9.CreateEnvironmentEC2

Methods

rnf :: CreateEnvironmentEC2 -> () #

Eq CreateEnvironmentEC2 Source # 
Instance details

Defined in Amazonka.Cloud9.CreateEnvironmentEC2

Hashable CreateEnvironmentEC2 Source # 
Instance details

Defined in Amazonka.Cloud9.CreateEnvironmentEC2

type AWSResponse CreateEnvironmentEC2 Source # 
Instance details

Defined in Amazonka.Cloud9.CreateEnvironmentEC2

type Rep CreateEnvironmentEC2 Source # 
Instance details

Defined in Amazonka.Cloud9.CreateEnvironmentEC2

type Rep CreateEnvironmentEC2 = D1 ('MetaData "CreateEnvironmentEC2" "Amazonka.Cloud9.CreateEnvironmentEC2" "amazonka-cloud9-2.0-7b5PlMySrOa4RK8dYvmjDd" 'False) (C1 ('MetaCons "CreateEnvironmentEC2'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "automaticStopTimeMinutes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "clientRequestToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "connectionType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ConnectionType)) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))))) :*: ((S1 ('MetaSel ('Just "imageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "ownerArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "subnetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive [Sensitive Tag]))) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "instanceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))))

newCreateEnvironmentEC2 Source #

Create a value of CreateEnvironmentEC2 with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:automaticStopTimeMinutes:CreateEnvironmentEC2', createEnvironmentEC2_automaticStopTimeMinutes - The number of minutes until the running instance is shut down after the environment has last been used.

$sel:clientRequestToken:CreateEnvironmentEC2', createEnvironmentEC2_clientRequestToken - A unique, case-sensitive string that helps Cloud9 to ensure this operation completes no more than one time.

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

CreateEnvironmentEC2, createEnvironmentEC2_connectionType - The connection type used for connecting to an Amazon EC2 environment. Valid values are CONNECT_SSH (default) and CONNECT_SSM (connected through Amazon EC2 Systems Manager).

For more information, see Accessing no-ingress EC2 instances with Amazon EC2 Systems Manager in the Cloud9 User Guide.

CreateEnvironmentEC2, createEnvironmentEC2_description - The description of the environment to create.

$sel:dryRun:CreateEnvironmentEC2', createEnvironmentEC2_dryRun - Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

$sel:imageId:CreateEnvironmentEC2', createEnvironmentEC2_imageId - The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance. To choose an AMI for the instance, you must specify a valid AMI alias or a valid Amazon EC2 Systems Manager (SSM) path.

The default Amazon Linux AMI is currently used if the parameter isn't explicitly assigned a value in the request.

In the future the parameter for Amazon Linux will no longer be available when you specify an AMI for your instance. Amazon Linux 2 will then become the default AMI, which is used to launch your instance if no parameter is explicitly defined.

AMI aliases

  • Amazon Linux (default): amazonlinux-1-x86_64
  • Amazon Linux 2: amazonlinux-2-x86_64
  • Ubuntu 18.04: ubuntu-18.04-x86_64

SSM paths

  • __Amazon Linux (default): resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64__
  • Amazon Linux 2: resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64
  • Ubuntu 18.04: resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64

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

$sel:subnetId:CreateEnvironmentEC2', createEnvironmentEC2_subnetId - The ID of the subnet in Amazon VPC that Cloud9 will use to communicate with the Amazon EC2 instance.

$sel:tags:CreateEnvironmentEC2', createEnvironmentEC2_tags - An array of key-value pairs that will be associated with the new Cloud9 development environment.

CreateEnvironmentEC2, createEnvironmentEC2_name - The name of the environment to create.

This name is visible to other IAM users in the same Amazon Web Services account.

$sel:instanceType:CreateEnvironmentEC2', createEnvironmentEC2_instanceType - The type of instance to connect to the environment (for example, t2.micro).

Request Lenses

createEnvironmentEC2_automaticStopTimeMinutes :: Lens' CreateEnvironmentEC2 (Maybe Int) Source #

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

createEnvironmentEC2_clientRequestToken :: Lens' CreateEnvironmentEC2 (Maybe Text) Source #

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

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

createEnvironmentEC2_connectionType :: Lens' CreateEnvironmentEC2 (Maybe ConnectionType) Source #

The connection type used for connecting to an Amazon EC2 environment. Valid values are CONNECT_SSH (default) and CONNECT_SSM (connected through Amazon EC2 Systems Manager).

For more information, see Accessing no-ingress EC2 instances with Amazon EC2 Systems Manager in the Cloud9 User Guide.

createEnvironmentEC2_description :: Lens' CreateEnvironmentEC2 (Maybe Text) Source #

The description of the environment to create.

createEnvironmentEC2_dryRun :: Lens' CreateEnvironmentEC2 (Maybe Bool) Source #

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

createEnvironmentEC2_imageId :: Lens' CreateEnvironmentEC2 (Maybe Text) Source #

The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance. To choose an AMI for the instance, you must specify a valid AMI alias or a valid Amazon EC2 Systems Manager (SSM) path.

The default Amazon Linux AMI is currently used if the parameter isn't explicitly assigned a value in the request.

In the future the parameter for Amazon Linux will no longer be available when you specify an AMI for your instance. Amazon Linux 2 will then become the default AMI, which is used to launch your instance if no parameter is explicitly defined.

AMI aliases

  • Amazon Linux (default): amazonlinux-1-x86_64
  • Amazon Linux 2: amazonlinux-2-x86_64
  • Ubuntu 18.04: ubuntu-18.04-x86_64

SSM paths

  • __Amazon Linux (default): resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64__
  • Amazon Linux 2: resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64
  • Ubuntu 18.04: resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64

createEnvironmentEC2_ownerArn :: Lens' CreateEnvironmentEC2 (Maybe Text) Source #

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

createEnvironmentEC2_subnetId :: Lens' CreateEnvironmentEC2 (Maybe Text) Source #

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

createEnvironmentEC2_tags :: Lens' CreateEnvironmentEC2 (Maybe [Tag]) Source #

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

createEnvironmentEC2_name :: Lens' CreateEnvironmentEC2 Text Source #

The name of the environment to create.

This name is visible to other IAM users in the same Amazon Web Services account.

createEnvironmentEC2_instanceType :: Lens' CreateEnvironmentEC2 Text Source #

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

Destructuring the Response

data CreateEnvironmentEC2Response Source #

See: newCreateEnvironmentEC2Response smart constructor.

Constructors

CreateEnvironmentEC2Response' 

Fields

Instances

Instances details
Generic CreateEnvironmentEC2Response Source # 
Instance details

Defined in Amazonka.Cloud9.CreateEnvironmentEC2

Associated Types

type Rep CreateEnvironmentEC2Response :: Type -> Type #

Read CreateEnvironmentEC2Response Source # 
Instance details

Defined in Amazonka.Cloud9.CreateEnvironmentEC2

Show CreateEnvironmentEC2Response Source # 
Instance details

Defined in Amazonka.Cloud9.CreateEnvironmentEC2

NFData CreateEnvironmentEC2Response Source # 
Instance details

Defined in Amazonka.Cloud9.CreateEnvironmentEC2

Eq CreateEnvironmentEC2Response Source # 
Instance details

Defined in Amazonka.Cloud9.CreateEnvironmentEC2

type Rep CreateEnvironmentEC2Response Source # 
Instance details

Defined in Amazonka.Cloud9.CreateEnvironmentEC2

type Rep CreateEnvironmentEC2Response = D1 ('MetaData "CreateEnvironmentEC2Response" "Amazonka.Cloud9.CreateEnvironmentEC2" "amazonka-cloud9-2.0-7b5PlMySrOa4RK8dYvmjDd" 'False) (C1 ('MetaCons "CreateEnvironmentEC2Response'" 'PrefixI 'True) (S1 ('MetaSel ('Just "environmentId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateEnvironmentEC2Response Source #

Create a value of CreateEnvironmentEC2Response with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

CreateEnvironmentEC2Response, createEnvironmentEC2Response_environmentId - The ID of the environment that was created.

$sel:httpStatus:CreateEnvironmentEC2Response', createEnvironmentEC2Response_httpStatus - The response's http status code.

Response Lenses