Boto3 Utils

Auto-generated documentation for mypy_boto3_builder.parsers.boto3_utils module.

Getters for boto3 client and resource from session.

get_boto3_client

[find in source code]

def get_boto3_client(
    session: Session,
    service_name: ServiceName,
) -> BaseClient:

Get boto3 client from session.

Arguments

  • session - boto3 session.
  • service_name - ServiceName instance.

Returns

Boto3 client.

See also

get_boto3_resource

[find in source code]

def get_boto3_resource(
    session: Session,
    service_name: ServiceName,
) -> Optional[Boto3ServiceResource]:

Get boto3 resource from session.

Arguments

  • session - boto3 session.
  • service_name - ServiceName instance.

Returns

Boto3 resource or None.

See also