Struct aws_sdk_lightsail::operation::create_instances::builders::CreateInstancesFluentBuilder
source · pub struct CreateInstancesFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateInstances
.
Creates one or more Amazon Lightsail instances.
The create instances
operation supports tag-based access control via request tags. For more information, see the Lightsail Developer Guide.
Implementations§
source§impl CreateInstancesFluentBuilder
impl CreateInstancesFluentBuilder
sourcepub fn as_input(&self) -> &CreateInstancesInputBuilder
pub fn as_input(&self) -> &CreateInstancesInputBuilder
Access the CreateInstances as a reference.
sourcepub async fn send(
self
) -> Result<CreateInstancesOutput, SdkError<CreateInstancesError, HttpResponse>>
pub async fn send( self ) -> Result<CreateInstancesOutput, SdkError<CreateInstancesError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<CreateInstancesOutput, CreateInstancesError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateInstancesOutput, CreateInstancesError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn instance_names(self, input: impl Into<String>) -> Self
pub fn instance_names(self, input: impl Into<String>) -> Self
Appends an item to instanceNames
.
To override the contents of this collection use set_instance_names
.
The names to use for your new Lightsail instances. Separate multiple values using quotation marks and commas, for example: ["MyFirstInstance","MySecondInstance"]
sourcepub fn set_instance_names(self, input: Option<Vec<String>>) -> Self
pub fn set_instance_names(self, input: Option<Vec<String>>) -> Self
The names to use for your new Lightsail instances. Separate multiple values using quotation marks and commas, for example: ["MyFirstInstance","MySecondInstance"]
sourcepub fn get_instance_names(&self) -> &Option<Vec<String>>
pub fn get_instance_names(&self) -> &Option<Vec<String>>
The names to use for your new Lightsail instances. Separate multiple values using quotation marks and commas, for example: ["MyFirstInstance","MySecondInstance"]
sourcepub fn availability_zone(self, input: impl Into<String>) -> Self
pub fn availability_zone(self, input: impl Into<String>) -> Self
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 operation. Be sure to add the include Availability Zones
parameter to your request.
sourcepub fn set_availability_zone(self, input: Option<String>) -> Self
pub fn set_availability_zone(self, input: Option<String>) -> Self
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 operation. Be sure to add the include Availability Zones
parameter to your request.
sourcepub fn get_availability_zone(&self) -> &Option<String>
pub fn get_availability_zone(&self) -> &Option<String>
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 operation. Be sure to add the include Availability Zones
parameter to your request.
sourcepub fn custom_image_name(self, input: impl Into<String>) -> Self
👎Deprecated
pub fn custom_image_name(self, input: impl Into<String>) -> Self
(Discontinued) The name for your custom image.
In releases prior to June 12, 2017, this parameter was ignored by the API. It is now discontinued.
sourcepub fn set_custom_image_name(self, input: Option<String>) -> Self
👎Deprecated
pub fn set_custom_image_name(self, input: Option<String>) -> Self
(Discontinued) The name for your custom image.
In releases prior to June 12, 2017, this parameter was ignored by the API. It is now discontinued.
sourcepub fn get_custom_image_name(&self) -> &Option<String>
👎Deprecated
pub fn get_custom_image_name(&self) -> &Option<String>
(Discontinued) The name for your custom image.
In releases prior to June 12, 2017, this parameter was ignored by the API. It is now discontinued.
sourcepub fn blueprint_id(self, input: impl Into<String>) -> Self
pub fn blueprint_id(self, input: impl Into<String>) -> Self
The ID for a virtual private server image (app_wordpress_x_x
or app_lamp_x_x
). Use the get blueprints
operation to return a list of available images (or blueprints).
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.
sourcepub fn set_blueprint_id(self, input: Option<String>) -> Self
pub fn set_blueprint_id(self, input: Option<String>) -> Self
The ID for a virtual private server image (app_wordpress_x_x
or app_lamp_x_x
). Use the get blueprints
operation to return a list of available images (or blueprints).
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.
sourcepub fn get_blueprint_id(&self) -> &Option<String>
pub fn get_blueprint_id(&self) -> &Option<String>
The ID for a virtual private server image (app_wordpress_x_x
or app_lamp_x_x
). Use the get blueprints
operation to return a list of available images (or blueprints).
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.
sourcepub fn bundle_id(self, input: impl Into<String>) -> Self
pub fn bundle_id(self, input: impl Into<String>) -> Self
The bundle of specification information for your virtual private server (or instance), including the pricing plan (medium_x_x
).
sourcepub fn set_bundle_id(self, input: Option<String>) -> Self
pub fn set_bundle_id(self, input: Option<String>) -> Self
The bundle of specification information for your virtual private server (or instance), including the pricing plan (medium_x_x
).
sourcepub fn get_bundle_id(&self) -> &Option<String>
pub fn get_bundle_id(&self) -> &Option<String>
The bundle of specification information for your virtual private server (or instance), including the pricing plan (medium_x_x
).
sourcepub fn user_data(self, input: impl Into<String>) -> Self
pub fn user_data(self, input: impl Into<String>) -> Self
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
. For a complete list, see the Amazon Lightsail Developer Guide.
sourcepub fn set_user_data(self, input: Option<String>) -> Self
pub fn set_user_data(self, input: Option<String>) -> Self
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
. For a complete list, see the Amazon Lightsail Developer Guide.
sourcepub fn get_user_data(&self) -> &Option<String>
pub fn get_user_data(&self) -> &Option<String>
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
. For a complete list, see the Amazon Lightsail Developer Guide.
sourcepub fn key_pair_name(self, input: impl Into<String>) -> Self
pub fn key_pair_name(self, input: impl Into<String>) -> Self
The name of your key pair.
sourcepub fn set_key_pair_name(self, input: Option<String>) -> Self
pub fn set_key_pair_name(self, input: Option<String>) -> Self
The name of your key pair.
sourcepub fn get_key_pair_name(&self) -> &Option<String>
pub fn get_key_pair_name(&self) -> &Option<String>
The name of your key pair.
Appends an item to tags
.
To override the contents of this collection use set_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.
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.
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.
sourcepub fn add_ons(self, input: AddOnRequest) -> Self
pub fn add_ons(self, input: AddOnRequest) -> Self
Appends an item to addOns
.
To override the contents of this collection use set_add_ons
.
An array of objects representing the add-ons to enable for the new instance.
sourcepub fn set_add_ons(self, input: Option<Vec<AddOnRequest>>) -> Self
pub fn set_add_ons(self, input: Option<Vec<AddOnRequest>>) -> Self
An array of objects representing the add-ons to enable for the new instance.
sourcepub fn get_add_ons(&self) -> &Option<Vec<AddOnRequest>>
pub fn get_add_ons(&self) -> &Option<Vec<AddOnRequest>>
An array of objects representing the add-ons to enable for the new instance.
sourcepub fn ip_address_type(self, input: IpAddressType) -> Self
pub fn ip_address_type(self, input: IpAddressType) -> Self
The IP address type for the instance.
The possible values are ipv4
for IPv4 only, ipv6
for IPv6 only, and dualstack
for IPv4 and IPv6.
The default value is dualstack
.
sourcepub fn set_ip_address_type(self, input: Option<IpAddressType>) -> Self
pub fn set_ip_address_type(self, input: Option<IpAddressType>) -> Self
The IP address type for the instance.
The possible values are ipv4
for IPv4 only, ipv6
for IPv6 only, and dualstack
for IPv4 and IPv6.
The default value is dualstack
.
sourcepub fn get_ip_address_type(&self) -> &Option<IpAddressType>
pub fn get_ip_address_type(&self) -> &Option<IpAddressType>
The IP address type for the instance.
The possible values are ipv4
for IPv4 only, ipv6
for IPv6 only, and dualstack
for IPv4 and IPv6.
The default value is dualstack
.
Trait Implementations§
source§impl Clone for CreateInstancesFluentBuilder
impl Clone for CreateInstancesFluentBuilder
source§fn clone(&self) -> CreateInstancesFluentBuilder
fn clone(&self) -> CreateInstancesFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for CreateInstancesFluentBuilder
impl !RefUnwindSafe for CreateInstancesFluentBuilder
impl Send for CreateInstancesFluentBuilder
impl Sync for CreateInstancesFluentBuilder
impl Unpin for CreateInstancesFluentBuilder
impl !UnwindSafe for CreateInstancesFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more