Skip to content

LambdaClient#

Index > Lambda > LambdaClient

Auto-generated documentation for Lambda type annotations stubs module types-aiobotocore-lambda.

LambdaClient#

Type annotations and code completion for session.create_client("lambda") boto3 documentation

LambdaClient usage example

from aiobotocore.session import get_session
from types_aiobotocore_lambda.client import LambdaClient

session = get_session()
async with session.create_client("lambda") as client:
    client: LambdaClient

Exceptions#

aiobotocore client exceptions are generated in runtime. This class provides code completion for session.create_client("lambda").exceptions structure.

LambdaClient.exceptions usage example

async with session.create_client("lambda") as client:
    try:
        do_something(client)
    except (
            client.ClientError,
        client.CodeSigningConfigNotFoundException,
        client.CodeStorageExceededException,
        client.CodeVerificationFailedException,
        client.EC2AccessDeniedException,
        client.EC2ThrottledException,
        client.EC2UnexpectedException,
        client.EFSIOException,
        client.EFSMountConnectivityException,
        client.EFSMountFailureException,
        client.EFSMountTimeoutException,
        client.ENILimitReachedException,
        client.InvalidCodeSignatureException,
        client.InvalidParameterValueException,
        client.InvalidRequestContentException,
        client.InvalidRuntimeException,
        client.InvalidSecurityGroupIDException,
        client.InvalidSubnetIDException,
        client.InvalidZipFileException,
        client.KMSAccessDeniedException,
        client.KMSDisabledException,
        client.KMSInvalidStateException,
        client.KMSNotFoundException,
        client.PolicyLengthExceededException,
        client.PreconditionFailedException,
        client.ProvisionedConcurrencyConfigNotFoundException,
        client.RecursiveInvocationException,
        client.RequestTooLargeException,
        client.ResourceConflictException,
        client.ResourceInUseException,
        client.ResourceNotFoundException,
        client.ResourceNotReadyException,
        client.ServiceException,
        client.SnapStartException,
        client.SnapStartNotReadyException,
        client.SnapStartTimeoutException,
        client.SubnetIPAddressLimitReachedException,
        client.TooManyRequestsException,
        client.UnsupportedMediaTypeException,
    ) as e:
        print(e)
LambdaClient usage type checking example

from types_aiobotocore_lambda.client import Exceptions

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

Methods#

add_layer_version_permission#

Adds permissions to the resource-based policy of a version of an Lambda layer_.

Type annotations and code completion for session.create_client("lambda").add_layer_version_permission method. boto3 documentation

# add_layer_version_permission method definition

await def add_layer_version_permission(
    self,
    *,
    LayerName: str,
    VersionNumber: int,
    StatementId: str,
    Action: str,
    Principal: str,
    OrganizationId: str = ...,
    RevisionId: str = ...,
) -> AddLayerVersionPermissionResponseTypeDef:  # (1)
    ...
  1. See AddLayerVersionPermissionResponseTypeDef
# add_layer_version_permission method usage example with argument unpacking

kwargs: AddLayerVersionPermissionRequestRequestTypeDef = {  # (1)
    "LayerName": ...,
    "VersionNumber": ...,
    "StatementId": ...,
    "Action": ...,
    "Principal": ...,
}

parent.add_layer_version_permission(**kwargs)
  1. See AddLayerVersionPermissionRequestRequestTypeDef

add_permission#

Grants an Amazon Web Service, Amazon Web Services account, or Amazon Web Services organization permission to use a function.

Type annotations and code completion for session.create_client("lambda").add_permission method. boto3 documentation

# add_permission method definition

await def add_permission(
    self,
    *,
    FunctionName: str,
    StatementId: str,
    Action: str,
    Principal: str,
    SourceArn: str = ...,
    SourceAccount: str = ...,
    EventSourceToken: str = ...,
    Qualifier: str = ...,
    RevisionId: str = ...,
    PrincipalOrgID: str = ...,
    FunctionUrlAuthType: FunctionUrlAuthTypeType = ...,  # (1)
) -> AddPermissionResponseTypeDef:  # (2)
    ...
  1. See FunctionUrlAuthTypeType
  2. See AddPermissionResponseTypeDef
# add_permission method usage example with argument unpacking

kwargs: AddPermissionRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
    "StatementId": ...,
    "Action": ...,
    "Principal": ...,
}

parent.add_permission(**kwargs)
  1. See AddPermissionRequestRequestTypeDef

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for session.create_client("lambda").can_paginate method. boto3 documentation

# can_paginate method definition

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

close#

Closes underlying endpoint connections.

Type annotations and code completion for session.create_client("lambda").close method. boto3 documentation

# close method definition

await def close(
    self,
) -> None:
    ...

create_alias#

Creates an alias_ for a Lambda function version.

Type annotations and code completion for session.create_client("lambda").create_alias method. boto3 documentation

# create_alias method definition

await def create_alias(
    self,
    *,
    FunctionName: str,
    Name: str,
    FunctionVersion: str,
    Description: str = ...,
    RoutingConfig: AliasRoutingConfigurationTypeDef = ...,  # (1)
) -> AliasConfigurationResponseTypeDef:  # (2)
    ...
  1. See AliasRoutingConfigurationTypeDef
  2. See AliasConfigurationResponseTypeDef
# create_alias method usage example with argument unpacking

kwargs: CreateAliasRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
    "Name": ...,
    "FunctionVersion": ...,
}

parent.create_alias(**kwargs)
  1. See CreateAliasRequestRequestTypeDef

create_code_signing_config#

Creates a code signing configuration.

Type annotations and code completion for session.create_client("lambda").create_code_signing_config method. boto3 documentation

# create_code_signing_config method definition

await def create_code_signing_config(
    self,
    *,
    AllowedPublishers: AllowedPublishersTypeDef,  # (1)
    Description: str = ...,
    CodeSigningPolicies: CodeSigningPoliciesTypeDef = ...,  # (2)
) -> CreateCodeSigningConfigResponseTypeDef:  # (3)
    ...
  1. See AllowedPublishersTypeDef
  2. See CodeSigningPoliciesTypeDef
  3. See CreateCodeSigningConfigResponseTypeDef
# create_code_signing_config method usage example with argument unpacking

kwargs: CreateCodeSigningConfigRequestRequestTypeDef = {  # (1)
    "AllowedPublishers": ...,
}

parent.create_code_signing_config(**kwargs)
  1. See CreateCodeSigningConfigRequestRequestTypeDef

create_event_source_mapping#

Creates a mapping between an event source and an Lambda function.

Type annotations and code completion for session.create_client("lambda").create_event_source_mapping method. boto3 documentation

# create_event_source_mapping method definition

await def create_event_source_mapping(
    self,
    *,
    FunctionName: str,
    EventSourceArn: str = ...,
    Enabled: bool = ...,
    BatchSize: int = ...,
    FilterCriteria: FilterCriteriaTypeDef = ...,  # (1)
    MaximumBatchingWindowInSeconds: int = ...,
    ParallelizationFactor: int = ...,
    StartingPosition: EventSourcePositionType = ...,  # (2)
    StartingPositionTimestamp: Union[datetime, str] = ...,
    DestinationConfig: DestinationConfigTypeDef = ...,  # (3)
    MaximumRecordAgeInSeconds: int = ...,
    BisectBatchOnFunctionError: bool = ...,
    MaximumRetryAttempts: int = ...,
    TumblingWindowInSeconds: int = ...,
    Topics: Sequence[str] = ...,
    Queues: Sequence[str] = ...,
    SourceAccessConfigurations: Sequence[SourceAccessConfigurationTypeDef] = ...,  # (4)
    SelfManagedEventSource: SelfManagedEventSourceTypeDef = ...,  # (5)
    FunctionResponseTypes: Sequence[FunctionResponseTypeType] = ...,  # (6)
    AmazonManagedKafkaEventSourceConfig: AmazonManagedKafkaEventSourceConfigTypeDef = ...,  # (7)
    SelfManagedKafkaEventSourceConfig: SelfManagedKafkaEventSourceConfigTypeDef = ...,  # (8)
    ScalingConfig: ScalingConfigTypeDef = ...,  # (9)
    DocumentDBEventSourceConfig: DocumentDBEventSourceConfigTypeDef = ...,  # (10)
) -> EventSourceMappingConfigurationResponseTypeDef:  # (11)
    ...
  1. See FilterCriteriaTypeDef
  2. See EventSourcePositionType
  3. See DestinationConfigTypeDef
  4. See SourceAccessConfigurationTypeDef
  5. See SelfManagedEventSourceTypeDef
  6. See FunctionResponseTypeType
  7. See AmazonManagedKafkaEventSourceConfigTypeDef
  8. See SelfManagedKafkaEventSourceConfigTypeDef
  9. See ScalingConfigTypeDef
  10. See DocumentDBEventSourceConfigTypeDef
  11. See EventSourceMappingConfigurationResponseTypeDef
# create_event_source_mapping method usage example with argument unpacking

kwargs: CreateEventSourceMappingRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
}

parent.create_event_source_mapping(**kwargs)
  1. See CreateEventSourceMappingRequestRequestTypeDef

create_function#

Creates a Lambda function.

Type annotations and code completion for session.create_client("lambda").create_function method. boto3 documentation

# create_function method definition

await def create_function(
    self,
    *,
    FunctionName: str,
    Role: str,
    Code: FunctionCodeTypeDef,  # (1)
    Runtime: RuntimeType = ...,  # (2)
    Handler: str = ...,
    Description: str = ...,
    Timeout: int = ...,
    MemorySize: int = ...,
    Publish: bool = ...,
    VpcConfig: VpcConfigTypeDef = ...,  # (3)
    PackageType: PackageTypeType = ...,  # (4)
    DeadLetterConfig: DeadLetterConfigTypeDef = ...,  # (5)
    Environment: EnvironmentTypeDef = ...,  # (6)
    KMSKeyArn: str = ...,
    TracingConfig: TracingConfigTypeDef = ...,  # (7)
    Tags: Mapping[str, str] = ...,
    Layers: Sequence[str] = ...,
    FileSystemConfigs: Sequence[FileSystemConfigTypeDef] = ...,  # (8)
    ImageConfig: ImageConfigTypeDef = ...,  # (9)
    CodeSigningConfigArn: str = ...,
    Architectures: Sequence[ArchitectureType] = ...,  # (10)
    EphemeralStorage: EphemeralStorageTypeDef = ...,  # (11)
    SnapStart: SnapStartTypeDef = ...,  # (12)
) -> FunctionConfigurationResponseTypeDef:  # (13)
    ...
  1. See FunctionCodeTypeDef
  2. See RuntimeType
  3. See VpcConfigTypeDef
  4. See PackageTypeType
  5. See DeadLetterConfigTypeDef
  6. See EnvironmentTypeDef
  7. See TracingConfigTypeDef
  8. See FileSystemConfigTypeDef
  9. See ImageConfigTypeDef
  10. See ArchitectureType
  11. See EphemeralStorageTypeDef
  12. See SnapStartTypeDef
  13. See FunctionConfigurationResponseTypeDef
# create_function method usage example with argument unpacking

kwargs: CreateFunctionRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
    "Role": ...,
    "Code": ...,
}

parent.create_function(**kwargs)
  1. See CreateFunctionRequestRequestTypeDef

create_function_url_config#

Creates a Lambda function URL with the specified configuration parameters.

Type annotations and code completion for session.create_client("lambda").create_function_url_config method. boto3 documentation

# create_function_url_config method definition

await def create_function_url_config(
    self,
    *,
    FunctionName: str,
    AuthType: FunctionUrlAuthTypeType,  # (1)
    Qualifier: str = ...,
    Cors: CorsTypeDef = ...,  # (2)
    InvokeMode: InvokeModeType = ...,  # (3)
) -> CreateFunctionUrlConfigResponseTypeDef:  # (4)
    ...
  1. See FunctionUrlAuthTypeType
  2. See CorsTypeDef
  3. See InvokeModeType
  4. See CreateFunctionUrlConfigResponseTypeDef
# create_function_url_config method usage example with argument unpacking

kwargs: CreateFunctionUrlConfigRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
    "AuthType": ...,
}

parent.create_function_url_config(**kwargs)
  1. See CreateFunctionUrlConfigRequestRequestTypeDef

delete_alias#

Deletes a Lambda function alias_.

Type annotations and code completion for session.create_client("lambda").delete_alias method. boto3 documentation

# delete_alias method definition

await def delete_alias(
    self,
    *,
    FunctionName: str,
    Name: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_alias method usage example with argument unpacking

kwargs: DeleteAliasRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
    "Name": ...,
}

parent.delete_alias(**kwargs)
  1. See DeleteAliasRequestRequestTypeDef

delete_code_signing_config#

Deletes the code signing configuration.

Type annotations and code completion for session.create_client("lambda").delete_code_signing_config method. boto3 documentation

# delete_code_signing_config method definition

await def delete_code_signing_config(
    self,
    *,
    CodeSigningConfigArn: str,
) -> Dict[str, Any]:
    ...
# delete_code_signing_config method usage example with argument unpacking

kwargs: DeleteCodeSigningConfigRequestRequestTypeDef = {  # (1)
    "CodeSigningConfigArn": ...,
}

parent.delete_code_signing_config(**kwargs)
  1. See DeleteCodeSigningConfigRequestRequestTypeDef

delete_event_source_mapping#

Deletes an event source mapping_.

Type annotations and code completion for session.create_client("lambda").delete_event_source_mapping method. boto3 documentation

# delete_event_source_mapping method definition

await def delete_event_source_mapping(
    self,
    *,
    UUID: str,
) -> EventSourceMappingConfigurationResponseTypeDef:  # (1)
    ...
  1. See EventSourceMappingConfigurationResponseTypeDef
# delete_event_source_mapping method usage example with argument unpacking

kwargs: DeleteEventSourceMappingRequestRequestTypeDef = {  # (1)
    "UUID": ...,
}

parent.delete_event_source_mapping(**kwargs)
  1. See DeleteEventSourceMappingRequestRequestTypeDef

delete_function#

Deletes a Lambda function.

Type annotations and code completion for session.create_client("lambda").delete_function method. boto3 documentation

# delete_function method definition

await def delete_function(
    self,
    *,
    FunctionName: str,
    Qualifier: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_function method usage example with argument unpacking

kwargs: DeleteFunctionRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
}

parent.delete_function(**kwargs)
  1. See DeleteFunctionRequestRequestTypeDef

delete_function_code_signing_config#

Removes the code signing configuration from the function.

Type annotations and code completion for session.create_client("lambda").delete_function_code_signing_config method. boto3 documentation

# delete_function_code_signing_config method definition

await def delete_function_code_signing_config(
    self,
    *,
    FunctionName: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_function_code_signing_config method usage example with argument unpacking

kwargs: DeleteFunctionCodeSigningConfigRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
}

parent.delete_function_code_signing_config(**kwargs)
  1. See DeleteFunctionCodeSigningConfigRequestRequestTypeDef

delete_function_concurrency#

Removes a concurrent execution limit from a function.

Type annotations and code completion for session.create_client("lambda").delete_function_concurrency method. boto3 documentation

# delete_function_concurrency method definition

await def delete_function_concurrency(
    self,
    *,
    FunctionName: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_function_concurrency method usage example with argument unpacking

kwargs: DeleteFunctionConcurrencyRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
}

parent.delete_function_concurrency(**kwargs)
  1. See DeleteFunctionConcurrencyRequestRequestTypeDef

delete_function_event_invoke_config#

Deletes the configuration for asynchronous invocation for a function, version, or alias.

Type annotations and code completion for session.create_client("lambda").delete_function_event_invoke_config method. boto3 documentation

# delete_function_event_invoke_config method definition

await def delete_function_event_invoke_config(
    self,
    *,
    FunctionName: str,
    Qualifier: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_function_event_invoke_config method usage example with argument unpacking

kwargs: DeleteFunctionEventInvokeConfigRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
}

parent.delete_function_event_invoke_config(**kwargs)
  1. See DeleteFunctionEventInvokeConfigRequestRequestTypeDef

delete_function_url_config#

Deletes a Lambda function URL.

Type annotations and code completion for session.create_client("lambda").delete_function_url_config method. boto3 documentation

# delete_function_url_config method definition

await def delete_function_url_config(
    self,
    *,
    FunctionName: str,
    Qualifier: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_function_url_config method usage example with argument unpacking

kwargs: DeleteFunctionUrlConfigRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
}

parent.delete_function_url_config(**kwargs)
  1. See DeleteFunctionUrlConfigRequestRequestTypeDef

delete_layer_version#

Deletes a version of an Lambda layer_.

Type annotations and code completion for session.create_client("lambda").delete_layer_version method. boto3 documentation

# delete_layer_version method definition

await def delete_layer_version(
    self,
    *,
    LayerName: str,
    VersionNumber: int,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_layer_version method usage example with argument unpacking

kwargs: DeleteLayerVersionRequestRequestTypeDef = {  # (1)
    "LayerName": ...,
    "VersionNumber": ...,
}

parent.delete_layer_version(**kwargs)
  1. See DeleteLayerVersionRequestRequestTypeDef

delete_provisioned_concurrency_config#

Deletes the provisioned concurrency configuration for a function.

Type annotations and code completion for session.create_client("lambda").delete_provisioned_concurrency_config method. boto3 documentation

# delete_provisioned_concurrency_config method definition

await def delete_provisioned_concurrency_config(
    self,
    *,
    FunctionName: str,
    Qualifier: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_provisioned_concurrency_config method usage example with argument unpacking

kwargs: DeleteProvisionedConcurrencyConfigRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
    "Qualifier": ...,
}

parent.delete_provisioned_concurrency_config(**kwargs)
  1. See DeleteProvisionedConcurrencyConfigRequestRequestTypeDef

generate_presigned_url#

Generate a presigned url given a client, its method, and arguments.

Type annotations and code completion for session.create_client("lambda").generate_presigned_url method. boto3 documentation

# generate_presigned_url method definition

await def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

get_account_settings#

Retrieves details about your account's limits_ and usage in an Amazon Web Services Region.

Type annotations and code completion for session.create_client("lambda").get_account_settings method. boto3 documentation

# get_account_settings method definition

await def get_account_settings(
    self,
) -> GetAccountSettingsResponseTypeDef:  # (1)
    ...
  1. See GetAccountSettingsResponseTypeDef

get_alias#

Returns details about a Lambda function alias_.

Type annotations and code completion for session.create_client("lambda").get_alias method. boto3 documentation

# get_alias method definition

await def get_alias(
    self,
    *,
    FunctionName: str,
    Name: str,
) -> AliasConfigurationResponseTypeDef:  # (1)
    ...
  1. See AliasConfigurationResponseTypeDef
# get_alias method usage example with argument unpacking

kwargs: GetAliasRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
    "Name": ...,
}

parent.get_alias(**kwargs)
  1. See GetAliasRequestRequestTypeDef

get_code_signing_config#

Returns information about the specified code signing configuration.

Type annotations and code completion for session.create_client("lambda").get_code_signing_config method. boto3 documentation

# get_code_signing_config method definition

await def get_code_signing_config(
    self,
    *,
    CodeSigningConfigArn: str,
) -> GetCodeSigningConfigResponseTypeDef:  # (1)
    ...
  1. See GetCodeSigningConfigResponseTypeDef
# get_code_signing_config method usage example with argument unpacking

kwargs: GetCodeSigningConfigRequestRequestTypeDef = {  # (1)
    "CodeSigningConfigArn": ...,
}

parent.get_code_signing_config(**kwargs)
  1. See GetCodeSigningConfigRequestRequestTypeDef

get_event_source_mapping#

Returns details about an event source mapping.

Type annotations and code completion for session.create_client("lambda").get_event_source_mapping method. boto3 documentation

# get_event_source_mapping method definition

await def get_event_source_mapping(
    self,
    *,
    UUID: str,
) -> EventSourceMappingConfigurationResponseTypeDef:  # (1)
    ...
  1. See EventSourceMappingConfigurationResponseTypeDef
# get_event_source_mapping method usage example with argument unpacking

kwargs: GetEventSourceMappingRequestRequestTypeDef = {  # (1)
    "UUID": ...,
}

parent.get_event_source_mapping(**kwargs)
  1. See GetEventSourceMappingRequestRequestTypeDef

get_function#

Returns information about the function or function version, with a link to download the deployment package that's valid for 10 minutes.

Type annotations and code completion for session.create_client("lambda").get_function method. boto3 documentation

# get_function method definition

await def get_function(
    self,
    *,
    FunctionName: str,
    Qualifier: str = ...,
) -> GetFunctionResponseTypeDef:  # (1)
    ...
  1. See GetFunctionResponseTypeDef
# get_function method usage example with argument unpacking

kwargs: GetFunctionRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
}

parent.get_function(**kwargs)
  1. See GetFunctionRequestRequestTypeDef

get_function_code_signing_config#

Returns the code signing configuration for the specified function.

Type annotations and code completion for session.create_client("lambda").get_function_code_signing_config method. boto3 documentation

# get_function_code_signing_config method definition

await def get_function_code_signing_config(
    self,
    *,
    FunctionName: str,
) -> GetFunctionCodeSigningConfigResponseTypeDef:  # (1)
    ...
  1. See GetFunctionCodeSigningConfigResponseTypeDef
# get_function_code_signing_config method usage example with argument unpacking

kwargs: GetFunctionCodeSigningConfigRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
}

parent.get_function_code_signing_config(**kwargs)
  1. See GetFunctionCodeSigningConfigRequestRequestTypeDef

get_function_concurrency#

Returns details about the reserved concurrency configuration for a function.

Type annotations and code completion for session.create_client("lambda").get_function_concurrency method. boto3 documentation

# get_function_concurrency method definition

await def get_function_concurrency(
    self,
    *,
    FunctionName: str,
) -> GetFunctionConcurrencyResponseTypeDef:  # (1)
    ...
  1. See GetFunctionConcurrencyResponseTypeDef
# get_function_concurrency method usage example with argument unpacking

kwargs: GetFunctionConcurrencyRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
}

parent.get_function_concurrency(**kwargs)
  1. See GetFunctionConcurrencyRequestRequestTypeDef

get_function_configuration#

Returns the version-specific settings of a Lambda function or version.

Type annotations and code completion for session.create_client("lambda").get_function_configuration method. boto3 documentation

# get_function_configuration method definition

await def get_function_configuration(
    self,
    *,
    FunctionName: str,
    Qualifier: str = ...,
) -> FunctionConfigurationResponseTypeDef:  # (1)
    ...
  1. See FunctionConfigurationResponseTypeDef
# get_function_configuration method usage example with argument unpacking

kwargs: GetFunctionConfigurationRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
}

parent.get_function_configuration(**kwargs)
  1. See GetFunctionConfigurationRequestRequestTypeDef

get_function_event_invoke_config#

Retrieves the configuration for asynchronous invocation for a function, version, or alias.

Type annotations and code completion for session.create_client("lambda").get_function_event_invoke_config method. boto3 documentation

# get_function_event_invoke_config method definition

await def get_function_event_invoke_config(
    self,
    *,
    FunctionName: str,
    Qualifier: str = ...,
) -> FunctionEventInvokeConfigResponseTypeDef:  # (1)
    ...
  1. See FunctionEventInvokeConfigResponseTypeDef
# get_function_event_invoke_config method usage example with argument unpacking

kwargs: GetFunctionEventInvokeConfigRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
}

parent.get_function_event_invoke_config(**kwargs)
  1. See GetFunctionEventInvokeConfigRequestRequestTypeDef

get_function_url_config#

Returns details about a Lambda function URL.

Type annotations and code completion for session.create_client("lambda").get_function_url_config method. boto3 documentation

# get_function_url_config method definition

await def get_function_url_config(
    self,
    *,
    FunctionName: str,
    Qualifier: str = ...,
) -> GetFunctionUrlConfigResponseTypeDef:  # (1)
    ...
  1. See GetFunctionUrlConfigResponseTypeDef
# get_function_url_config method usage example with argument unpacking

kwargs: GetFunctionUrlConfigRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
}

parent.get_function_url_config(**kwargs)
  1. See GetFunctionUrlConfigRequestRequestTypeDef

get_layer_version#

Returns information about a version of an Lambda layer_, with a link to download the layer archive that's valid for 10 minutes.

Type annotations and code completion for session.create_client("lambda").get_layer_version method. boto3 documentation

# get_layer_version method definition

await def get_layer_version(
    self,
    *,
    LayerName: str,
    VersionNumber: int,
) -> GetLayerVersionResponseTypeDef:  # (1)
    ...
  1. See GetLayerVersionResponseTypeDef
# get_layer_version method usage example with argument unpacking

kwargs: GetLayerVersionRequestRequestTypeDef = {  # (1)
    "LayerName": ...,
    "VersionNumber": ...,
}

parent.get_layer_version(**kwargs)
  1. See GetLayerVersionRequestRequestTypeDef

get_layer_version_by_arn#

Returns information about a version of an Lambda layer_, with a link to download the layer archive that's valid for 10 minutes.

Type annotations and code completion for session.create_client("lambda").get_layer_version_by_arn method. boto3 documentation

# get_layer_version_by_arn method definition

await def get_layer_version_by_arn(
    self,
    *,
    Arn: str,
) -> GetLayerVersionResponseTypeDef:  # (1)
    ...
  1. See GetLayerVersionResponseTypeDef
# get_layer_version_by_arn method usage example with argument unpacking

kwargs: GetLayerVersionByArnRequestRequestTypeDef = {  # (1)
    "Arn": ...,
}

parent.get_layer_version_by_arn(**kwargs)
  1. See GetLayerVersionByArnRequestRequestTypeDef

get_layer_version_policy#

Returns the permission policy for a version of an Lambda layer_.

Type annotations and code completion for session.create_client("lambda").get_layer_version_policy method. boto3 documentation

# get_layer_version_policy method definition

await def get_layer_version_policy(
    self,
    *,
    LayerName: str,
    VersionNumber: int,
) -> GetLayerVersionPolicyResponseTypeDef:  # (1)
    ...
  1. See GetLayerVersionPolicyResponseTypeDef
# get_layer_version_policy method usage example with argument unpacking

kwargs: GetLayerVersionPolicyRequestRequestTypeDef = {  # (1)
    "LayerName": ...,
    "VersionNumber": ...,
}

parent.get_layer_version_policy(**kwargs)
  1. See GetLayerVersionPolicyRequestRequestTypeDef

get_policy#

Returns the resource-based IAM policy_ for a function, version, or alias.

Type annotations and code completion for session.create_client("lambda").get_policy method. boto3 documentation

# get_policy method definition

await def get_policy(
    self,
    *,
    FunctionName: str,
    Qualifier: str = ...,
) -> GetPolicyResponseTypeDef:  # (1)
    ...
  1. See GetPolicyResponseTypeDef
# get_policy method usage example with argument unpacking

kwargs: GetPolicyRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
}

parent.get_policy(**kwargs)
  1. See GetPolicyRequestRequestTypeDef

get_provisioned_concurrency_config#

Retrieves the provisioned concurrency configuration for a function's alias or version.

Type annotations and code completion for session.create_client("lambda").get_provisioned_concurrency_config method. boto3 documentation

# get_provisioned_concurrency_config method definition

await def get_provisioned_concurrency_config(
    self,
    *,
    FunctionName: str,
    Qualifier: str,
) -> GetProvisionedConcurrencyConfigResponseTypeDef:  # (1)
    ...
  1. See GetProvisionedConcurrencyConfigResponseTypeDef
# get_provisioned_concurrency_config method usage example with argument unpacking

kwargs: GetProvisionedConcurrencyConfigRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
    "Qualifier": ...,
}

parent.get_provisioned_concurrency_config(**kwargs)
  1. See GetProvisionedConcurrencyConfigRequestRequestTypeDef

get_runtime_management_config#

Retrieves the runtime management configuration for a function's version.

Type annotations and code completion for session.create_client("lambda").get_runtime_management_config method. boto3 documentation

# get_runtime_management_config method definition

await def get_runtime_management_config(
    self,
    *,
    FunctionName: str,
    Qualifier: str = ...,
) -> GetRuntimeManagementConfigResponseTypeDef:  # (1)
    ...
  1. See GetRuntimeManagementConfigResponseTypeDef
# get_runtime_management_config method usage example with argument unpacking

kwargs: GetRuntimeManagementConfigRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
}

parent.get_runtime_management_config(**kwargs)
  1. See GetRuntimeManagementConfigRequestRequestTypeDef

invoke#

Invokes a Lambda function.

Type annotations and code completion for session.create_client("lambda").invoke method. boto3 documentation

# invoke method definition

await def invoke(
    self,
    *,
    FunctionName: str,
    InvocationType: InvocationTypeType = ...,  # (1)
    LogType: LogTypeType = ...,  # (2)
    ClientContext: str = ...,
    Payload: Union[str, bytes, IO[Any], StreamingBody] = ...,
    Qualifier: str = ...,
) -> InvocationResponseTypeDef:  # (3)
    ...
  1. See InvocationTypeType
  2. See LogTypeType
  3. See InvocationResponseTypeDef
# invoke method usage example with argument unpacking

kwargs: InvocationRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
}

parent.invoke(**kwargs)
  1. See InvocationRequestRequestTypeDef

invoke_async#

.

Type annotations and code completion for session.create_client("lambda").invoke_async method. boto3 documentation

# invoke_async method definition

await def invoke_async(
    self,
    *,
    FunctionName: str,
    InvokeArgs: Union[str, bytes, IO[Any], StreamingBody],
) -> InvokeAsyncResponseTypeDef:  # (1)
    ...
  1. See InvokeAsyncResponseTypeDef
# invoke_async method usage example with argument unpacking

kwargs: InvokeAsyncRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
    "InvokeArgs": ...,
}

parent.invoke_async(**kwargs)
  1. See InvokeAsyncRequestRequestTypeDef

invoke_with_response_stream#

Configure your Lambda functions to stream response payloads back to clients.

Type annotations and code completion for session.create_client("lambda").invoke_with_response_stream method. boto3 documentation

# invoke_with_response_stream method definition

await def invoke_with_response_stream(
    self,
    *,
    FunctionName: str,
    InvocationType: ResponseStreamingInvocationTypeType = ...,  # (1)
    LogType: LogTypeType = ...,  # (2)
    ClientContext: str = ...,
    Qualifier: str = ...,
    Payload: Union[str, bytes, IO[Any], StreamingBody] = ...,
) -> InvokeWithResponseStreamResponseTypeDef:  # (3)
    ...
  1. See ResponseStreamingInvocationTypeType
  2. See LogTypeType
  3. See InvokeWithResponseStreamResponseTypeDef
# invoke_with_response_stream method usage example with argument unpacking

kwargs: InvokeWithResponseStreamRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
}

parent.invoke_with_response_stream(**kwargs)
  1. See InvokeWithResponseStreamRequestRequestTypeDef

list_aliases#

Returns a list of aliases_ for a Lambda function.

Type annotations and code completion for session.create_client("lambda").list_aliases method. boto3 documentation

# list_aliases method definition

await def list_aliases(
    self,
    *,
    FunctionName: str,
    FunctionVersion: str = ...,
    Marker: str = ...,
    MaxItems: int = ...,
) -> ListAliasesResponseTypeDef:  # (1)
    ...
  1. See ListAliasesResponseTypeDef
# list_aliases method usage example with argument unpacking

kwargs: ListAliasesRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
}

parent.list_aliases(**kwargs)
  1. See ListAliasesRequestRequestTypeDef

list_code_signing_configs#

Returns a list of code signing configurations_.

Type annotations and code completion for session.create_client("lambda").list_code_signing_configs method. boto3 documentation

# list_code_signing_configs method definition

await def list_code_signing_configs(
    self,
    *,
    Marker: str = ...,
    MaxItems: int = ...,
) -> ListCodeSigningConfigsResponseTypeDef:  # (1)
    ...
  1. See ListCodeSigningConfigsResponseTypeDef
# list_code_signing_configs method usage example with argument unpacking

kwargs: ListCodeSigningConfigsRequestRequestTypeDef = {  # (1)
    "Marker": ...,
}

parent.list_code_signing_configs(**kwargs)
  1. See ListCodeSigningConfigsRequestRequestTypeDef

list_event_source_mappings#

Lists event source mappings.

Type annotations and code completion for session.create_client("lambda").list_event_source_mappings method. boto3 documentation

# list_event_source_mappings method definition

await def list_event_source_mappings(
    self,
    *,
    EventSourceArn: str = ...,
    FunctionName: str = ...,
    Marker: str = ...,
    MaxItems: int = ...,
) -> ListEventSourceMappingsResponseTypeDef:  # (1)
    ...
  1. See ListEventSourceMappingsResponseTypeDef
# list_event_source_mappings method usage example with argument unpacking

kwargs: ListEventSourceMappingsRequestRequestTypeDef = {  # (1)
    "EventSourceArn": ...,
}

parent.list_event_source_mappings(**kwargs)
  1. See ListEventSourceMappingsRequestRequestTypeDef

list_function_event_invoke_configs#

Retrieves a list of configurations for asynchronous invocation for a function.

Type annotations and code completion for session.create_client("lambda").list_function_event_invoke_configs method. boto3 documentation

# list_function_event_invoke_configs method definition

await def list_function_event_invoke_configs(
    self,
    *,
    FunctionName: str,
    Marker: str = ...,
    MaxItems: int = ...,
) -> ListFunctionEventInvokeConfigsResponseTypeDef:  # (1)
    ...
  1. See ListFunctionEventInvokeConfigsResponseTypeDef
# list_function_event_invoke_configs method usage example with argument unpacking

kwargs: ListFunctionEventInvokeConfigsRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
}

parent.list_function_event_invoke_configs(**kwargs)
  1. See ListFunctionEventInvokeConfigsRequestRequestTypeDef

list_function_url_configs#

Returns a list of Lambda function URLs for the specified function.

Type annotations and code completion for session.create_client("lambda").list_function_url_configs method. boto3 documentation

# list_function_url_configs method definition

await def list_function_url_configs(
    self,
    *,
    FunctionName: str,
    Marker: str = ...,
    MaxItems: int = ...,
) -> ListFunctionUrlConfigsResponseTypeDef:  # (1)
    ...
  1. See ListFunctionUrlConfigsResponseTypeDef
# list_function_url_configs method usage example with argument unpacking

kwargs: ListFunctionUrlConfigsRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
}

parent.list_function_url_configs(**kwargs)
  1. See ListFunctionUrlConfigsRequestRequestTypeDef

list_functions#

Returns a list of Lambda functions, with the version-specific configuration of each.

Type annotations and code completion for session.create_client("lambda").list_functions method. boto3 documentation

# list_functions method definition

await def list_functions(
    self,
    *,
    MasterRegion: str = ...,
    FunctionVersion: FunctionVersionType = ...,  # (1)
    Marker: str = ...,
    MaxItems: int = ...,
) -> ListFunctionsResponseTypeDef:  # (2)
    ...
  1. See FunctionVersionType
  2. See ListFunctionsResponseTypeDef
# list_functions method usage example with argument unpacking

kwargs: ListFunctionsRequestRequestTypeDef = {  # (1)
    "MasterRegion": ...,
}

parent.list_functions(**kwargs)
  1. See ListFunctionsRequestRequestTypeDef

list_functions_by_code_signing_config#

List the functions that use the specified code signing configuration.

Type annotations and code completion for session.create_client("lambda").list_functions_by_code_signing_config method. boto3 documentation

# list_functions_by_code_signing_config method definition

await def list_functions_by_code_signing_config(
    self,
    *,
    CodeSigningConfigArn: str,
    Marker: str = ...,
    MaxItems: int = ...,
) -> ListFunctionsByCodeSigningConfigResponseTypeDef:  # (1)
    ...
  1. See ListFunctionsByCodeSigningConfigResponseTypeDef
# list_functions_by_code_signing_config method usage example with argument unpacking

kwargs: ListFunctionsByCodeSigningConfigRequestRequestTypeDef = {  # (1)
    "CodeSigningConfigArn": ...,
}

parent.list_functions_by_code_signing_config(**kwargs)
  1. See ListFunctionsByCodeSigningConfigRequestRequestTypeDef

list_layer_versions#

Lists the versions of an Lambda layer_.

Type annotations and code completion for session.create_client("lambda").list_layer_versions method. boto3 documentation

# list_layer_versions method definition

await def list_layer_versions(
    self,
    *,
    LayerName: str,
    CompatibleRuntime: RuntimeType = ...,  # (1)
    Marker: str = ...,
    MaxItems: int = ...,
    CompatibleArchitecture: ArchitectureType = ...,  # (2)
) -> ListLayerVersionsResponseTypeDef:  # (3)
    ...
  1. See RuntimeType
  2. See ArchitectureType
  3. See ListLayerVersionsResponseTypeDef
# list_layer_versions method usage example with argument unpacking

kwargs: ListLayerVersionsRequestRequestTypeDef = {  # (1)
    "LayerName": ...,
}

parent.list_layer_versions(**kwargs)
  1. See ListLayerVersionsRequestRequestTypeDef

list_layers#

Lists Lambda layers_ and shows information about the latest version of each.

Type annotations and code completion for session.create_client("lambda").list_layers method. boto3 documentation

# list_layers method definition

await def list_layers(
    self,
    *,
    CompatibleRuntime: RuntimeType = ...,  # (1)
    Marker: str = ...,
    MaxItems: int = ...,
    CompatibleArchitecture: ArchitectureType = ...,  # (2)
) -> ListLayersResponseTypeDef:  # (3)
    ...
  1. See RuntimeType
  2. See ArchitectureType
  3. See ListLayersResponseTypeDef
# list_layers method usage example with argument unpacking

kwargs: ListLayersRequestRequestTypeDef = {  # (1)
    "CompatibleRuntime": ...,
}

parent.list_layers(**kwargs)
  1. See ListLayersRequestRequestTypeDef

list_provisioned_concurrency_configs#

Retrieves a list of provisioned concurrency configurations for a function.

Type annotations and code completion for session.create_client("lambda").list_provisioned_concurrency_configs method. boto3 documentation

# list_provisioned_concurrency_configs method definition

await def list_provisioned_concurrency_configs(
    self,
    *,
    FunctionName: str,
    Marker: str = ...,
    MaxItems: int = ...,
) -> ListProvisionedConcurrencyConfigsResponseTypeDef:  # (1)
    ...
  1. See ListProvisionedConcurrencyConfigsResponseTypeDef
# list_provisioned_concurrency_configs method usage example with argument unpacking

kwargs: ListProvisionedConcurrencyConfigsRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
}

parent.list_provisioned_concurrency_configs(**kwargs)
  1. See ListProvisionedConcurrencyConfigsRequestRequestTypeDef

list_tags#

Returns a function's tags_.

Type annotations and code completion for session.create_client("lambda").list_tags method. boto3 documentation

# list_tags method definition

await def list_tags(
    self,
    *,
    Resource: str,
) -> ListTagsResponseTypeDef:  # (1)
    ...
  1. See ListTagsResponseTypeDef
# list_tags method usage example with argument unpacking

kwargs: ListTagsRequestRequestTypeDef = {  # (1)
    "Resource": ...,
}

parent.list_tags(**kwargs)
  1. See ListTagsRequestRequestTypeDef

list_versions_by_function#

Returns a list of versions_, with the version-specific configuration of each.

Type annotations and code completion for session.create_client("lambda").list_versions_by_function method. boto3 documentation

# list_versions_by_function method definition

await def list_versions_by_function(
    self,
    *,
    FunctionName: str,
    Marker: str = ...,
    MaxItems: int = ...,
) -> ListVersionsByFunctionResponseTypeDef:  # (1)
    ...
  1. See ListVersionsByFunctionResponseTypeDef
# list_versions_by_function method usage example with argument unpacking

kwargs: ListVersionsByFunctionRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
}

parent.list_versions_by_function(**kwargs)
  1. See ListVersionsByFunctionRequestRequestTypeDef

publish_layer_version#

Creates an Lambda layer_ from a ZIP archive.

Type annotations and code completion for session.create_client("lambda").publish_layer_version method. boto3 documentation

# publish_layer_version method definition

await def publish_layer_version(
    self,
    *,
    LayerName: str,
    Content: LayerVersionContentInputTypeDef,  # (1)
    Description: str = ...,
    CompatibleRuntimes: Sequence[RuntimeType] = ...,  # (2)
    LicenseInfo: str = ...,
    CompatibleArchitectures: Sequence[ArchitectureType] = ...,  # (3)
) -> PublishLayerVersionResponseTypeDef:  # (4)
    ...
  1. See LayerVersionContentInputTypeDef
  2. See RuntimeType
  3. See ArchitectureType
  4. See PublishLayerVersionResponseTypeDef
# publish_layer_version method usage example with argument unpacking

kwargs: PublishLayerVersionRequestRequestTypeDef = {  # (1)
    "LayerName": ...,
    "Content": ...,
}

parent.publish_layer_version(**kwargs)
  1. See PublishLayerVersionRequestRequestTypeDef

publish_version#

Creates a version_ from the current code and configuration of a function.

Type annotations and code completion for session.create_client("lambda").publish_version method. boto3 documentation

# publish_version method definition

await def publish_version(
    self,
    *,
    FunctionName: str,
    CodeSha256: str = ...,
    Description: str = ...,
    RevisionId: str = ...,
) -> FunctionConfigurationResponseTypeDef:  # (1)
    ...
  1. See FunctionConfigurationResponseTypeDef
# publish_version method usage example with argument unpacking

kwargs: PublishVersionRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
}

parent.publish_version(**kwargs)
  1. See PublishVersionRequestRequestTypeDef

put_function_code_signing_config#

Update the code signing configuration for the function.

Type annotations and code completion for session.create_client("lambda").put_function_code_signing_config method. boto3 documentation

# put_function_code_signing_config method definition

await def put_function_code_signing_config(
    self,
    *,
    CodeSigningConfigArn: str,
    FunctionName: str,
) -> PutFunctionCodeSigningConfigResponseTypeDef:  # (1)
    ...
  1. See PutFunctionCodeSigningConfigResponseTypeDef
# put_function_code_signing_config method usage example with argument unpacking

kwargs: PutFunctionCodeSigningConfigRequestRequestTypeDef = {  # (1)
    "CodeSigningConfigArn": ...,
    "FunctionName": ...,
}

parent.put_function_code_signing_config(**kwargs)
  1. See PutFunctionCodeSigningConfigRequestRequestTypeDef

put_function_concurrency#

Sets the maximum number of simultaneous executions for a function, and reserves capacity for that concurrency level.

Type annotations and code completion for session.create_client("lambda").put_function_concurrency method. boto3 documentation

# put_function_concurrency method definition

await def put_function_concurrency(
    self,
    *,
    FunctionName: str,
    ReservedConcurrentExecutions: int,
) -> ConcurrencyResponseTypeDef:  # (1)
    ...
  1. See ConcurrencyResponseTypeDef
# put_function_concurrency method usage example with argument unpacking

kwargs: PutFunctionConcurrencyRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
    "ReservedConcurrentExecutions": ...,
}

parent.put_function_concurrency(**kwargs)
  1. See PutFunctionConcurrencyRequestRequestTypeDef

put_function_event_invoke_config#

Configures options for asynchronous invocation_ on a function, version, or alias.

Type annotations and code completion for session.create_client("lambda").put_function_event_invoke_config method. boto3 documentation

# put_function_event_invoke_config method definition

await def put_function_event_invoke_config(
    self,
    *,
    FunctionName: str,
    Qualifier: str = ...,
    MaximumRetryAttempts: int = ...,
    MaximumEventAgeInSeconds: int = ...,
    DestinationConfig: DestinationConfigTypeDef = ...,  # (1)
) -> FunctionEventInvokeConfigResponseTypeDef:  # (2)
    ...
  1. See DestinationConfigTypeDef
  2. See FunctionEventInvokeConfigResponseTypeDef
# put_function_event_invoke_config method usage example with argument unpacking

kwargs: PutFunctionEventInvokeConfigRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
}

parent.put_function_event_invoke_config(**kwargs)
  1. See PutFunctionEventInvokeConfigRequestRequestTypeDef

put_provisioned_concurrency_config#

Adds a provisioned concurrency configuration to a function's alias or version.

Type annotations and code completion for session.create_client("lambda").put_provisioned_concurrency_config method. boto3 documentation

# put_provisioned_concurrency_config method definition

await def put_provisioned_concurrency_config(
    self,
    *,
    FunctionName: str,
    Qualifier: str,
    ProvisionedConcurrentExecutions: int,
) -> PutProvisionedConcurrencyConfigResponseTypeDef:  # (1)
    ...
  1. See PutProvisionedConcurrencyConfigResponseTypeDef
# put_provisioned_concurrency_config method usage example with argument unpacking

kwargs: PutProvisionedConcurrencyConfigRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
    "Qualifier": ...,
    "ProvisionedConcurrentExecutions": ...,
}

parent.put_provisioned_concurrency_config(**kwargs)
  1. See PutProvisionedConcurrencyConfigRequestRequestTypeDef

put_runtime_management_config#

Sets the runtime management configuration for a function's version.

Type annotations and code completion for session.create_client("lambda").put_runtime_management_config method. boto3 documentation

# put_runtime_management_config method definition

await def put_runtime_management_config(
    self,
    *,
    FunctionName: str,
    UpdateRuntimeOn: UpdateRuntimeOnType,  # (1)
    Qualifier: str = ...,
    RuntimeVersionArn: str = ...,
) -> PutRuntimeManagementConfigResponseTypeDef:  # (2)
    ...
  1. See UpdateRuntimeOnType
  2. See PutRuntimeManagementConfigResponseTypeDef
# put_runtime_management_config method usage example with argument unpacking

kwargs: PutRuntimeManagementConfigRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
    "UpdateRuntimeOn": ...,
}

parent.put_runtime_management_config(**kwargs)
  1. See PutRuntimeManagementConfigRequestRequestTypeDef

remove_layer_version_permission#

Removes a statement from the permissions policy for a version of an Lambda layer_.

Type annotations and code completion for session.create_client("lambda").remove_layer_version_permission method. boto3 documentation

# remove_layer_version_permission method definition

await def remove_layer_version_permission(
    self,
    *,
    LayerName: str,
    VersionNumber: int,
    StatementId: str,
    RevisionId: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# remove_layer_version_permission method usage example with argument unpacking

kwargs: RemoveLayerVersionPermissionRequestRequestTypeDef = {  # (1)
    "LayerName": ...,
    "VersionNumber": ...,
    "StatementId": ...,
}

parent.remove_layer_version_permission(**kwargs)
  1. See RemoveLayerVersionPermissionRequestRequestTypeDef

remove_permission#

Revokes function-use permission from an Amazon Web Service or another Amazon Web Services account.

Type annotations and code completion for session.create_client("lambda").remove_permission method. boto3 documentation

# remove_permission method definition

await def remove_permission(
    self,
    *,
    FunctionName: str,
    StatementId: str,
    Qualifier: str = ...,
    RevisionId: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# remove_permission method usage example with argument unpacking

kwargs: RemovePermissionRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
    "StatementId": ...,
}

parent.remove_permission(**kwargs)
  1. See RemovePermissionRequestRequestTypeDef

tag_resource#

Adds tags_ to a function.

Type annotations and code completion for session.create_client("lambda").tag_resource method. boto3 documentation

# tag_resource method definition

await def tag_resource(
    self,
    *,
    Resource: str,
    Tags: Mapping[str, str],
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# tag_resource method usage example with argument unpacking

kwargs: TagResourceRequestRequestTypeDef = {  # (1)
    "Resource": ...,
    "Tags": ...,
}

parent.tag_resource(**kwargs)
  1. See TagResourceRequestRequestTypeDef

untag_resource#

Removes tags_ from a function.

Type annotations and code completion for session.create_client("lambda").untag_resource method. boto3 documentation

# untag_resource method definition

await def untag_resource(
    self,
    *,
    Resource: str,
    TagKeys: Sequence[str],
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# untag_resource method usage example with argument unpacking

kwargs: UntagResourceRequestRequestTypeDef = {  # (1)
    "Resource": ...,
    "TagKeys": ...,
}

parent.untag_resource(**kwargs)
  1. See UntagResourceRequestRequestTypeDef

update_alias#

Updates the configuration of a Lambda function alias_.

Type annotations and code completion for session.create_client("lambda").update_alias method. boto3 documentation

# update_alias method definition

await def update_alias(
    self,
    *,
    FunctionName: str,
    Name: str,
    FunctionVersion: str = ...,
    Description: str = ...,
    RoutingConfig: AliasRoutingConfigurationTypeDef = ...,  # (1)
    RevisionId: str = ...,
) -> AliasConfigurationResponseTypeDef:  # (2)
    ...
  1. See AliasRoutingConfigurationTypeDef
  2. See AliasConfigurationResponseTypeDef
# update_alias method usage example with argument unpacking

kwargs: UpdateAliasRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
    "Name": ...,
}

parent.update_alias(**kwargs)
  1. See UpdateAliasRequestRequestTypeDef

update_code_signing_config#

Update the code signing configuration.

Type annotations and code completion for session.create_client("lambda").update_code_signing_config method. boto3 documentation

# update_code_signing_config method definition

await def update_code_signing_config(
    self,
    *,
    CodeSigningConfigArn: str,
    Description: str = ...,
    AllowedPublishers: AllowedPublishersTypeDef = ...,  # (1)
    CodeSigningPolicies: CodeSigningPoliciesTypeDef = ...,  # (2)
) -> UpdateCodeSigningConfigResponseTypeDef:  # (3)
    ...
  1. See AllowedPublishersTypeDef
  2. See CodeSigningPoliciesTypeDef
  3. See UpdateCodeSigningConfigResponseTypeDef
# update_code_signing_config method usage example with argument unpacking

kwargs: UpdateCodeSigningConfigRequestRequestTypeDef = {  # (1)
    "CodeSigningConfigArn": ...,
}

parent.update_code_signing_config(**kwargs)
  1. See UpdateCodeSigningConfigRequestRequestTypeDef

update_event_source_mapping#

Updates an event source mapping.

Type annotations and code completion for session.create_client("lambda").update_event_source_mapping method. boto3 documentation

# update_event_source_mapping method definition

await def update_event_source_mapping(
    self,
    *,
    UUID: str,
    FunctionName: str = ...,
    Enabled: bool = ...,
    BatchSize: int = ...,
    FilterCriteria: FilterCriteriaTypeDef = ...,  # (1)
    MaximumBatchingWindowInSeconds: int = ...,
    DestinationConfig: DestinationConfigTypeDef = ...,  # (2)
    MaximumRecordAgeInSeconds: int = ...,
    BisectBatchOnFunctionError: bool = ...,
    MaximumRetryAttempts: int = ...,
    ParallelizationFactor: int = ...,
    SourceAccessConfigurations: Sequence[SourceAccessConfigurationTypeDef] = ...,  # (3)
    TumblingWindowInSeconds: int = ...,
    FunctionResponseTypes: Sequence[FunctionResponseTypeType] = ...,  # (4)
    ScalingConfig: ScalingConfigTypeDef = ...,  # (5)
    DocumentDBEventSourceConfig: DocumentDBEventSourceConfigTypeDef = ...,  # (6)
) -> EventSourceMappingConfigurationResponseTypeDef:  # (7)
    ...
  1. See FilterCriteriaTypeDef
  2. See DestinationConfigTypeDef
  3. See SourceAccessConfigurationTypeDef
  4. See FunctionResponseTypeType
  5. See ScalingConfigTypeDef
  6. See DocumentDBEventSourceConfigTypeDef
  7. See EventSourceMappingConfigurationResponseTypeDef
# update_event_source_mapping method usage example with argument unpacking

kwargs: UpdateEventSourceMappingRequestRequestTypeDef = {  # (1)
    "UUID": ...,
}

parent.update_event_source_mapping(**kwargs)
  1. See UpdateEventSourceMappingRequestRequestTypeDef

update_function_code#

Updates a Lambda function's code.

Type annotations and code completion for session.create_client("lambda").update_function_code method. boto3 documentation

# update_function_code method definition

await def update_function_code(
    self,
    *,
    FunctionName: str,
    ZipFile: Union[str, bytes, IO[Any], StreamingBody] = ...,
    S3Bucket: str = ...,
    S3Key: str = ...,
    S3ObjectVersion: str = ...,
    ImageUri: str = ...,
    Publish: bool = ...,
    DryRun: bool = ...,
    RevisionId: str = ...,
    Architectures: Sequence[ArchitectureType] = ...,  # (1)
) -> FunctionConfigurationResponseTypeDef:  # (2)
    ...
  1. See ArchitectureType
  2. See FunctionConfigurationResponseTypeDef
# update_function_code method usage example with argument unpacking

kwargs: UpdateFunctionCodeRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
}

parent.update_function_code(**kwargs)
  1. See UpdateFunctionCodeRequestRequestTypeDef

update_function_configuration#

Modify the version-specific settings of a Lambda function.

Type annotations and code completion for session.create_client("lambda").update_function_configuration method. boto3 documentation

# update_function_configuration method definition

await def update_function_configuration(
    self,
    *,
    FunctionName: str,
    Role: str = ...,
    Handler: str = ...,
    Description: str = ...,
    Timeout: int = ...,
    MemorySize: int = ...,
    VpcConfig: VpcConfigTypeDef = ...,  # (1)
    Environment: EnvironmentTypeDef = ...,  # (2)
    Runtime: RuntimeType = ...,  # (3)
    DeadLetterConfig: DeadLetterConfigTypeDef = ...,  # (4)
    KMSKeyArn: str = ...,
    TracingConfig: TracingConfigTypeDef = ...,  # (5)
    RevisionId: str = ...,
    Layers: Sequence[str] = ...,
    FileSystemConfigs: Sequence[FileSystemConfigTypeDef] = ...,  # (6)
    ImageConfig: ImageConfigTypeDef = ...,  # (7)
    EphemeralStorage: EphemeralStorageTypeDef = ...,  # (8)
    SnapStart: SnapStartTypeDef = ...,  # (9)
) -> FunctionConfigurationResponseTypeDef:  # (10)
    ...
  1. See VpcConfigTypeDef
  2. See EnvironmentTypeDef
  3. See RuntimeType
  4. See DeadLetterConfigTypeDef
  5. See TracingConfigTypeDef
  6. See FileSystemConfigTypeDef
  7. See ImageConfigTypeDef
  8. See EphemeralStorageTypeDef
  9. See SnapStartTypeDef
  10. See FunctionConfigurationResponseTypeDef
# update_function_configuration method usage example with argument unpacking

kwargs: UpdateFunctionConfigurationRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
}

parent.update_function_configuration(**kwargs)
  1. See UpdateFunctionConfigurationRequestRequestTypeDef

update_function_event_invoke_config#

Updates the configuration for asynchronous invocation for a function, version, or alias.

Type annotations and code completion for session.create_client("lambda").update_function_event_invoke_config method. boto3 documentation

# update_function_event_invoke_config method definition

await def update_function_event_invoke_config(
    self,
    *,
    FunctionName: str,
    Qualifier: str = ...,
    MaximumRetryAttempts: int = ...,
    MaximumEventAgeInSeconds: int = ...,
    DestinationConfig: DestinationConfigTypeDef = ...,  # (1)
) -> FunctionEventInvokeConfigResponseTypeDef:  # (2)
    ...
  1. See DestinationConfigTypeDef
  2. See FunctionEventInvokeConfigResponseTypeDef
# update_function_event_invoke_config method usage example with argument unpacking

kwargs: UpdateFunctionEventInvokeConfigRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
}

parent.update_function_event_invoke_config(**kwargs)
  1. See UpdateFunctionEventInvokeConfigRequestRequestTypeDef

update_function_url_config#

Updates the configuration for a Lambda function URL.

Type annotations and code completion for session.create_client("lambda").update_function_url_config method. boto3 documentation

# update_function_url_config method definition

await def update_function_url_config(
    self,
    *,
    FunctionName: str,
    Qualifier: str = ...,
    AuthType: FunctionUrlAuthTypeType = ...,  # (1)
    Cors: CorsTypeDef = ...,  # (2)
    InvokeMode: InvokeModeType = ...,  # (3)
) -> UpdateFunctionUrlConfigResponseTypeDef:  # (4)
    ...
  1. See FunctionUrlAuthTypeType
  2. See CorsTypeDef
  3. See InvokeModeType
  4. See UpdateFunctionUrlConfigResponseTypeDef
# update_function_url_config method usage example with argument unpacking

kwargs: UpdateFunctionUrlConfigRequestRequestTypeDef = {  # (1)
    "FunctionName": ...,
}

parent.update_function_url_config(**kwargs)
  1. See UpdateFunctionUrlConfigRequestRequestTypeDef

__aenter__#

Type annotations and code completion for session.create_client("lambda").__aenter__ method. boto3 documentation

# __aenter__ method definition

await def __aenter__(
    self,
) -> LambdaClient:
    ...

__aexit__#

Type annotations and code completion for session.create_client("lambda").__aexit__ method. boto3 documentation

# __aexit__ method definition

await def __aexit__(
    self,
    exc_type: Any,
    exc_val: Any,
    exc_tb: Any,
) -> Any:
    ...

get_paginator#

Type annotations and code completion for session.create_client("lambda").get_paginator method with overloads.

get_waiter#

Type annotations and code completion for session.create_client("lambda").get_waiter method with overloads.