Skip to content

ElasticBeanstalkClient#

Index > ElasticBeanstalk > ElasticBeanstalkClient

Auto-generated documentation for ElasticBeanstalk type annotations stubs module mypy-boto3-elasticbeanstalk.

ElasticBeanstalkClient#

Type annotations and code completion for boto3.client("elasticbeanstalk"). boto3 documentation

# ElasticBeanstalkClient usage example

from boto3.session import Session
from mypy_boto3_elasticbeanstalk.client import ElasticBeanstalkClient

def get_elasticbeanstalk_client() -> ElasticBeanstalkClient:
    return Session().client("elasticbeanstalk")

Exceptions#

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("elasticbeanstalk").exceptions structure.

# Exceptions.exceptions usage example

client = boto3.client("elasticbeanstalk")

try:
    do_something(client)
except (
    client.exceptions.ClientError,
    client.exceptions.CodeBuildNotInServiceRegionException,
    client.exceptions.ElasticBeanstalkServiceException,
    client.exceptions.InsufficientPrivilegesException,
    client.exceptions.InvalidRequestException,
    client.exceptions.ManagedActionInvalidStateException,
    client.exceptions.OperationInProgressException,
    client.exceptions.PlatformVersionStillReferencedException,
    client.exceptions.ResourceNotFoundException,
    client.exceptions.ResourceTypeNotSupportedException,
    client.exceptions.S3LocationNotInServiceRegionException,
    client.exceptions.S3SubscriptionRequiredException,
    client.exceptions.SourceBundleDeletionException,
    client.exceptions.TooManyApplicationVersionsException,
    client.exceptions.TooManyApplicationsException,
    client.exceptions.TooManyBucketsException,
    client.exceptions.TooManyConfigurationTemplatesException,
    client.exceptions.TooManyEnvironmentsException,
    client.exceptions.TooManyPlatformsException,
    client.exceptions.TooManyTagsException,
) as e:
    print(e)
# Exceptions.exceptions type checking example

from mypy_boto3_elasticbeanstalk.client import Exceptions

def handle_error(exc: Exceptions.ClientError) -> None:
    ...

Methods#

abort_environment_update#

Cancels in-progress environment configuration update or application version deployment.

Type annotations and code completion for boto3.client("elasticbeanstalk").abort_environment_update method. boto3 documentation

# abort_environment_update method definition

def abort_environment_update(
    self,
    *,
    EnvironmentId: str = ...,
    EnvironmentName: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# abort_environment_update method usage example with argument unpacking

kwargs: AbortEnvironmentUpdateMessageRequestTypeDef = {  # (1)
    "EnvironmentId": ...,
}

parent.abort_environment_update(**kwargs)
  1. See AbortEnvironmentUpdateMessageRequestTypeDef

apply_environment_managed_action#

Applies a scheduled managed action immediately.

Type annotations and code completion for boto3.client("elasticbeanstalk").apply_environment_managed_action method. boto3 documentation

# apply_environment_managed_action method definition

def apply_environment_managed_action(
    self,
    *,
    ActionId: str,
    EnvironmentName: str = ...,
    EnvironmentId: str = ...,
) -> ApplyEnvironmentManagedActionResultTypeDef:  # (1)
    ...
  1. See ApplyEnvironmentManagedActionResultTypeDef
# apply_environment_managed_action method usage example with argument unpacking

kwargs: ApplyEnvironmentManagedActionRequestRequestTypeDef = {  # (1)
    "ActionId": ...,
}

parent.apply_environment_managed_action(**kwargs)
  1. See ApplyEnvironmentManagedActionRequestRequestTypeDef

associate_environment_operations_role#

Add or change the operations role used by an environment.

Type annotations and code completion for boto3.client("elasticbeanstalk").associate_environment_operations_role method. boto3 documentation

# associate_environment_operations_role method definition

def associate_environment_operations_role(
    self,
    *,
    EnvironmentName: str,
    OperationsRole: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# associate_environment_operations_role method usage example with argument unpacking

kwargs: AssociateEnvironmentOperationsRoleMessageRequestTypeDef = {  # (1)
    "EnvironmentName": ...,
    "OperationsRole": ...,
}

parent.associate_environment_operations_role(**kwargs)
  1. See AssociateEnvironmentOperationsRoleMessageRequestTypeDef

can_paginate#

Check if an operation can be paginated.

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

# can_paginate method definition

def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

check_dns_availability#

Checks if the specified CNAME is available.

Type annotations and code completion for boto3.client("elasticbeanstalk").check_dns_availability method.