pub struct Client { /* private fields */ }Expand description
Client for Elastic Load Balancing
Client for invoking operations on Elastic Load Balancing. Each operation on Elastic Load Balancing is a method on this
this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.
§Constructing a Client
A Config is required to construct a client. For most use cases, the aws-config
crate should be used to automatically resolve this config using
aws_config::load_from_env(), since this will resolve an SdkConfig which can be shared
across multiple different AWS SDK clients. This config resolution process can be customized
by calling aws_config::from_env() instead, which returns a ConfigLoader that uses
the builder pattern to customize the default config.
In the simplest case, creating a client looks as follows:
let config = aws_config::load_from_env().await;
let client = aws_sdk_elasticloadbalancing::Client::new(&config);Occasionally, SDKs may have additional service-specific values that can be set on the Config that
is absent from SdkConfig, or slightly different settings for a specific client may be desired.
The Builder struct implements From<&SdkConfig>, so setting these specific settings can be
done as follows:
let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_elasticloadbalancing::config::Builder::from(&sdk_config)
    .some_service_specific_setting("value")
    .build();See the aws-config docs and Config for more information on customizing configuration.
Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.
§Using the Client
A client has a function for every operation that can be performed by the service.
For example, the ApplySecurityGroupsToLoadBalancer operation has
a Client::apply_security_groups_to_load_balancer, function which returns a builder for that operation.
The fluent builder ultimately has a send() function that returns an async future that
returns a result, as illustrated below:
let result = client.apply_security_groups_to_load_balancer()
    .load_balancer_name("example")
    .send()
    .await;The underlying HTTP requests that get made by this can be modified with the customize_operation
function on the fluent builder. See the customize module for more
information.
§Waiters
This client provides wait_until methods behind the Waiters trait.
To use them, simply import the trait, and then call one of the wait_until methods. This will
return a waiter fluent builder that takes various parameters, which are documented on the builder
type. Once parameters have been provided, the wait method can be called to initiate waiting.
For example, if there was a wait_until_thing method, it could look like:
let result = client.wait_until_thing()
    .thing_id("someId")
    .wait(Duration::from_secs(120))
    .await;Implementations§
source§impl Client
 
impl Client
Constructs a fluent builder for the AddTags operation.
- The fluent builder is configurable:
load_balancer_names(impl Into<String>)/set_load_balancer_names(Option<Vec::<String>>):
required: trueThe name of the load balancer. You can specify one load balancer only.
tags(Tag)/set_tags(Option<Vec::<Tag>>):
required: trueThe tags.
 - On success, responds with 
AddTagsOutput - On failure, responds with 
SdkError<AddTagsError> 
source§impl Client
 
impl Client
sourcepub fn apply_security_groups_to_load_balancer(
    &self,
) -> ApplySecurityGroupsToLoadBalancerFluentBuilder
 
pub fn apply_security_groups_to_load_balancer( &self, ) -> ApplySecurityGroupsToLoadBalancerFluentBuilder
Constructs a fluent builder for the ApplySecurityGroupsToLoadBalancer operation.
- The fluent builder is configurable:
load_balancer_name(impl Into<String>)/set_load_balancer_name(Option<String>):
required: trueThe name of the load balancer.
security_groups(impl Into<String>)/set_security_groups(Option<Vec::<String>>):
required: trueThe IDs of the security groups to associate with the load balancer. Note that you cannot specify the name of the security group.
 - On success, responds with 
ApplySecurityGroupsToLoadBalancerOutputwith field(s):security_groups(Option<Vec::<String>>):The IDs of the security groups associated with the load balancer.
 - On failure, responds with 
SdkError<ApplySecurityGroupsToLoadBalancerError> 
source§impl Client
 
impl Client
sourcepub fn attach_load_balancer_to_subnets(
    &self,
) -> AttachLoadBalancerToSubnetsFluentBuilder
 
pub fn attach_load_balancer_to_subnets( &self, ) -> AttachLoadBalancerToSubnetsFluentBuilder
Constructs a fluent builder for the AttachLoadBalancerToSubnets operation.
- The fluent builder is configurable:
load_balancer_name(impl Into<String>)/set_load_balancer_name(Option<String>):
required: trueThe name of the load balancer.
subnets(impl Into<String>)/set_subnets(Option<Vec::<String>>):
required: trueThe IDs of the subnets to add. You can add only one subnet per Availability Zone.
 - On success, responds with 
AttachLoadBalancerToSubnetsOutputwith field(s):subnets(Option<Vec::<String>>):The IDs of the subnets attached to the load balancer.
 - On failure, responds with 
SdkError<AttachLoadBalancerToSubnetsError> 
source§impl Client
 
impl Client
sourcepub fn configure_health_check(&self) -> ConfigureHealthCheckFluentBuilder
 
pub fn configure_health_check(&self) -> ConfigureHealthCheckFluentBuilder
Constructs a fluent builder for the ConfigureHealthCheck operation.
- The fluent builder is configurable:
load_balancer_name(impl Into<String>)/set_load_balancer_name(Option<String>):
required: trueThe name of the load balancer.
health_check(HealthCheck)/set_health_check(Option<HealthCheck>):
required: trueThe configuration information.
 - On success, responds with 
ConfigureHealthCheckOutputwith field(s):health_check(Option<HealthCheck>):The updated health check.
 - On failure, responds with 
SdkError<ConfigureHealthCheckError> 
source§impl Client
 
impl Client
Constructs a fluent builder for the CreateAppCookieStickinessPolicy operation.
- The fluent builder is configurable:
load_balancer_name(impl Into<String>)/set_load_balancer_name(Option<String>):
required: trueThe name of the load balancer.
policy_name(impl Into<String>)/set_policy_name(Option<String>):
required: trueThe name of the policy being created. Policy names must consist of alphanumeric characters and dashes (-). This name must be unique within the set of policies for this load balancer.
cookie_name(impl Into<String>)/set_cookie_name(Option<String>):
required: trueThe name of the application cookie used for stickiness.
 - On success, responds with 
CreateAppCookieStickinessPolicyOutput - On failure, responds with 
SdkError<CreateAppCookieStickinessPolicyError> 
source§impl Client
 
impl Client
Constructs a fluent builder for the CreateLBCookieStickinessPolicy operation.
- The fluent builder is configurable:
load_balancer_name(impl Into<String>)/set_load_balancer_name(Option<String>):
required: trueThe name of the load balancer.
policy_name(impl Into<String>)/set_policy_name(Option<String>):
required: trueThe name of the policy being created. Policy names must consist of alphanumeric characters and dashes (-). This name must be unique within the set of policies for this load balancer.
cookie_expiration_period(i64)/set_cookie_expiration_period(Option<i64>):
required: falseThe time period, in seconds, after which the cookie should be considered stale. If you do not specify this parameter, the default value is 0, which indicates that the sticky session should last for the duration of the browser session.
 - On success, responds with 
CreateLbCookieStickinessPolicyOutput - On failure, responds with 
SdkError<CreateLBCookieStickinessPolicyError> 
source§impl Client
 
impl Client
sourcepub fn create_load_balancer(&self) -> CreateLoadBalancerFluentBuilder
 
pub fn create_load_balancer(&self) -> CreateLoadBalancerFluentBuilder
Constructs a fluent builder for the CreateLoadBalancer operation.
- The fluent builder is configurable:
load_balancer_name(impl Into<String>)/set_load_balancer_name(Option<String>):
required: trueThe name of the load balancer.
This name must be unique within your set of load balancers for the region, must have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and cannot begin or end with a hyphen.
listeners(Listener)/set_listeners(Option<Vec::<Listener>>):
required: trueThe listeners.
For more information, see Listeners for Your Classic Load Balancer in the Classic Load Balancers Guide.
availability_zones(impl Into<String>)/set_availability_zones(Option<Vec::<String>>):
required: falseOne or more Availability Zones from the same region as the load balancer.
You must specify at least one Availability Zone.
You can add more Availability Zones after you create the load balancer using
EnableAvailabilityZonesForLoadBalancer.subnets(impl Into<String>)/set_subnets(Option<Vec::<String>>):
required: falseThe IDs of the subnets in your VPC to attach to the load balancer. Specify one subnet per Availability Zone specified in
AvailabilityZones.security_groups(impl Into<String>)/set_security_groups(Option<Vec::<String>>):
required: falseThe IDs of the security groups to assign to the load balancer.
scheme(impl Into<String>)/set_scheme(Option<String>):
required: falseThe type of a load balancer. Valid only for load balancers in a VPC.
By default, Elastic Load Balancing creates an Internet-facing load balancer with a DNS name that resolves to public IP addresses. For more information about Internet-facing and Internal load balancers, see Load Balancer Scheme in the Elastic Load Balancing User Guide.
Specify
internalto create a load balancer with a DNS name that resolves to private IP addresses.tags(Tag)/set_tags(Option<Vec::<Tag>>):
required: falseA list of tags to assign to the load balancer.
For more information about tagging your load balancer, see Tag Your Classic Load Balancer in the Classic Load Balancers Guide.
 - On success, responds with 
CreateLoadBalancerOutputwith field(s):dns_name(Option<String>):The DNS name of the load balancer.
 - On failure, responds with 
SdkError<CreateLoadBalancerError> 
source§impl Client
 
impl Client
sourcepub fn create_load_balancer_listeners(
    &self,
) -> CreateLoadBalancerListenersFluentBuilder
 
pub fn create_load_balancer_listeners( &self, ) -> CreateLoadBalancerListenersFluentBuilder
Constructs a fluent builder for the CreateLoadBalancerListeners operation.
- The fluent builder is configurable:
load_balancer_name(impl Into<String>)/set_load_balancer_name(Option<String>):
required: trueThe name of the load balancer.
listeners(Listener)/set_listeners(Option<Vec::<Listener>>):
required: trueThe listeners.
 - On success, responds with 
CreateLoadBalancerListenersOutput - On failure, responds with 
SdkError<CreateLoadBalancerListenersError> 
source§impl Client
 
impl Client
sourcepub fn create_load_balancer_policy(
    &self,
) -> CreateLoadBalancerPolicyFluentBuilder
 
pub fn create_load_balancer_policy( &self, ) -> CreateLoadBalancerPolicyFluentBuilder
Constructs a fluent builder for the CreateLoadBalancerPolicy operation.
- The fluent builder is configurable:
load_balancer_name(impl Into<String>)/set_load_balancer_name(Option<String>):
required: trueThe name of the load balancer.
policy_name(impl Into<String>)/set_policy_name(Option<String>):
required: trueThe name of the load balancer policy to be created. This name must be unique within the set of policies for this load balancer.
policy_type_name(impl Into<String>)/set_policy_type_name(Option<String>):
required: trueThe name of the base policy type. To get the list of policy types, use
DescribeLoadBalancerPolicyTypes.policy_attributes(PolicyAttribute)/set_policy_attributes(Option<Vec::<PolicyAttribute>>):
required: falseThe policy attributes.
 - On success, responds with 
CreateLoadBalancerPolicyOutput - On failure, responds with 
SdkError<CreateLoadBalancerPolicyError> 
source§impl Client
 
impl Client
sourcepub fn delete_load_balancer(&self) -> DeleteLoadBalancerFluentBuilder
 
pub fn delete_load_balancer(&self) -> DeleteLoadBalancerFluentBuilder
Constructs a fluent builder for the DeleteLoadBalancer operation.
- The fluent builder is configurable:
load_balancer_name(impl Into<String>)/set_load_balancer_name(Option<String>):
required: trueThe name of the load balancer.
 - On success, responds with 
DeleteLoadBalancerOutput - On failure, responds with 
SdkError<DeleteLoadBalancerError> 
source§impl Client
 
impl Client
sourcepub fn delete_load_balancer_listeners(
    &self,
) -> DeleteLoadBalancerListenersFluentBuilder
 
pub fn delete_load_balancer_listeners( &self, ) -> DeleteLoadBalancerListenersFluentBuilder
Constructs a fluent builder for the DeleteLoadBalancerListeners operation.
- The fluent builder is configurable:
load_balancer_name(impl Into<String>)/set_load_balancer_name(Option<String>):
required: trueThe name of the load balancer.
load_balancer_ports(i32)/set_load_balancer_ports(Option<Vec::<i32>>):
required: trueThe client port numbers of the listeners.
 - On success, responds with 
DeleteLoadBalancerListenersOutput - On failure, responds with 
SdkError<DeleteLoadBalancerListenersError> 
source§impl Client
 
impl Client
sourcepub fn delete_load_balancer_policy(
    &self,
) -> DeleteLoadBalancerPolicyFluentBuilder
 
pub fn delete_load_balancer_policy( &self, ) -> DeleteLoadBalancerPolicyFluentBuilder
Constructs a fluent builder for the DeleteLoadBalancerPolicy operation.
- The fluent builder is configurable:
load_balancer_name(impl Into<String>)/set_load_balancer_name(Option<String>):
required: trueThe name of the load balancer.
policy_name(impl Into<String>)/set_policy_name(Option<String>):
required: trueThe name of the policy.
 - On success, responds with 
DeleteLoadBalancerPolicyOutput - On failure, responds with 
SdkError<DeleteLoadBalancerPolicyError> 
source§impl Client
 
impl Client
sourcepub fn deregister_instances_from_load_balancer(
    &self,
) -> DeregisterInstancesFromLoadBalancerFluentBuilder
 
pub fn deregister_instances_from_load_balancer( &self, ) -> DeregisterInstancesFromLoadBalancerFluentBuilder
Constructs a fluent builder for the DeregisterInstancesFromLoadBalancer operation.
- The fluent builder is configurable:
load_balancer_name(impl Into<String>)/set_load_balancer_name(Option<String>):
required: trueThe name of the load balancer.
instances(Instance)/set_instances(Option<Vec::<Instance>>):
required: trueThe IDs of the instances.
 - On success, responds with 
DeregisterInstancesFromLoadBalancerOutputwith field(s):instances(Option<Vec::<Instance>>):The remaining instances registered with the load balancer.
 - On failure, responds with 
SdkError<DeregisterInstancesFromLoadBalancerError> 
source§impl Client
 
impl Client
sourcepub fn describe_account_limits(&self) -> DescribeAccountLimitsFluentBuilder
 
pub fn describe_account_limits(&self) -> DescribeAccountLimitsFluentBuilder
Constructs a fluent builder for the DescribeAccountLimits operation.
- The fluent builder is configurable:
marker(impl Into<String>)/set_marker(Option<String>):
required: falseThe marker for the next set of results. (You received this marker from a previous call.)
page_size(i32)/set_page_size(Option<i32>):
required: falseThe maximum number of results to return with this call.
 - On success, responds with 
DescribeAccountLimitsOutputwith field(s):limits(Option<Vec::<Limit>>):Information about the limits.
next_marker(Option<String>):The marker to use when requesting the next set of results. If there are no additional results, the string is empty.
 - On failure, responds with 
SdkError<DescribeAccountLimitsError> 
source§impl Client
 
impl Client
sourcepub fn describe_instance_health(&self) -> DescribeInstanceHealthFluentBuilder
 
pub fn describe_instance_health(&self) -> DescribeInstanceHealthFluentBuilder
Constructs a fluent builder for the DescribeInstanceHealth operation.
- The fluent builder is configurable:
load_balancer_name(impl Into<String>)/set_load_balancer_name(Option<String>):
required: trueThe name of the load balancer.
instances(Instance)/set_instances(Option<Vec::<Instance>>):
required: falseThe IDs of the instances.
 - On success, responds with 
DescribeInstanceHealthOutputwith field(s):instance_states(Option<Vec::<InstanceState>>):Information about the health of the instances.
 - On failure, responds with 
SdkError<DescribeInstanceHealthError> 
source§impl Client
 
impl Client
sourcepub fn describe_load_balancer_attributes(
    &self,
) -> DescribeLoadBalancerAttributesFluentBuilder
 
pub fn describe_load_balancer_attributes( &self, ) -> DescribeLoadBalancerAttributesFluentBuilder
Constructs a fluent builder for the DescribeLoadBalancerAttributes operation.
- The fluent builder is configurable:
load_balancer_name(impl Into<String>)/set_load_balancer_name(Option<String>):
required: trueThe name of the load balancer.
 - On success, responds with 
DescribeLoadBalancerAttributesOutputwith field(s):load_balancer_attributes(Option<LoadBalancerAttributes>):Information about the load balancer attributes.
 - On failure, responds with 
SdkError<DescribeLoadBalancerAttributesError> 
source§impl Client
 
impl Client
sourcepub fn describe_load_balancer_policies(
    &self,
) -> DescribeLoadBalancerPoliciesFluentBuilder
 
pub fn describe_load_balancer_policies( &self, ) -> DescribeLoadBalancerPoliciesFluentBuilder
Constructs a fluent builder for the DescribeLoadBalancerPolicies operation.
- The fluent builder is configurable:
load_balancer_name(impl Into<String>)/set_load_balancer_name(Option<String>):
required: falseThe name of the load balancer.
policy_names(impl Into<String>)/set_policy_names(Option<Vec::<String>>):
required: falseThe names of the policies.
 - On success, responds with 
DescribeLoadBalancerPoliciesOutputwith field(s):policy_descriptions(Option<Vec::<PolicyDescription>>):Information about the policies.
 - On failure, responds with 
SdkError<DescribeLoadBalancerPoliciesError> 
source§impl Client
 
impl Client
sourcepub fn describe_load_balancer_policy_types(
    &self,
) -> DescribeLoadBalancerPolicyTypesFluentBuilder
 
pub fn describe_load_balancer_policy_types( &self, ) -> DescribeLoadBalancerPolicyTypesFluentBuilder
Constructs a fluent builder for the DescribeLoadBalancerPolicyTypes operation.
- The fluent builder is configurable:
policy_type_names(impl Into<String>)/set_policy_type_names(Option<Vec::<String>>):
required: falseThe names of the policy types. If no names are specified, describes all policy types defined by Elastic Load Balancing.
 - On success, responds with 
DescribeLoadBalancerPolicyTypesOutputwith field(s):policy_type_descriptions(Option<Vec::<PolicyTypeDescription>>):Information about the policy types.
 - On failure, responds with 
SdkError<DescribeLoadBalancerPolicyTypesError> 
source§impl Client
 
impl Client
sourcepub fn describe_load_balancers(&self) -> DescribeLoadBalancersFluentBuilder
 
pub fn describe_load_balancers(&self) -> DescribeLoadBalancersFluentBuilder
Constructs a fluent builder for the DescribeLoadBalancers operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
load_balancer_names(impl Into<String>)/set_load_balancer_names(Option<Vec::<String>>):
required: falseThe names of the load balancers.
marker(impl Into<String>)/set_marker(Option<String>):
required: falseThe marker for the next set of results. (You received this marker from a previous call.)
page_size(i32)/set_page_size(Option<i32>):
required: falseThe maximum number of results to return with this call (a number from 1 to 400). The default is 400.
 - On success, responds with 
DescribeLoadBalancersOutputwith field(s):load_balancer_descriptions(Option<Vec::<LoadBalancerDescription>>):Information about the load balancers.
next_marker(Option<String>):The marker to use when requesting the next set of results. If there are no additional results, the string is empty.
 - On failure, responds with 
SdkError<DescribeLoadBalancersError> 
source§impl Client
 
impl Client
Constructs a fluent builder for the DescribeTags operation.
- The fluent builder is configurable:
load_balancer_names(impl Into<String>)/set_load_balancer_names(Option<Vec::<String>>):
required: trueThe names of the load balancers.
 - On success, responds with 
DescribeTagsOutputwith field(s):tag_descriptions(Option<Vec::<TagDescription>>):Information about the tags.
 - On failure, responds with 
SdkError<DescribeTagsError> 
source§impl Client
 
impl Client
sourcepub fn detach_load_balancer_from_subnets(
    &self,
) -> DetachLoadBalancerFromSubnetsFluentBuilder
 
pub fn detach_load_balancer_from_subnets( &self, ) -> DetachLoadBalancerFromSubnetsFluentBuilder
Constructs a fluent builder for the DetachLoadBalancerFromSubnets operation.
- The fluent builder is configurable:
load_balancer_name(impl Into<String>)/set_load_balancer_name(Option<String>):
required: trueThe name of the load balancer.
subnets(impl Into<String>)/set_subnets(Option<Vec::<String>>):
required: trueThe IDs of the subnets.
 - On success, responds with 
DetachLoadBalancerFromSubnetsOutputwith field(s):subnets(Option<Vec::<String>>):The IDs of the remaining subnets for the load balancer.
 - On failure, responds with 
SdkError<DetachLoadBalancerFromSubnetsError> 
source§impl Client
 
impl Client
sourcepub fn disable_availability_zones_for_load_balancer(
    &self,
) -> DisableAvailabilityZonesForLoadBalancerFluentBuilder
 
pub fn disable_availability_zones_for_load_balancer( &self, ) -> DisableAvailabilityZonesForLoadBalancerFluentBuilder
Constructs a fluent builder for the DisableAvailabilityZonesForLoadBalancer operation.
- The fluent builder is configurable:
load_balancer_name(impl Into<String>)/set_load_balancer_name(Option<String>):
required: trueThe name of the load balancer.
availability_zones(impl Into<String>)/set_availability_zones(Option<Vec::<String>>):
required: trueThe Availability Zones.
 - On success, responds with 
DisableAvailabilityZonesForLoadBalancerOutputwith field(s):availability_zones(Option<Vec::<String>>):The remaining Availability Zones for the load balancer.
 - On failure, responds with 
SdkError<DisableAvailabilityZonesForLoadBalancerError> 
source§impl Client
 
impl Client
sourcepub fn enable_availability_zones_for_load_balancer(
    &self,
) -> EnableAvailabilityZonesForLoadBalancerFluentBuilder
 
pub fn enable_availability_zones_for_load_balancer( &self, ) -> EnableAvailabilityZonesForLoadBalancerFluentBuilder
Constructs a fluent builder for the EnableAvailabilityZonesForLoadBalancer operation.
- The fluent builder is configurable:
load_balancer_name(impl Into<String>)/set_load_balancer_name(Option<String>):
required: trueThe name of the load balancer.
availability_zones(impl Into<String>)/set_availability_zones(Option<Vec::<String>>):
required: trueThe Availability Zones. These must be in the same region as the load balancer.
 - On success, responds with 
EnableAvailabilityZonesForLoadBalancerOutputwith field(s):availability_zones(Option<Vec::<String>>):The updated list of Availability Zones for the load balancer.
 - On failure, responds with 
SdkError<EnableAvailabilityZonesForLoadBalancerError> 
source§impl Client
 
impl Client
sourcepub fn modify_load_balancer_attributes(
    &self,
) -> ModifyLoadBalancerAttributesFluentBuilder
 
pub fn modify_load_balancer_attributes( &self, ) -> ModifyLoadBalancerAttributesFluentBuilder
Constructs a fluent builder for the ModifyLoadBalancerAttributes operation.
- The fluent builder is configurable:
load_balancer_name(impl Into<String>)/set_load_balancer_name(Option<String>):
required: trueThe name of the load balancer.
load_balancer_attributes(LoadBalancerAttributes)/set_load_balancer_attributes(Option<LoadBalancerAttributes>):
required: trueThe attributes for the load balancer.
 - On success, responds with 
ModifyLoadBalancerAttributesOutputwith field(s):load_balancer_name(Option<String>):The name of the load balancer.
load_balancer_attributes(Option<LoadBalancerAttributes>):Information about the load balancer attributes.
 - On failure, responds with 
SdkError<ModifyLoadBalancerAttributesError> 
source§impl Client
 
impl Client
sourcepub fn register_instances_with_load_balancer(
    &self,
) -> RegisterInstancesWithLoadBalancerFluentBuilder
 
pub fn register_instances_with_load_balancer( &self, ) -> RegisterInstancesWithLoadBalancerFluentBuilder
Constructs a fluent builder for the RegisterInstancesWithLoadBalancer operation.
- The fluent builder is configurable:
load_balancer_name(impl Into<String>)/set_load_balancer_name(Option<String>):
required: trueThe name of the load balancer.
instances(Instance)/set_instances(Option<Vec::<Instance>>):
required: trueThe IDs of the instances.
 - On success, responds with 
RegisterInstancesWithLoadBalancerOutputwith field(s):instances(Option<Vec::<Instance>>):The updated list of instances for the load balancer.
 - On failure, responds with 
SdkError<RegisterInstancesWithLoadBalancerError> 
source§impl Client
 
impl Client
Constructs a fluent builder for the RemoveTags operation.
- The fluent builder is configurable:
load_balancer_names(impl Into<String>)/set_load_balancer_names(Option<Vec::<String>>):
required: trueThe name of the load balancer. You can specify a maximum of one load balancer name.
tags(TagKeyOnly)/set_tags(Option<Vec::<TagKeyOnly>>):
required: trueThe list of tag keys to remove.
 - On success, responds with 
RemoveTagsOutput - On failure, responds with 
SdkError<RemoveTagsError> 
source§impl Client
 
impl Client
sourcepub fn set_load_balancer_listener_ssl_certificate(
    &self,
) -> SetLoadBalancerListenerSSLCertificateFluentBuilder
 
pub fn set_load_balancer_listener_ssl_certificate( &self, ) -> SetLoadBalancerListenerSSLCertificateFluentBuilder
Constructs a fluent builder for the SetLoadBalancerListenerSSLCertificate operation.
- The fluent builder is configurable:
load_balancer_name(impl Into<String>)/set_load_balancer_name(Option<String>):
required: trueThe name of the load balancer.
load_balancer_port(i32)/set_load_balancer_port(Option<i32>):
required: trueThe port that uses the specified SSL certificate.
ssl_certificate_id(impl Into<String>)/set_ssl_certificate_id(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the SSL certificate.
 - On success, responds with 
SetLoadBalancerListenerSslCertificateOutput - On failure, responds with 
SdkError<SetLoadBalancerListenerSSLCertificateError> 
source§impl Client
 
impl Client
sourcepub fn set_load_balancer_policies_for_backend_server(
    &self,
) -> SetLoadBalancerPoliciesForBackendServerFluentBuilder
 
pub fn set_load_balancer_policies_for_backend_server( &self, ) -> SetLoadBalancerPoliciesForBackendServerFluentBuilder
Constructs a fluent builder for the SetLoadBalancerPoliciesForBackendServer operation.
- The fluent builder is configurable:
load_balancer_name(impl Into<String>)/set_load_balancer_name(Option<String>):
required: trueThe name of the load balancer.
instance_port(i32)/set_instance_port(Option<i32>):
required: trueThe port number associated with the EC2 instance.
policy_names(impl Into<String>)/set_policy_names(Option<Vec::<String>>):
required: trueThe names of the policies. If the list is empty, then all current polices are removed from the EC2 instance.
 - On success, responds with 
SetLoadBalancerPoliciesForBackendServerOutput - On failure, responds with 
SdkError<SetLoadBalancerPoliciesForBackendServerError> 
source§impl Client
 
impl Client
sourcepub fn set_load_balancer_policies_of_listener(
    &self,
) -> SetLoadBalancerPoliciesOfListenerFluentBuilder
 
pub fn set_load_balancer_policies_of_listener( &self, ) -> SetLoadBalancerPoliciesOfListenerFluentBuilder
Constructs a fluent builder for the SetLoadBalancerPoliciesOfListener operation.
- The fluent builder is configurable:
load_balancer_name(impl Into<String>)/set_load_balancer_name(Option<String>):
required: trueThe name of the load balancer.
load_balancer_port(i32)/set_load_balancer_port(Option<i32>):
required: trueThe external port of the load balancer.
policy_names(impl Into<String>)/set_policy_names(Option<Vec::<String>>):
required: trueThe names of the policies. This list must include all policies to be enabled. If you omit a policy that is currently enabled, it is disabled. If the list is empty, all current policies are disabled.
 - On success, responds with 
SetLoadBalancerPoliciesOfListenerOutput - On failure, responds with 
SdkError<SetLoadBalancerPoliciesOfListenerError> 
source§impl Client
 
impl Client
sourcepub fn from_conf(conf: Config) -> Self
 
pub fn from_conf(conf: Config) -> Self
Creates a new client from the service Config.
§Panics
This method will panic in the following cases:
- Retries or timeouts are enabled without a 
sleep_implconfigured. - Identity caching is enabled without a 
sleep_implandtime_sourceconfigured. - No 
behavior_versionis provided. 
The panic message for each of these will have instructions on how to resolve them.
source§impl Client
 
impl Client
sourcepub fn new(sdk_config: &SdkConfig) -> Self
 
pub fn new(sdk_config: &SdkConfig) -> Self
Creates a new client from an SDK Config.
§Panics
- This method will panic if the 
sdk_configis missing an async sleep implementation. If you experience this panic, set thesleep_implon the Config passed into this function to fix it. - This method will panic if the 
sdk_configis missing an HTTP connector. If you experience this panic, set thehttp_connectoron the Config passed into this function to fix it. - This method will panic if no 
BehaviorVersionis provided. If you experience this panic, setbehavior_versionon the Config or enable thebehavior-version-latestCargo feature. 
Trait Implementations§
source§impl Waiters for Client
 
impl Waiters for Client
source§fn wait_until_any_instance_in_service(
    &self,
) -> AnyInstanceInServiceFluentBuilder
 
fn wait_until_any_instance_in_service( &self, ) -> AnyInstanceInServiceFluentBuilder
any_instance_in_servicesource§fn wait_until_instance_deregistered(&self) -> InstanceDeregisteredFluentBuilder
 
fn wait_until_instance_deregistered(&self) -> InstanceDeregisteredFluentBuilder
instance_deregisteredsource§fn wait_until_instance_in_service(&self) -> InstanceInServiceFluentBuilder
 
fn wait_until_instance_in_service(&self) -> InstanceInServiceFluentBuilder
instance_in_serviceAuto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
 
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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 moresource§impl<T> Paint for Twhere
    T: ?Sized,
 
impl<T> Paint for Twhere
    T: ?Sized,
source§fn fg(&self, value: Color) -> Painted<&T>
 
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();source§fn bright_black(&self) -> Painted<&T>
 
fn bright_black(&self) -> Painted<&T>
Returns self with the
fg()
set to
Color::BrightBlack.
§Example
println!("{}", value.bright_black());source§fn bright_red(&self) -> Painted<&T>
 
fn bright_red(&self) -> Painted<&T>
source§fn bright_green(&self) -> Painted<&T>
 
fn bright_green(&self) -> Painted<&T>
Returns self with the
fg()
set to
Color::BrightGreen.
§Example
println!("{}", value.bright_green());source§fn bright_yellow(&self) -> Painted<&T>
 
fn bright_yellow(&self) -> Painted<&T>
Returns self with the
fg()
set to
Color::BrightYellow.
§Example
println!("{}", value.bright_yellow());source§fn bright_blue(&self) -> Painted<&T>
 
fn bright_blue(&self) -> Painted<&T>
source§fn bright_magenta(&self) -> Painted<&T>
 
fn bright_magenta(&self) -> Painted<&T>
Returns self with the
fg()
set to
Color::BrightMagenta.
§Example
println!("{}", value.bright_magenta());source§fn bright_cyan(&self) -> Painted<&T>
 
fn bright_cyan(&self) -> Painted<&T>
source§fn bright_white(&self) -> Painted<&T>
 
fn bright_white(&self) -> Painted<&T>
Returns self with the
fg()
set to
Color::BrightWhite.
§Example
println!("{}", value.bright_white());source§fn bg(&self, value: Color) -> Painted<&T>
 
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();source§fn on_primary(&self) -> Painted<&T>
 
fn on_primary(&self) -> Painted<&T>
source§fn on_magenta(&self) -> Painted<&T>
 
fn on_magenta(&self) -> Painted<&T>
source§fn on_bright_black(&self) -> Painted<&T>
 
fn on_bright_black(&self) -> Painted<&T>
Returns self with the
bg()
set to
Color::BrightBlack.
§Example
println!("{}", value.on_bright_black());source§fn on_bright_red(&self) -> Painted<&T>
 
fn on_bright_red(&self) -> Painted<&T>
source§fn on_bright_green(&self) -> Painted<&T>
 
fn on_bright_green(&self) -> Painted<&T>
Returns self with the
bg()
set to
Color::BrightGreen.
§Example
println!("{}", value.on_bright_green());source§fn on_bright_yellow(&self) -> Painted<&T>
 
fn on_bright_yellow(&self) -> Painted<&T>
Returns self with the
bg()
set to
Color::BrightYellow.
§Example
println!("{}", value.on_bright_yellow());source§fn on_bright_blue(&self) -> Painted<&T>
 
fn on_bright_blue(&self) -> Painted<&T>
Returns self with the
bg()
set to
Color::BrightBlue.
§Example
println!("{}", value.on_bright_blue());source§fn on_bright_magenta(&self) -> Painted<&T>
 
fn on_bright_magenta(&self) -> Painted<&T>
Returns self with the
bg()
set to
Color::BrightMagenta.
§Example
println!("{}", value.on_bright_magenta());source§fn on_bright_cyan(&self) -> Painted<&T>
 
fn on_bright_cyan(&self) -> Painted<&T>
Returns self with the
bg()
set to
Color::BrightCyan.
§Example
println!("{}", value.on_bright_cyan());source§fn on_bright_white(&self) -> Painted<&T>
 
fn on_bright_white(&self) -> Painted<&T>
Returns self with the
bg()
set to
Color::BrightWhite.
§Example
println!("{}", value.on_bright_white());source§fn attr(&self, value: Attribute) -> Painted<&T>
 
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();source§fn underline(&self) -> Painted<&T>
 
fn underline(&self) -> Painted<&T>
Returns self with the
attr()
set to
Attribute::Underline.
§Example
println!("{}", value.underline());source§fn rapid_blink(&self) -> Painted<&T>
 
fn rapid_blink(&self) -> Painted<&T>
Returns self with the
attr()
set to
Attribute::RapidBlink.
§Example
println!("{}", value.rapid_blink());source§fn quirk(&self, value: Quirk) -> Painted<&T>
 
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();source§fn clear(&self) -> Painted<&T>
 👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.source§fn whenever(&self, value: Condition) -> Painted<&T>
 
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);