Skip to content

LookoutforVisionClient#

Index > LookoutforVision > LookoutforVisionClient

Auto-generated documentation for LookoutforVision type annotations stubs module mypy-boto3-lookoutvision.

LookoutforVisionClient#

Type annotations and code completion for boto3.client("lookoutvision"). boto3 documentation

# LookoutforVisionClient usage example

from boto3.session import Session
from mypy_boto3_lookoutvision.client import LookoutforVisionClient

def get_lookoutvision_client() -> LookoutforVisionClient:
    return Session().client("lookoutvision")

Exceptions#

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("lookoutvision").exceptions structure.

# Exceptions.exceptions usage example

client = boto3.client("lookoutvision")

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_lookoutvision.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 boto3.client("lookoutvision").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 boto3.client("lookoutvision").close method. boto3 documentation

# close method definition

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

create_dataset#

Creates a new dataset in an Amazon Lookout for Vision project.

Type annotations and code completion for boto3.client("lookoutvision").create_dataset method. boto3 documentation

# create_dataset method definition

def create_dataset(
    self,
    *,
    ProjectName: str,
    DatasetType: str,
    DatasetSource: DatasetSourceTypeDef = ...,  # (1)
    ClientToken: str = ...,
) -> CreateDatasetResponseTypeDef:  # (2)
    ...
  1. See DatasetSourceTypeDef
  2. See CreateDatasetResponseTypeDef
# create_dataset method usage example with argument unpacking

kwargs: CreateDatasetRequestRequestTypeDef = {  # (1)
    "ProjectName": ...,
    "DatasetType": ...,
}

parent.create_dataset(**kwargs)
  1. See CreateDatasetRequestRequestTypeDef

create_model#

Creates a new version of a model within an an Amazon Lookout for Vision project.

Type annotations and code completion for boto3.client("lookoutvision").create_model method. boto3 documentation

# create_model method definition

def create_model(
    self,
    *,
    ProjectName: str,
    OutputConfig: OutputConfigTypeDef,  # (1)
    Description: str = ...,
    ClientToken: str = ...,
    KmsKeyId: str = ...,
    Tags: Sequence[TagTypeDef] = ...,  # (2)
) -> CreateModelResponseTypeDef:  # (3)
    ...
  1. See OutputConfigTypeDef
  2. See TagTypeDef
  3. See CreateModelResponseTypeDef
# create_model method usage example with argument unpacking

kwargs: CreateModelRequestRequestTypeDef = {  # (1)
    "ProjectName": ...,
    "OutputConfig": ...,
}

parent.create_model(**kwargs)
  1. See CreateModelRequestRequestTypeDef

create_project#

Creates an empty Amazon Lookout for Vision project.

Type annotations and code completion for boto3.client("lookoutvision").create_project method. boto3 documentation

# create_project method definition

def create_project(
    self,
    *,
    ProjectName: str,
    ClientToken: str = ...,
) -> CreateProjectResponseTypeDef:  # (1)
    ...
  1. See CreateProjectResponseTypeDef
# create_project method usage example with argument unpacking

kwargs: CreateProjectRequestRequestTypeDef = {  # (1)
    "ProjectName": ...,
}

parent.create_project(**kwargs)
  1. See CreateProjectRequestRequestTypeDef

delete_dataset#

Deletes an existing Amazon Lookout for Vision dataset.

Type annotations and code completion for boto3.client("lookoutvision").delete_dataset method. boto3 documentation

# delete_dataset method definition

def delete_dataset(
    self,
    *,
    ProjectName: str,
    DatasetType: str,
    ClientToken: str = ...,
) -> Dict[str, Any]:
    ...
# delete_dataset method usage example with argument unpacking

kwargs: DeleteDatasetRequestRequestTypeDef = {  # (1)
    "ProjectName": ...,
    "DatasetType": ...,
}

parent.delete_dataset(**kwargs)
  1. See DeleteDatasetRequestRequestTypeDef

delete_model#

Deletes an Amazon Lookout for Vision model.

Type annotations and code completion for boto3.client("lookoutvision").delete_model method. boto3 documentation

# delete_model method definition

def delete_model(
    self,
    *,
    ProjectName: str,
    ModelVersion: str,
    ClientToken: str = ...,
) -> DeleteModelResponseTypeDef:  # (1)
    ...
  1. See DeleteModelResponseTypeDef
# delete_model method usage example with argument unpacking

kwargs: DeleteModelRequestRequestTypeDef = {  # (1)
    "ProjectName": ...,
    "ModelVersion": ...,
}

parent.delete_model(**kwargs)
  1. See DeleteModelRequestRequestTypeDef

delete_project#

Deletes an Amazon Lookout for Vision project.

Type annotations and code completion for boto3.client("lookoutvision").delete_project method. boto3 documentation

# delete_project method definition

def delete_project(
    self,
    *,
    ProjectName: str,
    ClientToken: str = ...,
) -> DeleteProjectResponseTypeDef:  # (1)
    ...
  1. See DeleteProjectResponseTypeDef
# delete_project method usage example with argument unpacking

kwargs: DeleteProjectRequestRequestTypeDef = {  # (1)
    "ProjectName": ...,
}

parent.delete_project(**kwargs)
  1. See DeleteProjectRequestRequestTypeDef

describe_dataset#

Describe an Amazon Lookout for Vision dataset.

Type annotations and code completion for boto3.client("lookoutvision").describe_dataset method. boto3 documentation

# describe_dataset method definition

def describe_dataset(
    self,
    *,
    ProjectName: str,
    DatasetType: str,
) -> DescribeDatasetResponseTypeDef:  # (1)
    ...
  1. See DescribeDatasetResponseTypeDef
# describe_dataset method usage example with argument unpacking

kwargs: DescribeDatasetRequestRequestTypeDef = {  # (1)
    "ProjectName": ...,
    "DatasetType": ...,
}

parent.describe_dataset(**kwargs)
  1. See DescribeDatasetRequestRequestTypeDef

describe_model#

Describes a version of an Amazon Lookout for Vision model.

Type annotations and code completion for boto3.client("lookoutvision").describe_model method. boto3 documentation

# describe_model method definition

def describe_model(
    self,
    *,
    ProjectName: str,
    ModelVersion: str,
) -> DescribeModelResponseTypeDef:  # (1)
    ...
  1. See DescribeModelResponseTypeDef
# describe_model method usage example with argument unpacking

kwargs: DescribeModelRequestRequestTypeDef = {  # (1)
    "ProjectName": ...,
    "ModelVersion": ...,
}

parent.describe_model(**kwargs)
  1. See DescribeModelRequestRequestTypeDef

describe_model_packaging_job#

Describes an Amazon Lookout for Vision model packaging job.

Type annotations and code completion for boto3.client("lookoutvision").describe_model_packaging_job method. boto3 documentation

# describe_model_packaging_job method definition

def describe_model_packaging_job(
    self,
    *,
    ProjectName: str,
    JobName: str,
) -> DescribeModelPackagingJobResponseTypeDef:  # (1)
    ...
  1. See DescribeModelPackagingJobResponseTypeDef
# describe_model_packaging_job method usage example with argument unpacking

kwargs: DescribeModelPackagingJobRequestRequestTypeDef = {  # (1)
    "ProjectName": ...,
    "JobName": ...,
}

parent.describe_model_packaging_job(**kwargs)
  1. See DescribeModelPackagingJobRequestRequestTypeDef

describe_project#

Describes an Amazon Lookout for Vision project.

Type annotations and code completion for boto3.client("lookoutvision").describe_project method. boto3 documentation

# describe_project method definition

def describe_project(
    self,
    *,
    ProjectName: str,
) -> DescribeProjectResponseTypeDef:  # (1)
    ...
  1. See DescribeProjectResponseTypeDef
# describe_project method usage example with argument unpacking

kwargs: DescribeProjectRequestRequestTypeDef = {  # (1)
    "ProjectName": ...,
}

parent.describe_project(**kwargs)
  1. See DescribeProjectRequestRequestTypeDef

detect_anomalies#

Detects anomalies in an image that you supply.

Type annotations and code completion for boto3.client("lookoutvision").detect_anomalies method. boto3 documentation

# detect_anomalies method definition

def detect_anomalies(
    self,
    *,
    ProjectName: str,
    ModelVersion: str,
    Body: Union[str, bytes, IO[Any], StreamingBody],
    ContentType: str,
) -> DetectAnomaliesResponseTypeDef:  # (1)
    ...
  1. See DetectAnomaliesResponseTypeDef
# detect_anomalies method usage example with argument unpacking

kwargs: DetectAnomaliesRequestRequestTypeDef = {  # (1)
    "ProjectName": ...,
    "ModelVersion": ...,
    "Body": ...,
    "ContentType": ...,
}

parent.detect_anomalies(**kwargs)
  1. See DetectAnomaliesRequestRequestTypeDef

generate_presigned_url#

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

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

list_dataset_entries#

Lists the JSON Lines within a dataset.

Type annotations and code completion for boto3.client("lookoutvision").list_dataset_entries method.