Skip to content

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

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.

Usage example
client = boto3.client("elbv2")

try:
    do_something(client)
except (
    client.ALPNPolicyNotSupportedException,
    client.AllocationIdNotFoundException,
    client.AvailabilityZoneNotSupportedException,
    client.CertificateNotFoundException,
    client.ClientError,
    client.DuplicateListenerException,
    client.DuplicateLoadBalancerNameException,
    client.DuplicateTagKeysException,
    client.DuplicateTargetGroupNameException,
    client.HealthUnavailableException,
    client.IncompatibleProtocolsException,
    client.InvalidConfigurationRequestException,
    client.InvalidLoadBalancerActionException,
    client.InvalidSchemeException,
    client.InvalidSecurityGroupException,
    client.InvalidSubnetException,
    client.InvalidTargetException,
    client.ListenerNotFoundException,
    client.LoadBalancerNotFoundException,
    client.OperationNotPermittedException,
    client.PriorityInUseException,
    client.ResourceInUseException,
    client.RuleNotFoundException,
    client.SSLPolicyNotFoundException,
    client.SubnetNotFoundException,
    client.TargetGroupAssociationLimitException,
    client.TargetGroupNotFoundException,
    client.TooManyActionsException,
    client.TooManyCertificatesException,
    client.TooManyListenersException,
    client.TooManyLoadBalancersException,
    client.TooManyRegistrationsForTargetIdException,
    client.TooManyRulesException,
    client.TooManyTagsException,
    client.TooManyTargetGroupsException,
    client.TooManyTargetsException,
    client.TooManyUniqueTargetGroupsPerLoadBalancerException,
    client.UnsupportedProtocolException,
) as e:
    print(e)
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

Method definition
def add_listener_certificates(
    self,
    *,
    ListenerArn: str,
    Certificates: Sequence[CertificateTypeDef],  # (1)
) -> AddListenerCertificatesOutputTypeDef:  # (2)
    ...
  1. See CertificateTypeDef
  2. See AddListenerCertificatesOutputTypeDef
Usage example with kwargs
kwargs: AddListenerCertificatesInputRequestTypeDef = {  # (1)
    "ListenerArn": ...,
    "Certificates": ...,
}

parent.add_listener_certificates(**kwargs)
  1. See AddListenerCertificatesInputRequestTypeDef

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

Method definition
def add_tags(
    self,
    *,
    ResourceArns: Sequence[str],
    Tags: Sequence[TagTypeDef],  # (1)
) -> Dict[str, Any]:
    ...
  1. See TagTypeDef
Usage example with kwargs
kwargs: AddTagsInputRequestTypeDef = {  # (1)
    "ResourceArns": ...,
    "Tags": ...,
}

parent.add_tags(**kwargs)
  1. See AddTagsInputRequestTypeDef

can_paginate

Check if an operation can be paginated.

Type annotations and code completion for boto3.client("elbv2").can_paginate method. boto3 documentation

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

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

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)
    ...
  1. See ActionTypeDef
  2. See ProtocolEnumType
  3. See CertificateTypeDef
  4. See TagTypeDef
  5. See CreateListenerOutputTypeDef
Usage example with kwargs
kwargs: CreateListenerInputRequestTypeDef = {  # (1)
    "LoadBalancerArn": ...,
    "DefaultActions": ...,
}

parent.create_listener(**kwargs)
  1. See CreateListenerInputRequestTypeDef

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

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)
    ...
  1. See SubnetMappingTypeDef
  2. See LoadBalancerSchemeEnumType
  3. See TagTypeDef
  4. See LoadBalancerTypeEnumType
  5. See IpAddressTypeType
  6. See CreateLoadBalancerOutputTypeDef
Usage example with kwargs
kwargs: CreateLoadBalancerInputRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.create_load_balancer(**kwargs)
  1. See CreateLoadBalancerInputRequestTypeDef

create_rule

Creates a rule for the specified listener.

Type annotations and code completion for boto3.client("elbv2").create_rule method. boto3 documentation

Method definition
def create_rule(
    self,
    *,
    ListenerArn: str,
    Conditions: Sequence[RuleConditionTypeDef],  # (1)
    Priority: int,
    Actions: Sequence[ActionTypeDef],  # (2)
    Tags: Sequence[TagTypeDef] = ...,  # (3)
) -> CreateRuleOutputTypeDef:  # (4)
    ...
  1. See RuleConditionTypeDef
  2. See ActionTypeDef
  3. See TagTypeDef
  4. See CreateRuleOutputTypeDef
Usage example with kwargs
kwargs: CreateRuleInputRequestTypeDef = {  # (1)
    "ListenerArn": ...,
    "Conditions": ...,
    "Priority": ...,
    "Actions": ...,
}

parent.create_rule(**kwargs)
  1. See CreateRuleInputRequestTypeDef

create_target_group

Creates a target group.

Type annotations and code completion for boto3.client("elbv2").create_target_group method. boto3 documentation

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)
    ...
  1. See ProtocolEnumType
  2. See ProtocolEnumType
  3. See MatcherTypeDef
  4. See TargetTypeEnumType
  5. See TagTypeDef
  6. See TargetGroupIpAddressTypeEnumType
  7. See CreateTargetGroupOutputTypeDef
Usage example with kwargs
kwargs: CreateTargetGroupInputRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.create_target_group(**kwargs)
  1. See CreateTargetGroupInputRequestTypeDef

delete_listener

Deletes the specified listener.

Type annotations and code completion for boto3.client("elbv2").delete_listener method. boto3 documentation

Method definition
def delete_listener(
    self,
    *,
    ListenerArn: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: DeleteListenerInputRequestTypeDef = {  # (1)
    "ListenerArn": ...,
}

parent.delete_listener(**kwargs)
  1. See DeleteListenerInputRequestTypeDef

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

Method definition
def delete_load_balancer(
    self,
    *,
    LoadBalancerArn: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: DeleteLoadBalancerInputRequestTypeDef = {  # (1)
    "LoadBalancerArn": ...,
}

parent.delete_load_balancer(**kwargs)
  1. See DeleteLoadBalancerInputRequestTypeDef

delete_rule

Deletes the specified rule.

Type annotations and code completion for boto3.client("elbv2").delete_rule method. boto3 documentation

Method definition
def delete_rule(
    self,
    *,
    RuleArn: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: DeleteRuleInputRequestTypeDef = {  # (1)
    "RuleArn": ...,
}

parent.delete_rule(**kwargs)
  1. See DeleteRuleInputRequestTypeDef

delete_target_group

Deletes the specified target group.

Type annotations and code completion for boto3.client("elbv2").delete_target_group method. boto3 documentation

Method definition
def delete_target_group(
    self,
    *,
    TargetGroupArn: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: DeleteTargetGroupInputRequestTypeDef = {  # (1)
    "TargetGroupArn": ...,
}

parent.delete_target_group(**kwargs)
  1. See DeleteTargetGroupInputRequestTypeDef

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

Method definition
def deregister_targets(
    self,
    *,
    TargetGroupArn: str,
    Targets: Sequence[TargetDescriptionTypeDef],  # (1)
) -> Dict[str, Any]:
    ...
  1. See TargetDescriptionTypeDef
Usage example with kwargs
kwargs: DeregisterTargetsInputRequestTypeDef = {  # (1)
    "TargetGroupArn": ...,
    "Targets": ...,
}

parent.deregister_targets(**kwargs)
  1. See DeregisterTargetsInputRequestTypeDef

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

Method definition
def describe_account_limits(
    self,
    *,
    Marker: str = ...,
    PageSize: int = ...,
) -> DescribeAccountLimitsOutputTypeDef:  # (1)
    ...
  1. See DescribeAccountLimitsOutputTypeDef
Usage example with kwargs
kwargs: DescribeAccountLimitsInputRequestTypeDef = {  # (1)
    "Marker": ...,
}

parent.describe_account_limits(**kwargs)
  1. See DescribeAccountLimitsInputRequestTypeDef

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

Method definition
def describe_listener_certificates(
    self,
    *,
    ListenerArn: str,
    Marker: str = ...,
    PageSize: int = ...,
) -> DescribeListenerCertificatesOutputTypeDef:  # (1)
    ...
  1. See DescribeListenerCertificatesOutputTypeDef
Usage example with kwargs
kwargs: DescribeListenerCertificatesInputRequestTypeDef = {  # (1)
    "ListenerArn": ...,
}

parent.describe_listener_certificates(**kwargs)
  1. See DescribeListenerCertificatesInputRequestTypeDef

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

Method definition
def describe_listeners(
    self,
    *,
    LoadBalancerArn: str = ...,
    ListenerArns: Sequence[str] = ...,
    Marker: str = ...,
    PageSize: int = ...,
) -> DescribeListenersOutputTypeDef:  # (1)
    ...
  1. See DescribeListenersOutputTypeDef
Usage example with kwargs
kwargs: DescribeListenersInputRequestTypeDef = {  # (1)
    "LoadBalancerArn": ...,
}

parent.describe_listeners(**kwargs)
  1. See DescribeListenersInputRequestTypeDef

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

Method definition
def describe_load_balancer_attributes(
    self,
    *,
    LoadBalancerArn: str,
) -> DescribeLoadBalancerAttributesOutputTypeDef:  # (1)
    ...
  1. See DescribeLoadBalancerAttributesOutputTypeDef
Usage example with kwargs
kwargs: DescribeLoadBalancerAttributesInputRequestTypeDef = {  # (1)
    "LoadBalancerArn": ...,
}

parent.describe_load_balancer_attributes(**kwargs)
  1. See DescribeLoadBalancerAttributesInputRequestTypeDef

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

Method definition
def describe_load_balancers(
    self,
    *,
    LoadBalancerArns: Sequence[str] = ...,
    Names: Sequence[str] = ...,
    Marker: str = ...,
    PageSize: int = ...,
) -> DescribeLoadBalancersOutputTypeDef:  # (1)
    ...
  1. See DescribeLoadBalancersOutputTypeDef
Usage example with kwargs
kwargs: DescribeLoadBalancersInputRequestTypeDef = {  # (1)
    "LoadBalancerArns": ...,
}

parent.describe_load_balancers(**kwargs)
  1. See DescribeLoadBalancersInputRequestTypeDef

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

Method definition
def describe_rules(
    self,
    *,
    ListenerArn: str = ...,
    RuleArns: Sequence[str] = ...,
    Marker: str = ...,
    PageSize: int = ...,
) -> DescribeRulesOutputTypeDef:  # (1)
    ...
  1. See DescribeRulesOutputTypeDef
Usage example with kwargs
kwargs: DescribeRulesInputRequestTypeDef = {  # (1)
    "ListenerArn": ...,
}

parent.describe_rules(**kwargs)
  1. See DescribeRulesInputRequestTypeDef

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

Method definition
def describe_ssl_policies(
    self,
    *,
    Names: Sequence[str] = ...,
    Marker: str = ...,
    PageSize: int = ...,
    LoadBalancerType: LoadBalancerTypeEnumType = ...,  # (1)
) -> DescribeSSLPoliciesOutputTypeDef:  # (2)
    ...
  1. See LoadBalancerTypeEnumType
  2. See DescribeSSLPoliciesOutputTypeDef
Usage example with kwargs
kwargs: DescribeSSLPoliciesInputRequestTypeDef = {  # (1)
    "Names": ...,
}

parent.describe_ssl_policies(**kwargs)
  1. See DescribeSSLPoliciesInputRequestTypeDef

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

Method definition
def describe_tags(
    self,
    *,
    ResourceArns: Sequence[str],
) -> DescribeTagsOutputTypeDef:  # (1)
    ...
  1. See DescribeTagsOutputTypeDef
Usage example with kwargs
kwargs: DescribeTagsInputRequestTypeDef = {  # (1)
    "ResourceArns": ...,
}

parent.describe_tags(**kwargs)
  1. See DescribeTagsInputRequestTypeDef

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

Method definition
def describe_target_group_attributes(
    self,
    *,
    TargetGroupArn: str,
) -> DescribeTargetGroupAttributesOutputTypeDef:  # (1)
    ...
  1. See DescribeTargetGroupAttributesOutputTypeDef
Usage example with kwargs
kwargs: DescribeTargetGroupAttributesInputRequestTypeDef = {  # (1)
    "TargetGroupArn": ...,
}

parent.describe_target_group_attributes(**kwargs)
  1. See DescribeTargetGroupAttributesInputRequestTypeDef

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

Method definition
def describe_target_groups(
    self,
    *,
    LoadBalancerArn: str = ...,
    TargetGroupArns: Sequence[str] = ...,
    Names: Sequence[str] = ...,
    Marker: str = ...,
    PageSize: int = ...,
) -> DescribeTargetGroupsOutputTypeDef:  # (1)
    ...
  1. See DescribeTargetGroupsOutputTypeDef
Usage example with kwargs
kwargs: DescribeTargetGroupsInputRequestTypeDef = {  # (1)
    "LoadBalancerArn": ...,
}

parent.describe_target_groups(**kwargs)
  1. See DescribeTargetGroupsInputRequestTypeDef

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

Method definition
def describe_target_health(
    self,
    *,
    TargetGroupArn: str,
    Targets: Sequence[TargetDescriptionTypeDef] = ...,  # (1)
) -> DescribeTargetHealthOutputTypeDef:  # (2)
    ...
  1. See TargetDescriptionTypeDef
  2. See DescribeTargetHealthOutputTypeDef
Usage example with kwargs
kwargs: DescribeTargetHealthInputRequestTypeDef = {  # (1)
    "TargetGroupArn": ...,
}

parent.describe_target_health(**kwargs)
  1. See DescribeTargetHealthInputRequestTypeDef

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

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

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)
    ...
  1. See ProtocolEnumType
  2. See CertificateTypeDef
  3. See ActionTypeDef
  4. See ModifyListenerOutputTypeDef
Usage example with kwargs
kwargs: ModifyListenerInputRequestTypeDef = {  # (1)
    "ListenerArn": ...,
}

parent.modify_listener(**kwargs)
  1. See ModifyListenerInputRequestTypeDef

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

Method definition
def modify_load_balancer_attributes(
    self,
    *,
    LoadBalancerArn: str,
    Attributes: Sequence[LoadBalancerAttributeTypeDef],  # (1)
) -> ModifyLoadBalancerAttributesOutputTypeDef:  # (2)
    ...
  1. See LoadBalancerAttributeTypeDef
  2. See ModifyLoadBalancerAttributesOutputTypeDef
Usage example with kwargs
kwargs: ModifyLoadBalancerAttributesInputRequestTypeDef = {  # (1)
    "LoadBalancerArn": ...,
    "Attributes": ...,
}

parent.modify_load_balancer_attributes(**kwargs)
  1. See ModifyLoadBalancerAttributesInputRequestTypeDef

modify_rule

Replaces the specified properties of the specified rule.

Type annotations and code completion for boto3.client("elbv2").modify_rule method. boto3 documentation

Method definition
def modify_rule(
    self,
    *,
    RuleArn: str,
    Conditions: Sequence[RuleConditionTypeDef] = ...,  # (1)
    Actions: Sequence[ActionTypeDef] = ...,  # (2)
) -> ModifyRuleOutputTypeDef:  # (3)
    ...
  1. See RuleConditionTypeDef
  2. See ActionTypeDef
  3. See ModifyRuleOutputTypeDef
Usage example with kwargs
kwargs: ModifyRuleInputRequestTypeDef = {  # (1)
    "RuleArn": ...,
}

parent.modify_rule(**kwargs)
  1. See ModifyRuleInputRequestTypeDef

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

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)
    ...
  1. See ProtocolEnumType
  2. See MatcherTypeDef
  3. See ModifyTargetGroupOutputTypeDef
Usage example with kwargs
kwargs: ModifyTargetGroupInputRequestTypeDef = {  # (1)
    "TargetGroupArn": ...,
}

parent.modify_target_group(**kwargs)
  1. See ModifyTargetGroupInputRequestTypeDef

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

Method definition
def modify_target_group_attributes(
    self,
    *,
    TargetGroupArn: str,
    Attributes: Sequence[TargetGroupAttributeTypeDef],  # (1)
) -> ModifyTargetGroupAttributesOutputTypeDef:  # (2)
    ...
  1. See TargetGroupAttributeTypeDef
  2. See ModifyTargetGroupAttributesOutputTypeDef
Usage example with kwargs
kwargs: ModifyTargetGroupAttributesInputRequestTypeDef = {  # (1)
    "TargetGroupArn": ...,
    "Attributes": ...,
}

parent.modify_target_group_attributes(**kwargs)
  1. See ModifyTargetGroupAttributesInputRequestTypeDef

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

Method definition
def register_targets(
    self,
    *,
    TargetGroupArn: str,
    Targets: Sequence[TargetDescriptionTypeDef],  # (1)
) -> Dict[str, Any]:
    ...
  1. See TargetDescriptionTypeDef
Usage example with kwargs
kwargs: RegisterTargetsInputRequestTypeDef = {  # (1)
    "TargetGroupArn": ...,
    "Targets": ...,
}

parent.register_targets(**kwargs)
  1. See RegisterTargetsInputRequestTypeDef

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

Method definition
def remove_listener_certificates(
    self,
    *,
    ListenerArn: str,
    Certificates: Sequence[CertificateTypeDef],  # (1)
) -> Dict[str, Any]:
    ...
  1. See CertificateTypeDef
Usage example with kwargs
kwargs: RemoveListenerCertificatesInputRequestTypeDef = {  # (1)
    "ListenerArn": ...,
    "Certificates": ...,
}

parent.remove_listener_certificates(**kwargs)
  1. See RemoveListenerCertificatesInputRequestTypeDef

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

Method definition
def remove_tags(
    self,
    *,
    ResourceArns: Sequence[str],
    TagKeys: Sequence[str],
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: RemoveTagsInputRequestTypeDef = {  # (1)
    "ResourceArns": ...,
    "TagKeys": ...,
}

parent.remove_tags(**kwargs)
  1. See RemoveTagsInputRequestTypeDef

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

Method definition
def set_ip_address_type(
    self,
    *,
    LoadBalancerArn: str,
    IpAddressType: IpAddressTypeType,  # (1)
) -> SetIpAddressTypeOutputTypeDef:  # (2)
    ...
  1. See IpAddressTypeType
  2. See SetIpAddressTypeOutputTypeDef
Usage example with kwargs
kwargs: SetIpAddressTypeInputRequestTypeDef = {  # (1)
    "LoadBalancerArn": ...,
    "IpAddressType": ...,
}

parent.set_ip_address_type(**kwargs)
  1. See SetIpAddressTypeInputRequestTypeDef

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

Method definition
def set_rule_priorities(
    self,
    *,
    RulePriorities: Sequence[RulePriorityPairTypeDef],  # (1)
) -> SetRulePrioritiesOutputTypeDef:  # (2)
    ...
  1. See RulePriorityPairTypeDef
  2. See SetRulePrioritiesOutputTypeDef
Usage example with kwargs
kwargs: SetRulePrioritiesInputRequestTypeDef = {  # (1)
    "RulePriorities": ...,
}

parent.set_rule_priorities(**kwargs)
  1. See SetRulePrioritiesInputRequestTypeDef

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

Method definition
def set_security_groups(
    self,
    *,
    LoadBalancerArn: str,
    SecurityGroups: Sequence[str],
) -> SetSecurityGroupsOutputTypeDef:  # (1)
    ...
  1. See SetSecurityGroupsOutputTypeDef
Usage example with kwargs
kwargs: SetSecurityGroupsInputRequestTypeDef = {  # (1)
    "LoadBalancerArn": ...,
    "SecurityGroups": ...,
}

parent.set_security_groups(**kwargs)
  1. See SetSecurityGroupsInputRequestTypeDef

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

Method definition
def set_subnets(
    self,
    *,
    LoadBalancerArn: str,
    Subnets: Sequence[str] = ...,
    SubnetMappings: Sequence[SubnetMappingTypeDef] = ...,  # (1)
    IpAddressType: IpAddressTypeType = ...,  # (2)
) -> SetSubnetsOutputTypeDef:  # (3)
    ...
  1. See SubnetMappingTypeDef
  2. See IpAddressTypeType
  3. See SetSubnetsOutputTypeDef
Usage example with kwargs
kwargs: SetSubnetsInputRequestTypeDef = {  # (1)
    "LoadBalancerArn": ...,
}

parent.set_subnets(**kwargs)
  1. See SetSubnetsInputRequestTypeDef

get_paginator

Type annotations and code completion for boto3.client("elbv2").get_paginator method with overloads.

get_waiter

Type annotations and code completion for boto3.client("elbv2").get_waiter method with overloads.