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)deprecated
- func WithEndpointResolverV2(v EndpointResolverV2) func(*Options)
- func WithSigV4SigningName(name string) func(*Options)
- func WithSigV4SigningRegion(region string) func(*Options)
- type AuthResolverParameters
- type AuthSchemeResolver
- 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) DescribeModelPackagingJob(ctx context.Context, params *DescribeModelPackagingJobInput, ...) (*DescribeModelPackagingJobOutput, 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) ListModelPackagingJobs(ctx context.Context, params *ListModelPackagingJobsInput, ...) (*ListModelPackagingJobsOutput, 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) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, ...) (*ListTagsForResourceOutput, error)
- func (c *Client) Options() Options
- func (c *Client) StartModel(ctx context.Context, params *StartModelInput, optFns ...func(*Options)) (*StartModelOutput, error)
- func (c *Client) StartModelPackagingJob(ctx context.Context, params *StartModelPackagingJobInput, ...) (*StartModelPackagingJobOutput, error)
- func (c *Client) StopModel(ctx context.Context, params *StopModelInput, optFns ...func(*Options)) (*StopModelOutput, error)
- func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
- func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, 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 DescribeModelPackagingJobInput
- type DescribeModelPackagingJobOutput
- type DescribeProjectInput
- type DescribeProjectOutput
- type DetectAnomaliesInput
- type DetectAnomaliesOutput
- type EndpointParameters
- type EndpointResolver
- type EndpointResolverFunc
- type EndpointResolverOptions
- type EndpointResolverV2
- type HTTPClient
- type HTTPSignerV4
- type IdempotencyTokenProvider
- type ListDatasetEntriesAPIClient
- type ListDatasetEntriesInput
- type ListDatasetEntriesOutput
- type ListDatasetEntriesPaginator
- type ListDatasetEntriesPaginatorOptions
- type ListModelPackagingJobsAPIClient
- type ListModelPackagingJobsInput
- type ListModelPackagingJobsOutput
- type ListModelPackagingJobsPaginator
- type ListModelPackagingJobsPaginatorOptions
- type ListModelsAPIClient
- type ListModelsInput
- type ListModelsOutput
- type ListModelsPaginator
- type ListModelsPaginatorOptions
- type ListProjectsAPIClient
- type ListProjectsInput
- type ListProjectsOutput
- type ListProjectsPaginator
- type ListProjectsPaginatorOptions
- type ListTagsForResourceInput
- type ListTagsForResourceOutput
- type Options
- type ResolveEndpoint
- type StartModelInput
- type StartModelOutput
- type StartModelPackagingJobInput
- type StartModelPackagingJobOutput
- type StopModelInput
- type StopModelOutput
- type TagResourceInput
- type TagResourceOutput
- type UntagResourceInput
- type UntagResourceOutput
- 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
deprecated
func WithEndpointResolver(v EndpointResolver) func(*Options)
Deprecated: EndpointResolver and WithEndpointResolver. Providing a value for this field will likely prevent you from using any endpoint-related service features released after the introduction of EndpointResolverV2 and BaseEndpoint. To migrate an EndpointResolver implementation that uses a custom endpoint, set the client option BaseEndpoint instead.
func WithEndpointResolverV2 ¶ added in v1.16.0
func WithEndpointResolverV2(v EndpointResolverV2) func(*Options)
WithEndpointResolverV2 returns a functional option for setting the Client's EndpointResolverV2 option.
func WithSigV4SigningName ¶ added in v1.20.2
WithSigV4SigningName applies an override to the authentication workflow to use the given signing name for SigV4-authenticated operations.
This is an advanced setting. The value here is FINAL, taking precedence over the resolved signing name from both auth scheme resolution and endpoint resolution.
func WithSigV4SigningRegion ¶ added in v1.20.2
WithSigV4SigningRegion applies an override to the authentication workflow to use the given signing region for SigV4-authenticated operations.
This is an advanced setting. The value here is FINAL, taking precedence over the resolved signing region from both auth scheme resolution and endpoint resolution.
Types ¶
type AuthResolverParameters ¶ added in v1.20.2
type AuthResolverParameters struct { // The name of the operation being invoked. Operation string // The region in which the operation is being invoked. Region string }
AuthResolverParameters contains the set of inputs necessary for auth scheme resolution.
type AuthSchemeResolver ¶ added in v1.20.2
type AuthSchemeResolver interface {
ResolveAuthSchemes(context.Context, *AuthResolverParameters) ([]*smithyauth.Option, error)
}
AuthSchemeResolver returns a set of possible authentication options for an operation.
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 . This operation requires permissions to perform the lookoutvision:CreateDataset operation.
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 . This operation requires permissions to perform the lookoutvision:CreateModel operation. If you want to tag your model, you also require permission to the lookoutvision:TagResource operation.
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 . This operation requires permissions to perform the lookoutvision:CreateProject operation.
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.
This operation requires permissions to perform the lookoutvision:DeleteDataset operation.
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. It might take a few seconds to delete a model. To determine if a model has been deleted, call ListModels and check if the version of the model ( ModelVersion ) is in the Models array. This operation requires permissions to perform the lookoutvision:DeleteModel 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. You also have to delete the dataset(s) associated with the model. For more information, see DeleteDataset . The images referenced by the training and test datasets aren't deleted. This operation requires permissions to perform the lookoutvision:DeleteProject operation.
func (*Client) DescribeDataset ¶
func (c *Client) DescribeDataset(ctx context.Context, params *DescribeDatasetInput, optFns ...func(*Options)) (*DescribeDatasetOutput, error)
Describe an Amazon Lookout for Vision dataset. This operation requires permissions to perform the lookoutvision:DescribeDataset operation.
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. This operation requires permissions to perform the lookoutvision:DescribeModel operation.
func (*Client) DescribeModelPackagingJob ¶ added in v1.8.0
func (c *Client) DescribeModelPackagingJob(ctx context.Context, params *DescribeModelPackagingJobInput, optFns ...func(*Options)) (*DescribeModelPackagingJobOutput, error)
Describes an Amazon Lookout for Vision model packaging job. This operation requires permissions to perform the lookoutvision:DescribeModelPackagingJob operation. For more information, see Using your Amazon Lookout for Vision model on an edge device in the Amazon Lookout for Vision Developer Guide.
func (*Client) DescribeProject ¶
func (c *Client) DescribeProject(ctx context.Context, params *DescribeProjectInput, optFns ...func(*Options)) (*DescribeProjectOutput, error)
Describes an Amazon Lookout for Vision project. This operation requires permissions to perform the lookoutvision:DescribeProject operation.
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. If the model is an image segmentation model, the response also includes segmentation information for each type of anomaly found in the image. 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. For more information, see Detecting anomalies in an image in the Amazon Lookout for Vision developer guide. This operation requires permissions to perform the lookoutvision:DetectAnomalies operation.
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. This operation requires permissions to perform the lookoutvision:ListDatasetEntries operation.
func (*Client) ListModelPackagingJobs ¶ added in v1.8.0
func (c *Client) ListModelPackagingJobs(ctx context.Context, params *ListModelPackagingJobsInput, optFns ...func(*Options)) (*ListModelPackagingJobsOutput, error)
Lists the model packaging jobs created for an Amazon Lookout for Vision project. This operation requires permissions to perform the lookoutvision:ListModelPackagingJobs operation. For more information, see Using your Amazon Lookout for Vision model on an edge device in the Amazon Lookout for Vision Developer Guide.
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. The ListModels operation is eventually consistent. Recent calls to CreateModel might take a while to appear in the response from ListProjects . This operation requires permissions to perform the lookoutvision:ListModels operation.
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 that are in the AWS Region in which you call ListProjects . The ListProjects operation is eventually consistent. Recent calls to CreateProject and DeleteProject might take a while to appear in the response from ListProjects . This operation requires permissions to perform the lookoutvision:ListProjects operation.
func (*Client) ListTagsForResource ¶ added in v1.2.0
func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error)
Returns a list of tags attached to the specified Amazon Lookout for Vision model. This operation requires permissions to perform the lookoutvision:ListTagsForResource operation.
func (*Client) Options ¶ added in v1.21.0
Options returns a copy of the client configuration.
Callers SHOULD NOT perform mutations on any inner structures within client config. Config overrides should instead be made on a per-operation basis through functional options.
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 . A model is ready to use when its status is HOSTED . 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 . This operation requires permissions to perform the lookoutvision:StartModel operation.
func (*Client) StartModelPackagingJob ¶ added in v1.8.0
func (c *Client) StartModelPackagingJob(ctx context.Context, params *StartModelPackagingJobInput, optFns ...func(*Options)) (*StartModelPackagingJobOutput, error)
Starts an Amazon Lookout for Vision model packaging job. A model packaging job creates an AWS IoT Greengrass component for a Lookout for Vision model. You can use the component to deploy your model to an edge device managed by Greengrass. Use the DescribeModelPackagingJob API to determine the current status of the job. The model packaging job is complete if the value of Status is SUCCEEDED . To deploy the component to the target device, use the component name and component version with the AWS IoT Greengrass CreateDeployment (https://docs.aws.amazon.com/greengrass/v2/APIReference/API_CreateDeployment.html) API. This operation requires the following permissions:
- lookoutvision:StartModelPackagingJob
- s3:PutObject
- s3:GetBucketLocation
- kms:GenerateDataKey
- greengrass:CreateComponentVersion
- greengrass:DescribeComponent
- (Optional) greengrass:TagResource . Only required if you want to tag the component.
For more information, see Using your Amazon Lookout for Vision model on an edge device in the Amazon Lookout for Vision Developer Guide.
func (*Client) StopModel ¶
func (c *Client) StopModel(ctx context.Context, params *StopModelInput, optFns ...func(*Options)) (*StopModelOutput, error)
Stops the hosting of a running model. The operation might take a while to complete. To check the current status, call DescribeModel . After the model hosting stops, the Status of the model is TRAINED . This operation requires permissions to perform the lookoutvision:StopModel operation.
func (*Client) TagResource ¶ added in v1.2.0
func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
Adds one or more key-value tags to an Amazon Lookout for Vision model. For more information, see Tagging a model in the Amazon Lookout for Vision Developer Guide. This operation requires permissions to perform the lookoutvision:TagResource operation.
func (*Client) UntagResource ¶ added in v1.2.0
func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
Removes one or more tags from an Amazon Lookout for Vision model. For more information, see Tagging a model in the Amazon Lookout for Vision Developer Guide. This operation requires permissions to perform the lookoutvision:UntagResource operation.
func (*Client) UpdateDatasetEntries ¶
func (c *Client) UpdateDatasetEntries(ctx context.Context, params *UpdateDatasetEntriesInput, optFns ...func(*Options)) (*UpdateDatasetEntriesOutput, error)
Adds or updates one or more JSON Line entries in a dataset. A JSON Line includes information about an image used for training or testing an Amazon Lookout for Vision model. To update an existing JSON Line, use the source-ref field to identify the JSON Line. The JSON line that you supply replaces the existing JSON line. Any existing annotations that are not in the new JSON line are removed from the dataset. For more information, see Defining JSON lines for anomaly classification in the Amazon Lookout for Vision Developer Guide. The images you reference in the source-ref field of a JSON line, must be in the same S3 bucket as the existing images in the dataset. Updating a dataset might take a while to complete. To check the current status, call DescribeDataset and check the Status field in the response. This operation requires permissions to perform the lookoutvision:UpdateDatasetEntries operation.
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 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. // If you don't supply a value for ClientToken , the AWS SDK you are using inserts // a value for you. This prevents retries after a network error from making // multiple dataset creation requests. You'll need to provide your own value for // other use cases. 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 // contains filtered or unexported fields }
type CreateDatasetOutput ¶
type CreateDatasetOutput struct { // Information about the dataset. DatasetMetadata *types.DatasetMetadata // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
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 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. // If you don't supply a value for ClientToken , the AWS SDK you are using inserts // a value for you. This prevents retries after a network error from starting // multiple training jobs. You'll need to provide your own value for other use // cases. 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 *string // The identifier for your AWS KMS key. The key is used to encrypt training and // test images copied into the service for model training. Your source images are // unaffected. If this parameter is not specified, the copied images are encrypted // by a key that AWS owns and manages. KmsKeyId *string // A set of tags (key-value pairs) that you want to attach to the model. Tags []types.Tag // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
type CreateProjectInput ¶
type CreateProjectInput struct { // The name 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 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. // If you don't supply a value for ClientToken , the AWS SDK you are using inserts // a value for you. This prevents retries after a network error from making // multiple project creation requests. You'll need to provide your own value for // other use cases. 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 // contains filtered or unexported fields }
type CreateProjectOutput ¶
type CreateProjectOutput struct { // Information about the project. ProjectMetadata *types.ProjectMetadata // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
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 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. // If you don't supply a value for ClientToken , the AWS SDK you are using inserts // a value for you. This prevents retries after a network error from making // multiple deletetion requests. You'll need to provide your own value for other // use cases. 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 // contains filtered or unexported fields }
type DeleteDatasetOutput ¶
type DeleteDatasetOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
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 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. // If you don't supply a value for ClientToken, the AWS SDK you are using inserts a // value for you. This prevents retries after a network error from making multiple // model deletion requests. You'll need to provide your own value for other use // cases. 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 // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
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 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. // If you don't supply a value for ClientToken , the AWS SDK you are using inserts // a value for you. This prevents retries after a network error from making // multiple project deletion requests. You'll need to provide your own value for // other use cases. 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 // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
type DescribeDatasetOutput ¶
type DescribeDatasetOutput struct { // The description of the requested dataset. DatasetDescription *types.DatasetDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeModelInput ¶
type DescribeModelInput struct { // The version of the model that you want to describe. // // This member is required. ModelVersion *string // The project that contains the version of a model that you want to describe. // // This member is required. ProjectName *string // contains filtered or unexported fields }
type DescribeModelOutput ¶
type DescribeModelOutput struct { // Contains the description of the model. ModelDescription *types.ModelDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeModelPackagingJobInput ¶ added in v1.8.0
type DescribeModelPackagingJobInput struct { // The job name for the model packaging job. // // This member is required. JobName *string // The name of the project that contains the model packaging job that you want to // describe. // // This member is required. ProjectName *string // contains filtered or unexported fields }
type DescribeModelPackagingJobOutput ¶ added in v1.8.0
type DescribeModelPackagingJobOutput struct { // The description of the model packaging job. ModelPackagingDescription *types.ModelPackagingDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeProjectInput ¶
type DescribeProjectInput struct { // The name of the project that you want to describe. // // This member is required. ProjectName *string // contains filtered or unexported fields }
type DescribeProjectOutput ¶
type DescribeProjectOutput struct { // The description of the project. ProjectDescription *types.ProjectDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
type DetectAnomaliesOutput ¶
type DetectAnomaliesOutput struct { // The results of the DetectAnomalies operation. DetectAnomalyResult *types.DetectAnomalyResult // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type EndpointParameters ¶ added in v1.16.0
type EndpointParameters struct { // The AWS region used to dispatch the request. // // Parameter is // required. // // AWS::Region Region *string // When true, use the dual-stack endpoint. If the configured endpoint does not // support dual-stack, dispatching the request MAY return an error. // // Defaults to // false if no value is provided. // // AWS::UseDualStack UseDualStack *bool // When true, send this request to the FIPS-compliant regional endpoint. If the // configured endpoint does not have a FIPS compliant endpoint, dispatching the // request will return an error. // // Defaults to false if no value is // provided. // // AWS::UseFIPS UseFIPS *bool // Override the endpoint used to send this request // // Parameter is // required. // // SDK::Endpoint Endpoint *string }
EndpointParameters provides the parameters that influence how endpoints are resolved.
func (EndpointParameters) ValidateRequired ¶ added in v1.16.0
func (p EndpointParameters) ValidateRequired() error
ValidateRequired validates required parameters are set.
func (EndpointParameters) WithDefaults ¶ added in v1.16.0
func (p EndpointParameters) WithDefaults() EndpointParameters
WithDefaults returns a shallow copy of EndpointParameterswith default values applied to members where applicable.
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 EndpointResolverV2 ¶ added in v1.16.0
type EndpointResolverV2 interface { // ResolveEndpoint attempts to resolve the endpoint with the provided options, // returning the endpoint if found. Otherwise an error is returned. ResolveEndpoint(ctx context.Context, params EndpointParameters) ( smithyendpoints.Endpoint, error, ) }
EndpointResolverV2 provides the interface for resolving service endpoints.
func NewDefaultEndpointResolverV2 ¶ added in v1.16.0
func NewDefaultEndpointResolverV2() EndpointResolverV2
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 // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
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 ListModelPackagingJobsAPIClient ¶ added in v1.8.0
type ListModelPackagingJobsAPIClient interface {
ListModelPackagingJobs(context.Context, *ListModelPackagingJobsInput, ...func(*Options)) (*ListModelPackagingJobsOutput, error)
}
ListModelPackagingJobsAPIClient is a client that implements the ListModelPackagingJobs operation.
type ListModelPackagingJobsInput ¶ added in v1.8.0
type ListModelPackagingJobsInput struct { // The name of the project for which you want to list the model packaging jobs. // // 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 results 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 results. NextToken *string // contains filtered or unexported fields }
type ListModelPackagingJobsOutput ¶ added in v1.8.0
type ListModelPackagingJobsOutput struct { // A list of the model packaging jobs created for the specified Amazon Lookout for // Vision project. ModelPackagingJobs []types.ModelPackagingJobMetadata // If the previous response was incomplete (because there is more results 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 results. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListModelPackagingJobsPaginator ¶ added in v1.8.0
type ListModelPackagingJobsPaginator struct {
// contains filtered or unexported fields
}
ListModelPackagingJobsPaginator is a paginator for ListModelPackagingJobs
func NewListModelPackagingJobsPaginator ¶ added in v1.8.0
func NewListModelPackagingJobsPaginator(client ListModelPackagingJobsAPIClient, params *ListModelPackagingJobsInput, optFns ...func(*ListModelPackagingJobsPaginatorOptions)) *ListModelPackagingJobsPaginator
NewListModelPackagingJobsPaginator returns a new ListModelPackagingJobsPaginator
func (*ListModelPackagingJobsPaginator) HasMorePages ¶ added in v1.8.0
func (p *ListModelPackagingJobsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListModelPackagingJobsPaginator) NextPage ¶ added in v1.8.0
func (p *ListModelPackagingJobsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListModelPackagingJobsOutput, error)
NextPage retrieves the next ListModelPackagingJobs page.
type ListModelPackagingJobsPaginatorOptions ¶ added in v1.8.0
type ListModelPackagingJobsPaginatorOptions 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 }
ListModelPackagingJobsPaginatorOptions is the paginator options for ListModelPackagingJobs
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 // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
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 ListTagsForResourceInput ¶ added in v1.2.0
type ListTagsForResourceInput struct { // The Amazon Resource Name (ARN) of the model for which you want to list tags. // // This member is required. ResourceArn *string // contains filtered or unexported fields }
type ListTagsForResourceOutput ¶ added in v1.2.0
type ListTagsForResourceOutput struct { // A map of tag keys and values attached to the specified model. Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
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 // The optional application specific identifier appended to the User-Agent header. AppID string // This endpoint will be given as input to an EndpointResolverV2. It is used for // providing a custom base endpoint that is subject to modifications by the // processing EndpointResolverV2. BaseEndpoint *string // 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 configuration DefaultsMode that the SDK should use when constructing the // clients initial default settings. DefaultsMode aws.DefaultsMode // The endpoint options to be used when attempting to resolve an endpoint. EndpointOptions EndpointResolverOptions // The service endpoint resolver. // // Deprecated: Deprecated: EndpointResolver and WithEndpointResolver. Providing a // value for this field will likely prevent you from using any endpoint-related // service features released after the introduction of EndpointResolverV2 and // BaseEndpoint. To migrate an EndpointResolver implementation that uses a custom // endpoint, set the client option BaseEndpoint instead. EndpointResolver EndpointResolver // Resolves the endpoint used for a particular service operation. This should be // used over the deprecated EndpointResolver. EndpointResolverV2 EndpointResolverV2 // 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 // RetryMaxAttempts specifies the maximum number attempts an API client will call // an operation that fails with a retryable error. A value of 0 is ignored, and // will not be used to configure the API client created default retryer, or modify // per operation call's retry max attempts. When creating a new API Clients this // member will only be used if the Retryer Options member is nil. This value will // be ignored if Retryer is not nil. If specified in an operation call's functional // options with a value that is different than the constructed client's Options, // the Client's Retryer will be wrapped to use the operation's specific // RetryMaxAttempts value. RetryMaxAttempts int // RetryMode specifies the retry mode the API client will be created with, if // Retryer option is not also specified. When creating a new API Clients this // member will only be used if the Retryer Options member is nil. This value will // be ignored if Retryer is not nil. Currently does not support per operation call // overrides, may in the future. RetryMode aws.RetryMode // Retryer guides how HTTP requests should be retried in case of recoverable // failures. When nil the API client will use a default retryer. The kind of // default retry created by the API client can be changed with the RetryMode // option. Retryer aws.Retryer // The RuntimeEnvironment configuration, only populated if the DefaultsMode is set // to DefaultsModeAuto and is initialized using config.LoadDefaultConfig . You // should not populate this structure programmatically, or rely on the values here // within your applications. RuntimeEnvironment aws.RuntimeEnvironment // The HTTP client to invoke API calls with. Defaults to client's default HTTP // implementation if nil. HTTPClient HTTPClient // The auth scheme resolver which determines how to authenticate for each // operation. AuthSchemeResolver AuthSchemeResolver // The list of auth schemes supported by the client. AuthSchemes []smithyhttp.AuthScheme // contains filtered or unexported fields }
func (Options) GetIdentityResolver ¶ added in v1.20.2
func (o Options) GetIdentityResolver(schemeID string) smithyauth.IdentityResolver
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. 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 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. If you don't // supply a value for ClientToken , the AWS SDK you are using inserts a value for // you. This prevents retries after a network error from making multiple start // requests. You'll need to provide your own value for other use cases. 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 // The maximum number of inference units to use for auto-scaling the model. If you // don't specify a value, Amazon Lookout for Vision doesn't auto-scale the model. MaxInferenceUnits *int32 // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
type StartModelPackagingJobInput ¶ added in v1.8.0
type StartModelPackagingJobInput struct { // The configuration for the model packaging job. // // This member is required. Configuration *types.ModelPackagingConfiguration // The version of the model within the project that you want to package. // // This member is required. ModelVersion *string // The name of the project which contains the version of the model that you want // to package. // // This member is required. ProjectName *string // ClientToken is an idempotency token that ensures a call to // StartModelPackagingJob completes only once. You choose the value to pass. For // example, An issue might prevent you from getting a response from // StartModelPackagingJob . In this case, safely retry your call to // StartModelPackagingJob by using the same ClientToken parameter value. If you // don't supply a value for ClientToken , the AWS SDK you are using inserts a value // for you. This prevents retries after a network error from making multiple // dataset creation requests. You'll need to provide your own value for other use // cases. 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 StartModelPackagingJob . An idempotency token is active for 8 hours. ClientToken *string // A description for the model packaging job. Description *string // A name for the model packaging job. If you don't supply a value, the service // creates a job name for you. JobName *string // contains filtered or unexported fields }
type StartModelPackagingJobOutput ¶ added in v1.8.0
type StartModelPackagingJobOutput struct { // The job name for the model packaging job. If you don't supply a job name in the // JobName input parameter, the service creates a job name for you. JobName *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
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 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. If you don't supply a // value for ClientToken , the AWS SDK you are using inserts a value for you. This // prevents retries after a network error from making multiple stop requests. // You'll need to provide your own value for other use cases. 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 // contains filtered or unexported fields }
type StopModelOutput ¶
type StopModelOutput struct { // The status of the model. Status types.ModelHostingStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type TagResourceInput ¶ added in v1.2.0
type TagResourceOutput ¶ added in v1.2.0
type TagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type UntagResourceInput ¶ added in v1.2.0
type UntagResourceInput struct { // The Amazon Resource Name (ARN) of the model from which you want to remove tags. // // This member is required. ResourceArn *string // A list of the keys of the tags that you want to remove. // // This member is required. TagKeys []string // contains filtered or unexported fields }
type UntagResourceOutput ¶ added in v1.2.0
type UntagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
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 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. If you don't supply a value for ClientToken , the AWS SDK you // are using inserts a value for you. This prevents retries after a network error // from making multiple updates with the same dataset entries. You'll need to // provide your own value for other use cases. 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 // contains filtered or unexported fields }
type UpdateDatasetEntriesOutput ¶
type UpdateDatasetEntriesOutput struct { // The status of the dataset update. Status types.DatasetStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
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_DescribeModelPackagingJob.go
- api_op_DescribeProject.go
- api_op_DetectAnomalies.go
- api_op_ListDatasetEntries.go
- api_op_ListModelPackagingJobs.go
- api_op_ListModels.go
- api_op_ListProjects.go
- api_op_ListTagsForResource.go
- api_op_StartModel.go
- api_op_StartModelPackagingJob.go
- api_op_StopModel.go
- api_op_TagResource.go
- api_op_UntagResource.go
- api_op_UpdateDatasetEntries.go
- auth.go
- deserializers.go
- doc.go
- endpoints.go
- go_module_metadata.go
- options.go
- serializers.go
- validators.go