NAME
Paws::Cloud9::CreateEnvironmentEC2 - Arguments for method CreateEnvironmentEC2 on Paws::Cloud9
DESCRIPTION
This class represents the parameters used for calling the method CreateEnvironmentEC2 on the AWS Cloud9 service. Use the attributes of this class as arguments to method CreateEnvironmentEC2.
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateEnvironmentEC2.
SYNOPSIS
my $cloud9 = Paws->service('Cloud9');
# CreateEnvironmentEC2
my $CreateEnvironmentEC2Result = $cloud9->CreateEnvironmentEC2(
'AutomaticStopTimeMinutes' => 60,
'Description' => 'This is my demonstration environment.',
'InstanceType' => 't2.micro',
'Name' => 'my-demo-environment',
'OwnerArn' => 'arn:aws:iam::123456789012:user/MyDemoUser',
'SubnetId' => 'subnet-1fab8aEX'
);
# Results:
my $environmentId = $CreateEnvironmentEC2Result->environmentId;
# Returns a L<Paws::Cloud9::CreateEnvironmentEC2Result> object.
Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/cloud9/CreateEnvironmentEC2
ATTRIBUTES
AutomaticStopTimeMinutes => Int
The number of minutes until the running instance is shut down after the environment has last been used.
ClientRequestToken => Str
A unique, case-sensitive string that helps Cloud9 to ensure this operation completes no more than one time.
For more information, see Client Tokens (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html) in the Amazon EC2 API Reference.
ConnectionType => Str
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 (https://docs.aws.amazon.com/cloud9/latest/user-guide/ec2-ssm.html) in the Cloud9 User Guide.
Valid values are: "CONNECT_SSH"
, "CONNECT_SSM"
Description => Str
The description of the environment to create.
ImageId => Str
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 AMI is used if the parameter isn't explicitly assigned a value in the request. Because Amazon Linux AMI has ended standard support as of December 31, 2020, we recommend you choose Amazon Linux 2, which includes long term support through 2023.
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
REQUIRED InstanceType => Str
The type of instance to connect to the environment (for example, t2.micro
).
REQUIRED Name => Str
The name of the environment to create.
This name is visible to other IAM users in the same Amazon Web Services account.
OwnerArn => Str
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 => Str
The ID of the subnet in Amazon VPC that Cloud9 will use to communicate with the Amazon EC2 instance.
Tags => ArrayRef[Paws::Cloud9::Tag]
An array of key-value pairs that will be associated with the new Cloud9 development environment.
SEE ALSO
This class forms part of Paws, documenting arguments for method CreateEnvironmentEC2 in Paws::Cloud9
BUGS and CONTRIBUTIONS
The source code is located here: https://github.com/pplu/aws-sdk-perl
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues