pub struct CreateLoadBalancer<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateLoadBalancer
.
Creates a Lightsail load balancer. To learn more about deciding whether to load balance your application, see Configure your Lightsail instances for load balancing. You can create up to 5 load balancers per AWS Region in your account.
When you create a load balancer, you can specify a unique name and port settings. To change additional load balancer settings, use the UpdateLoadBalancerAttribute
operation.
The create load balancer
operation supports tag-based access control via request tags. For more information, see the Amazon Lightsail Developer Guide.
Implementations
impl<C, M, R> CreateLoadBalancer<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateLoadBalancer<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateLoadBalancerOutput, SdkError<CreateLoadBalancerError>> where
R::Policy: SmithyRetryPolicy<CreateLoadBalancerInputOperationOutputAlias, CreateLoadBalancerOutput, CreateLoadBalancerError, CreateLoadBalancerInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateLoadBalancerOutput, SdkError<CreateLoadBalancerError>> where
R::Policy: SmithyRetryPolicy<CreateLoadBalancerInputOperationOutputAlias, CreateLoadBalancerOutput, CreateLoadBalancerError, CreateLoadBalancerInputOperationRetryAlias>,
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.
The name of your load balancer.
The name of your load balancer.
The instance port where you're creating your load balancer.
The instance port where you're creating your load balancer.
The path you provided to perform the load balancer health check. If you didn't specify a health check path, Lightsail uses the root path of your website (e.g., "/"
).
You may want to specify a custom health check path other than the root of your application if your home page loads slowly or has a lot of media or scripting on it.
The path you provided to perform the load balancer health check. If you didn't specify a health check path, Lightsail uses the root path of your website (e.g., "/"
).
You may want to specify a custom health check path other than the root of your application if your home page loads slowly or has a lot of media or scripting on it.
The name of the SSL/TLS certificate.
If you specify certificateName
, then certificateDomainName
is required (and vice-versa).
The name of the SSL/TLS certificate.
If you specify certificateName
, then certificateDomainName
is required (and vice-versa).
The domain name with which your certificate is associated (e.g., example.com
).
If you specify certificateDomainName
, then certificateName
is required (and vice-versa).
The domain name with which your certificate is associated (e.g., example.com
).
If you specify certificateDomainName
, then certificateName
is required (and vice-versa).
Appends an item to certificateAlternativeNames
.
To override the contents of this collection use set_certificate_alternative_names
.
The optional alternative domains and subdomains to use with your SSL/TLS certificate (e.g., www.example.com
, example.com
, m.example.com
, blog.example.com
).
The optional alternative domains and subdomains to use with your SSL/TLS certificate (e.g., www.example.com
, example.com
, m.example.com
, blog.example.com
).
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 IP address type for the load balancer.
The possible values are ipv4
for IPv4 only, and dualstack
for IPv4 and IPv6.
The default value is dualstack
.
The IP address type for the load balancer.
The possible values are ipv4
for IPv4 only, and dualstack
for IPv4 and IPv6.
The default value is dualstack
.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for CreateLoadBalancer<C, M, R>
impl<C, M, R> Send for CreateLoadBalancer<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateLoadBalancer<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateLoadBalancer<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for CreateLoadBalancer<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more