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

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.

Usage example
client = boto3.client("lookoutvision")

try:
    do_something(client)
except (
    client.AccessDeniedException,
    client.ClientError,
    client.ConflictException,
    client.InternalServerException,
    client.ResourceNotFoundException,
    client.ServiceQuotaExceededException,
    client.ThrottlingException,
    client.ValidationException,
) as e:
    print(e)
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

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

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

Method definition
def create_dataset(
    self,
    *,
    ProjectName: str,
    DatasetType: str,
    DatasetSource: DatasetSourceTypeDef = ...,  # (1)
    ClientToken: str = ...,
) -> CreateDatasetResponseTypeDef:  # (2)
    ...
  1. See DatasetSourceTypeDef
  2. See CreateDatasetResponseTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def create_project(
    self,
    *,
    ProjectName: str,
    ClientToken: str = ...,
) -> CreateProjectResponseTypeDef:  # (1)
    ...
  1. See CreateProjectResponseTypeDef
Usage example with kwargs
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

Method definition
def delete_dataset(
    self,
    *,
    ProjectName: str,
    DatasetType: str,
    ClientToken: str = ...,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
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

Method definition
def delete_model(
    self,
    *,
    ProjectName: str,
    ModelVersion: str,
    ClientToken: str = ...,
) -> DeleteModelResponseTypeDef:  # (1)
    ...
  1. See DeleteModelResponseTypeDef
Usage example with kwargs
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

Method definition
def delete_project(
    self,
    *,
    ProjectName: str,
    ClientToken: str = ...,
) -> DeleteProjectResponseTypeDef:  # (1)
    ...
  1. See DeleteProjectResponseTypeDef
Usage example with kwargs
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

Method definition
def describe_dataset(
    self,
    *,
    ProjectName: str,
    DatasetType: str,
) -> DescribeDatasetResponseTypeDef:  # (1)
    ...
  1. See DescribeDatasetResponseTypeDef
Usage example with kwargs
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

Method definition
def describe_model(
    self,
    *,
    ProjectName: str,
    ModelVersion: str,
) -> DescribeModelResponseTypeDef:  # (1)
    ...
  1. See DescribeModelResponseTypeDef
Usage example with kwargs
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

Method definition
def describe_model_packaging_job(
    self,
    *,
    ProjectName: str,
    JobName: str,
) -> DescribeModelPackagingJobResponseTypeDef:  # (1)
    ...
  1. See DescribeModelPackagingJobResponseTypeDef
Usage example with kwargs
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

Method definition
def describe_project(
    self,
    *,
    ProjectName: str,
) -> DescribeProjectResponseTypeDef:  # (1)
    ...
  1. See DescribeProjectResponseTypeDef
Usage example with kwargs
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

Method definition
def detect_anomalies(
    self,
    *,
    ProjectName: str,
    ModelVersion: str,
    Body: Union[str, bytes, IO[Any], StreamingBody],
    ContentType: str,
) -> DetectAnomaliesResponseTypeDef:  # (1)
    ...
  1. See DetectAnomaliesResponseTypeDef
Usage example with kwargs
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

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. boto3 documentation

Method definition
def list_dataset_entries(
    self,
    *,
    ProjectName: str,
    DatasetType: str,
    Labeled: bool = ...,
    AnomalyClass: str = ...,
    BeforeCreationDate: Union[datetime, str] = ...,
    AfterCreationDate: Union[datetime, str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
    SourceRefContains: str = ...,
) -> ListDatasetEntriesResponseTypeDef:  # (1)
    ...
  1. See ListDatasetEntriesResponseTypeDef
Usage example with kwargs
kwargs: ListDatasetEntriesRequestRequestTypeDef = {  # (1)
    "ProjectName": ...,
    "DatasetType": ...,
}

parent.list_dataset_entries(**kwargs)
  1. See ListDatasetEntriesRequestRequestTypeDef

list_model_packaging_jobs

Lists the model packaging jobs created for an Amazon Lookout for Vision project.

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

Method definition
def list_model_packaging_jobs(
    self,
    *,
    ProjectName: str,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListModelPackagingJobsResponseTypeDef:  # (1)
    ...
  1. See ListModelPackagingJobsResponseTypeDef
Usage example with kwargs
kwargs: ListModelPackagingJobsRequestRequestTypeDef = {  # (1)
    "ProjectName": ...,
}

parent.list_model_packaging_jobs(**kwargs)
  1. See ListModelPackagingJobsRequestRequestTypeDef

list_models

Lists the versions of a model in an Amazon Lookout for Vision project.

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

Method definition
def list_models(
    self,
    *,
    ProjectName: str,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListModelsResponseTypeDef:  # (1)
    ...
  1. See ListModelsResponseTypeDef
Usage example with kwargs
kwargs: ListModelsRequestRequestTypeDef = {  # (1)
    "ProjectName": ...,
}

parent.list_models(**kwargs)
  1. See ListModelsRequestRequestTypeDef

list_projects

Lists the Amazon Lookout for Vision projects in your AWS account that are in the AWS Region in which you call ListProjects .

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

Method definition
def list_projects(
    self,
    *,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListProjectsResponseTypeDef:  # (1)
    ...
  1. See ListProjectsResponseTypeDef
Usage example with kwargs
kwargs: ListProjectsRequestRequestTypeDef = {  # (1)
    "NextToken": ...,
}

parent.list_projects(**kwargs)
  1. See ListProjectsRequestRequestTypeDef

list_tags_for_resource

Returns a list of tags attached to the specified Amazon Lookout for Vision model.

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

Method definition
def list_tags_for_resource(
    self,
    *,
    ResourceArn: str,
) -> ListTagsForResourceResponseTypeDef:  # (1)
    ...
  1. See ListTagsForResourceResponseTypeDef
Usage example with kwargs
kwargs: ListTagsForResourceRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
}

parent.list_tags_for_resource(**kwargs)
  1. See ListTagsForResourceRequestRequestTypeDef

start_model

Starts the running of the version of an Amazon Lookout for Vision model.

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

Method definition
def start_model(
    self,
    *,
    ProjectName: str,
    ModelVersion: str,
    MinInferenceUnits: int,
    ClientToken: str = ...,
    MaxInferenceUnits: int = ...,
) -> StartModelResponseTypeDef:  # (1)
    ...
  1. See StartModelResponseTypeDef
Usage example with kwargs
kwargs: StartModelRequestRequestTypeDef = {  # (1)
    "ProjectName": ...,
    "ModelVersion": ...,
    "MinInferenceUnits": ...,
}

parent.start_model(**kwargs)
  1. See StartModelRequestRequestTypeDef

start_model_packaging_job

Starts an Amazon Lookout for Vision model packaging job.

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

Method definition
def start_model_packaging_job(
    self,
    *,
    ProjectName: str,
    ModelVersion: str,
    Configuration: ModelPackagingConfigurationTypeDef,  # (1)
    JobName: str = ...,
    Description: str = ...,
    ClientToken: str = ...,
) -> StartModelPackagingJobResponseTypeDef:  # (2)
    ...
  1. See ModelPackagingConfigurationTypeDef
  2. See StartModelPackagingJobResponseTypeDef
Usage example with kwargs
kwargs: StartModelPackagingJobRequestRequestTypeDef = {  # (1)
    "ProjectName": ...,
    "ModelVersion": ...,
    "Configuration": ...,
}

parent.start_model_packaging_job(**kwargs)
  1. See StartModelPackagingJobRequestRequestTypeDef

stop_model

Stops the hosting of a running model.

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

Method definition
def stop_model(
    self,
    *,
    ProjectName: str,
    ModelVersion: str,
    ClientToken: str = ...,
) -> StopModelResponseTypeDef:  # (1)
    ...
  1. See StopModelResponseTypeDef
Usage example with kwargs
kwargs: StopModelRequestRequestTypeDef = {  # (1)
    "ProjectName": ...,
    "ModelVersion": ...,
}

parent.stop_model(**kwargs)
  1. See StopModelRequestRequestTypeDef

tag_resource

Adds one or more key-value tags to an Amazon Lookout for Vision model.

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

Method definition
def tag_resource(
    self,
    *,
    ResourceArn: str,
    Tags: Sequence[TagTypeDef],  # (1)
) -> Dict[str, Any]:
    ...
  1. See TagTypeDef
Usage example with kwargs
kwargs: TagResourceRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
    "Tags": ...,
}

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

untag_resource

Removes one or more tags from an Amazon Lookout for Vision model.

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

Method definition
def untag_resource(
    self,
    *,
    ResourceArn: str,
    TagKeys: Sequence[str],
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: UntagResourceRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
    "TagKeys": ...,
}

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

update_dataset_entries

Adds or updates one or more JSON Line entries in a dataset.

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

Method definition
def update_dataset_entries(
    self,
    *,
    ProjectName: str,
    DatasetType: str,
    Changes: Union[str, bytes, IO[Any], StreamingBody],
    ClientToken: str = ...,
) -> UpdateDatasetEntriesResponseTypeDef:  # (1)
    ...
  1. See UpdateDatasetEntriesResponseTypeDef
Usage example with kwargs
kwargs: UpdateDatasetEntriesRequestRequestTypeDef = {  # (1)
    "ProjectName": ...,
    "DatasetType": ...,
    "Changes": ...,
}

parent.update_dataset_entries(**kwargs)
  1. See UpdateDatasetEntriesRequestRequestTypeDef

get_paginator

Type annotations and code completion for boto3.client("lookoutvision").get_paginator method with overloads.