Skip to content

inspectorscanClient#

Index > inspectorscan > inspectorscanClient

Auto-generated documentation for inspectorscan type annotations stubs module types-aiobotocore-inspector-scan.

inspectorscanClient#

Type annotations and code completion for session.client("inspector-scan") boto3 documentation

# inspectorscanClient usage example

from aioboto3.session import Session
from types_aiobotocore_inspector_scan.client import inspectorscanClient

session = Session()
async with session.client("inspector-scan") as client:
    client: inspectorscanClient

Exceptions#

aioboto3 client exceptions are generated in runtime. This class provides code completion for session.client("inspector-scan").exceptions structure.

# inspectorscanClient.exceptions usage example

async with session.client("inspector-scan") as client:
    try:
        do_something(client)
    except (
            client.exceptions.AccessDeniedException,
        client.exceptions.ClientError,
        client.exceptions.InternalServerException,
        client.exceptions.ThrottlingException,
        client.exceptions.ValidationException,
    ) as e:
        print(e)
# inspectorscanClient.exceptions type checking example

from types_aiobotocore_inspector_scan.client import Exceptions

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

Methods#

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for session.client("inspector-scan").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.client("inspector-scan").close method. boto3 documentation

# close method definition

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

generate_presigned_url#

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

Type annotations and code completion for session.client("inspector-scan").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:
    ...

scan_sbom#

Scans a provided CycloneDX 1.5 SBOM and reports on any vulnerabilities discovered in that SBOM.

Type annotations and code completion for session.client("inspector-scan").scan_sbom method. boto3 documentation

# scan_sbom method definition

await def scan_sbom(
    self,
    *,
    sbom: Mapping[str, Any],
    outputFormat: OutputFormatType = ...,  # (1)
) -> ScanSbomResponseTypeDef:  # (2)
    ...
  1. See OutputFormatType
  2. See ScanSbomResponseTypeDef
# scan_sbom method usage example with argument unpacking

kwargs: ScanSbomRequestRequestTypeDef = {  # (1)
    "sbom": ...,
}

parent.scan_sbom(**kwargs)
  1. See ScanSbomRequestRequestTypeDef

__aenter__#

Type annotations and code completion for session.client("inspector-scan").__aenter__ method. boto3 documentation

# __aenter__ method definition

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

__aexit__#

Type annotations and code completion for session.client("inspector-scan").__aexit__ method. boto3 documentation

# __aexit__ method definition

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