CfnEnvironmentEC2Props Struct
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 = {
automaticStopTimeMinutes: 123,
connectionType: 'connectionType',
description: 'description',
imageId: 'imageId',
instanceType: 'instanceType',
name: 'name',
ownerArn: 'ownerArn',
repositories: [{
pathComponent: 'pathComponent',
repositoryUrl: 'repositoryUrl',
}],
subnetId: 'subnetId',
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
automaticStopTimeMinutesoptionalnumberautomatic_stop_time_minutesoptionalint | floatautomaticStopTimeMinutesoptionalNumberAutomaticStopTimeMinutesoptionaldoubleAutomaticStopTimeMinutesoptional*float64#connectionTypeoptionalstringconnection_typeoptionalstrconnectionTypeoptionalStringConnectionTypeoptionalstringConnectionTypeoptional*string#Valid values are CONNECT_SSH (default) and CONNECT_SSM (connected through AWS Systems Manager ).
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#imageIdoptionalstringimage_idoptionalstrimageIdoptionalStringImageIdoptionalstringImageIdoptional*string#notes
To choose an AMI for the instance, you must specify a valid AMI alias or a valid AWS Systems Manager path.
From December 04, 2023, you will be required to include the ImageId parameter for the CreateEnvironmentEC2 action. This change will be reflected across all direct methods of communicating with the API, such as AWS SDK, AWS CLI and AWS CloudFormation. This change will only affect direct API consumers, and not AWS Cloud9 console users.
Since Ubuntu 18.04 has ended standard support as of May 31, 2023, we recommend you choose Ubuntu 22.04.
AMI aliases
- Amazon Linux 2:
amazonlinux-2-x86_64 - Amazon Linux 2023 (recommended):
amazonlinux-2023-x86_64 - Ubuntu 18.04:
ubuntu-18.04-x86_64 - Ubuntu 22.04:
ubuntu-22.04-x86_64
SSM paths
- Amazon Linux 2:
resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64 - Amazon Linux 2023 (recommended):
resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2023-x86_64 - Ubuntu 18.04:
resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64 - Ubuntu 22.04:
resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64
instanceTypeoptionalstringinstance_typeoptionalstrinstanceTypeoptionalStringInstanceTypeoptionalstringInstanceTypeoptional*string#ownerArnoptionalstringowner_arnoptionalstrownerArnoptionalStringOwnerArnoptionalstringOwnerArnoptional*string#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.
repositoriesoptionalIResolvable | IResolvable | CfnEnvironmentEC2.RepositoryProperty[]repositoriesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, RepositoryProperty]]]repositoriesoptionalIResolvableRepositoriesoptionalIResolvableRepositoriesoptionalinterface{}#subnetIdoptionalstringsubnet_idoptionalstrsubnetIdoptionalStringSubnetIdoptionalstringSubnetIdoptional*string#