Documentation ¶
Overview ¶
Package augmentedairuntime provides the client and types for making API requests to Amazon Augmented AI Runtime.
Amazon Augmented AI (Amazon A2I) adds the benefit of human judgment to any machine learning application. When an AI application can't evaluate data with a high degree of confidence, human reviewers can take over. This human review is called a human review workflow. To create and start a human review workflow, you need three resources: a worker task template, a flow definition, and a human loop.
For information about these resources and prerequisites for using Amazon A2I, see Get Started with Amazon Augmented AI (https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-getting-started.html) in the Amazon SageMaker Developer Guide.
This API reference includes information about API actions and data types that you can use to interact with Amazon A2I programmatically. Use this guide to:
Start a human loop with the StartHumanLoop operation when using Amazon A2I with a custom task type. To learn more about the difference between custom and built-in task types, see Use Task Types (https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-task-types-general.html). To learn how to start a human loop using this API, see Create and Start a Human Loop for a Custom Task Type (https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-start-human-loop.html#a2i-instructions-starthumanloop) in the Amazon SageMaker Developer Guide.
Manage your human loops. You can list all human loops that you have created, describe individual human loops, and stop and delete human loops. To learn more, see Monitor and Manage Your Human Loop (https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-monitor-humanloop-results.html) in the Amazon SageMaker Developer Guide.
Amazon A2I integrates APIs from various AWS services to create and start human review workflows for those services. To learn how Amazon A2I uses these APIs, see Use APIs in Amazon A2I (https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-api-references.html) in the Amazon SageMaker Developer Guide.
See https://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07 for more information on this service.
See augmentedairuntime package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/augmentedairuntime/
Using the Client ¶
To contact Amazon Augmented AI Runtime with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.
See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/
See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
See the Amazon Augmented AI Runtime client AugmentedAIRuntime for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/augmentedairuntime/#New
Index ¶
- Constants
- func ContentClassifier_Values() []string
- func HumanLoopStatus_Values() []string
- func SortOrder_Values() []string
- type AugmentedAIRuntime
- func (c *AugmentedAIRuntime) DeleteHumanLoop(input *DeleteHumanLoopInput) (*DeleteHumanLoopOutput, error)
- func (c *AugmentedAIRuntime) DeleteHumanLoopRequest(input *DeleteHumanLoopInput) (req *request.Request, output *DeleteHumanLoopOutput)
- func (c *AugmentedAIRuntime) DeleteHumanLoopWithContext(ctx aws.Context, input *DeleteHumanLoopInput, opts ...request.Option) (*DeleteHumanLoopOutput, error)
- func (c *AugmentedAIRuntime) DescribeHumanLoop(input *DescribeHumanLoopInput) (*DescribeHumanLoopOutput, error)
- func (c *AugmentedAIRuntime) DescribeHumanLoopRequest(input *DescribeHumanLoopInput) (req *request.Request, output *DescribeHumanLoopOutput)
- func (c *AugmentedAIRuntime) DescribeHumanLoopWithContext(ctx aws.Context, input *DescribeHumanLoopInput, opts ...request.Option) (*DescribeHumanLoopOutput, error)
- func (c *AugmentedAIRuntime) ListHumanLoops(input *ListHumanLoopsInput) (*ListHumanLoopsOutput, error)
- func (c *AugmentedAIRuntime) ListHumanLoopsPages(input *ListHumanLoopsInput, fn func(*ListHumanLoopsOutput, bool) bool) error
- func (c *AugmentedAIRuntime) ListHumanLoopsPagesWithContext(ctx aws.Context, input *ListHumanLoopsInput, ...) error
- func (c *AugmentedAIRuntime) ListHumanLoopsRequest(input *ListHumanLoopsInput) (req *request.Request, output *ListHumanLoopsOutput)
- func (c *AugmentedAIRuntime) ListHumanLoopsWithContext(ctx aws.Context, input *ListHumanLoopsInput, opts ...request.Option) (*ListHumanLoopsOutput, error)
- func (c *AugmentedAIRuntime) StartHumanLoop(input *StartHumanLoopInput) (*StartHumanLoopOutput, error)
- func (c *AugmentedAIRuntime) StartHumanLoopRequest(input *StartHumanLoopInput) (req *request.Request, output *StartHumanLoopOutput)
- func (c *AugmentedAIRuntime) StartHumanLoopWithContext(ctx aws.Context, input *StartHumanLoopInput, opts ...request.Option) (*StartHumanLoopOutput, error)
- func (c *AugmentedAIRuntime) StopHumanLoop(input *StopHumanLoopInput) (*StopHumanLoopOutput, error)
- func (c *AugmentedAIRuntime) StopHumanLoopRequest(input *StopHumanLoopInput) (req *request.Request, output *StopHumanLoopOutput)
- func (c *AugmentedAIRuntime) StopHumanLoopWithContext(ctx aws.Context, input *StopHumanLoopInput, opts ...request.Option) (*StopHumanLoopOutput, error)
- type ConflictException
- func (s *ConflictException) Code() string
- func (s *ConflictException) Error() string
- func (s ConflictException) GoString() string
- func (s *ConflictException) Message() string
- func (s *ConflictException) OrigErr() error
- func (s *ConflictException) RequestID() string
- func (s *ConflictException) StatusCode() int
- func (s ConflictException) String() string
- type DeleteHumanLoopInput
- type DeleteHumanLoopOutput
- type DescribeHumanLoopInput
- type DescribeHumanLoopOutput
- func (s DescribeHumanLoopOutput) GoString() string
- func (s *DescribeHumanLoopOutput) SetCreationTime(v time.Time) *DescribeHumanLoopOutput
- func (s *DescribeHumanLoopOutput) SetFailureCode(v string) *DescribeHumanLoopOutput
- func (s *DescribeHumanLoopOutput) SetFailureReason(v string) *DescribeHumanLoopOutput
- func (s *DescribeHumanLoopOutput) SetFlowDefinitionArn(v string) *DescribeHumanLoopOutput
- func (s *DescribeHumanLoopOutput) SetHumanLoopArn(v string) *DescribeHumanLoopOutput
- func (s *DescribeHumanLoopOutput) SetHumanLoopName(v string) *DescribeHumanLoopOutput
- func (s *DescribeHumanLoopOutput) SetHumanLoopOutput(v *HumanLoopOutput) *DescribeHumanLoopOutput
- func (s *DescribeHumanLoopOutput) SetHumanLoopStatus(v string) *DescribeHumanLoopOutput
- func (s DescribeHumanLoopOutput) String() string
- type HumanLoopDataAttributes
- type HumanLoopInput
- type HumanLoopOutput
- type HumanLoopSummary
- func (s HumanLoopSummary) GoString() string
- func (s *HumanLoopSummary) SetCreationTime(v time.Time) *HumanLoopSummary
- func (s *HumanLoopSummary) SetFailureReason(v string) *HumanLoopSummary
- func (s *HumanLoopSummary) SetFlowDefinitionArn(v string) *HumanLoopSummary
- func (s *HumanLoopSummary) SetHumanLoopName(v string) *HumanLoopSummary
- func (s *HumanLoopSummary) SetHumanLoopStatus(v string) *HumanLoopSummary
- func (s HumanLoopSummary) String() string
- type InternalServerException
- func (s *InternalServerException) Code() string
- func (s *InternalServerException) Error() string
- func (s InternalServerException) GoString() string
- func (s *InternalServerException) Message() string
- func (s *InternalServerException) OrigErr() error
- func (s *InternalServerException) RequestID() string
- func (s *InternalServerException) StatusCode() int
- func (s InternalServerException) String() string
- type ListHumanLoopsInput
- func (s ListHumanLoopsInput) GoString() string
- func (s *ListHumanLoopsInput) SetCreationTimeAfter(v time.Time) *ListHumanLoopsInput
- func (s *ListHumanLoopsInput) SetCreationTimeBefore(v time.Time) *ListHumanLoopsInput
- func (s *ListHumanLoopsInput) SetFlowDefinitionArn(v string) *ListHumanLoopsInput
- func (s *ListHumanLoopsInput) SetMaxResults(v int64) *ListHumanLoopsInput
- func (s *ListHumanLoopsInput) SetNextToken(v string) *ListHumanLoopsInput
- func (s *ListHumanLoopsInput) SetSortOrder(v string) *ListHumanLoopsInput
- func (s ListHumanLoopsInput) String() string
- func (s *ListHumanLoopsInput) Validate() error
- type ListHumanLoopsOutput
- type ResourceNotFoundException
- func (s *ResourceNotFoundException) Code() string
- func (s *ResourceNotFoundException) Error() string
- func (s ResourceNotFoundException) GoString() string
- func (s *ResourceNotFoundException) Message() string
- func (s *ResourceNotFoundException) OrigErr() error
- func (s *ResourceNotFoundException) RequestID() string
- func (s *ResourceNotFoundException) StatusCode() int
- func (s ResourceNotFoundException) String() string
- type ServiceQuotaExceededException
- func (s *ServiceQuotaExceededException) Code() string
- func (s *ServiceQuotaExceededException) Error() string
- func (s ServiceQuotaExceededException) GoString() string
- func (s *ServiceQuotaExceededException) Message() string
- func (s *ServiceQuotaExceededException) OrigErr() error
- func (s *ServiceQuotaExceededException) RequestID() string
- func (s *ServiceQuotaExceededException) StatusCode() int
- func (s ServiceQuotaExceededException) String() string
- type StartHumanLoopInput
- func (s StartHumanLoopInput) GoString() string
- func (s *StartHumanLoopInput) SetDataAttributes(v *HumanLoopDataAttributes) *StartHumanLoopInput
- func (s *StartHumanLoopInput) SetFlowDefinitionArn(v string) *StartHumanLoopInput
- func (s *StartHumanLoopInput) SetHumanLoopInput(v *HumanLoopInput) *StartHumanLoopInput
- func (s *StartHumanLoopInput) SetHumanLoopName(v string) *StartHumanLoopInput
- func (s StartHumanLoopInput) String() string
- func (s *StartHumanLoopInput) Validate() error
- type StartHumanLoopOutput
- type StopHumanLoopInput
- type StopHumanLoopOutput
- type ThrottlingException
- func (s *ThrottlingException) Code() string
- func (s *ThrottlingException) Error() string
- func (s ThrottlingException) GoString() string
- func (s *ThrottlingException) Message() string
- func (s *ThrottlingException) OrigErr() error
- func (s *ThrottlingException) RequestID() string
- func (s *ThrottlingException) StatusCode() int
- func (s ThrottlingException) String() string
- type ValidationException
- func (s *ValidationException) Code() string
- func (s *ValidationException) Error() string
- func (s ValidationException) GoString() string
- func (s *ValidationException) Message() string
- func (s *ValidationException) OrigErr() error
- func (s *ValidationException) RequestID() string
- func (s *ValidationException) StatusCode() int
- func (s ValidationException) String() string
Constants ¶
const ( // ContentClassifierFreeOfPersonallyIdentifiableInformation is a ContentClassifier enum value ContentClassifierFreeOfPersonallyIdentifiableInformation = "FreeOfPersonallyIdentifiableInformation" // ContentClassifierFreeOfAdultContent is a ContentClassifier enum value ContentClassifierFreeOfAdultContent = "FreeOfAdultContent" )
const ( // HumanLoopStatusInProgress is a HumanLoopStatus enum value HumanLoopStatusInProgress = "InProgress" // HumanLoopStatusFailed is a HumanLoopStatus enum value HumanLoopStatusFailed = "Failed" // HumanLoopStatusCompleted is a HumanLoopStatus enum value HumanLoopStatusCompleted = "Completed" // HumanLoopStatusStopped is a HumanLoopStatus enum value HumanLoopStatusStopped = "Stopped" // HumanLoopStatusStopping is a HumanLoopStatus enum value HumanLoopStatusStopping = "Stopping" )
const ( // SortOrderAscending is a SortOrder enum value SortOrderAscending = "Ascending" // SortOrderDescending is a SortOrder enum value SortOrderDescending = "Descending" )
const ( // ErrCodeConflictException for service response error code // "ConflictException". // // Your request has the same name as another active human loop but has different // input data. You cannot start two human loops with the same name and different // input data. ErrCodeConflictException = "ConflictException" // ErrCodeInternalServerException for service response error code // "InternalServerException". // // We couldn't process your request because of an issue with the server. Try // again later. ErrCodeInternalServerException = "InternalServerException" // ErrCodeResourceNotFoundException for service response error code // "ResourceNotFoundException". // // We couldn't find the requested resource. Check that your resources exists // and were created in the same AWS Region as your request, and try your request // again. ErrCodeResourceNotFoundException = "ResourceNotFoundException" // ErrCodeServiceQuotaExceededException for service response error code // "ServiceQuotaExceededException". // // You exceeded your service quota. Service quotas, also referred to as limits, // are the maximum number of service resources or operations for your AWS account. // For a list of Amazon A2I service quotes, see Amazon Augmented AI Service // Quotes (https://docs.aws.amazon.com/general/latest/gr/a2i.html). Delete some // resources or request an increase in your service quota. You can request a // quota increase using Service Quotas or the AWS Support Center. To request // an increase, see AWS Service Quotas (https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html) // in the AWS General Reference. ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" // ErrCodeThrottlingException for service response error code // "ThrottlingException". // // You exceeded the maximum number of requests. ErrCodeThrottlingException = "ThrottlingException" // ErrCodeValidationException for service response error code // "ValidationException". // // The request isn't valid. Check the syntax and try again. ErrCodeValidationException = "ValidationException" )
const ( ServiceName = "SageMaker A2I Runtime" // Name of service. EndpointsID = "a2i-runtime.sagemaker" // ID to lookup a service endpoint with. ServiceID = "SageMaker A2I Runtime" // ServiceID is a unique identifier of a specific service. )
Service information constants
Variables ¶
This section is empty.
Functions ¶
func ContentClassifier_Values ¶
func ContentClassifier_Values() []string
ContentClassifier_Values returns all elements of the ContentClassifier enum
func HumanLoopStatus_Values ¶
func HumanLoopStatus_Values() []string
HumanLoopStatus_Values returns all elements of the HumanLoopStatus enum
func SortOrder_Values ¶
func SortOrder_Values() []string
SortOrder_Values returns all elements of the SortOrder enum
Types ¶
type AugmentedAIRuntime ¶
AugmentedAIRuntime provides the API operation methods for making requests to Amazon Augmented AI Runtime. See this package's package overview docs for details on the service.
AugmentedAIRuntime methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.
func New ¶
func New(p client.ConfigProvider, cfgs ...*aws.Config) *AugmentedAIRuntime
New creates a new instance of the AugmentedAIRuntime client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.
Example:
mySession := session.Must(session.NewSession()) // Create a AugmentedAIRuntime client from just a session. svc := augmentedairuntime.New(mySession) // Create a AugmentedAIRuntime client with additional configuration svc := augmentedairuntime.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func (*AugmentedAIRuntime) DeleteHumanLoop ¶
func (c *AugmentedAIRuntime) DeleteHumanLoop(input *DeleteHumanLoopInput) (*DeleteHumanLoopOutput, error)
DeleteHumanLoop API operation for Amazon Augmented AI Runtime.
Deletes the specified human loop for a flow definition.
If the human loop was deleted, this operation will return a ResourceNotFoundException.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Augmented AI Runtime's API operation DeleteHumanLoop for usage and error information.
Returned Error Types:
ValidationException The request isn't valid. Check the syntax and try again.
ResourceNotFoundException We couldn't find the requested resource. Check that your resources exists and were created in the same AWS Region as your request, and try your request again.
ThrottlingException You exceeded the maximum number of requests.
InternalServerException We couldn't process your request because of an issue with the server. Try again later.
See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DeleteHumanLoop
func (*AugmentedAIRuntime) DeleteHumanLoopRequest ¶
func (c *AugmentedAIRuntime) DeleteHumanLoopRequest(input *DeleteHumanLoopInput) (req *request.Request, output *DeleteHumanLoopOutput)
DeleteHumanLoopRequest generates a "aws/request.Request" representing the client's request for the DeleteHumanLoop operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DeleteHumanLoop for more information on using the DeleteHumanLoop API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DeleteHumanLoopRequest method. req, resp := client.DeleteHumanLoopRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DeleteHumanLoop
func (*AugmentedAIRuntime) DeleteHumanLoopWithContext ¶
func (c *AugmentedAIRuntime) DeleteHumanLoopWithContext(ctx aws.Context, input *DeleteHumanLoopInput, opts ...request.Option) (*DeleteHumanLoopOutput, error)
DeleteHumanLoopWithContext is the same as DeleteHumanLoop with the addition of the ability to pass a context and additional request options.
See DeleteHumanLoop for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*AugmentedAIRuntime) DescribeHumanLoop ¶
func (c *AugmentedAIRuntime) DescribeHumanLoop(input *DescribeHumanLoopInput) (*DescribeHumanLoopOutput, error)
DescribeHumanLoop API operation for Amazon Augmented AI Runtime.
Returns information about the specified human loop. If the human loop was deleted, this operation will return a ResourceNotFoundException error.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Augmented AI Runtime's API operation DescribeHumanLoop for usage and error information.
Returned Error Types:
ValidationException The request isn't valid. Check the syntax and try again.
ResourceNotFoundException We couldn't find the requested resource. Check that your resources exists and were created in the same AWS Region as your request, and try your request again.
ThrottlingException You exceeded the maximum number of requests.
InternalServerException We couldn't process your request because of an issue with the server. Try again later.
See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DescribeHumanLoop
func (*AugmentedAIRuntime) DescribeHumanLoopRequest ¶
func (c *AugmentedAIRuntime) DescribeHumanLoopRequest(input *DescribeHumanLoopInput) (req *request.Request, output *DescribeHumanLoopOutput)
DescribeHumanLoopRequest generates a "aws/request.Request" representing the client's request for the DescribeHumanLoop operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DescribeHumanLoop for more information on using the DescribeHumanLoop API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DescribeHumanLoopRequest method. req, resp := client.DescribeHumanLoopRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DescribeHumanLoop
func (*AugmentedAIRuntime) DescribeHumanLoopWithContext ¶
func (c *AugmentedAIRuntime) DescribeHumanLoopWithContext(ctx aws.Context, input *DescribeHumanLoopInput, opts ...request.Option) (*DescribeHumanLoopOutput, error)
DescribeHumanLoopWithContext is the same as DescribeHumanLoop with the addition of the ability to pass a context and additional request options.
See DescribeHumanLoop for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*AugmentedAIRuntime) ListHumanLoops ¶
func (c *AugmentedAIRuntime) ListHumanLoops(input *ListHumanLoopsInput) (*ListHumanLoopsOutput, error)
ListHumanLoops API operation for Amazon Augmented AI Runtime.
Returns information about human loops, given the specified parameters. If a human loop was deleted, it will not be included.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Augmented AI Runtime's API operation ListHumanLoops for usage and error information.
Returned Error Types:
ValidationException The request isn't valid. Check the syntax and try again.
ResourceNotFoundException We couldn't find the requested resource. Check that your resources exists and were created in the same AWS Region as your request, and try your request again.
ThrottlingException You exceeded the maximum number of requests.
InternalServerException We couldn't process your request because of an issue with the server. Try again later.
See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/ListHumanLoops
func (*AugmentedAIRuntime) ListHumanLoopsPages ¶
func (c *AugmentedAIRuntime) ListHumanLoopsPages(input *ListHumanLoopsInput, fn func(*ListHumanLoopsOutput, bool) bool) error
ListHumanLoopsPages iterates over the pages of a ListHumanLoops operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.
See ListHumanLoops method for more information on how to use this operation.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListHumanLoops operation. pageNum := 0 err := client.ListHumanLoopsPages(params, func(page *augmentedairuntime.ListHumanLoopsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })
func (*AugmentedAIRuntime) ListHumanLoopsPagesWithContext ¶
func (c *AugmentedAIRuntime) ListHumanLoopsPagesWithContext(ctx aws.Context, input *ListHumanLoopsInput, fn func(*ListHumanLoopsOutput, bool) bool, opts ...request.Option) error
ListHumanLoopsPagesWithContext same as ListHumanLoopsPages except it takes a Context and allows setting request options on the pages.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*AugmentedAIRuntime) ListHumanLoopsRequest ¶
func (c *AugmentedAIRuntime) ListHumanLoopsRequest(input *ListHumanLoopsInput) (req *request.Request, output *ListHumanLoopsOutput)
ListHumanLoopsRequest generates a "aws/request.Request" representing the client's request for the ListHumanLoops operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See ListHumanLoops for more information on using the ListHumanLoops API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the ListHumanLoopsRequest method. req, resp := client.ListHumanLoopsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/ListHumanLoops
func (*AugmentedAIRuntime) ListHumanLoopsWithContext ¶
func (c *AugmentedAIRuntime) ListHumanLoopsWithContext(ctx aws.Context, input *ListHumanLoopsInput, opts ...request.Option) (*ListHumanLoopsOutput, error)
ListHumanLoopsWithContext is the same as ListHumanLoops with the addition of the ability to pass a context and additional request options.
See ListHumanLoops for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*AugmentedAIRuntime) StartHumanLoop ¶
func (c *AugmentedAIRuntime) StartHumanLoop(input *StartHumanLoopInput) (*StartHumanLoopOutput, error)
StartHumanLoop API operation for Amazon Augmented AI Runtime.
Starts a human loop, provided that at least one activation condition is met.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Augmented AI Runtime's API operation StartHumanLoop for usage and error information.
Returned Error Types:
ValidationException The request isn't valid. Check the syntax and try again.
ThrottlingException You exceeded the maximum number of requests.
ServiceQuotaExceededException You exceeded your service quota. Service quotas, also referred to as limits, are the maximum number of service resources or operations for your AWS account. For a list of Amazon A2I service quotes, see Amazon Augmented AI Service Quotes (https://docs.aws.amazon.com/general/latest/gr/a2i.html). Delete some resources or request an increase in your service quota. You can request a quota increase using Service Quotas or the AWS Support Center. To request an increase, see AWS Service Quotas (https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html) in the AWS General Reference.
InternalServerException We couldn't process your request because of an issue with the server. Try again later.
ConflictException Your request has the same name as another active human loop but has different input data. You cannot start two human loops with the same name and different input data.
See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StartHumanLoop
func (*AugmentedAIRuntime) StartHumanLoopRequest ¶
func (c *AugmentedAIRuntime) StartHumanLoopRequest(input *StartHumanLoopInput) (req *request.Request, output *StartHumanLoopOutput)
StartHumanLoopRequest generates a "aws/request.Request" representing the client's request for the StartHumanLoop operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See StartHumanLoop for more information on using the StartHumanLoop API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the StartHumanLoopRequest method. req, resp := client.StartHumanLoopRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StartHumanLoop
func (*AugmentedAIRuntime) StartHumanLoopWithContext ¶
func (c *AugmentedAIRuntime) StartHumanLoopWithContext(ctx aws.Context, input *StartHumanLoopInput, opts ...request.Option) (*StartHumanLoopOutput, error)
StartHumanLoopWithContext is the same as StartHumanLoop with the addition of the ability to pass a context and additional request options.
See StartHumanLoop for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*AugmentedAIRuntime) StopHumanLoop ¶
func (c *AugmentedAIRuntime) StopHumanLoop(input *StopHumanLoopInput) (*StopHumanLoopOutput, error)
StopHumanLoop API operation for Amazon Augmented AI Runtime.
Stops the specified human loop.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Augmented AI Runtime's API operation StopHumanLoop for usage and error information.
Returned Error Types:
ValidationException The request isn't valid. Check the syntax and try again.
ResourceNotFoundException We couldn't find the requested resource. Check that your resources exists and were created in the same AWS Region as your request, and try your request again.
ThrottlingException You exceeded the maximum number of requests.
InternalServerException We couldn't process your request because of an issue with the server. Try again later.
See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StopHumanLoop
func (*AugmentedAIRuntime) StopHumanLoopRequest ¶
func (c *AugmentedAIRuntime) StopHumanLoopRequest(input *StopHumanLoopInput) (req *request.Request, output *StopHumanLoopOutput)
StopHumanLoopRequest generates a "aws/request.Request" representing the client's request for the StopHumanLoop operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See StopHumanLoop for more information on using the StopHumanLoop API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the StopHumanLoopRequest method. req, resp := client.StopHumanLoopRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StopHumanLoop
func (*AugmentedAIRuntime) StopHumanLoopWithContext ¶
func (c *AugmentedAIRuntime) StopHumanLoopWithContext(ctx aws.Context, input *StopHumanLoopInput, opts ...request.Option) (*StopHumanLoopOutput, error)
StopHumanLoopWithContext is the same as StopHumanLoop with the addition of the ability to pass a context and additional request options.
See StopHumanLoop for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
type ConflictException ¶
type ConflictException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` // contains filtered or unexported fields }
Your request has the same name as another active human loop but has different input data. You cannot start two human loops with the same name and different input data.
func (*ConflictException) Code ¶
func (s *ConflictException) Code() string
Code returns the exception type name.
func (*ConflictException) Error ¶
func (s *ConflictException) Error() string
func (ConflictException) GoString ¶
func (s ConflictException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ConflictException) Message ¶
func (s *ConflictException) Message() string
Message returns the exception's message.
func (*ConflictException) OrigErr ¶
func (s *ConflictException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*ConflictException) RequestID ¶
func (s *ConflictException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*ConflictException) StatusCode ¶
func (s *ConflictException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (ConflictException) String ¶
func (s ConflictException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DeleteHumanLoopInput ¶
type DeleteHumanLoopInput struct { // The name of the human loop that you want to delete. // // HumanLoopName is a required field HumanLoopName *string `location:"uri" locationName:"HumanLoopName" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (DeleteHumanLoopInput) GoString ¶
func (s DeleteHumanLoopInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*DeleteHumanLoopInput) SetHumanLoopName ¶
func (s *DeleteHumanLoopInput) SetHumanLoopName(v string) *DeleteHumanLoopInput
SetHumanLoopName sets the HumanLoopName field's value.
func (DeleteHumanLoopInput) String ¶
func (s DeleteHumanLoopInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*DeleteHumanLoopInput) Validate ¶
func (s *DeleteHumanLoopInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteHumanLoopOutput ¶
type DeleteHumanLoopOutput struct {
// contains filtered or unexported fields
}
func (DeleteHumanLoopOutput) GoString ¶
func (s DeleteHumanLoopOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (DeleteHumanLoopOutput) String ¶
func (s DeleteHumanLoopOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DescribeHumanLoopInput ¶
type DescribeHumanLoopInput struct { // The name of the human loop that you want information about. // // HumanLoopName is a required field HumanLoopName *string `location:"uri" locationName:"HumanLoopName" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (DescribeHumanLoopInput) GoString ¶
func (s DescribeHumanLoopInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*DescribeHumanLoopInput) SetHumanLoopName ¶
func (s *DescribeHumanLoopInput) SetHumanLoopName(v string) *DescribeHumanLoopInput
SetHumanLoopName sets the HumanLoopName field's value.
func (DescribeHumanLoopInput) String ¶
func (s DescribeHumanLoopInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*DescribeHumanLoopInput) Validate ¶
func (s *DescribeHumanLoopInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeHumanLoopOutput ¶
type DescribeHumanLoopOutput struct { // The creation time when Amazon Augmented AI created the human loop. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` // A failure code that identifies the type of failure. // // Possible values: ValidationError, Expired, InternalError FailureCode *string `type:"string"` // The reason why a human loop failed. The failure reason is returned when the // status of the human loop is Failed. FailureReason *string `type:"string"` // The Amazon Resource Name (ARN) of the flow definition. // // FlowDefinitionArn is a required field FlowDefinitionArn *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of the human loop. // // HumanLoopArn is a required field HumanLoopArn *string `type:"string" required:"true"` // The name of the human loop. The name must be lowercase, unique within the // Region in your account, and can have up to 63 characters. Valid characters: // a-z, 0-9, and - (hyphen). // // HumanLoopName is a required field HumanLoopName *string `min:"1" type:"string" required:"true"` // An object that contains information about the output of the human loop. HumanLoopOutput *HumanLoopOutput `type:"structure"` // The status of the human loop. // // HumanLoopStatus is a required field HumanLoopStatus *string `type:"string" required:"true" enum:"HumanLoopStatus"` // contains filtered or unexported fields }
func (DescribeHumanLoopOutput) GoString ¶
func (s DescribeHumanLoopOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*DescribeHumanLoopOutput) SetCreationTime ¶
func (s *DescribeHumanLoopOutput) SetCreationTime(v time.Time) *DescribeHumanLoopOutput
SetCreationTime sets the CreationTime field's value.
func (*DescribeHumanLoopOutput) SetFailureCode ¶
func (s *DescribeHumanLoopOutput) SetFailureCode(v string) *DescribeHumanLoopOutput
SetFailureCode sets the FailureCode field's value.
func (*DescribeHumanLoopOutput) SetFailureReason ¶
func (s *DescribeHumanLoopOutput) SetFailureReason(v string) *DescribeHumanLoopOutput
SetFailureReason sets the FailureReason field's value.
func (*DescribeHumanLoopOutput) SetFlowDefinitionArn ¶
func (s *DescribeHumanLoopOutput) SetFlowDefinitionArn(v string) *DescribeHumanLoopOutput
SetFlowDefinitionArn sets the FlowDefinitionArn field's value.
func (*DescribeHumanLoopOutput) SetHumanLoopArn ¶
func (s *DescribeHumanLoopOutput) SetHumanLoopArn(v string) *DescribeHumanLoopOutput
SetHumanLoopArn sets the HumanLoopArn field's value.
func (*DescribeHumanLoopOutput) SetHumanLoopName ¶
func (s *DescribeHumanLoopOutput) SetHumanLoopName(v string) *DescribeHumanLoopOutput
SetHumanLoopName sets the HumanLoopName field's value.
func (*DescribeHumanLoopOutput) SetHumanLoopOutput ¶
func (s *DescribeHumanLoopOutput) SetHumanLoopOutput(v *HumanLoopOutput) *DescribeHumanLoopOutput
SetHumanLoopOutput sets the HumanLoopOutput field's value.
func (*DescribeHumanLoopOutput) SetHumanLoopStatus ¶
func (s *DescribeHumanLoopOutput) SetHumanLoopStatus(v string) *DescribeHumanLoopOutput
SetHumanLoopStatus sets the HumanLoopStatus field's value.
func (DescribeHumanLoopOutput) String ¶
func (s DescribeHumanLoopOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type HumanLoopDataAttributes ¶
type HumanLoopDataAttributes struct { // Declares that your content is free of personally identifiable information // or adult content. // // Amazon SageMaker can restrict the Amazon Mechanical Turk workers who can // view your task based on this information. // // ContentClassifiers is a required field ContentClassifiers []*string `type:"list" required:"true" enum:"ContentClassifier"` // contains filtered or unexported fields }
Attributes of the data specified by the customer. Use these to describe the data to be labeled.
func (HumanLoopDataAttributes) GoString ¶
func (s HumanLoopDataAttributes) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*HumanLoopDataAttributes) SetContentClassifiers ¶
func (s *HumanLoopDataAttributes) SetContentClassifiers(v []*string) *HumanLoopDataAttributes
SetContentClassifiers sets the ContentClassifiers field's value.
func (HumanLoopDataAttributes) String ¶
func (s HumanLoopDataAttributes) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*HumanLoopDataAttributes) Validate ¶
func (s *HumanLoopDataAttributes) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type HumanLoopInput ¶
type HumanLoopInput struct { // Serialized input from the human loop. The input must be a string representation // of a file in JSON format. // // InputContent is a required field InputContent *string `type:"string" required:"true"` // contains filtered or unexported fields }
An object containing the human loop input in JSON format.
func (HumanLoopInput) GoString ¶
func (s HumanLoopInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*HumanLoopInput) SetInputContent ¶
func (s *HumanLoopInput) SetInputContent(v string) *HumanLoopInput
SetInputContent sets the InputContent field's value.
func (HumanLoopInput) String ¶
func (s HumanLoopInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*HumanLoopInput) Validate ¶
func (s *HumanLoopInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type HumanLoopOutput ¶
type HumanLoopOutput struct { // The location of the Amazon S3 object where Amazon Augmented AI stores your // human loop output. // // OutputS3Uri is a required field OutputS3Uri *string `type:"string" required:"true"` // contains filtered or unexported fields }
Information about where the human output will be stored.
func (HumanLoopOutput) GoString ¶
func (s HumanLoopOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*HumanLoopOutput) SetOutputS3Uri ¶
func (s *HumanLoopOutput) SetOutputS3Uri(v string) *HumanLoopOutput
SetOutputS3Uri sets the OutputS3Uri field's value.
func (HumanLoopOutput) String ¶
func (s HumanLoopOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type HumanLoopSummary ¶
type HumanLoopSummary struct { // When Amazon Augmented AI created the human loop. CreationTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` // The reason why the human loop failed. A failure reason is returned when the // status of the human loop is Failed. FailureReason *string `type:"string"` // The Amazon Resource Name (ARN) of the flow definition used to configure the // human loop. FlowDefinitionArn *string `type:"string"` // The name of the human loop. HumanLoopName *string `min:"1" type:"string"` // The status of the human loop. HumanLoopStatus *string `type:"string" enum:"HumanLoopStatus"` // contains filtered or unexported fields }
Summary information about the human loop.
func (HumanLoopSummary) GoString ¶
func (s HumanLoopSummary) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*HumanLoopSummary) SetCreationTime ¶
func (s *HumanLoopSummary) SetCreationTime(v time.Time) *HumanLoopSummary
SetCreationTime sets the CreationTime field's value.
func (*HumanLoopSummary) SetFailureReason ¶
func (s *HumanLoopSummary) SetFailureReason(v string) *HumanLoopSummary
SetFailureReason sets the FailureReason field's value.
func (*HumanLoopSummary) SetFlowDefinitionArn ¶
func (s *HumanLoopSummary) SetFlowDefinitionArn(v string) *HumanLoopSummary
SetFlowDefinitionArn sets the FlowDefinitionArn field's value.
func (*HumanLoopSummary) SetHumanLoopName ¶
func (s *HumanLoopSummary) SetHumanLoopName(v string) *HumanLoopSummary
SetHumanLoopName sets the HumanLoopName field's value.
func (*HumanLoopSummary) SetHumanLoopStatus ¶
func (s *HumanLoopSummary) SetHumanLoopStatus(v string) *HumanLoopSummary
SetHumanLoopStatus sets the HumanLoopStatus field's value.
func (HumanLoopSummary) String ¶
func (s HumanLoopSummary) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type InternalServerException ¶
type InternalServerException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` // contains filtered or unexported fields }
We couldn't process your request because of an issue with the server. Try again later.
func (*InternalServerException) Code ¶
func (s *InternalServerException) Code() string
Code returns the exception type name.
func (*InternalServerException) Error ¶
func (s *InternalServerException) Error() string
func (InternalServerException) GoString ¶
func (s InternalServerException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*InternalServerException) Message ¶
func (s *InternalServerException) Message() string
Message returns the exception's message.
func (*InternalServerException) OrigErr ¶
func (s *InternalServerException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*InternalServerException) RequestID ¶
func (s *InternalServerException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*InternalServerException) StatusCode ¶
func (s *InternalServerException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (InternalServerException) String ¶
func (s InternalServerException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ListHumanLoopsInput ¶
type ListHumanLoopsInput struct { // (Optional) The timestamp of the date when you want the human loops to begin // in ISO 8601 format. For example, 2020-02-24. CreationTimeAfter *time.Time `location:"querystring" locationName:"CreationTimeAfter" type:"timestamp" timestampFormat:"iso8601"` // (Optional) The timestamp of the date before which you want the human loops // to begin in ISO 8601 format. For example, 2020-02-24. CreationTimeBefore *time.Time `location:"querystring" locationName:"CreationTimeBefore" type:"timestamp" timestampFormat:"iso8601"` // The Amazon Resource Name (ARN) of a flow definition. // // FlowDefinitionArn is a required field FlowDefinitionArn *string `location:"querystring" locationName:"FlowDefinitionArn" type:"string" required:"true"` // The total number of items to return. If the total number of available items // is more than the value specified in MaxResults, then a NextToken is returned // in the output. You can use this token to display the next page of results. MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"` // A token to display the next page of results. NextToken *string `location:"querystring" locationName:"NextToken" type:"string"` // Optional. The order for displaying results. Valid values: Ascending and Descending. SortOrder *string `location:"querystring" locationName:"SortOrder" type:"string" enum:"SortOrder"` // contains filtered or unexported fields }
func (ListHumanLoopsInput) GoString ¶
func (s ListHumanLoopsInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ListHumanLoopsInput) SetCreationTimeAfter ¶
func (s *ListHumanLoopsInput) SetCreationTimeAfter(v time.Time) *ListHumanLoopsInput
SetCreationTimeAfter sets the CreationTimeAfter field's value.
func (*ListHumanLoopsInput) SetCreationTimeBefore ¶
func (s *ListHumanLoopsInput) SetCreationTimeBefore(v time.Time) *ListHumanLoopsInput
SetCreationTimeBefore sets the CreationTimeBefore field's value.
func (*ListHumanLoopsInput) SetFlowDefinitionArn ¶
func (s *ListHumanLoopsInput) SetFlowDefinitionArn(v string) *ListHumanLoopsInput
SetFlowDefinitionArn sets the FlowDefinitionArn field's value.
func (*ListHumanLoopsInput) SetMaxResults ¶
func (s *ListHumanLoopsInput) SetMaxResults(v int64) *ListHumanLoopsInput
SetMaxResults sets the MaxResults field's value.
func (*ListHumanLoopsInput) SetNextToken ¶
func (s *ListHumanLoopsInput) SetNextToken(v string) *ListHumanLoopsInput
SetNextToken sets the NextToken field's value.
func (*ListHumanLoopsInput) SetSortOrder ¶
func (s *ListHumanLoopsInput) SetSortOrder(v string) *ListHumanLoopsInput
SetSortOrder sets the SortOrder field's value.
func (ListHumanLoopsInput) String ¶
func (s ListHumanLoopsInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ListHumanLoopsInput) Validate ¶
func (s *ListHumanLoopsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListHumanLoopsOutput ¶
type ListHumanLoopsOutput struct { // An array of objects that contain information about the human loops. // // HumanLoopSummaries is a required field HumanLoopSummaries []*HumanLoopSummary `type:"list" required:"true"` // A token to display the next page of results. NextToken *string `type:"string"` // contains filtered or unexported fields }
func (ListHumanLoopsOutput) GoString ¶
func (s ListHumanLoopsOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ListHumanLoopsOutput) SetHumanLoopSummaries ¶
func (s *ListHumanLoopsOutput) SetHumanLoopSummaries(v []*HumanLoopSummary) *ListHumanLoopsOutput
SetHumanLoopSummaries sets the HumanLoopSummaries field's value.
func (*ListHumanLoopsOutput) SetNextToken ¶
func (s *ListHumanLoopsOutput) SetNextToken(v string) *ListHumanLoopsOutput
SetNextToken sets the NextToken field's value.
func (ListHumanLoopsOutput) String ¶
func (s ListHumanLoopsOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ResourceNotFoundException ¶
type ResourceNotFoundException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` // contains filtered or unexported fields }
We couldn't find the requested resource. Check that your resources exists and were created in the same AWS Region as your request, and try your request again.
func (*ResourceNotFoundException) Code ¶
func (s *ResourceNotFoundException) Code() string
Code returns the exception type name.
func (*ResourceNotFoundException) Error ¶
func (s *ResourceNotFoundException) Error() string
func (ResourceNotFoundException) GoString ¶
func (s ResourceNotFoundException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ResourceNotFoundException) Message ¶
func (s *ResourceNotFoundException) Message() string
Message returns the exception's message.
func (*ResourceNotFoundException) OrigErr ¶
func (s *ResourceNotFoundException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*ResourceNotFoundException) RequestID ¶
func (s *ResourceNotFoundException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*ResourceNotFoundException) StatusCode ¶
func (s *ResourceNotFoundException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (ResourceNotFoundException) String ¶
func (s ResourceNotFoundException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ServiceQuotaExceededException ¶
type ServiceQuotaExceededException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` // contains filtered or unexported fields }
You exceeded your service quota. Service quotas, also referred to as limits, are the maximum number of service resources or operations for your AWS account. For a list of Amazon A2I service quotes, see Amazon Augmented AI Service Quotes (https://docs.aws.amazon.com/general/latest/gr/a2i.html). Delete some resources or request an increase in your service quota. You can request a quota increase using Service Quotas or the AWS Support Center. To request an increase, see AWS Service Quotas (https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html) in the AWS General Reference.
func (*ServiceQuotaExceededException) Code ¶
func (s *ServiceQuotaExceededException) Code() string
Code returns the exception type name.
func (*ServiceQuotaExceededException) Error ¶
func (s *ServiceQuotaExceededException) Error() string
func (ServiceQuotaExceededException) GoString ¶
func (s ServiceQuotaExceededException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ServiceQuotaExceededException) Message ¶
func (s *ServiceQuotaExceededException) Message() string
Message returns the exception's message.
func (*ServiceQuotaExceededException) OrigErr ¶
func (s *ServiceQuotaExceededException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*ServiceQuotaExceededException) RequestID ¶
func (s *ServiceQuotaExceededException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*ServiceQuotaExceededException) StatusCode ¶
func (s *ServiceQuotaExceededException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (ServiceQuotaExceededException) String ¶
func (s ServiceQuotaExceededException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type StartHumanLoopInput ¶
type StartHumanLoopInput struct { // Attributes of the specified data. Use DataAttributes to specify if your data // is free of personally identifiable information and/or free of adult content. DataAttributes *HumanLoopDataAttributes `type:"structure"` // The Amazon Resource Name (ARN) of the flow definition associated with this // human loop. // // FlowDefinitionArn is a required field FlowDefinitionArn *string `type:"string" required:"true"` // An object that contains information about the human loop. // // HumanLoopInput is a required field HumanLoopInput *HumanLoopInput `type:"structure" required:"true"` // The name of the human loop. // // HumanLoopName is a required field HumanLoopName *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (StartHumanLoopInput) GoString ¶
func (s StartHumanLoopInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*StartHumanLoopInput) SetDataAttributes ¶
func (s *StartHumanLoopInput) SetDataAttributes(v *HumanLoopDataAttributes) *StartHumanLoopInput
SetDataAttributes sets the DataAttributes field's value.
func (*StartHumanLoopInput) SetFlowDefinitionArn ¶
func (s *StartHumanLoopInput) SetFlowDefinitionArn(v string) *StartHumanLoopInput
SetFlowDefinitionArn sets the FlowDefinitionArn field's value.
func (*StartHumanLoopInput) SetHumanLoopInput ¶
func (s *StartHumanLoopInput) SetHumanLoopInput(v *HumanLoopInput) *StartHumanLoopInput
SetHumanLoopInput sets the HumanLoopInput field's value.
func (*StartHumanLoopInput) SetHumanLoopName ¶
func (s *StartHumanLoopInput) SetHumanLoopName(v string) *StartHumanLoopInput
SetHumanLoopName sets the HumanLoopName field's value.
func (StartHumanLoopInput) String ¶
func (s StartHumanLoopInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*StartHumanLoopInput) Validate ¶
func (s *StartHumanLoopInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type StartHumanLoopOutput ¶
type StartHumanLoopOutput struct { // The Amazon Resource Name (ARN) of the human loop. HumanLoopArn *string `type:"string"` // contains filtered or unexported fields }
func (StartHumanLoopOutput) GoString ¶
func (s StartHumanLoopOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*StartHumanLoopOutput) SetHumanLoopArn ¶
func (s *StartHumanLoopOutput) SetHumanLoopArn(v string) *StartHumanLoopOutput
SetHumanLoopArn sets the HumanLoopArn field's value.
func (StartHumanLoopOutput) String ¶
func (s StartHumanLoopOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type StopHumanLoopInput ¶
type StopHumanLoopInput struct { // The name of the human loop that you want to stop. // // HumanLoopName is a required field HumanLoopName *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (StopHumanLoopInput) GoString ¶
func (s StopHumanLoopInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*StopHumanLoopInput) SetHumanLoopName ¶
func (s *StopHumanLoopInput) SetHumanLoopName(v string) *StopHumanLoopInput
SetHumanLoopName sets the HumanLoopName field's value.
func (StopHumanLoopInput) String ¶
func (s StopHumanLoopInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*StopHumanLoopInput) Validate ¶
func (s *StopHumanLoopInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type StopHumanLoopOutput ¶
type StopHumanLoopOutput struct {
// contains filtered or unexported fields
}
func (StopHumanLoopOutput) GoString ¶
func (s StopHumanLoopOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (StopHumanLoopOutput) String ¶
func (s StopHumanLoopOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ThrottlingException ¶
type ThrottlingException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` // contains filtered or unexported fields }
You exceeded the maximum number of requests.
func (*ThrottlingException) Code ¶
func (s *ThrottlingException) Code() string
Code returns the exception type name.
func (*ThrottlingException) Error ¶
func (s *ThrottlingException) Error() string
func (ThrottlingException) GoString ¶
func (s ThrottlingException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ThrottlingException) Message ¶
func (s *ThrottlingException) Message() string
Message returns the exception's message.
func (*ThrottlingException) OrigErr ¶
func (s *ThrottlingException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*ThrottlingException) RequestID ¶
func (s *ThrottlingException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*ThrottlingException) StatusCode ¶
func (s *ThrottlingException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (ThrottlingException) String ¶
func (s ThrottlingException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ValidationException ¶
type ValidationException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` // contains filtered or unexported fields }
The request isn't valid. Check the syntax and try again.
func (*ValidationException) Code ¶
func (s *ValidationException) Code() string
Code returns the exception type name.
func (*ValidationException) Error ¶
func (s *ValidationException) Error() string
func (ValidationException) GoString ¶
func (s ValidationException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ValidationException) Message ¶
func (s *ValidationException) Message() string
Message returns the exception's message.
func (*ValidationException) OrigErr ¶
func (s *ValidationException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*ValidationException) RequestID ¶
func (s *ValidationException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*ValidationException) StatusCode ¶
func (s *ValidationException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (ValidationException) String ¶
func (s ValidationException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
Directories ¶
Path | Synopsis |
---|---|
Package augmentedairuntimeiface provides an interface to enable mocking the Amazon Augmented AI Runtime service client for testing your code.
|
Package augmentedairuntimeiface provides an interface to enable mocking the Amazon Augmented AI Runtime service client for testing your code. |