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)
...
# create_dataset method usage example with argument unpacking
kwargs: CreateDatasetRequestRequestTypeDef = { # (1)
"ProjectName": ...,
"DatasetType": ...,
}
parent.create_dataset(**kwargs)
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)
...
- See OutputConfigTypeDef
- See TagTypeDef
- See CreateModelResponseTypeDef
# create_model method usage example with argument unpacking
kwargs: CreateModelRequestRequestTypeDef = { # (1)
"ProjectName": ...,
"OutputConfig": ...,
}
parent.create_model(**kwargs)
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)
...
# create_project method usage example with argument unpacking
kwargs: CreateProjectRequestRequestTypeDef = { # (1)
"ProjectName": ...,
}
parent.create_project(**kwargs)
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)
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)
...
# delete_model method usage example with argument unpacking
kwargs: DeleteModelRequestRequestTypeDef = { # (1)
"ProjectName": ...,
"ModelVersion": ...,
}
parent.delete_model(**kwargs)
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)
...
# delete_project method usage example with argument unpacking
kwargs: DeleteProjectRequestRequestTypeDef = { # (1)
"ProjectName": ...,
}
parent.delete_project(**kwargs)
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)
...
# describe_dataset method usage example with argument unpacking
kwargs: DescribeDatasetRequestRequestTypeDef = { # (1)
"ProjectName": ...,
"DatasetType": ...,
}
parent.describe_dataset(**kwargs)
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)
...
# describe_model method usage example with argument unpacking
kwargs: DescribeModelRequestRequestTypeDef = { # (1)
"ProjectName": ...,
"ModelVersion": ...,
}
parent.describe_model(**kwargs)
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)
...
# describe_model_packaging_job method usage example with argument unpacking
kwargs: DescribeModelPackagingJobRequestRequestTypeDef = { # (1)
"ProjectName": ...,
"JobName": ...,
}
parent.describe_model_packaging_job(**kwargs)
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)
...
# describe_project method usage example with argument unpacking
kwargs: DescribeProjectRequestRequestTypeDef = { # (1)
"ProjectName": ...,
}
parent.describe_project(**kwargs)
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: BlobTypeDef,
ContentType: str,
) -> DetectAnomaliesResponseTypeDef: # (1)
...
# detect_anomalies method usage example with argument unpacking
kwargs: DetectAnomaliesRequestRequestTypeDef = { # (1)
"ProjectName": ...,
"ModelVersion": ...,
"Body": ...,
"ContentType": ...,
}
parent.detect_anomalies(**kwargs)
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.
boto3 documentation
# list_dataset_entries method definition
def list_dataset_entries(
self,
*,
ProjectName: str,
DatasetType: str,
Labeled: bool = ...,
AnomalyClass: str = ...,
BeforeCreationDate: TimestampTypeDef = ...,
AfterCreationDate: TimestampTypeDef = ...,
NextToken: str = ...,
MaxResults: int = ...,
SourceRefContains: str = ...,
) -> ListDatasetEntriesResponseTypeDef: # (1)
...
# list_dataset_entries method usage example with argument unpacking
kwargs: ListDatasetEntriesRequestRequestTypeDef = { # (1)
"ProjectName": ...,
"DatasetType": ...,
}
parent.list_dataset_entries(**kwargs)
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
# list_model_packaging_jobs method definition
def list_model_packaging_jobs(
self,
*,
ProjectName: str,
NextToken: str = ...,
MaxResults: int = ...,
) -> ListModelPackagingJobsResponseTypeDef: # (1)
...
# list_model_packaging_jobs method usage example with argument unpacking
kwargs: ListModelPackagingJobsRequestRequestTypeDef = { # (1)
"ProjectName": ...,
}
parent.list_model_packaging_jobs(**kwargs)
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
# list_models method definition
def list_models(
self,
*,
ProjectName: str,
NextToken: str = ...,
MaxResults: int = ...,
) -> ListModelsResponseTypeDef: # (1)
...
# list_models method usage example with argument unpacking
kwargs: ListModelsRequestRequestTypeDef = { # (1)
"ProjectName": ...,
}
parent.list_models(**kwargs)
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
# list_projects method definition
def list_projects(
self,
*,
NextToken: str = ...,
MaxResults: int = ...,
) -> ListProjectsResponseTypeDef: # (1)
...
# list_projects method usage example with argument unpacking
kwargs: ListProjectsRequestRequestTypeDef = { # (1)
"NextToken": ...,
}
parent.list_projects(**kwargs)
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
# list_tags_for_resource method definition
def list_tags_for_resource(
self,
*,
ResourceArn: str,
) -> ListTagsForResourceResponseTypeDef: # (1)
...
# list_tags_for_resource method usage example with argument unpacking
kwargs: ListTagsForResourceRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
}
parent.list_tags_for_resource(**kwargs)
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
# start_model method definition
def start_model(
self,
*,
ProjectName: str,
ModelVersion: str,
MinInferenceUnits: int,
ClientToken: str = ...,
MaxInferenceUnits: int = ...,
) -> StartModelResponseTypeDef: # (1)
...
# start_model method usage example with argument unpacking
kwargs: StartModelRequestRequestTypeDef = { # (1)
"ProjectName": ...,
"ModelVersion": ...,
"MinInferenceUnits": ...,
}
parent.start_model(**kwargs)
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
# start_model_packaging_job method definition
def start_model_packaging_job(
self,
*,
ProjectName: str,
ModelVersion: str,
Configuration: ModelPackagingConfigurationTypeDef, # (1)
JobName: str = ...,
Description: str = ...,
ClientToken: str = ...,
) -> StartModelPackagingJobResponseTypeDef: # (2)
...
# start_model_packaging_job method usage example with argument unpacking
kwargs: StartModelPackagingJobRequestRequestTypeDef = { # (1)
"ProjectName": ...,
"ModelVersion": ...,
"Configuration": ...,
}
parent.start_model_packaging_job(**kwargs)
stop_model#
Stops the hosting of a running model.
Type annotations and code completion for boto3.client("lookoutvision").stop_model
method.
boto3 documentation
# stop_model method definition
def stop_model(
self,
*,
ProjectName: str,
ModelVersion: str,
ClientToken: str = ...,
) -> StopModelResponseTypeDef: # (1)
...
# stop_model method usage example with argument unpacking
kwargs: StopModelRequestRequestTypeDef = { # (1)
"ProjectName": ...,
"ModelVersion": ...,
}
parent.stop_model(**kwargs)
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
# tag_resource method definition
def tag_resource(
self,
*,
ResourceArn: str,
Tags: Sequence[TagTypeDef], # (1)
) -> Dict[str, Any]:
...
- See TagTypeDef
# tag_resource method usage example with argument unpacking
kwargs: TagResourceRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
"Tags": ...,
}
parent.tag_resource(**kwargs)
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
# untag_resource method definition
def untag_resource(
self,
*,
ResourceArn: str,
TagKeys: Sequence[str],
) -> Dict[str, Any]:
...
# untag_resource method usage example with argument unpacking
kwargs: UntagResourceRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
"TagKeys": ...,
}
parent.untag_resource(**kwargs)
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
# update_dataset_entries method definition
def update_dataset_entries(
self,
*,
ProjectName: str,
DatasetType: str,
Changes: BlobTypeDef,
ClientToken: str = ...,
) -> UpdateDatasetEntriesResponseTypeDef: # (1)
...
# update_dataset_entries method usage example with argument unpacking
kwargs: UpdateDatasetEntriesRequestRequestTypeDef = { # (1)
"ProjectName": ...,
"DatasetType": ...,
"Changes": ...,
}
parent.update_dataset_entries(**kwargs)
get_paginator#
Type annotations and code completion for boto3.client("lookoutvision").get_paginator
method with overloads.
client.get_paginator("list_dataset_entries")
-> ListDatasetEntriesPaginatorclient.get_paginator("list_model_packaging_jobs")
-> ListModelPackagingJobsPaginatorclient.get_paginator("list_models")
-> ListModelsPaginatorclient.get_paginator("list_projects")
-> ListProjectsPaginator