Documentation ¶
Index ¶
- type AccessDeniedException
- type InternalServerException
- type ModelErrorException
- type ModelNotReadyException
- type ModelStreamErrorException
- type ModelTimeoutException
- type PayloadPart
- type ResourceNotFoundException
- type ResponseStream
- type ResponseStreamMemberChunk
- type ServiceQuotaExceededException
- type ThrottlingException
- type Trace
- type UnknownUnionMember
- type ValidationException
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessDeniedException ¶
type AccessDeniedException struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The request is denied because of missing access permissions.
func (*AccessDeniedException) Error ¶
func (e *AccessDeniedException) Error() string
func (*AccessDeniedException) ErrorCode ¶
func (e *AccessDeniedException) ErrorCode() string
func (*AccessDeniedException) ErrorFault ¶
func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault
func (*AccessDeniedException) ErrorMessage ¶
func (e *AccessDeniedException) ErrorMessage() string
type InternalServerException ¶
type InternalServerException struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
An internal server error occurred. Retry your request.
func (*InternalServerException) Error ¶
func (e *InternalServerException) Error() string
func (*InternalServerException) ErrorCode ¶
func (e *InternalServerException) ErrorCode() string
func (*InternalServerException) ErrorFault ¶
func (e *InternalServerException) ErrorFault() smithy.ErrorFault
func (*InternalServerException) ErrorMessage ¶
func (e *InternalServerException) ErrorMessage() string
type ModelErrorException ¶
type ModelErrorException struct { Message *string ErrorCodeOverride *string OriginalStatusCode *int32 ResourceName *string // contains filtered or unexported fields }
The request failed due to an error while processing the model.
func (*ModelErrorException) Error ¶
func (e *ModelErrorException) Error() string
func (*ModelErrorException) ErrorCode ¶
func (e *ModelErrorException) ErrorCode() string
func (*ModelErrorException) ErrorFault ¶
func (e *ModelErrorException) ErrorFault() smithy.ErrorFault
func (*ModelErrorException) ErrorMessage ¶
func (e *ModelErrorException) ErrorMessage() string
type ModelNotReadyException ¶
type ModelNotReadyException struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The model specified in the request is not ready to serve inference requests.
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 ModelStreamErrorException ¶
type ModelStreamErrorException struct { Message *string ErrorCodeOverride *string OriginalStatusCode *int32 OriginalMessage *string // contains filtered or unexported fields }
An error occurred while streaming the response. Retry your request.
func (*ModelStreamErrorException) Error ¶
func (e *ModelStreamErrorException) Error() string
func (*ModelStreamErrorException) ErrorCode ¶
func (e *ModelStreamErrorException) ErrorCode() string
func (*ModelStreamErrorException) ErrorFault ¶
func (e *ModelStreamErrorException) ErrorFault() smithy.ErrorFault
func (*ModelStreamErrorException) ErrorMessage ¶
func (e *ModelStreamErrorException) ErrorMessage() string
type ModelTimeoutException ¶
type ModelTimeoutException struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The request took too long to process. Processing time exceeded the model timeout length.
func (*ModelTimeoutException) Error ¶
func (e *ModelTimeoutException) Error() string
func (*ModelTimeoutException) ErrorCode ¶
func (e *ModelTimeoutException) ErrorCode() string
func (*ModelTimeoutException) ErrorFault ¶
func (e *ModelTimeoutException) ErrorFault() smithy.ErrorFault
func (*ModelTimeoutException) ErrorMessage ¶
func (e *ModelTimeoutException) ErrorMessage() string
type PayloadPart ¶
type PayloadPart struct { // Base64-encoded bytes of payload data. Bytes []byte // contains filtered or unexported fields }
Payload content included in the response.
type ResourceNotFoundException ¶
type ResourceNotFoundException struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The specified resource ARN was not found. Check the ARN and try your request again.
func (*ResourceNotFoundException) Error ¶
func (e *ResourceNotFoundException) Error() string
func (*ResourceNotFoundException) ErrorCode ¶
func (e *ResourceNotFoundException) ErrorCode() string
func (*ResourceNotFoundException) ErrorFault ¶
func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault
func (*ResourceNotFoundException) ErrorMessage ¶
func (e *ResourceNotFoundException) ErrorMessage() string
type ResponseStream ¶
type ResponseStream interface {
// contains filtered or unexported methods
}
Definition of content in the response stream.
The following types satisfy this interface:
ResponseStreamMemberChunk
Example (OutputUsage) ¶
// Code generated by smithy-go-codegen DO NOT EDIT. package main import ( "fmt" "github.com/aws/aws-sdk-go-v2/service/bedrockruntime/types" ) func main() { var union types.ResponseStream // type switches can be used to check the union value switch v := union.(type) { case *types.ResponseStreamMemberChunk: _ = 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 ResponseStreamMemberChunk ¶
type ResponseStreamMemberChunk struct { Value PayloadPart // contains filtered or unexported fields }
Content included in the response.
type ServiceQuotaExceededException ¶
type ServiceQuotaExceededException struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The number of requests exceeds the service quota. Resubmit your request later.
func (*ServiceQuotaExceededException) Error ¶
func (e *ServiceQuotaExceededException) Error() string
func (*ServiceQuotaExceededException) ErrorCode ¶
func (e *ServiceQuotaExceededException) ErrorCode() string
func (*ServiceQuotaExceededException) ErrorFault ¶
func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault
func (*ServiceQuotaExceededException) ErrorMessage ¶
func (e *ServiceQuotaExceededException) ErrorMessage() string
type ThrottlingException ¶
type ThrottlingException struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The number of requests exceeds the limit. Resubmit your request later.
func (*ThrottlingException) Error ¶
func (e *ThrottlingException) Error() string
func (*ThrottlingException) ErrorCode ¶
func (e *ThrottlingException) ErrorCode() string
func (*ThrottlingException) ErrorFault ¶
func (e *ThrottlingException) ErrorFault() smithy.ErrorFault
func (*ThrottlingException) ErrorMessage ¶
func (e *ThrottlingException) 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 ValidationException ¶
type ValidationException struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
Input validation failed. Check your request parameters and retry the request.
func (*ValidationException) Error ¶
func (e *ValidationException) Error() string
func (*ValidationException) ErrorCode ¶
func (e *ValidationException) ErrorCode() string
func (*ValidationException) ErrorFault ¶
func (e *ValidationException) ErrorFault() smithy.ErrorFault
func (*ValidationException) ErrorMessage ¶
func (e *ValidationException) ErrorMessage() string