ElasticLoadBalancingv2Client#
Index > ElasticLoadBalancingv2 > ElasticLoadBalancingv2Client
Auto-generated documentation for ElasticLoadBalancingv2 type annotations stubs module mypy-boto3-elbv2.
ElasticLoadBalancingv2Client#
Type annotations and code completion for boto3.client("elbv2")
.
boto3 documentation
# ElasticLoadBalancingv2Client usage example
from boto3.session import Session
from mypy_boto3_elbv2.client import ElasticLoadBalancingv2Client
def get_elbv2_client() -> ElasticLoadBalancingv2Client:
return Session().client("elbv2")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("elbv2").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("elbv2")
try:
do_something(client)
except (
client.exceptions.ALPNPolicyNotSupportedException,
client.exceptions.AllocationIdNotFoundException,
client.exceptions.AvailabilityZoneNotSupportedException,
client.exceptions.CertificateNotFoundException,
client.exceptions.ClientError,
client.exceptions.DuplicateListenerException,
client.exceptions.DuplicateLoadBalancerNameException,
client.exceptions.DuplicateTagKeysException,
client.exceptions.DuplicateTargetGroupNameException,
client.exceptions.HealthUnavailableException,
client.exceptions.IncompatibleProtocolsException,
client.exceptions.InvalidConfigurationRequestException,
client.exceptions.InvalidLoadBalancerActionException,
client.exceptions.InvalidSchemeException,
client.exceptions.InvalidSecurityGroupException,
client.exceptions.InvalidSubnetException,
client.exceptions.InvalidTargetException,
client.exceptions.ListenerNotFoundException,
client.exceptions.LoadBalancerNotFoundException,
client.exceptions.OperationNotPermittedException,
client.exceptions.PriorityInUseException,
client.exceptions.ResourceInUseException,
client.exceptions.RuleNotFoundException,
client.exceptions.SSLPolicyNotFoundException,
client.exceptions.SubnetNotFoundException,
client.exceptions.TargetGroupAssociationLimitException,
client.exceptions.TargetGroupNotFoundException,
client.exceptions.TooManyActionsException,
client.exceptions.TooManyCertificatesException,
client.exceptions.TooManyListenersException,
client.exceptions.TooManyLoadBalancersException,
client.exceptions.TooManyRegistrationsForTargetIdException,
client.exceptions.TooManyRulesException,
client.exceptions.TooManyTagsException,
client.exceptions.TooManyTargetGroupsException,
client.exceptions.TooManyTargetsException,
client.exceptions.TooManyUniqueTargetGroupsPerLoadBalancerException,
client.exceptions.UnsupportedProtocolException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_elbv2.client import Exceptions
def handle_error(exc: Exceptions.ALPNPolicyNotSupportedException) -> None:
...
Methods#
add_listener_certificates#
Adds the specified SSL server certificate to the certificate list for the specified HTTPS or TLS listener.
Type annotations and code completion for boto3.client("elbv2").add_listener_certificates
method.
boto3 documentation
# add_listener_certificates method definition
def add_listener_certificates(
self,
*,
ListenerArn: str,
Certificates: Sequence[CertificateTypeDef], # (1)
) -> AddListenerCertificatesOutputTypeDef: # (2)
...
# add_listener_certificates method usage example with argument unpacking
kwargs: AddListenerCertificatesInputRequestTypeDef = { # (1)
"ListenerArn": ...,
"Certificates": ...,
}
parent.add_listener_certificates(**kwargs)
add_tags#
Adds the specified tags to the specified Elastic Load Balancing resource.
Type annotations and code completion for boto3.client("elbv2").add_tags
method.
boto3 documentation
# add_tags method definition
def add_tags(
self,
*,
ResourceArns: Sequence[str],
Tags: Sequence[TagTypeDef], # (1)
) -> Dict[str, Any]:
...
- See TagTypeDef
# add_tags method usage example with argument unpacking
kwargs: AddTagsInputRequestTypeDef = { # (1)
"ResourceArns": ...,
"Tags": ...,
}
parent.add_tags(**kwargs)
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("elbv2").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
close#
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("elbv2").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
create_listener#
Creates a listener for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.
Type annotations and code completion for boto3.client("elbv2").create_listener
method.
boto3 documentation
# create_listener method definition
def create_listener(
self,
*,
LoadBalancerArn: str,
DefaultActions: Sequence[ActionTypeDef], # (1)
Protocol: ProtocolEnumType = ..., # (2)
Port: int = ...,
SslPolicy: str = ...,
Certificates: Sequence[CertificateTypeDef] = ..., # (3)
AlpnPolicy: Sequence[str] = ...,
Tags: Sequence[TagTypeDef] = ..., # (4)
) -> CreateListenerOutputTypeDef: # (5)
...
- See ActionTypeDef
- See ProtocolEnumType
- See CertificateTypeDef
- See TagTypeDef
- See CreateListenerOutputTypeDef
# create_listener method usage example with argument unpacking
kwargs: CreateListenerInputRequestTypeDef = { # (1)
"LoadBalancerArn": ...,
"DefaultActions": ...,
}
parent.create_listener(**kwargs)
create_load_balancer#
Creates an Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.
Type annotations and code completion for boto3.client("elbv2").create_load_balancer
method.
boto3 documentation
# create_load_balancer method definition
def create_load_balancer(
self,
*,
Name: str,
Subnets: Sequence[str] = ...,
SubnetMappings: Sequence[SubnetMappingTypeDef] = ..., # (1)
SecurityGroups: Sequence[str] = ...,
Scheme: LoadBalancerSchemeEnumType = ..., # (2)
Tags: Sequence[TagTypeDef] = ..., # (3)
Type: LoadBalancerTypeEnumType = ..., # (4)
IpAddressType: IpAddressTypeType = ..., # (5)
CustomerOwnedIpv4Pool: str = ...,
) -> CreateLoadBalancerOutputTypeDef: # (6)
...
- See SubnetMappingTypeDef
- See LoadBalancerSchemeEnumType
- See TagTypeDef
- See LoadBalancerTypeEnumType
- See IpAddressTypeType
- See CreateLoadBalancerOutputTypeDef
# create_load_balancer method usage example with argument unpacking
kwargs: CreateLoadBalancerInputRequestTypeDef = { # (1)
"Name": ...,
}
parent.create_load_balancer(**kwargs)
create_rule#
Creates a rule for the specified listener.
Type annotations and code completion for boto3.client("elbv2").create_rule
method.
boto3 documentation
# create_rule method definition
def create_rule(
self,
*,
ListenerArn: str,
Conditions: Sequence[RuleConditionTypeDef], # (1)
Priority: int,
Actions: Sequence[ActionTypeDef], # (2)
Tags: Sequence[TagTypeDef] = ..., # (3)
) -> CreateRuleOutputTypeDef: # (4)
...
- See RuleConditionTypeDef
- See ActionTypeDef
- See TagTypeDef
- See CreateRuleOutputTypeDef
# create_rule method usage example with argument unpacking
kwargs: CreateRuleInputRequestTypeDef = { # (1)
"ListenerArn": ...,
"Conditions": ...,
"Priority": ...,
"Actions": ...,
}
parent.create_rule(**kwargs)
create_target_group#
Creates a target group.
Type annotations and code completion for boto3.client("elbv2").create_target_group
method.
boto3 documentation
# create_target_group method definition
def create_target_group(
self,
*,
Name: str,
Protocol: ProtocolEnumType = ..., # (1)
ProtocolVersion: str = ...,
Port: int = ...,
VpcId: str = ...,
HealthCheckProtocol: ProtocolEnumType = ..., # (1)
HealthCheckPort: str = ...,
HealthCheckEnabled: bool = ...,
HealthCheckPath: str = ...,
HealthCheckIntervalSeconds: int = ...,
HealthCheckTimeoutSeconds: int = ...,
HealthyThresholdCount: int = ...,
UnhealthyThresholdCount: int = ...,
Matcher: MatcherTypeDef = ..., # (3)
TargetType: TargetTypeEnumType = ..., # (4)
Tags: Sequence[TagTypeDef] = ..., # (5)
IpAddressType: TargetGroupIpAddressTypeEnumType = ..., # (6)
) -> CreateTargetGroupOutputTypeDef: # (7)
...
- See ProtocolEnumType
- See ProtocolEnumType
- See MatcherTypeDef
- See TargetTypeEnumType
- See TagTypeDef
- See TargetGroupIpAddressTypeEnumType
- See CreateTargetGroupOutputTypeDef
# create_target_group method usage example with argument unpacking
kwargs: CreateTargetGroupInputRequestTypeDef = { # (1)
"Name": ...,
}
parent.create_target_group(**kwargs)
delete_listener#
Deletes the specified listener.
Type annotations and code completion for boto3.client("elbv2").delete_listener
method.
boto3 documentation
# delete_listener method definition
def delete_listener(
self,
*,
ListenerArn: str,
) -> Dict[str, Any]:
...
# delete_listener method usage example with argument unpacking
kwargs: DeleteListenerInputRequestTypeDef = { # (1)
"ListenerArn": ...,
}
parent.delete_listener(**kwargs)
delete_load_balancer#
Deletes the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.
Type annotations and code completion for boto3.client("elbv2").delete_load_balancer
method.
boto3 documentation
# delete_load_balancer method definition
def delete_load_balancer(
self,
*,
LoadBalancerArn: str,
) -> Dict[str, Any]:
...
# delete_load_balancer method usage example with argument unpacking
kwargs: DeleteLoadBalancerInputRequestTypeDef = { # (1)
"LoadBalancerArn": ...,
}
parent.delete_load_balancer(**kwargs)
delete_rule#
Deletes the specified rule.
Type annotations and code completion for boto3.client("elbv2").delete_rule
method.
boto3 documentation
# delete_rule method definition
def delete_rule(
self,
*,
RuleArn: str,
) -> Dict[str, Any]:
...
# delete_rule method usage example with argument unpacking
kwargs: DeleteRuleInputRequestTypeDef = { # (1)
"RuleArn": ...,
}
parent.delete_rule(**kwargs)
delete_target_group#
Deletes the specified target group.
Type annotations and code completion for boto3.client("elbv2").delete_target_group
method.
boto3 documentation
# delete_target_group method definition
def delete_target_group(
self,
*,
TargetGroupArn: str,
) -> Dict[str, Any]:
...
# delete_target_group method usage example with argument unpacking
kwargs: DeleteTargetGroupInputRequestTypeDef = { # (1)
"TargetGroupArn": ...,
}
parent.delete_target_group(**kwargs)
deregister_targets#
Deregisters the specified targets from the specified target group.
Type annotations and code completion for boto3.client("elbv2").deregister_targets
method.
boto3 documentation
# deregister_targets method definition
def deregister_targets(
self,
*,
TargetGroupArn: str,
Targets: Sequence[TargetDescriptionTypeDef], # (1)
) -> Dict[str, Any]:
...
# deregister_targets method usage example with argument unpacking
kwargs: DeregisterTargetsInputRequestTypeDef = { # (1)
"TargetGroupArn": ...,
"Targets": ...,
}
parent.deregister_targets(**kwargs)
describe_account_limits#
Describes the current Elastic Load Balancing resource limits for your Amazon Web Services account.
Type annotations and code completion for boto3.client("elbv2").describe_account_limits
method.
boto3 documentation
# describe_account_limits method definition
def describe_account_limits(
self,
*,
Marker: str = ...,
PageSize: int = ...,
) -> DescribeAccountLimitsOutputTypeDef: # (1)
...
# describe_account_limits method usage example with argument unpacking
kwargs: DescribeAccountLimitsInputRequestTypeDef = { # (1)
"Marker": ...,
}
parent.describe_account_limits(**kwargs)
describe_listener_certificates#
Describes the default certificate and the certificate list for the specified HTTPS or TLS listener.
Type annotations and code completion for boto3.client("elbv2").describe_listener_certificates
method.
boto3 documentation
# describe_listener_certificates method definition
def describe_listener_certificates(
self,
*,
ListenerArn: str,
Marker: str = ...,
PageSize: int = ...,
) -> DescribeListenerCertificatesOutputTypeDef: # (1)
...
# describe_listener_certificates method usage example with argument unpacking
kwargs: DescribeListenerCertificatesInputRequestTypeDef = { # (1)
"ListenerArn": ...,
}
parent.describe_listener_certificates(**kwargs)
describe_listeners#
Describes the specified listeners or the listeners for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.
Type annotations and code completion for boto3.client("elbv2").describe_listeners
method.
boto3 documentation
# describe_listeners method definition
def describe_listeners(
self,
*,
LoadBalancerArn: str = ...,
ListenerArns: Sequence[str] = ...,
Marker: str = ...,
PageSize: int = ...,
) -> DescribeListenersOutputTypeDef: # (1)
...
# describe_listeners method usage example with argument unpacking
kwargs: DescribeListenersInputRequestTypeDef = { # (1)
"LoadBalancerArn": ...,
}
parent.describe_listeners(**kwargs)
describe_load_balancer_attributes#
Describes the attributes for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.
Type annotations and code completion for boto3.client("elbv2").describe_load_balancer_attributes
method.
boto3 documentation
# describe_load_balancer_attributes method definition
def describe_load_balancer_attributes(
self,
*,
LoadBalancerArn: str,
) -> DescribeLoadBalancerAttributesOutputTypeDef: # (1)
...
# describe_load_balancer_attributes method usage example with argument unpacking
kwargs: DescribeLoadBalancerAttributesInputRequestTypeDef = { # (1)
"LoadBalancerArn": ...,
}
parent.describe_load_balancer_attributes(**kwargs)
describe_load_balancers#
Describes the specified load balancers or all of your load balancers.
Type annotations and code completion for boto3.client("elbv2").describe_load_balancers
method.
boto3 documentation
# describe_load_balancers method definition
def describe_load_balancers(
self,
*,
LoadBalancerArns: Sequence[str] = ...,
Names: Sequence[str] = ...,
Marker: str = ...,
PageSize: int = ...,
) -> DescribeLoadBalancersOutputTypeDef: # (1)
...
# describe_load_balancers method usage example with argument unpacking
kwargs: DescribeLoadBalancersInputRequestTypeDef = { # (1)
"LoadBalancerArns": ...,
}
parent.describe_load_balancers(**kwargs)
describe_rules#
Describes the specified rules or the rules for the specified listener.
Type annotations and code completion for boto3.client("elbv2").describe_rules
method.
boto3 documentation
# describe_rules method definition
def describe_rules(
self,
*,
ListenerArn: str = ...,
RuleArns: Sequence[str] = ...,
Marker: str = ...,
PageSize: int = ...,
) -> DescribeRulesOutputTypeDef: # (1)
...
# describe_rules method usage example with argument unpacking
kwargs: DescribeRulesInputRequestTypeDef = { # (1)
"ListenerArn": ...,
}
parent.describe_rules(**kwargs)
describe_ssl_policies#
Describes the specified policies or all policies used for SSL negotiation.
Type annotations and code completion for boto3.client("elbv2").describe_ssl_policies
method.
boto3 documentation
# describe_ssl_policies method definition
def describe_ssl_policies(
self,
*,
Names: Sequence[str] = ...,
Marker: str = ...,
PageSize: int = ...,
LoadBalancerType: LoadBalancerTypeEnumType = ..., # (1)
) -> DescribeSSLPoliciesOutputTypeDef: # (2)
...
# describe_ssl_policies method usage example with argument unpacking
kwargs: DescribeSSLPoliciesInputRequestTypeDef = { # (1)
"Names": ...,
}
parent.describe_ssl_policies(**kwargs)
describe_tags#
Describes the tags for the specified Elastic Load Balancing resources.
Type annotations and code completion for boto3.client("elbv2").describe_tags
method.
boto3 documentation
# describe_tags method definition
def describe_tags(
self,
*,
ResourceArns: Sequence[str],
) -> DescribeTagsOutputTypeDef: # (1)
...
# describe_tags method usage example with argument unpacking
kwargs: DescribeTagsInputRequestTypeDef = { # (1)
"ResourceArns": ...,
}
parent.describe_tags(**kwargs)
describe_target_group_attributes#
Describes the attributes for the specified target group.
Type annotations and code completion for boto3.client("elbv2").describe_target_group_attributes
method.
boto3 documentation
# describe_target_group_attributes method definition
def describe_target_group_attributes(
self,
*,
TargetGroupArn: str,
) -> DescribeTargetGroupAttributesOutputTypeDef: # (1)
...
# describe_target_group_attributes method usage example with argument unpacking
kwargs: DescribeTargetGroupAttributesInputRequestTypeDef = { # (1)
"TargetGroupArn": ...,
}
parent.describe_target_group_attributes(**kwargs)
describe_target_groups#
Describes the specified target groups or all of your target groups.
Type annotations and code completion for boto3.client("elbv2").describe_target_groups
method.
boto3 documentation
# describe_target_groups method definition
def describe_target_groups(
self,
*,
LoadBalancerArn: str = ...,
TargetGroupArns: Sequence[str] = ...,
Names: Sequence[str] = ...,
Marker: str = ...,
PageSize: int = ...,
) -> DescribeTargetGroupsOutputTypeDef: # (1)
...
# describe_target_groups method usage example with argument unpacking
kwargs: DescribeTargetGroupsInputRequestTypeDef = { # (1)
"LoadBalancerArn": ...,
}
parent.describe_target_groups(**kwargs)
describe_target_health#
Describes the health of the specified targets or all of your targets.
Type annotations and code completion for boto3.client("elbv2").describe_target_health
method.
boto3 documentation
# describe_target_health method definition
def describe_target_health(
self,
*,
TargetGroupArn: str,
Targets: Sequence[TargetDescriptionTypeDef] = ..., # (1)
) -> DescribeTargetHealthOutputTypeDef: # (2)
...
# describe_target_health method usage example with argument unpacking
kwargs: DescribeTargetHealthInputRequestTypeDef = { # (1)
"TargetGroupArn": ...,
}
parent.describe_target_health(**kwargs)
generate_presigned_url#
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for boto3.client("elbv2").generate_presigned_url
method.
boto3 documentation
# generate_presigned_url method definition
def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
modify_listener#
Replaces the specified properties of the specified listener.
Type annotations and code completion for boto3.client("elbv2").modify_listener
method.
boto3 documentation
# modify_listener method definition
def modify_listener(
self,
*,
ListenerArn: str,
Port: int = ...,
Protocol: ProtocolEnumType = ..., # (1)
SslPolicy: str = ...,
Certificates: Sequence[CertificateTypeDef] = ..., # (2)
DefaultActions: Sequence[ActionTypeDef] = ..., # (3)
AlpnPolicy: Sequence[str] = ...,
) -> ModifyListenerOutputTypeDef: # (4)
...
- See ProtocolEnumType
- See CertificateTypeDef
- See ActionTypeDef
- See ModifyListenerOutputTypeDef
# modify_listener method usage example with argument unpacking
kwargs: ModifyListenerInputRequestTypeDef = { # (1)
"ListenerArn": ...,
}
parent.modify_listener(**kwargs)
modify_load_balancer_attributes#
Modifies the specified attributes of the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.
Type annotations and code completion for boto3.client("elbv2").modify_load_balancer_attributes
method.
boto3 documentation
# modify_load_balancer_attributes method definition
def modify_load_balancer_attributes(
self,
*,
LoadBalancerArn: str,
Attributes: Sequence[LoadBalancerAttributeTypeDef], # (1)
) -> ModifyLoadBalancerAttributesOutputTypeDef: # (2)
...
# modify_load_balancer_attributes method usage example with argument unpacking
kwargs: ModifyLoadBalancerAttributesInputRequestTypeDef = { # (1)
"LoadBalancerArn": ...,
"Attributes": ...,
}
parent.modify_load_balancer_attributes(**kwargs)
modify_rule#
Replaces the specified properties of the specified rule.
Type annotations and code completion for boto3.client("elbv2").modify_rule
method.
boto3 documentation
# modify_rule method definition
def modify_rule(
self,
*,
RuleArn: str,
Conditions: Sequence[RuleConditionTypeDef] = ..., # (1)
Actions: Sequence[ActionTypeDef] = ..., # (2)
) -> ModifyRuleOutputTypeDef: # (3)
...
- See RuleConditionTypeDef
- See ActionTypeDef
- See ModifyRuleOutputTypeDef
# modify_rule method usage example with argument unpacking
kwargs: ModifyRuleInputRequestTypeDef = { # (1)
"RuleArn": ...,
}
parent.modify_rule(**kwargs)
modify_target_group#
Modifies the health checks used when evaluating the health state of the targets in the specified target group.
Type annotations and code completion for boto3.client("elbv2").modify_target_group
method.
boto3 documentation
# modify_target_group method definition
def modify_target_group(
self,
*,
TargetGroupArn: str,
HealthCheckProtocol: ProtocolEnumType = ..., # (1)
HealthCheckPort: str = ...,
HealthCheckPath: str = ...,
HealthCheckEnabled: bool = ...,
HealthCheckIntervalSeconds: int = ...,
HealthCheckTimeoutSeconds: int = ...,
HealthyThresholdCount: int = ...,
UnhealthyThresholdCount: int = ...,
Matcher: MatcherTypeDef = ..., # (2)
) -> ModifyTargetGroupOutputTypeDef: # (3)
...
# modify_target_group method usage example with argument unpacking
kwargs: ModifyTargetGroupInputRequestTypeDef = { # (1)
"TargetGroupArn": ...,
}
parent.modify_target_group(**kwargs)
modify_target_group_attributes#
Modifies the specified attributes of the specified target group.
Type annotations and code completion for boto3.client("elbv2").modify_target_group_attributes
method.
boto3 documentation
# modify_target_group_attributes method definition
def modify_target_group_attributes(
self,
*,
TargetGroupArn: str,
Attributes: Sequence[TargetGroupAttributeTypeDef], # (1)
) -> ModifyTargetGroupAttributesOutputTypeDef: # (2)
...
# modify_target_group_attributes method usage example with argument unpacking
kwargs: ModifyTargetGroupAttributesInputRequestTypeDef = { # (1)
"TargetGroupArn": ...,
"Attributes": ...,
}
parent.modify_target_group_attributes(**kwargs)
register_targets#
Registers the specified targets with the specified target group.
Type annotations and code completion for boto3.client("elbv2").register_targets
method.
boto3 documentation
# register_targets method definition
def register_targets(
self,
*,
TargetGroupArn: str,
Targets: Sequence[TargetDescriptionTypeDef], # (1)
) -> Dict[str, Any]:
...
# register_targets method usage example with argument unpacking
kwargs: RegisterTargetsInputRequestTypeDef = { # (1)
"TargetGroupArn": ...,
"Targets": ...,
}
parent.register_targets(**kwargs)
remove_listener_certificates#
Removes the specified certificate from the certificate list for the specified HTTPS or TLS listener.
Type annotations and code completion for boto3.client("elbv2").remove_listener_certificates
method.
boto3 documentation
# remove_listener_certificates method definition
def remove_listener_certificates(
self,
*,
ListenerArn: str,
Certificates: Sequence[CertificateTypeDef], # (1)
) -> Dict[str, Any]:
...
# remove_listener_certificates method usage example with argument unpacking
kwargs: RemoveListenerCertificatesInputRequestTypeDef = { # (1)
"ListenerArn": ...,
"Certificates": ...,
}
parent.remove_listener_certificates(**kwargs)
remove_tags#
Removes the specified tags from the specified Elastic Load Balancing resources.
Type annotations and code completion for boto3.client("elbv2").remove_tags
method.
boto3 documentation
# remove_tags method definition
def remove_tags(
self,
*,
ResourceArns: Sequence[str],
TagKeys: Sequence[str],
) -> Dict[str, Any]:
...
# remove_tags method usage example with argument unpacking
kwargs: RemoveTagsInputRequestTypeDef = { # (1)
"ResourceArns": ...,
"TagKeys": ...,
}
parent.remove_tags(**kwargs)
set_ip_address_type#
Sets the type of IP addresses used by the subnets of the specified load balancer.
Type annotations and code completion for boto3.client("elbv2").set_ip_address_type
method.
boto3 documentation
# set_ip_address_type method definition
def set_ip_address_type(
self,
*,
LoadBalancerArn: str,
IpAddressType: IpAddressTypeType, # (1)
) -> SetIpAddressTypeOutputTypeDef: # (2)
...
# set_ip_address_type method usage example with argument unpacking
kwargs: SetIpAddressTypeInputRequestTypeDef = { # (1)
"LoadBalancerArn": ...,
"IpAddressType": ...,
}
parent.set_ip_address_type(**kwargs)
set_rule_priorities#
Sets the priorities of the specified rules.
Type annotations and code completion for boto3.client("elbv2").set_rule_priorities
method.
boto3 documentation
# set_rule_priorities method definition
def set_rule_priorities(
self,
*,
RulePriorities: Sequence[RulePriorityPairTypeDef], # (1)
) -> SetRulePrioritiesOutputTypeDef: # (2)
...
# set_rule_priorities method usage example with argument unpacking
kwargs: SetRulePrioritiesInputRequestTypeDef = { # (1)
"RulePriorities": ...,
}
parent.set_rule_priorities(**kwargs)
set_security_groups#
Associates the specified security groups with the specified Application Load Balancer.
Type annotations and code completion for boto3.client("elbv2").set_security_groups
method.
boto3 documentation
# set_security_groups method definition
def set_security_groups(
self,
*,
LoadBalancerArn: str,
SecurityGroups: Sequence[str],
) -> SetSecurityGroupsOutputTypeDef: # (1)
...
# set_security_groups method usage example with argument unpacking
kwargs: SetSecurityGroupsInputRequestTypeDef = { # (1)
"LoadBalancerArn": ...,
"SecurityGroups": ...,
}
parent.set_security_groups(**kwargs)
set_subnets#
Enables the Availability Zones for the specified public subnets for the specified Application Load Balancer or Network Load Balancer.
Type annotations and code completion for boto3.client("elbv2").set_subnets
method.
boto3 documentation
# set_subnets method definition
def set_subnets(
self,
*,
LoadBalancerArn: str,
Subnets: Sequence[str] = ...,
SubnetMappings: Sequence[SubnetMappingTypeDef] = ..., # (1)
IpAddressType: IpAddressTypeType = ..., # (2)
) -> SetSubnetsOutputTypeDef: # (3)
...
# set_subnets method usage example with argument unpacking
kwargs: SetSubnetsInputRequestTypeDef = { # (1)
"LoadBalancerArn": ...,
}
parent.set_subnets(**kwargs)
get_paginator#
Type annotations and code completion for boto3.client("elbv2").get_paginator
method with overloads.
client.get_paginator("describe_account_limits")
-> DescribeAccountLimitsPaginatorclient.get_paginator("describe_listener_certificates")
-> DescribeListenerCertificatesPaginatorclient.get_paginator("describe_listeners")
-> DescribeListenersPaginatorclient.get_paginator("describe_load_balancers")
-> DescribeLoadBalancersPaginatorclient.get_paginator("describe_rules")
-> DescribeRulesPaginatorclient.get_paginator("describe_ssl_policies")
-> DescribeSSLPoliciesPaginatorclient.get_paginator("describe_target_groups")
-> DescribeTargetGroupsPaginator
get_waiter#
Type annotations and code completion for boto3.client("elbv2").get_waiter
method with overloads.
client.get_waiter("load_balancer_available")
-> LoadBalancerAvailableWaiterclient.get_waiter("load_balancer_exists")
-> LoadBalancerExistsWaiterclient.get_waiter("load_balancers_deleted")
-> LoadBalancersDeletedWaiterclient.get_waiter("target_deregistered")
-> TargetDeregisteredWaiterclient.get_waiter("target_in_service")
-> TargetInServiceWaiter