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
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.
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)
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
close
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("lookoutvision").close
method.
boto3 documentation
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
def create_dataset(
self,
*,
ProjectName: str,
DatasetType: str,
DatasetSource: DatasetSourceTypeDef = ..., # (1)
ClientToken: str = ...,
) -> CreateDatasetResponseTypeDef: # (2)
...
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
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
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
def create_project(
self,
*,
ProjectName: str,
ClientToken: str = ...,
) -> CreateProjectResponseTypeDef: # (1)
...
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
def delete_dataset(
self,
*,
ProjectName: str,
DatasetType: str,
ClientToken: str = ...,
) -> Dict[str, Any]:
...
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
def delete_model(
self,
*,
ProjectName: str,
ModelVersion: str,
ClientToken: str = ...,
) -> DeleteModelResponseTypeDef: # (1)
...
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
def delete_project(
self,
*,
ProjectName: str,
ClientToken: str = ...,
) -> DeleteProjectResponseTypeDef: # (1)
...
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
def describe_dataset(
self,
*,
ProjectName: str,
DatasetType: str,
) -> DescribeDatasetResponseTypeDef: # (1)
...
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
def describe_model(
self,
*,
ProjectName: str,
ModelVersion: str,
) -> DescribeModelResponseTypeDef: # (1)
...
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
def describe_model_packaging_job(
self,
*,
ProjectName: str,
JobName: str,
) -> DescribeModelPackagingJobResponseTypeDef: # (1)
...
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
def describe_project(
self,
*,
ProjectName: str,
) -> DescribeProjectResponseTypeDef: # (1)
...
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
def detect_anomalies(
self,
*,
ProjectName: str,
ModelVersion: str,
Body: Union[str, bytes, IO[Any], StreamingBody],
ContentType: str,
) -> DetectAnomaliesResponseTypeDef: # (1)
...
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
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
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)
...
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
def list_model_packaging_jobs(
self,
*,
ProjectName: str,
NextToken: str = ...,
MaxResults: int = ...,
) -> ListModelPackagingJobsResponseTypeDef: # (1)
...
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
def list_models(
self,
*,
ProjectName: str,
NextToken: str = ...,
MaxResults: int = ...,
) -> ListModelsResponseTypeDef: # (1)
...
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
def list_projects(
self,
*,
NextToken: str = ...,
MaxResults: int = ...,
) -> ListProjectsResponseTypeDef: # (1)
...
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
def list_tags_for_resource(
self,
*,
ResourceArn: str,
) -> ListTagsForResourceResponseTypeDef: # (1)
...
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
def start_model(
self,
*,
ProjectName: str,
ModelVersion: str,
MinInferenceUnits: int,
ClientToken: str = ...,
MaxInferenceUnits: int = ...,
) -> StartModelResponseTypeDef: # (1)
...
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
def start_model_packaging_job(
self,
*,
ProjectName: str,
ModelVersion: str,
Configuration: ModelPackagingConfigurationTypeDef, # (1)
JobName: str = ...,
Description: str = ...,
ClientToken: str = ...,
) -> StartModelPackagingJobResponseTypeDef: # (2)
...
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
def stop_model(
self,
*,
ProjectName: str,
ModelVersion: str,
ClientToken: str = ...,
) -> StopModelResponseTypeDef: # (1)
...
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
def tag_resource(
self,
*,
ResourceArn: str,
Tags: Sequence[TagTypeDef], # (1)
) -> Dict[str, Any]:
...
- See TagTypeDef
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
def untag_resource(
self,
*,
ResourceArn: str,
TagKeys: Sequence[str],
) -> Dict[str, Any]:
...
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
def update_dataset_entries(
self,
*,
ProjectName: str,
DatasetType: str,
Changes: Union[str, bytes, IO[Any], StreamingBody],
ClientToken: str = ...,
) -> UpdateDatasetEntriesResponseTypeDef: # (1)
...
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