class Aws::Lightsail::Types::CreateInstancesRequest
@note When making an API call, you may pass CreateInstancesRequest
data as a hash: { instance_names: ["string"], # required availability_zone: "string", # required custom_image_name: "ResourceName", blueprint_id: "NonEmptyString", # required bundle_id: "NonEmptyString", # required user_data: "string", key_pair_name: "ResourceName", tags: [ { key: "TagKey", value: "TagValue", }, ], add_ons: [ { add_on_type: "AutoSnapshot", # required, accepts AutoSnapshot auto_snapshot_add_on_request: { snapshot_time_of_day: "TimeOfDay", }, }, ], ip_address_type: "dualstack", # accepts dualstack, ipv4 }
@!attribute [rw] instance_names
The names to use for your new Lightsail instances. Separate multiple values using quotation marks and commas, for example: `["MyFirstInstance","MySecondInstance"]` @return [Array<String>]
@!attribute [rw] availability_zone
The Availability Zone in which to create your instance. Use the following format: `us-east-2a` (case sensitive). You can get a list of Availability Zones by using the [get regions][1] operation. Be sure to add the `include Availability Zones` parameter to your request. [1]: http://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetRegions.html @return [String]
@!attribute [rw] custom_image_name
(Deprecated) The name for your custom image. <note markdown="1"> In releases prior to June 12, 2017, this parameter was ignored by the API. It is now deprecated. </note> @return [String]
@!attribute [rw] blueprint_id
The ID for a virtual private server image (e.g., `app_wordpress_4_4` or `app_lamp_7_0`). Use the `get blueprints` operation to return a list of available images (or *blueprints*). <note markdown="1"> Use active blueprints when creating new instances. Inactive blueprints are listed to support customers with existing instances and are not necessarily available to create new instances. Blueprints are marked inactive when they become outdated due to operating system updates or new application releases. </note> @return [String]
@!attribute [rw] bundle_id
The bundle of specification information for your virtual private server (or *instance*), including the pricing plan (e.g., `micro_1_0`). @return [String]
@!attribute [rw] user_data
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`. <note markdown="1"> 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`. For a complete list, see the [Amazon Lightsail Developer Guide][1]. </note> [1]: https://lightsail.aws.amazon.com/ls/docs/en_us/articles/compare-options-choose-lightsail-instance-image @return [String]
@!attribute [rw] key_pair_name
The name of your key pair. @return [String]
@!attribute [rw] tags
The tag keys and optional values to add to the resource during create. Use the `TagResource` action to tag a resource after it's created. @return [Array<Types::Tag>]
@!attribute [rw] add_ons
An array of objects representing the add-ons to enable for the new instance. @return [Array<Types::AddOnRequest>]
@!attribute [rw] ip_address_type
The IP address type for the instance. The possible values are `ipv4` for IPv4 only, and `dualstack` for IPv4 and IPv6. The default value is `dualstack`. @return [String]
@see docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateInstancesRequest AWS API Documentation
Constants
- SENSITIVE