package types

import "github.com/aws/aws-sdk-go-v2/service/sagemakerruntime/types"

Index

Examples

Types

type InternalDependencyException

type InternalDependencyException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

Your request caused an exception with an internal dependency. Contact customer support.

func (*InternalDependencyException) Error

func (*InternalDependencyException) ErrorCode

func (e *InternalDependencyException) ErrorCode() string

func (*InternalDependencyException) ErrorFault

func (*InternalDependencyException) ErrorMessage

func (e *InternalDependencyException) ErrorMessage() string

type InternalFailure

type InternalFailure struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

An internal failure occurred.

func (*InternalFailure) Error

func (e *InternalFailure) Error() string

func (*InternalFailure) ErrorCode

func (e *InternalFailure) ErrorCode() string

func (*InternalFailure) ErrorFault

func (e *InternalFailure) ErrorFault() smithy.ErrorFault

func (*InternalFailure) ErrorMessage

func (e *InternalFailure) ErrorMessage() string

type InternalStreamFailure

type InternalStreamFailure struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

The stream processing failed because of an unknown error, exception or failure. Try your request again.

func (*InternalStreamFailure) Error

func (e *InternalStreamFailure) Error() string

func (*InternalStreamFailure) ErrorCode

func (e *InternalStreamFailure) ErrorCode() string

func (*InternalStreamFailure) ErrorFault

func (e *InternalStreamFailure) ErrorFault() smithy.ErrorFault

func (*InternalStreamFailure) ErrorMessage

func (e *InternalStreamFailure) ErrorMessage() string

type ModelError

type ModelError struct {
	Message *string

	ErrorCodeOverride *string

	OriginalStatusCode *int32
	OriginalMessage    *string
	LogStreamArn       *string
	// contains filtered or unexported fields
}

Model (owned by the customer in the container) returned 4xx or 5xx error code.

func (*ModelError) Error

func (e *ModelError) Error() string

func (*ModelError) ErrorCode

func (e *ModelError) ErrorCode() string

func (*ModelError) ErrorFault

func (e *ModelError) ErrorFault() smithy.ErrorFault

func (*ModelError) ErrorMessage

func (e *ModelError) ErrorMessage() string

type ModelNotReadyException

type ModelNotReadyException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

Either a serverless endpoint variant's resources are still being provisioned, or a multi-model endpoint is still downloading or loading the target model. Wait and try your request again.

func (*ModelNotReadyException) Error

func (e *ModelNotReadyException) Error() string

func (*ModelNotReadyException) ErrorCode

func (e *ModelNotReadyException) ErrorCode() string

func (*ModelNotReadyException) ErrorFault

func (e *ModelNotReadyException) ErrorFault() smithy.ErrorFault

func (*ModelNotReadyException) ErrorMessage

func (e *ModelNotReadyException) ErrorMessage() string

type ModelStreamError

type ModelStreamError struct {
	Message *string

	ErrorCodeOverride *string

	ErrorCode_ *string
	// contains filtered or unexported fields
}

An error occurred while streaming the response body. This error can have the following error codes: ModelInvocationTimeExceeded The model failed to finish sending the response within the timeout period allowed by Amazon SageMaker. StreamBroken The Transmission Control Protocol (TCP) connection between the client and the model was reset or closed.

func (*ModelStreamError) Error

func (e *ModelStreamError) Error() string

func (*ModelStreamError) ErrorCode

func (e *ModelStreamError) ErrorCode() string

func (*ModelStreamError) ErrorFault

func (e *ModelStreamError) ErrorFault() smithy.ErrorFault

func (*ModelStreamError) ErrorMessage

func (e *ModelStreamError) ErrorMessage() string

type PayloadPart

type PayloadPart struct {

	// A blob that contains part of the response for your streaming inference request.
	Bytes []byte
	// contains filtered or unexported fields
}

A wrapper for pieces of the payload that's returned in response to a streaming inference request. A streaming inference response consists of one or more payload parts.

type ResponseStream

type ResponseStream interface {
	// contains filtered or unexported methods
}

A stream of payload parts. Each part contains a portion of the response for a streaming inference request.

The following types satisfy this interface:

ResponseStreamMemberPayloadPart
Example (OutputUsage)

Code:play 

// Code generated by smithy-go-codegen DO NOT EDIT.

package main

import (
	"fmt"
	"github.com/aws/aws-sdk-go-v2/service/sagemakerruntime/types"
)

func main() {
	var union types.ResponseStream
	// type switches can be used to check the union value
	switch v := union.(type) {
	case *types.ResponseStreamMemberPayloadPart:
		_ = v.Value // Value is types.PayloadPart

	case *types.UnknownUnionMember:
		fmt.Println("unknown tag:", v.Tag)

	default:
		fmt.Println("union is nil or unknown type")

	}
}

var _ *types.PayloadPart

type ResponseStreamMemberPayloadPart

type ResponseStreamMemberPayloadPart struct {
	Value PayloadPart
	// contains filtered or unexported fields
}

A wrapper for pieces of the payload that's returned in response to a streaming inference request. A streaming inference response consists of one or more payload parts.

type ServiceUnavailable

type ServiceUnavailable struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

The service is unavailable. Try your call again.

func (*ServiceUnavailable) Error

func (e *ServiceUnavailable) Error() string

func (*ServiceUnavailable) ErrorCode

func (e *ServiceUnavailable) ErrorCode() string

func (*ServiceUnavailable) ErrorFault

func (e *ServiceUnavailable) ErrorFault() smithy.ErrorFault

func (*ServiceUnavailable) ErrorMessage

func (e *ServiceUnavailable) ErrorMessage() string

type UnknownUnionMember

type UnknownUnionMember struct {
	Tag   string
	Value []byte
	// contains filtered or unexported fields
}

UnknownUnionMember is returned when a union member is returned over the wire, but has an unknown tag.

type ValidationError

type ValidationError struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

Inspect your request and try again.

func (*ValidationError) Error

func (e *ValidationError) Error() string

func (*ValidationError) ErrorCode

func (e *ValidationError) ErrorCode() string

func (*ValidationError) ErrorFault

func (e *ValidationError) ErrorFault() smithy.ErrorFault

func (*ValidationError) ErrorMessage

func (e *ValidationError) ErrorMessage() string

Source Files

errors.go types.go

Version
v1.22.0
Published
Oct 24, 2023
Platform
js/wasm
Imports
3 packages
Last checked
57 minutes ago

Tools for package owners.