@Stability(value=Stable) public static final class CfnInstanceProps.Builder extends Object implements software.amazon.jsii.Builder<CfnInstanceProps>
CfnInstanceProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnInstanceProps.Builder blueprintId(String blueprintId)
CfnInstanceProps.getBlueprintId()blueprintId - The blueprint ID for the instance (for example, `os_amlinux_2016_03` ). This parameter is required.this@Stability(value=Stable) public CfnInstanceProps.Builder bundleId(String bundleId)
CfnInstanceProps.getBundleId()bundleId - The bundle ID for the instance (for example, `micro_1_0` ). This parameter is required.this@Stability(value=Stable) public CfnInstanceProps.Builder instanceName(String instanceName)
CfnInstanceProps.getInstanceName()instanceName - The name of the instance. This parameter is required.this@Stability(value=Stable) public CfnInstanceProps.Builder addOns(IResolvable addOns)
CfnInstanceProps.getAddOns()addOns - An array of add-ons for the instance.
If the instance has an add-on enabled when performing a delete instance request, the add-on is automatically disabled before the instance is deleted.
this@Stability(value=Stable) public CfnInstanceProps.Builder addOns(List<? extends Object> addOns)
CfnInstanceProps.getAddOns()addOns - An array of add-ons for the instance.
If the instance has an add-on enabled when performing a delete instance request, the add-on is automatically disabled before the instance is deleted.
this@Stability(value=Stable) public CfnInstanceProps.Builder availabilityZone(String availabilityZone)
CfnInstanceProps.getAvailabilityZone()availabilityZone - The Availability Zone for the instance.this@Stability(value=Stable) public CfnInstanceProps.Builder hardware(CfnInstance.HardwareProperty hardware)
CfnInstanceProps.getHardware()hardware - The hardware properties for the instance, such as the vCPU count, attached disks, and amount of RAM.
The instance restarts when performing an attach disk or detach disk request. This resets the public IP address of your instance if a static IP isn't attached to it.
this@Stability(value=Stable) public CfnInstanceProps.Builder hardware(IResolvable hardware)
CfnInstanceProps.getHardware()hardware - The hardware properties for the instance, such as the vCPU count, attached disks, and amount of RAM.
The instance restarts when performing an attach disk or detach disk request. This resets the public IP address of your instance if a static IP isn't attached to it.
this@Stability(value=Stable) public CfnInstanceProps.Builder keyPairName(String keyPairName)
CfnInstanceProps.getKeyPairName()keyPairName - The name of the key pair to use for the instance.
If no key pair name is specified, the Regional Lightsail default key pair is used.this@Stability(value=Stable) public CfnInstanceProps.Builder networking(CfnInstance.NetworkingProperty networking)
CfnInstanceProps.getNetworking()networking - The public ports and the monthly amount of data transfer allocated for the instance.this@Stability(value=Stable) public CfnInstanceProps.Builder networking(IResolvable networking)
CfnInstanceProps.getNetworking()networking - The public ports and the monthly amount of data transfer allocated for the instance.this@Stability(value=Stable) public CfnInstanceProps.Builder tags(List<? extends CfnTag> tags)
CfnInstanceProps.getTags()tags - An array of key-value pairs to apply to this resource.
For more information, see Tag in the AWS CloudFormation User Guide .
The
ValueofTagsis optional for Lightsail resources.
this@Stability(value=Stable) public CfnInstanceProps.Builder userData(String userData)
CfnInstanceProps.getUserData()userData - The optional launch script for the instance.
Specify a launch script to configure an instance with additional user data. For example, you might want to specify apt-get -y update as a launch script.
Depending on the blueprint of your instance, the command to get software on your instance varies. Amazon Linux and CentOS use
yum, Debian and Ubuntu useapt-get, and FreeBSD usespkg.
this@Stability(value=Stable) public CfnInstanceProps build()
build in interface software.amazon.jsii.Builder<CfnInstanceProps>CfnInstancePropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.