ElasticLoadBalancingv2Client#
Index > ElasticLoadBalancingv2 > ElasticLoadBalancingv2Client
Auto-generated documentation for ElasticLoadBalancingv2 type annotations stubs module types-boto3-elbv2.
ElasticLoadBalancingv2Client#
Type annotations and code completion for boto3.client("elbv2").
 boto3 documentation
# ElasticLoadBalancingv2Client usage example
from boto3.session import Session
from types_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.CaCertificatesBundleNotFoundException,
    client.exceptions.CapacityDecreaseRequestsLimitExceededException,
    client.exceptions.CapacityReservationPendingException,
    client.exceptions.CapacityUnitsLimitExceededException,
    client.exceptions.CertificateNotFoundException,
    client.exceptions.ClientError,
    client.exceptions.DeleteAssociationSameAccountException,
    client.exceptions.DuplicateListenerException,
    client.exceptions.DuplicateLoadBalancerNameException,
    client.exceptions.DuplicateTagKeysException,
    client.exceptions.DuplicateTargetGroupNameException,
    client.exceptions.DuplicateTrustStoreNameException,
    client.exceptions.HealthUnavailableException,
    client.exceptions.IncompatibleProtocolsException,
    client.exceptions.InsufficientCapacityException,
    client.exceptions.InvalidCaCertificatesBundleException,
    client.exceptions.InvalidConfigurationRequestException,
    client.exceptions.InvalidLoadBalancerActionException,
    client.exceptions.InvalidRevocationContentException,
    client.exceptions.InvalidSchemeException,
    client.exceptions.InvalidSecurityGroupException,
    client.exceptions.InvalidSubnetException,
    client.exceptions.InvalidTargetException,
    client.exceptions.ListenerNotFoundException,
    client.exceptions.LoadBalancerNotFoundException,
    client.exceptions.OperationNotPermittedException,
    client.exceptions.PriorRequestNotCompleteException,
    client.exceptions.PriorityInUseException,
    client.exceptions.ResourceInUseException,
    client.exceptions.ResourceNotFoundException,
    client.exceptions.RevocationContentNotFoundException,
    client.exceptions.RevocationIdNotFoundException,
    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.TooManyTrustStoreRevocationEntriesException,
    client.exceptions.TooManyTrustStoresException,
    client.exceptions.TooManyUniqueTargetGroupsPerLoadBalancerException,
    client.exceptions.TrustStoreAssociationNotFoundException,
    client.exceptions.TrustStoreInUseException,
    client.exceptions.TrustStoreNotFoundException,
    client.exceptions.TrustStoreNotReadyException,
    client.exceptions.UnsupportedProtocolException,
) as e:
    print(e)# Exceptions.exceptions type checking example
from types_boto3_elbv2.client import Exceptions
def handle_error(exc: Exceptions.ALPNPolicyNotSupportedException) -> None:
    ...Methods#
can_paginate#
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:
    ...generate_presigned_url#
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:
    ...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)
    ...- See Sequence[CertificateTypeDef]
- See AddListenerCertificatesOutputTypeDef
# add_listener_certificates method usage example with argument unpacking
kwargs: AddListenerCertificatesInputTypeDef = {  # (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 Sequence[TagTypeDef]
# add_tags method usage example with argument unpacking
kwargs: AddTagsInputTypeDef = {  # (1)
    "ResourceArns": ...,
    "Tags": ...,
}
parent.add_tags(**kwargs)add_trust_store_revocations#
Adds the specified revocation file to the specified trust store.
Type annotations and code completion for boto3.client("elbv2").add_trust_store_revocations method.
 boto3 documentation
# add_trust_store_revocations method definition
def add_trust_store_revocations(
    self,
    *,
    TrustStoreArn: str,
    RevocationContents: Sequence[RevocationContentTypeDef] = ...,  # (1)
) -> AddTrustStoreRevocationsOutputTypeDef:  # (2)
    ...- See Sequence[RevocationContentTypeDef]
- See AddTrustStoreRevocationsOutputTypeDef
# add_trust_store_revocations method usage example with argument unpacking
kwargs: AddTrustStoreRevocationsInputTypeDef = {  # (1)
    "TrustStoreArn": ...,
}
parent.add_trust_store_revocations(**kwargs)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[ActionUnionTypeDef],  # (1)
    Protocol: ProtocolEnumType = ...,  # (2)
    Port: int = ...,
    SslPolicy: str = ...,
    Certificates: Sequence[CertificateTypeDef] = ...,  # (3)
    AlpnPolicy: Sequence[str] = ...,
    Tags: Sequence[TagTypeDef] = ...,  # (4)
    MutualAuthentication: MutualAuthenticationAttributesTypeDef = ...,  # (5)
) -> CreateListenerOutputTypeDef:  # (6)
    ...- See Sequence[ActionUnionTypeDef]
- See ProtocolEnumType
- See Sequence[CertificateTypeDef]
- See Sequence[TagTypeDef]
- See MutualAuthenticationAttributesTypeDef
- See CreateListenerOutputTypeDef
# create_listener method usage example with argument unpacking
kwargs: CreateListenerInputTypeDef = {  # (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 = ...,
    EnablePrefixForIpv6SourceNat: EnablePrefixForIpv6SourceNatEnumType = ...,  # (6)
    IpamPools: IpamPoolsTypeDef = ...,  # (7)
) -> CreateLoadBalancerOutputTypeDef:  # (8)
    ...- See Sequence[SubnetMappingTypeDef]
- See LoadBalancerSchemeEnumType
- See Sequence[TagTypeDef]
- See LoadBalancerTypeEnumType
- See IpAddressTypeType
- See EnablePrefixForIpv6SourceNatEnumType
- See IpamPoolsTypeDef
- See CreateLoadBalancerOutputTypeDef
# create_load_balancer method usage example with argument unpacking
kwargs: CreateLoadBalancerInputTypeDef = {  # (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[RuleConditionUnionTypeDef],  # (1)
    Priority: int,
    Actions: Sequence[ActionUnionTypeDef],  # (2)
    Tags: Sequence[TagTypeDef] = ...,  # (3)
    Transforms: Sequence[RuleTransformUnionTypeDef] = ...,  # (4)
) -> CreateRuleOutputTypeDef:  # (5)
    ...- See Sequence[RuleConditionUnionTypeDef]
- See Sequence[ActionUnionTypeDef]
- See Sequence[TagTypeDef]
- See Sequence[RuleTransformUnionTypeDef]
- See CreateRuleOutputTypeDef
# create_rule method usage example with argument unpacking
kwargs: CreateRuleInputTypeDef = {  # (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 Sequence[TagTypeDef]
- See TargetGroupIpAddressTypeEnumType
- See CreateTargetGroupOutputTypeDef
# create_target_group method usage example with argument unpacking
kwargs: CreateTargetGroupInputTypeDef = {  # (1)
    "Name": ...,
}
parent.create_target_group(**kwargs)create_trust_store#
Creates a trust store.
Type annotations and code completion for boto3.client("elbv2").create_trust_store method.
 boto3 documentation
# create_trust_store method definition
def create_trust_store(
    self,
    *,
    Name: str,
    CaCertificatesBundleS3Bucket: str,
    CaCertificatesBundleS3Key: str,
    CaCertificatesBundleS3ObjectVersion: str = ...,
    Tags: Sequence[TagTypeDef] = ...,  # (1)
) -> CreateTrustStoreOutputTypeDef:  # (2)
    ...- See Sequence[TagTypeDef]
- See CreateTrustStoreOutputTypeDef
# create_trust_store method usage example with argument unpacking
kwargs: CreateTrustStoreInputTypeDef = {  # (1)
    "Name": ...,
    "CaCertificatesBundleS3Bucket": ...,
    "CaCertificatesBundleS3Key": ...,
}
parent.create_trust_store(**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: DeleteListenerInputTypeDef = {  # (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: DeleteLoadBalancerInputTypeDef = {  # (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: DeleteRuleInputTypeDef = {  # (1)
    "RuleArn": ...,
}
parent.delete_rule(**kwargs)delete_shared_trust_store_association#
Deletes a shared trust store association.
Type annotations and code completion for boto3.client("elbv2").delete_shared_trust_store_association method.
 boto3 documentation
# delete_shared_trust_store_association method definition
def delete_shared_trust_store_association(
    self,
    *,
    TrustStoreArn: str,
    ResourceArn: str,
) -> Dict[str, Any]:
    ...# delete_shared_trust_store_association method usage example with argument unpacking
kwargs: DeleteSharedTrustStoreAssociationInputTypeDef = {  # (1)
    "TrustStoreArn": ...,
    "ResourceArn": ...,
}
parent.delete_shared_trust_store_association(**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: DeleteTargetGroupInputTypeDef = {  # (1)
    "TargetGroupArn": ...,
}
parent.delete_target_group(**kwargs)delete_trust_store#
Deletes a trust store.
Type annotations and code completion for boto3.client("elbv2").delete_trust_store method.
 boto3 documentation
# delete_trust_store method definition
def delete_trust_store(
    self,
    *,
    TrustStoreArn: str,
) -> Dict[str, Any]:
    ...# delete_trust_store method usage example with argument unpacking
kwargs: DeleteTrustStoreInputTypeDef = {  # (1)
    "TrustStoreArn": ...,
}
parent.delete_trust_store(**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]:
    ...- See Sequence[TargetDescriptionTypeDef]
# deregister_targets method usage example with argument unpacking
kwargs: DeregisterTargetsInputTypeDef = {  # (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: DescribeAccountLimitsInputTypeDef = {  # (1)
    "Marker": ...,
}
parent.describe_account_limits(**kwargs)describe_capacity_reservation#
Describes the capacity reservation status for the specified load balancer.
Type annotations and code completion for boto3.client("elbv2").describe_capacity_reservation method.
 boto3 documentation
# describe_capacity_reservation method definition
def describe_capacity_reservation(
    self,
    *,
    LoadBalancerArn: str,
) -> DescribeCapacityReservationOutputTypeDef:  # (1)
    ...# describe_capacity_reservation method usage example with argument unpacking
kwargs: DescribeCapacityReservationInputTypeDef = {  # (1)
    "LoadBalancerArn": ...,
}
parent.describe_capacity_reservation(**kwargs)describe_listener_attributes#
Describes the attributes for the specified listener.
Type annotations and code completion for boto3.client("elbv2").describe_listener_attributes method.
 boto3 documentation
# describe_listener_attributes method definition
def describe_listener_attributes(
    self,
    *,
    ListenerArn: str,
) -> DescribeListenerAttributesOutputTypeDef:  # (1)
    ...# describe_listener_attributes method usage example with argument unpacking
kwargs: DescribeListenerAttributesInputTypeDef = {  # (1)
    "ListenerArn": ...,
}
parent.describe_listener_attributes(**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: DescribeListenerCertificatesInputTypeDef = {  # (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: DescribeListenersInputTypeDef = {  # (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: DescribeLoadBalancerAttributesInputTypeDef = {  # (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: DescribeLoadBalancersInputTypeDef = {  # (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: DescribeRulesInputTypeDef = {  # (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: DescribeSSLPoliciesInputTypeDef = {  # (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: DescribeTagsInputTypeDef = {  # (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: DescribeTargetGroupAttributesInputTypeDef = {  # (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: DescribeTargetGroupsInputTypeDef = {  # (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)
    Include: Sequence[DescribeTargetHealthInputIncludeEnumType] = ...,  # (2)
) -> DescribeTargetHealthOutputTypeDef:  # (3)
    ...- See Sequence[TargetDescriptionTypeDef]
- See Sequence[DescribeTargetHealthInputIncludeEnumType]
- See DescribeTargetHealthOutputTypeDef
# describe_target_health method usage example with argument unpacking
kwargs: DescribeTargetHealthInputTypeDef = {  # (1)
    "TargetGroupArn": ...,
}
parent.describe_target_health(**kwargs)describe_trust_store_associations#
Describes all resources associated with the specified trust store.
Type annotations and code completion for boto3.client("elbv2").describe_trust_store_associations method.
 boto3 documentation
# describe_trust_store_associations method definition
def describe_trust_store_associations(
    self,
    *,
    TrustStoreArn: str,
    Marker: str = ...,
    PageSize: int = ...,
) -> DescribeTrustStoreAssociationsOutputTypeDef:  # (1)
    ...# describe_trust_store_associations method usage example with argument unpacking
kwargs: DescribeTrustStoreAssociationsInputTypeDef = {  # (1)
    "TrustStoreArn": ...,
}
parent.describe_trust_store_associations(**kwargs)describe_trust_store_revocations#
Describes the revocation files in use by the specified trust store or revocation files.
Type annotations and code completion for boto3.client("elbv2").describe_trust_store_revocations method.
 boto3 documentation
# describe_trust_store_revocations method definition
def describe_trust_store_revocations(
    self,
    *,
    TrustStoreArn: str,
    RevocationIds: Sequence[int] = ...,
    Marker: str = ...,
    PageSize: int = ...,
) -> DescribeTrustStoreRevocationsOutputTypeDef:  # (1)
    ...# describe_trust_store_revocations method usage example with argument unpacking
kwargs: DescribeTrustStoreRevocationsInputTypeDef = {  # (1)
    "TrustStoreArn": ...,
}
parent.describe_trust_store_revocations(**kwargs)describe_trust_stores#
Describes all trust stores for the specified account.
Type annotations and code completion for boto3.client("elbv2").describe_trust_stores method.
 boto3 documentation
# describe_trust_stores method definition
def describe_trust_stores(
    self,
    *,
    TrustStoreArns: Sequence[str] = ...,
    Names: Sequence[str] = ...,
    Marker: str = ...,
    PageSize: int = ...,
) -> DescribeTrustStoresOutputTypeDef:  # (1)
    ...# describe_trust_stores method usage example with argument unpacking
kwargs: DescribeTrustStoresInputTypeDef = {  # (1)
    "TrustStoreArns": ...,
}
parent.describe_trust_stores(**kwargs)get_resource_policy#
Retrieves the resource policy for a specified resource.
Type annotations and code completion for boto3.client("elbv2").get_resource_policy method.
 boto3 documentation
# get_resource_policy method definition
def get_resource_policy(
    self,
    *,
    ResourceArn: str,
) -> GetResourcePolicyOutputTypeDef:  # (1)
    ...# get_resource_policy method usage example with argument unpacking
kwargs: GetResourcePolicyInputTypeDef = {  # (1)
    "ResourceArn": ...,
}
parent.get_resource_policy(**kwargs)get_trust_store_ca_certificates_bundle#
Retrieves the ca certificate bundle.
Type annotations and code completion for boto3.client("elbv2").get_trust_store_ca_certificates_bundle method.
 boto3 documentation
# get_trust_store_ca_certificates_bundle method definition
def get_trust_store_ca_certificates_bundle(
    self,
    *,
    TrustStoreArn: str,
) -> GetTrustStoreCaCertificatesBundleOutputTypeDef:  # (1)
    ...# get_trust_store_ca_certificates_bundle method usage example with argument unpacking
kwargs: GetTrustStoreCaCertificatesBundleInputTypeDef = {  # (1)
    "TrustStoreArn": ...,
}
parent.get_trust_store_ca_certificates_bundle(**kwargs)get_trust_store_revocation_content#
Retrieves the specified revocation file.
Type annotations and code completion for boto3.client("elbv2").get_trust_store_revocation_content method.
 boto3 documentation
# get_trust_store_revocation_content method definition
def get_trust_store_revocation_content(
    self,
    *,
    TrustStoreArn: str,
    RevocationId: int,
) -> GetTrustStoreRevocationContentOutputTypeDef:  # (1)
    ...# get_trust_store_revocation_content method usage example with argument unpacking
kwargs: GetTrustStoreRevocationContentInputTypeDef = {  # (1)
    "TrustStoreArn": ...,
    "RevocationId": ...,
}
parent.get_trust_store_revocation_content(**kwargs)modify_capacity_reservation#
Modifies the capacity reservation of the specified load balancer.
Type annotations and code completion for boto3.client("elbv2").modify_capacity_reservation method.
 boto3 documentation
# modify_capacity_reservation method definition
def modify_capacity_reservation(
    self,
    *,
    LoadBalancerArn: str,
    MinimumLoadBalancerCapacity: MinimumLoadBalancerCapacityTypeDef = ...,  # (1)
    ResetCapacityReservation: bool = ...,
) -> ModifyCapacityReservationOutputTypeDef:  # (2)
    ...# modify_capacity_reservation method usage example with argument unpacking
kwargs: ModifyCapacityReservationInputTypeDef = {  # (1)
    "LoadBalancerArn": ...,
}
parent.modify_capacity_reservation(**kwargs)modify_ip_pools#
Type annotations and code completion for boto3.client("elbv2").modify_ip_pools method.
 boto3 documentation
# modify_ip_pools method definition
def modify_ip_pools(
    self,
    *,
    LoadBalancerArn: str,
    IpamPools: IpamPoolsTypeDef = ...,  # (1)
    RemoveIpamPools: Sequence[RemoveIpamPoolEnumType] = ...,  # (2)
) -> ModifyIpPoolsOutputTypeDef:  # (3)
    ...- See IpamPoolsTypeDef
- See Sequence[Literal['ipv4']]
- See ModifyIpPoolsOutputTypeDef
# modify_ip_pools method usage example with argument unpacking
kwargs: ModifyIpPoolsInputTypeDef = {  # (1)
    "LoadBalancerArn": ...,
}
parent.modify_ip_pools(**kwargs)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[ActionUnionTypeDef] = ...,  # (3)
    AlpnPolicy: Sequence[str] = ...,
    MutualAuthentication: MutualAuthenticationAttributesTypeDef = ...,  # (4)
) -> ModifyListenerOutputTypeDef:  # (5)
    ...- See ProtocolEnumType
- See Sequence[CertificateTypeDef]
- See Sequence[ActionUnionTypeDef]
- See MutualAuthenticationAttributesTypeDef
- See ModifyListenerOutputTypeDef
# modify_listener method usage example with argument unpacking
kwargs: ModifyListenerInputTypeDef = {  # (1)
    "ListenerArn": ...,
}
parent.modify_listener(**kwargs)modify_listener_attributes#
Modifies the specified attributes of the specified listener.
Type annotations and code completion for boto3.client("elbv2").modify_listener_attributes method.
 boto3 documentation
# modify_listener_attributes method definition
def modify_listener_attributes(
    self,
    *,
    ListenerArn: str,
    Attributes: Sequence[ListenerAttributeTypeDef],  # (1)
) -> ModifyListenerAttributesOutputTypeDef:  # (2)
    ...- See Sequence[ListenerAttributeTypeDef]
- See ModifyListenerAttributesOutputTypeDef
# modify_listener_attributes method usage example with argument unpacking
kwargs: ModifyListenerAttributesInputTypeDef = {  # (1)
    "ListenerArn": ...,
    "Attributes": ...,
}
parent.modify_listener_attributes(**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)
    ...- See Sequence[LoadBalancerAttributeTypeDef]
- See ModifyLoadBalancerAttributesOutputTypeDef
# modify_load_balancer_attributes method usage example with argument unpacking
kwargs: ModifyLoadBalancerAttributesInputTypeDef = {  # (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[RuleConditionUnionTypeDef] = ...,  # (1)
    Actions: Sequence[ActionUnionTypeDef] = ...,  # (2)
    Transforms: Sequence[RuleTransformUnionTypeDef] = ...,  # (3)
    ResetTransforms: bool = ...,
) -> ModifyRuleOutputTypeDef:  # (4)
    ...- See Sequence[RuleConditionUnionTypeDef]
- See Sequence[ActionUnionTypeDef]
- See Sequence[RuleTransformUnionTypeDef]
- See ModifyRuleOutputTypeDef
# modify_rule method usage example with argument unpacking
kwargs: ModifyRuleInputTypeDef = {  # (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: ModifyTargetGroupInputTypeDef = {  # (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)
    ...- See Sequence[TargetGroupAttributeTypeDef]
- See ModifyTargetGroupAttributesOutputTypeDef
# modify_target_group_attributes method usage example with argument unpacking
kwargs: ModifyTargetGroupAttributesInputTypeDef = {  # (1)
    "TargetGroupArn": ...,
    "Attributes": ...,
}
parent.modify_target_group_attributes(**kwargs)modify_trust_store#
Update the ca certificate bundle for the specified trust store.
Type annotations and code completion for boto3.client("elbv2").modify_trust_store method.
 boto3 documentation
# modify_trust_store method definition
def modify_trust_store(
    self,
    *,
    TrustStoreArn: str,
    CaCertificatesBundleS3Bucket: str,
    CaCertificatesBundleS3Key: str,
    CaCertificatesBundleS3ObjectVersion: str = ...,
) -> ModifyTrustStoreOutputTypeDef:  # (1)
    ...# modify_trust_store method usage example with argument unpacking
kwargs: ModifyTrustStoreInputTypeDef = {  # (1)
    "TrustStoreArn": ...,
    "CaCertificatesBundleS3Bucket": ...,
    "CaCertificatesBundleS3Key": ...,
}
parent.modify_trust_store(**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]:
    ...- See Sequence[TargetDescriptionTypeDef]
# register_targets method usage example with argument unpacking
kwargs: RegisterTargetsInputTypeDef = {  # (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]:
    ...- See Sequence[CertificateTypeDef]
# remove_listener_certificates method usage example with argument unpacking
kwargs: RemoveListenerCertificatesInputTypeDef = {  # (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: RemoveTagsInputTypeDef = {  # (1)
    "ResourceArns": ...,
    "TagKeys": ...,
}
parent.remove_tags(**kwargs)remove_trust_store_revocations#
Removes the specified revocation file from the specified trust store.
Type annotations and code completion for boto3.client("elbv2").remove_trust_store_revocations method.
 boto3 documentation
# remove_trust_store_revocations method definition
def remove_trust_store_revocations(
    self,
    *,
    TrustStoreArn: str,
    RevocationIds: Sequence[int],
) -> Dict[str, Any]:
    ...# remove_trust_store_revocations method usage example with argument unpacking
kwargs: RemoveTrustStoreRevocationsInputTypeDef = {  # (1)
    "TrustStoreArn": ...,
    "RevocationIds": ...,
}
parent.remove_trust_store_revocations(**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: SetIpAddressTypeInputTypeDef = {  # (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)
    ...- See Sequence[RulePriorityPairTypeDef]
- See SetRulePrioritiesOutputTypeDef
# set_rule_priorities method usage example with argument unpacking
kwargs: SetRulePrioritiesInputTypeDef = {  # (1)
    "RulePriorities": ...,
}
parent.set_rule_priorities(**kwargs)set_security_groups#
Associates the specified security groups with the specified Application Load Balancer or Network 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],
    EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic: EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnumType = ...,  # (1)
) -> SetSecurityGroupsOutputTypeDef:  # (2)
    ...# set_security_groups method usage example with argument unpacking
kwargs: SetSecurityGroupsInputTypeDef = {  # (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, Network Load Balancer or Gateway 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)
    EnablePrefixForIpv6SourceNat: EnablePrefixForIpv6SourceNatEnumType = ...,  # (3)
) -> SetSubnetsOutputTypeDef:  # (4)
    ...- See Sequence[SubnetMappingTypeDef]
- See IpAddressTypeType
- See EnablePrefixForIpv6SourceNatEnumType
- See SetSubnetsOutputTypeDef
# set_subnets method usage example with argument unpacking
kwargs: SetSubnetsInputTypeDef = {  # (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")-> DescribeAccountLimitsPaginator
- client.get_paginator("describe_listener_certificates")-> DescribeListenerCertificatesPaginator
- client.get_paginator("describe_listeners")-> DescribeListenersPaginator
- client.get_paginator("describe_load_balancers")-> DescribeLoadBalancersPaginator
- client.get_paginator("describe_rules")-> DescribeRulesPaginator
- client.get_paginator("describe_ssl_policies")-> DescribeSSLPoliciesPaginator
- client.get_paginator("describe_target_groups")-> DescribeTargetGroupsPaginator
- client.get_paginator("describe_trust_store_associations")-> DescribeTrustStoreAssociationsPaginator
- client.get_paginator("describe_trust_store_revocations")-> DescribeTrustStoreRevocationsPaginator
- client.get_paginator("describe_trust_stores")-> DescribeTrustStoresPaginator
get_waiter#
Type annotations and code completion for boto3.client("elbv2").get_waiter method with overloads.
- client.get_waiter("load_balancer_available")-> LoadBalancerAvailableWaiter
- client.get_waiter("load_balancer_exists")-> LoadBalancerExistsWaiter
- client.get_waiter("load_balancers_deleted")-> LoadBalancersDeletedWaiter
- client.get_waiter("target_deregistered")-> TargetDeregisteredWaiter
- client.get_waiter("target_in_service")-> TargetInServiceWaiter