ProtonClient#
Auto-generated documentation for Proton type annotations stubs module mypy-boto3-proton.
ProtonClient#
Type annotations and code completion for boto3.client("proton")
.
boto3 documentation
# ProtonClient usage example
from boto3.session import Session
from mypy_boto3_proton.client import ProtonClient
def get_proton_client() -> ProtonClient:
return Session().client("proton")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("proton").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("proton")
try:
do_something(client)
except (
client.exceptions.AccessDeniedException,
client.exceptions.ClientError,
client.exceptions.ConflictException,
client.exceptions.InternalServerException,
client.exceptions.ResourceNotFoundException,
client.exceptions.ServiceQuotaExceededException,
client.exceptions.ThrottlingException,
client.exceptions.ValidationException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_proton.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods#
accept_environment_account_connection#
In a management account, an environment account connection request is accepted.
Type annotations and code completion for boto3.client("proton").accept_environment_account_connection
method.
boto3 documentation
# accept_environment_account_connection method definition
def accept_environment_account_connection(
self,
*,
id: str,
) -> AcceptEnvironmentAccountConnectionOutputTypeDef: # (1)
...
# accept_environment_account_connection method usage example with argument unpacking
kwargs: AcceptEnvironmentAccountConnectionInputRequestTypeDef = { # (1)
"id": ...,
}
parent.accept_environment_account_connection(**kwargs)
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("proton").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
cancel_component_deployment#
Attempts to cancel a component deployme