types

package
v1.27.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InternalDependencyException added in v1.11.0

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 added in v1.11.0

func (*InternalDependencyException) ErrorCode added in v1.11.0

func (e *InternalDependencyException) ErrorCode() string

func (*InternalDependencyException) ErrorFault added in v1.11.0

func (*InternalDependencyException) ErrorMessage added in v1.11.0

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 added in v1.21.0

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 added in v1.21.0

func (e *InternalStreamFailure) Error() string

func (*InternalStreamFailure) ErrorCode added in v1.21.0

func (e *InternalStreamFailure) ErrorCode() string

func (*InternalStreamFailure) ErrorFault added in v1.21.0

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

func (*InternalStreamFailure) ErrorMessage added in v1.21.0

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 added in v1.11.0

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 added in v1.11.0

func (e *ModelNotReadyException) Error() string

func (*ModelNotReadyException) ErrorCode added in v1.11.0

func (e *ModelNotReadyException) ErrorCode() string

func (*ModelNotReadyException) ErrorFault added in v1.11.0

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

func (*ModelNotReadyException) ErrorMessage added in v1.11.0

func (e *ModelNotReadyException) ErrorMessage() string

type ModelStreamError added in v1.21.0

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 added in v1.21.0

func (e *ModelStreamError) Error() string

func (*ModelStreamError) ErrorCode added in v1.21.0

func (e *ModelStreamError) ErrorCode() string

func (*ModelStreamError) ErrorFault added in v1.21.0

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

func (*ModelStreamError) ErrorMessage added in v1.21.0

func (e *ModelStreamError) ErrorMessage() string

type PayloadPart added in v1.21.0

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 added in v1.21.0

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 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
Output:

type ResponseStreamMemberPayloadPart added in v1.21.0

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 added in v1.21.0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL