aws-cdk-lib.aws_cloud9.CfnEnvironmentEC2Props

interface CfnEnvironmentEC2Props

LanguageType name
.NETAmazon.CDK.AWS.Cloud9.CfnEnvironmentEC2Props
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscloud9#CfnEnvironmentEC2Props
Javasoftware.amazon.awscdk.services.cloud9.CfnEnvironmentEC2Props
Pythonaws_cdk.aws_cloud9.CfnEnvironmentEC2Props
TypeScript aws-cdk-lib » aws_cloud9 » CfnEnvironmentEC2Props

Properties for defining a CfnEnvironmentEC2.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloud9 as cloud9 } from 'aws-cdk-lib';
const cfnEnvironmentEC2Props: cloud9.CfnEnvironmentEC2Props = {
  instanceType: 'instanceType',

  // the properties below are optional
  automaticStopTimeMinutes: 123,
  connectionType: 'connectionType',
  description: 'description',
  imageId: 'imageId',
  name: 'name',
  ownerArn: 'ownerArn',
  repositories: [{
    pathComponent: 'pathComponent',
    repositoryUrl: 'repositoryUrl',
  }],
  subnetId: 'subnetId',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties

NameTypeDescription
instanceTypestringThe type of instance to connect to the environment (for example, t2.micro ).
automaticStopTimeMinutes?numberThe number of minutes until the running instance is shut down after the environment was last used.
connectionType?stringThe connection type used for connecting to an Amazon EC2 environment.
description?stringThe description of the environment to create.
imageId?stringThe identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance.
name?stringThe name of the environment.
ownerArn?stringThe Amazon Resource Name (ARN) of the environment owner.
repositories?IResolvable | IResolvable | RepositoryProperty[]Any AWS CodeCommit source code repositories to be cloned into the development environment.
subnetId?stringThe ID of the subnet in Amazon Virtual Private Cloud (Amazon VPC) that AWS Cloud9 will use to communicate with the Amazon Elastic Compute Cloud (Amazon EC2) instance.
tags?CfnTag[]An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.

instanceType

Type: string

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


automaticStopTimeMinutes?

Type: number (optional)

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


connectionType?

Type: string (optional)

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

Valid values are CONNECT_SSH (default) and CONNECT_SSM (connected through AWS Systems Manager ).


description?

Type: string (optional)

The description of the environment to create.


imageId?

Type: string (optional)

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 AWS Systems Manager path.

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

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

name?

Type: string (optional)

The name of the environment.


ownerArn?

Type: string (optional)

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

This ARN can be the ARN of any AWS Identity and Access Management principal. If this value is not specified, the ARN defaults to this environment's creator.


repositories?

Type: IResolvable | IResolvable | RepositoryProperty[] (optional)

Any AWS CodeCommit source code repositories to be cloned into the development environment.


subnetId?

Type: string (optional)

The ID of the subnet in Amazon Virtual Private Cloud (Amazon VPC) that AWS Cloud9 will use to communicate with the Amazon Elastic Compute Cloud (Amazon EC2) instance.


tags?

Type: CfnTag[] (optional)

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