Struct aws_sdk_lightsail::client::fluent_builders::AttachInstancesToLoadBalancer [−][src]
pub struct AttachInstancesToLoadBalancer<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to AttachInstancesToLoadBalancer
.
Attaches one or more Lightsail instances to a load balancer.
After some time, the instances are attached to the load balancer and the health check status is available.
The attach instances to load balancer
operation supports tag-based access
control via resource tags applied to the resource identified by load balancer
name
. For more information, see the Lightsail Developer Guide.
Implementations
impl<C, M, R> AttachInstancesToLoadBalancer<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> AttachInstancesToLoadBalancer<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<AttachInstancesToLoadBalancerOutput, SdkError<AttachInstancesToLoadBalancerError>> where
R::Policy: SmithyRetryPolicy<AttachInstancesToLoadBalancerInputOperationOutputAlias, AttachInstancesToLoadBalancerOutput, AttachInstancesToLoadBalancerError, AttachInstancesToLoadBalancerInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<AttachInstancesToLoadBalancerOutput, SdkError<AttachInstancesToLoadBalancerError>> where
R::Policy: SmithyRetryPolicy<AttachInstancesToLoadBalancerInputOperationOutputAlias, AttachInstancesToLoadBalancerOutput, AttachInstancesToLoadBalancerError, AttachInstancesToLoadBalancerInputOperationRetryAlias>,
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 the load balancer.
The name of the load balancer.
Appends an item to instanceNames
.
To override the contents of this collection use set_instance_names
.
An array of strings representing the instance name(s) you want to attach to your load balancer.
An instance must be running
before you can attach it to your load
balancer.
There are no additional limits on the number of instances you can attach to your load balancer, aside from the limit of Lightsail instances you can create in your account (20).
An array of strings representing the instance name(s) you want to attach to your load balancer.
An instance must be running
before you can attach it to your load
balancer.
There are no additional limits on the number of instances you can attach to your load balancer, aside from the limit of Lightsail instances you can create in your account (20).
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for AttachInstancesToLoadBalancer<C, M, R>
impl<C, M, R> Send for AttachInstancesToLoadBalancer<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for AttachInstancesToLoadBalancer<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for AttachInstancesToLoadBalancer<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for AttachInstancesToLoadBalancer<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