Documentation ¶
Overview ¶
Package lookoutvision provides the API client, operations, and parameter types for Amazon Lookout for Vision.
This is the Amazon Lookout for Vision API Reference. It provides descriptions of actions, data types, common parameters, and common errors. Amazon Lookout for Vision enables you to find visual defects in industrial products, accurately and at scale. It uses computer vision to identify missing components in an industrial product, damage to vehicles or structures, irregularities in production lines, and even minuscule defects in silicon wafers — or any other physical item where quality is important such as a missing capacitor on printed circuit boards.
Index ¶
- Constants
- func NewDefaultEndpointResolver() *internalendpoints.Resolver
- func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
- func WithEndpointResolver(v EndpointResolver) func(*Options)
- type Client
- func (c *Client) CreateDataset(ctx context.Context, params *CreateDatasetInput, optFns ...func(*Options)) (*CreateDatasetOutput, error)
- func (c *Client) CreateModel(ctx context.Context, params *CreateModelInput, optFns ...func(*Options)) (*CreateModelOutput, error)
- func (c *Client) CreateProject(ctx context.Context, params *CreateProjectInput, optFns ...func(*Options)) (*CreateProjectOutput, error)
- func (c *Client) DeleteDataset(ctx context.Context, params *DeleteDatasetInput, optFns ...func(*Options)) (*DeleteDatasetOutput, error)
- func (c *Client) DeleteModel(ctx context.Context, params *DeleteModelInput, optFns ...func(*Options)) (*DeleteModelOutput, error)
- func (c *Client) DeleteProject(ctx context.Context, params *DeleteProjectInput, optFns ...func(*Options)) (*DeleteProjectOutput, error)
- func (c *Client) DescribeDataset(ctx context.Context, params *DescribeDatasetInput, optFns ...func(*Options)) (*DescribeDatasetOutput, error)
- func (c *Client) DescribeModel(ctx context.Context, params *DescribeModelInput, optFns ...func(*Options)) (*DescribeModelOutput, error)
- func (c *Client) DescribeProject(ctx context.Context, params *DescribeProjectInput, optFns ...func(*Options)) (*DescribeProjectOutput, error)
- func (c *Client) DetectAnomalies(ctx context.Context, params *DetectAnomaliesInput, optFns ...func(*Options)) (*DetectAnomaliesOutput, error)
- func (c *Client) ListDatasetEntries(ctx context.Context, params *ListDatasetEntriesInput, optFns ...func(*Options)) (*ListDatasetEntriesOutput, error)
- func (c *Client) ListModels(ctx context.Context, params *ListModelsInput, optFns ...func(*Options)) (*ListModelsOutput, error)
- func (c *Client) ListProjects(ctx context.Context, params *ListProjectsInput, optFns ...func(*Options)) (*ListProjectsOutput, error)
- func (c *Client) StartModel(ctx context.Context, params *StartModelInput, optFns ...func(*Options)) (*StartModelOutput, error)
- func (c *Client) StopModel(ctx context.Context, params *StopModelInput, optFns ...func(*Options)) (*StopModelOutput, error)
- func (c *Client) UpdateDatasetEntries(ctx context.Context, params *UpdateDatasetEntriesInput, ...) (*UpdateDatasetEntriesOutput, error)
- type CreateDatasetInput
- type CreateDatasetOutput
- type CreateModelInput
- type CreateModelOutput
- type CreateProjectInput
- type CreateProjectOutput
- type DeleteDatasetInput
- type DeleteDatasetOutput
- type DeleteModelInput
- type DeleteModelOutput
- type DeleteProjectInput
- type DeleteProjectOutput
- type DescribeDatasetInput
- type DescribeDatasetOutput
- type DescribeModelInput
- type DescribeModelOutput
- type DescribeProjectInput
- type DescribeProjectOutput
- type DetectAnomaliesInput
- type DetectAnomaliesOutput
- type EndpointResolver
- type EndpointResolverFunc
- type EndpointResolverOptions
- type HTTPClient
- type HTTPSignerV4
- type IdempotencyTokenProvider
- type ListDatasetEntriesAPIClient
- type ListDatasetEntriesInput
- type ListDatasetEntriesOutput
- type ListDatasetEntriesPaginator
- type ListDatasetEntriesPaginatorOptions
- type ListModelsAPIClient
- type ListModelsInput
- type ListModelsOutput
- type ListModelsPaginator
- type ListModelsPaginatorOptions
- type ListProjectsAPIClient
- type ListProjectsInput
- type ListProjectsOutput
- type ListProjectsPaginator
- type ListProjectsPaginatorOptions
- type Options
- type ResolveEndpoint
- type StartModelInput
- type StartModelOutput
- type StopModelInput
- type StopModelOutput
- type UpdateDatasetEntriesInput
- type UpdateDatasetEntriesOutput
Constants ¶
const ServiceAPIVersion = "2020-11-20"
const ServiceID = "LookoutVision"
Variables ¶
This section is empty.
Functions ¶
func NewDefaultEndpointResolver ¶
func NewDefaultEndpointResolver() *internalendpoints.Resolver
NewDefaultEndpointResolver constructs a new service endpoint resolver
func WithAPIOptions ¶ added in v1.0.0
func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
WithAPIOptions returns a functional option for setting the Client's APIOptions option.
func WithEndpointResolver ¶
func WithEndpointResolver(v EndpointResolver) func(*Options)
WithEndpointResolver returns a functional option for setting the Client's EndpointResolver option.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides the API client to make operations call for Amazon Lookout for Vision.
func New ¶
New returns an initialized Client based on the functional options. Provide additional functional options to further configure the behavior of the client, such as changing the client's endpoint or adding custom middleware behavior.
func NewFromConfig ¶
NewFromConfig returns a new client from the provided config.
func (*Client) CreateDataset ¶
func (c *Client) CreateDataset(ctx context.Context, params *CreateDatasetInput, optFns ...func(*Options)) (*CreateDatasetOutput, error)
Creates a new dataset in an Amazon Lookout for Vision project. CreateDataset can create a training or a test dataset from a valid dataset source (DatasetSource). If you want a single dataset project, specify train for the value of DatasetType. To have a project with separate training and test datasets, call CreateDataset twice. On the first call, specify train for the value of DatasetType. On the second call, specify test for the value of DatasetType. of dataset with
func (*Client) CreateModel ¶
func (c *Client) CreateModel(ctx context.Context, params *CreateModelInput, optFns ...func(*Options)) (*CreateModelOutput, error)
Creates a new version of a model within an an Amazon Lookout for Vision project. CreateModel is an asynchronous operation in which Amazon Lookout for Vision trains, tests, and evaluates a new version of a model. To get the current status, check the Status field returned in the response from DescribeModel. If the project has a single dataset, Amazon Lookout for Vision internally splits the dataset to create a training and a test dataset. If the project has a training and a test dataset, Lookout for Vision uses the respective datasets to train and test the model. After training completes, the evaluation metrics are stored at the location specified in OutputConfig.
func (*Client) CreateProject ¶
func (c *Client) CreateProject(ctx context.Context, params *CreateProjectInput, optFns ...func(*Options)) (*CreateProjectOutput, error)
Creates an empty Amazon Lookout for Vision project. After you create the project, add a dataset by calling CreateDataset.
func (*Client) DeleteDataset ¶
func (c *Client) DeleteDataset(ctx context.Context, params *DeleteDatasetInput, optFns ...func(*Options)) (*DeleteDatasetOutput, error)
Deletes an existing Amazon Lookout for Vision dataset. If your the project has a single dataset, you must create a new dataset before you can create a model. If you project has a training dataset and a test dataset consider the following.
* If you delete the test dataset, your project reverts to a single dataset project. If you then train the model, Amazon Lookout for Vision internally splits the remaining dataset into a training and test dataset.
* If you delete the training dataset, you must create a training dataset before you can create a model.
It might take a while to delete the dataset. To check the current status, check the Status field in the response from a call to DescribeDataset.
func (*Client) DeleteModel ¶
func (c *Client) DeleteModel(ctx context.Context, params *DeleteModelInput, optFns ...func(*Options)) (*DeleteModelOutput, error)
Deletes an Amazon Lookout for Vision model. You can't delete a running model. To stop a running model, use the StopModel operation.
func (*Client) DeleteProject ¶
func (c *Client) DeleteProject(ctx context.Context, params *DeleteProjectInput, optFns ...func(*Options)) (*DeleteProjectOutput, error)
Deletes an Amazon Lookout for Vision project. To delete a project, you must first delete each version of the model associated with the project. To delete a model use the DeleteModel operation. The training and test datasets are deleted automatically for you. The images referenced by the training and test datasets aren't deleted.
func (*Client) DescribeDataset ¶
func (c *Client) DescribeDataset(ctx context.Context, params *DescribeDatasetInput, optFns ...func(*Options)) (*DescribeDatasetOutput, error)
Describe an Amazon Lookout for Vision dataset.
func (*Client) DescribeModel ¶
func (c *Client) DescribeModel(ctx context.Context, params *DescribeModelInput, optFns ...func(*Options)) (*DescribeModelOutput, error)
Describes a version of an Amazon Lookout for Vision model.
func (*Client) DescribeProject ¶
func (c *Client) DescribeProject(ctx context.Context, params *DescribeProjectInput, optFns ...func(*Options)) (*DescribeProjectOutput, error)
Describes an Amazon Lookout for Vision project.
func (*Client) DetectAnomalies ¶
func (c *Client) DetectAnomalies(ctx context.Context, params *DetectAnomaliesInput, optFns ...func(*Options)) (*DetectAnomaliesOutput, error)
Detects anomalies in an image that you supply. The response from DetectAnomalies includes a boolean prediction that the image contains one or more anomalies and a confidence value for the prediction. Before calling DetectAnomalies, you must first start your model with the StartModel operation. You are charged for the amount of time, in minutes, that a model runs and for the number of anomaly detection units that your model uses. If you are not using a model, use the StopModel operation to stop your model.
func (*Client) ListDatasetEntries ¶
func (c *Client) ListDatasetEntries(ctx context.Context, params *ListDatasetEntriesInput, optFns ...func(*Options)) (*ListDatasetEntriesOutput, error)
Lists the JSON Lines within a dataset. An Amazon Lookout for Vision JSON Line contains the anomaly information for a single image, including the image location and the assigned label.
func (*Client) ListModels ¶
func (c *Client) ListModels(ctx context.Context, params *ListModelsInput, optFns ...func(*Options)) (*ListModelsOutput, error)
Lists the versions of a model in an Amazon Lookout for Vision project.
func (*Client) ListProjects ¶
func (c *Client) ListProjects(ctx context.Context, params *ListProjectsInput, optFns ...func(*Options)) (*ListProjectsOutput, error)
Lists the Amazon Lookout for Vision projects in your AWS account.
func (*Client) StartModel ¶
func (c *Client) StartModel(ctx context.Context, params *StartModelInput, optFns ...func(*Options)) (*StartModelOutput, error)
Starts the running of the version of an Amazon Lookout for Vision model. Starting a model takes a while to complete. To check the current state of the model, use DescribeModel. Once the model is running, you can detect custom labels in new images by calling DetectAnomalies. You are charged for the amount of time that the model is running. To stop a running model, call StopModel.
func (*Client) StopModel ¶
func (c *Client) StopModel(ctx context.Context, params *StopModelInput, optFns ...func(*Options)) (*StopModelOutput, error)
Stops a running model. The operation might take a while to complete. To check the current status, call DescribeModel.
func (*Client) UpdateDatasetEntries ¶
func (c *Client) UpdateDatasetEntries(ctx context.Context, params *UpdateDatasetEntriesInput, optFns ...func(*Options)) (*UpdateDatasetEntriesOutput, error)
Adds one or more JSON Line entries to a dataset. A JSON Line includes information about an image used for training or testing an Amazon Lookout for Vision model. The following is an example JSON Line. Updating a dataset might take a while to complete. To check the current status, call DescribeDataset and check the Status field in the response.
type CreateDatasetInput ¶
type CreateDatasetInput struct { // The type of the dataset. Specify train for a training dataset. Specify test for // a test dataset. // // This member is required. DatasetType *string // The name of the project in which you want to create a dataset. // // This member is required. ProjectName *string // ClientToken is an idempotency token that ensures a call to CreateDataset // completes only once. You choose the value to pass. For example, An issue, such // as an network outage, might prevent you from getting a response from // CreateDataset. In this case, safely retry your call to CreateDataset by using // the same ClientToken parameter value. An error occurs if the other input // parameters are not the same as in the first request. Using a different value for // ClientToken is considered a new call to CreateDataset. An idempotency token is // active for 8 hours. ClientToken *string // The location of the manifest file that Amazon Lookout for Vision uses to create // the dataset. If you don't specify DatasetSource, an empty dataset is created and // the operation synchronously returns. Later, you can add JSON Lines by calling // UpdateDatasetEntries. If you specify a value for DataSource, the manifest at the // S3 location is validated and used to create the dataset. The call to // CreateDataset is asynchronous and might take a while to complete. To find out // the current status, Check the value of Status returned in a call to // DescribeDataset. DatasetSource *types.DatasetSource }
type CreateDatasetOutput ¶
type CreateDatasetOutput struct { // Information about the dataset. DatasetMetadata *types.DatasetMetadata // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type CreateModelInput ¶
type CreateModelInput struct { // The location where Amazon Lookout for Vision saves the training results. // // This member is required. OutputConfig *types.OutputConfig // The name of the project in which you want to create a model version. // // This member is required. ProjectName *string // ClientToken is an idempotency token that ensures a call to CreateModel completes // only once. You choose the value to pass. For example, An issue, such as an // network outage, might prevent you from getting a response from CreateModel. In // this case, safely retry your call to CreateModel by using the same ClientToken // parameter value. An error occurs if the other input parameters are not the same // as in the first request. Using a different value for ClientToken is considered a // new call to CreateModel. An idempotency token is active for 8 hours. ClientToken *string // A description for the version of the model. Description *types.ModelDescription // The identifier of the AWS Key Management Service (AWS KMS) customer master key // (CMK) to use for encypting the model. If this parameter is not specified, the // model is encrypted by a key that AWS owns and manages. KmsKeyId *string }
type CreateModelOutput ¶
type CreateModelOutput struct { // The response from a call to CreateModel. ModelMetadata *types.ModelMetadata // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type CreateProjectInput ¶
type CreateProjectInput struct { // S nsme for the project. // // This member is required. ProjectName *string // ClientToken is an idempotency token that ensures a call to CreateProject // completes only once. You choose the value to pass. For example, An issue, such // as an network outage, might prevent you from getting a response from // CreateProject. In this case, safely retry your call to CreateProject by using // the same ClientToken parameter value. An error occurs if the other input // parameters are not the same as in the first request. Using a different value for // ClientToken is considered a new call to CreateProject. An idempotency token is // active for 8 hours. ClientToken *string }
type CreateProjectOutput ¶
type CreateProjectOutput struct { // Information about the project. ProjectMetadata *types.ProjectMetadata // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DeleteDatasetInput ¶
type DeleteDatasetInput struct { // The type of the dataset to delete. Specify train to delete the training dataset. // Specify test to delete the test dataset. To delete the dataset in a single // dataset project, specify train. // // This member is required. DatasetType *string // The name of the project that contains the dataset that you want to delete. // // This member is required. ProjectName *string // ClientToken is an idempotency token that ensures a call to DeleteDataset // completes only once. You choose the value to pass. For example, An issue, such // as an network outage, might prevent you from getting a response from // DeleteDataset. In this case, safely retry your call to DeleteDataset by using // the same ClientToken parameter value. An error occurs if the other input // parameters are not the same as in the first request. Using a different value for // ClientToken is considered a new call to DeleteDataset. An idempotency token is // active for 8 hours. ClientToken *string }
type DeleteDatasetOutput ¶
type DeleteDatasetOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DeleteModelInput ¶
type DeleteModelInput struct { // The version of the model that you want to delete. // // This member is required. ModelVersion *string // The name of the project that contains the model that you want to delete. // // This member is required. ProjectName *string // ClientToken is an idempotency token that ensures a call to DeleteModel completes // only once. You choose the value to pass. For example, An issue, such as an // network outage, might prevent you from getting a response from DeleteModel. In // this case, safely retry your call to DeleteModel by using the same ClientToken // parameter value. An error occurs if the other input parameters are not the same // as in the first request. Using a different value for ClientToken is considered a // new call to DeleteModel. An idempotency token is active for 8 hours. ClientToken *string }
type DeleteModelOutput ¶
type DeleteModelOutput struct { // The Amazon Resource Name (ARN) of the model that was deleted. ModelArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DeleteProjectInput ¶
type DeleteProjectInput struct { // The name of the project to delete. // // This member is required. ProjectName *string // ClientToken is an idempotency token that ensures a call to DeleteProject // completes only once. You choose the value to pass. For example, An issue, such // as an network outage, might prevent you from getting a response from // DeleteProject. In this case, safely retry your call to DeleteProject by using // the same ClientToken parameter value. An error occurs if the other input // parameters are not the same as in the first request. Using a different value for // ClientToken is considered a new call to DeleteProject. An idempotency token is // active for 8 hours. ClientToken *string }
type DeleteProjectOutput ¶
type DeleteProjectOutput struct { // The Amazon Resource Name (ARN) of the project that was deleted. ProjectArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DescribeDatasetInput ¶
type DescribeDatasetInput struct { // The type of the dataset to describe. Specify train to describe the training // dataset. Specify test to describe the test dataset. If you have a single dataset // project, specify train // // This member is required. DatasetType *string // The name of the project that contains the dataset that you want to describe. // // This member is required. ProjectName *string }
type DescribeDatasetOutput ¶
type DescribeDatasetOutput struct { // The description of the requested dataset. DatasetDescription *types.DatasetDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DescribeModelInput ¶
type DescribeModelOutput ¶
type DescribeModelOutput struct { // Contains the description of the model. ModelDescription *types.ModelDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DescribeProjectInput ¶
type DescribeProjectInput struct { // The name of the project that you want to describe. // // This member is required. ProjectName *string }
type DescribeProjectOutput ¶
type DescribeProjectOutput struct { // The description of the project. ProjectDescription *types.ProjectDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DetectAnomaliesInput ¶
type DetectAnomaliesInput struct { // The unencrypted image bytes that you want to analyze. // // This member is required. Body io.Reader // The type of the image passed in Body. Valid values are image/png (PNG format // images) and image/jpeg (JPG format images). // // This member is required. ContentType *string // The version of the model that you want to use. // // This member is required. ModelVersion *string // The name of the project that contains the model version that you want to use. // // This member is required. ProjectName *string }
type DetectAnomaliesOutput ¶
type DetectAnomaliesOutput struct { // The results of the DetectAnomalies operation. DetectAnomalyResult *types.DetectAnomalyResult // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type EndpointResolver ¶
type EndpointResolver interface {
ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error)
}
EndpointResolver interface for resolving service endpoints.
func EndpointResolverFromURL ¶ added in v1.1.0
func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver
EndpointResolverFromURL returns an EndpointResolver configured using the provided endpoint url. By default, the resolved endpoint resolver uses the client region as signing region, and the endpoint source is set to EndpointSourceCustom.You can provide functional options to configure endpoint values for the resolved endpoint.
type EndpointResolverFunc ¶
type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error)
EndpointResolverFunc is a helper utility that wraps a function so it satisfies the EndpointResolver interface. This is useful when you want to add additional endpoint resolving logic, or stub out specific endpoints with custom values.
func (EndpointResolverFunc) ResolveEndpoint ¶
func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error)
type EndpointResolverOptions ¶
type EndpointResolverOptions = internalendpoints.Options
EndpointResolverOptions is the service endpoint resolver options
type HTTPSignerV4 ¶
type IdempotencyTokenProvider ¶
IdempotencyTokenProvider interface for providing idempotency token
type ListDatasetEntriesAPIClient ¶
type ListDatasetEntriesAPIClient interface {
ListDatasetEntries(context.Context, *ListDatasetEntriesInput, ...func(*Options)) (*ListDatasetEntriesOutput, error)
}
ListDatasetEntriesAPIClient is a client that implements the ListDatasetEntries operation.
type ListDatasetEntriesInput ¶
type ListDatasetEntriesInput struct { // The type of the dataset that you want to list. Specify train to list the // training dataset. Specify test to list the test dataset. If you have a single // dataset project, specify train. // // This member is required. DatasetType *string // The name of the project that contains the dataset that you want to list. // // This member is required. ProjectName *string // Only includes entries after the specified date in the response. For example, // 2020-06-23T00:00:00. AfterCreationDate *time.Time // Specify normal to include only normal images. Specify anomaly to only include // anomalous entries. If you don't specify a value, Amazon Lookout for Vision // returns normal and anomalous images. AnomalyClass *string // Only includes entries before the specified date in the response. For example, // 2020-06-23T00:00:00. BeforeCreationDate *time.Time // Specify true to include labeled entries, otherwise specify false. If you don't // specify a value, Lookout for Vision returns all entries. Labeled *bool // The maximum number of results to return per paginated call. The largest value // you can specify is 100. If you specify a value greater than 100, a // ValidationException error occurs. The default value is 100. MaxResults *int32 // If the previous response was incomplete (because there is more data to // retrieve), Amazon Lookout for Vision returns a pagination token in the response. // You can use this pagination token to retrieve the next set of dataset entries. NextToken *string // Perform a "contains" search on the values of the source-ref key within the // dataset. For example a value of "IMG_17" returns all JSON Lines where the // source-ref key value matches *IMG_17*. SourceRefContains *string }
type ListDatasetEntriesOutput ¶
type ListDatasetEntriesOutput struct { // A list of the entries (JSON Lines) within the dataset. DatasetEntries []string // If the response is truncated, Amazon Lookout for Vision returns this token that // you can use in the subsequent request to retrieve the next set ofdataset // entries. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListDatasetEntriesPaginator ¶
type ListDatasetEntriesPaginator struct {
// contains filtered or unexported fields
}
ListDatasetEntriesPaginator is a paginator for ListDatasetEntries
func NewListDatasetEntriesPaginator ¶
func NewListDatasetEntriesPaginator(client ListDatasetEntriesAPIClient, params *ListDatasetEntriesInput, optFns ...func(*ListDatasetEntriesPaginatorOptions)) *ListDatasetEntriesPaginator
NewListDatasetEntriesPaginator returns a new ListDatasetEntriesPaginator
func (*ListDatasetEntriesPaginator) HasMorePages ¶
func (p *ListDatasetEntriesPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListDatasetEntriesPaginator) NextPage ¶
func (p *ListDatasetEntriesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListDatasetEntriesOutput, error)
NextPage retrieves the next ListDatasetEntries page.
type ListDatasetEntriesPaginatorOptions ¶
type ListDatasetEntriesPaginatorOptions struct { // The maximum number of results to return per paginated call. The largest value // you can specify is 100. If you specify a value greater than 100, a // ValidationException error occurs. The default value is 100. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListDatasetEntriesPaginatorOptions is the paginator options for ListDatasetEntries
type ListModelsAPIClient ¶
type ListModelsAPIClient interface {
ListModels(context.Context, *ListModelsInput, ...func(*Options)) (*ListModelsOutput, error)
}
ListModelsAPIClient is a client that implements the ListModels operation.
type ListModelsInput ¶
type ListModelsInput struct { // The name of the project that contains the model versions that you want to list. // // This member is required. ProjectName *string // The maximum number of results to return per paginated call. The largest value // you can specify is 100. If you specify a value greater than 100, a // ValidationException error occurs. The default value is 100. MaxResults *int32 // If the previous response was incomplete (because there is more data to // retrieve), Amazon Lookout for Vision returns a pagination token in the response. // You can use this pagination token to retrieve the next set of models. NextToken *string }
type ListModelsOutput ¶
type ListModelsOutput struct { // A list of model versions in the specified project. Models []types.ModelMetadata // If the response is truncated, Amazon Lookout for Vision returns this token that // you can use in the subsequent request to retrieve the next set of models. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListModelsPaginator ¶
type ListModelsPaginator struct {
// contains filtered or unexported fields
}
ListModelsPaginator is a paginator for ListModels
func NewListModelsPaginator ¶
func NewListModelsPaginator(client ListModelsAPIClient, params *ListModelsInput, optFns ...func(*ListModelsPaginatorOptions)) *ListModelsPaginator
NewListModelsPaginator returns a new ListModelsPaginator
func (*ListModelsPaginator) HasMorePages ¶
func (p *ListModelsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListModelsPaginator) NextPage ¶
func (p *ListModelsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListModelsOutput, error)
NextPage retrieves the next ListModels page.
type ListModelsPaginatorOptions ¶
type ListModelsPaginatorOptions struct { // The maximum number of results to return per paginated call. The largest value // you can specify is 100. If you specify a value greater than 100, a // ValidationException error occurs. The default value is 100. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListModelsPaginatorOptions is the paginator options for ListModels
type ListProjectsAPIClient ¶
type ListProjectsAPIClient interface {
ListProjects(context.Context, *ListProjectsInput, ...func(*Options)) (*ListProjectsOutput, error)
}
ListProjectsAPIClient is a client that implements the ListProjects operation.
type ListProjectsInput ¶
type ListProjectsInput struct { // The maximum number of results to return per paginated call. The largest value // you can specify is 100. If you specify a value greater than 100, a // ValidationException error occurs. The default value is 100. MaxResults *int32 // If the previous response was incomplete (because there is more data to // retrieve), Amazon Lookout for Vision returns a pagination token in the response. // You can use this pagination token to retrieve the next set of projects. NextToken *string }
type ListProjectsOutput ¶
type ListProjectsOutput struct { // If the response is truncated, Amazon Lookout for Vision returns this token that // you can use in the subsequent request to retrieve the next set of projects. NextToken *string // A list of projects in your AWS account. Projects []types.ProjectMetadata // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListProjectsPaginator ¶
type ListProjectsPaginator struct {
// contains filtered or unexported fields
}
ListProjectsPaginator is a paginator for ListProjects
func NewListProjectsPaginator ¶
func NewListProjectsPaginator(client ListProjectsAPIClient, params *ListProjectsInput, optFns ...func(*ListProjectsPaginatorOptions)) *ListProjectsPaginator
NewListProjectsPaginator returns a new ListProjectsPaginator
func (*ListProjectsPaginator) HasMorePages ¶
func (p *ListProjectsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListProjectsPaginator) NextPage ¶
func (p *ListProjectsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListProjectsOutput, error)
NextPage retrieves the next ListProjects page.
type ListProjectsPaginatorOptions ¶
type ListProjectsPaginatorOptions struct { // The maximum number of results to return per paginated call. The largest value // you can specify is 100. If you specify a value greater than 100, a // ValidationException error occurs. The default value is 100. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListProjectsPaginatorOptions is the paginator options for ListProjects
type Options ¶
type Options struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // Configures the events that will be sent to the configured logger. ClientLogMode aws.ClientLogMode // The credentials object to use when signing requests. Credentials aws.CredentialsProvider // The endpoint options to be used when attempting to resolve an endpoint. EndpointOptions EndpointResolverOptions // The service endpoint resolver. EndpointResolver EndpointResolver // Signature Version 4 (SigV4) Signer HTTPSignerV4 HTTPSignerV4 // Provides idempotency tokens values that will be automatically populated into // idempotent API operations. IdempotencyTokenProvider IdempotencyTokenProvider // The logger writer interface to write logging messages to. Logger logging.Logger // The region to send requests to. (Required) Region string // Retryer guides how HTTP requests should be retried in case of recoverable // failures. When nil the API client will use a default retryer. Retryer aws.Retryer // The HTTP client to invoke API calls with. Defaults to client's default HTTP // implementation if nil. HTTPClient HTTPClient }
type ResolveEndpoint ¶
type ResolveEndpoint struct { Resolver EndpointResolver Options EndpointResolverOptions }
func (*ResolveEndpoint) HandleSerialize ¶
func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, )
func (*ResolveEndpoint) ID ¶
func (*ResolveEndpoint) ID() string
type StartModelInput ¶
type StartModelInput struct { // The minimum number of inference units to use. A single inference unit represents // 1 hour of processing and can support up to 5 Transaction Pers Second (TPS). Use // a higher number to increase the TPS throughput of your model. You are charged // for the number of inference units that you use. // // This member is required. MinInferenceUnits *int32 // The version of the model that you want to start. // // This member is required. ModelVersion *string // The name of the project that contains the model that you want to start. // // This member is required. ProjectName *string // ClientToken is an idempotency token that ensures a call to StartModel completes // only once. You choose the value to pass. For example, An issue, such as an // network outage, might prevent you from getting a response from StartModel. In // this case, safely retry your call to StartModel by using the same ClientToken // parameter value. An error occurs if the other input parameters are not the same // as in the first request. Using a different value for ClientToken is considered a // new call to StartModel. An idempotency token is active for 8 hours. ClientToken *string }
type StartModelOutput ¶
type StartModelOutput struct { // The current running status of the model. Status types.ModelHostingStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type StopModelInput ¶
type StopModelInput struct { // The version of the model that you want to stop. // // This member is required. ModelVersion *string // The name of the project that contains the model that you want to stop. // // This member is required. ProjectName *string // ClientToken is an idempotency token that ensures a call to StopModel completes // only once. You choose the value to pass. For example, An issue, such as an // network outage, might prevent you from getting a response from StopModel. In // this case, safely retry your call to StopModel by using the same ClientToken // parameter value. An error occurs if the other input parameters are not the same // as in the first request. Using a different value for ClientToken is considered a // new call to StopModel. An idempotency token is active for 8 hours. ClientToken *string }
type StopModelOutput ¶
type StopModelOutput struct { // The status of the model. Status types.ModelHostingStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type UpdateDatasetEntriesInput ¶
type UpdateDatasetEntriesInput struct { // The entries to add to the dataset. // // This member is required. Changes []byte // The type of the dataset that you want to update. Specify train to update the // training dataset. Specify test to update the test dataset. If you have a single // dataset project, specify train. // // This member is required. DatasetType *string // The name of the project that contains the dataset that you want to update. // // This member is required. ProjectName *string // ClientToken is an idempotency token that ensures a call to UpdateDatasetEntries // completes only once. You choose the value to pass. For example, An issue, such // as an network outage, might prevent you from getting a response from // UpdateDatasetEntries. In this case, safely retry your call to // UpdateDatasetEntries by using the same ClientToken parameter value. An error // occurs if the other input parameters are not the same as in the first request. // Using a different value for ClientToken is considered a new call to // UpdateDatasetEntries. An idempotency token is active for 8 hours. ClientToken *string }
type UpdateDatasetEntriesOutput ¶
type UpdateDatasetEntriesOutput struct { // The status of the dataset update. Status types.DatasetStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
Source Files ¶
- api_client.go
- api_op_CreateDataset.go
- api_op_CreateModel.go
- api_op_CreateProject.go
- api_op_DeleteDataset.go
- api_op_DeleteModel.go
- api_op_DeleteProject.go
- api_op_DescribeDataset.go
- api_op_DescribeModel.go
- api_op_DescribeProject.go
- api_op_DetectAnomalies.go
- api_op_ListDatasetEntries.go
- api_op_ListModels.go
- api_op_ListProjects.go
- api_op_StartModel.go
- api_op_StopModel.go
- api_op_UpdateDatasetEntries.go
- deserializers.go
- doc.go
- endpoints.go
- serializers.go
- validators.go