public static interface InstanceEntry.Builder extends SdkPojo, CopyableBuilder<InstanceEntry.Builder,InstanceEntry>
Modifier and Type | Method and Description |
---|---|
InstanceEntry.Builder |
availabilityZone(String availabilityZone)
The Availability Zone for the new Amazon EC2 instance.
|
InstanceEntry.Builder |
instanceType(String instanceType)
The instance type (e.g.,
t2.micro ) to use for the new Amazon EC2 instance. |
InstanceEntry.Builder |
portInfoSource(PortInfoSourceType portInfoSource)
The port configuration to use for the new Amazon EC2 instance.
|
InstanceEntry.Builder |
portInfoSource(String portInfoSource)
The port configuration to use for the new Amazon EC2 instance.
|
InstanceEntry.Builder |
sourceName(String sourceName)
The name of the export snapshot record, which contains the exported Lightsail instance snapshot that will be
used as the source of the new Amazon EC2 instance.
|
InstanceEntry.Builder |
userData(String userData)
A launch script you can create that configures a server with additional user data.
|
copy
applyMutation, build
InstanceEntry.Builder sourceName(String sourceName)
The name of the export snapshot record, which contains the exported Lightsail instance snapshot that will be used as the source of the new Amazon EC2 instance.
Use the get export snapshot records
operation to get a list of export snapshot records that you
can use to create a CloudFormation stack.
sourceName
- The name of the export snapshot record, which contains the exported Lightsail instance snapshot that
will be used as the source of the new Amazon EC2 instance.
Use the get export snapshot records
operation to get a list of export snapshot records
that you can use to create a CloudFormation stack.
InstanceEntry.Builder instanceType(String instanceType)
The instance type (e.g., t2.micro
) to use for the new Amazon EC2 instance.
instanceType
- The instance type (e.g., t2.micro
) to use for the new Amazon EC2 instance.InstanceEntry.Builder portInfoSource(String portInfoSource)
The port configuration to use for the new Amazon EC2 instance.
The following configuration options are available:
DEFAULT — Use the default firewall settings from the image.
INSTANCE — Use the firewall settings from the source Lightsail instance.
NONE — Default to Amazon EC2.
portInfoSource
- The port configuration to use for the new Amazon EC2 instance.
The following configuration options are available:
DEFAULT — Use the default firewall settings from the image.
INSTANCE — Use the firewall settings from the source Lightsail instance.
NONE — Default to Amazon EC2.
PortInfoSourceType
,
PortInfoSourceType
InstanceEntry.Builder portInfoSource(PortInfoSourceType portInfoSource)
The port configuration to use for the new Amazon EC2 instance.
The following configuration options are available:
DEFAULT — Use the default firewall settings from the image.
INSTANCE — Use the firewall settings from the source Lightsail instance.
NONE — Default to Amazon EC2.
portInfoSource
- The port configuration to use for the new Amazon EC2 instance.
The following configuration options are available:
DEFAULT — Use the default firewall settings from the image.
INSTANCE — Use the firewall settings from the source Lightsail instance.
NONE — Default to Amazon EC2.
PortInfoSourceType
,
PortInfoSourceType
InstanceEntry.Builder userData(String userData)
A launch script you can create that configures a server with additional user data. For example, you might
want to run apt-get -y update
.
Depending on the machine image you choose, the command to get software on your instance varies. Amazon Linux
and CentOS use yum
, Debian and Ubuntu use apt-get
, and FreeBSD uses
pkg
.
userData
- A launch script you can create that configures a server with additional user data. For example, you
might want to run apt-get -y update
.
Depending on the machine image you choose, the command to get software on your instance varies. Amazon
Linux and CentOS use yum
, Debian and Ubuntu use apt-get
, and FreeBSD uses
pkg
.
InstanceEntry.Builder availabilityZone(String availabilityZone)
The Availability Zone for the new Amazon EC2 instance.
availabilityZone
- The Availability Zone for the new Amazon EC2 instance.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.