LambdaCoreClient#
Index > LambdaCore > LambdaCoreClient
Auto-generated documentation for LambdaCore type annotations stubs module mypy-boto3-lambda-core.
LambdaCoreClient#
Type annotations and code completion for boto3.client("lambda-core").
boto3 documentation
# LambdaCoreClient usage example
from boto3.session import Session
from mypy_boto3_lambda_core.client import LambdaCoreClient
def get_lambda-core_client() -> LambdaCoreClient:
return Session().client("lambda-core")
Exceptions#
boto3 client exceptions are generated in runtime.
This class provides code completion for boto3.client("lambda-core").exceptions structure.
# Exceptions.exceptions usage example
client = boto3.client("lambda-core")
try:
do_something(client)
except (
client.exceptions.ClientError,
client.exceptions.InvalidParameterValueException,
client.exceptions.NetworkConnectorLimitExceededException,
client.exceptions.ResourceConflictException,
client.exceptions.ResourceNotFoundException,
client.exceptions.ServiceException,
client.exceptions.TooManyRequestsException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_lambda_core.client import Exceptions
def handle_error(exc: Exceptions.ClientError) -> None:
...
Methods#
can_paginate#
Type annotations and code completion for boto3.client("lambda-core").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("lambda-core").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:
...
create_network_connector#
Creates a network connector that enables Lambda compute resources to route outbound traffic through your Amazon VPC.
Type annotations and code completion for boto3.client("lambda-core").create_network_connector method.
boto3 documentation
# create_network_connector method definition
def create_network_connector(
self,
*,
Name: str,
Configuration: NetworkConnectorConfigurationUnionTypeDef, # (1)
OperatorRole: str = ...,
ClientToken: str = ...,
Tags: Mapping[str, str] = ...,
) -> CreateNetworkConnectorResponseTypeDef: # (2)
...
# create_network_connector method usage example with argument unpacking
kwargs: CreateNetworkConnectorRequestTypeDef = { # (1)
"Name": ...,
"Configuration": ...,
}
parent.create_network_connector(**kwargs)
delete_network_connector#
Initiates deletion of a network connector.
Type annotations and code completion for boto3.client("lambda-core").delete_network_connector method.
boto3 documentation
# delete_network_connector method definition
def delete_network_connector(
self,
*,
Identifier: str,
) -> DeleteNetworkConnectorResponseTypeDef: # (1)
...
# delete_network_connector method usage example with argument unpacking
kwargs: DeleteNetworkConnectorRequestTypeDef = { # (1)
"Identifier": ...,
}
parent.delete_network_connector(**kwargs)
get_network_connector#
Retrieves the current configuration, state, and metadata of a network connector.
Type annotations and code completion for boto3.client("lambda-core").get_network_connector method.
boto3 documentation
# get_network_connector method definition
def get_network_connector(
self,
*,
Identifier: str,
) -> GetNetworkConnectorResponseTypeDef: # (1)
...
# get_network_connector method usage example with argument unpacking
kwargs: GetNetworkConnectorRequestTypeDef = { # (1)
"Identifier": ...,
}
parent.get_network_connector(**kwargs)
list_network_connectors#
Returns a paginated list of network connectors in your account for the current Region.
Type annotations and code completion for boto3.client("lambda-core").list_network_connectors method.
boto3 documentation
# list_network_connectors method definition
def list_network_connectors(
self,
*,
State: NetworkConnectorStateType = ..., # (1)
Marker: str = ...,
MaxItems: int = ...,
) -> ListNetworkConnectorsResponseTypeDef: # (2)
...
# list_network_connectors method usage example with argument unpacking
kwargs: ListNetworkConnectorsRequestTypeDef = { # (1)
"State": ...,
}
parent.list_network_connectors(**kwargs)
update_network_connector#
Updates the VPC configuration or operator role of an existing network connector.
Type annotations and code completion for boto3.client("lambda-core").update_network_connector method.
boto3 documentation
# update_network_connector method definition
def update_network_connector(
self,
*,
Identifier: str,
Configuration: NetworkConnectorConfigurationUnionTypeDef = ..., # (1)
OperatorRole: str = ...,
ClientToken: str = ...,
) -> UpdateNetworkConnectorResponseTypeDef: # (2)
...
# update_network_connector method usage example with argument unpacking
kwargs: UpdateNetworkConnectorRequestTypeDef = { # (1)
"Identifier": ...,
}
parent.update_network_connector(**kwargs)
get_paginator#
Type annotations and code completion for boto3.client("lambda-core").get_paginator method with overloads.
client.get_paginator("list_network_connectors")-> ListNetworkConnectorsPaginator