Versions in this module Expand all Collapse all v1 v1.35.5 Feb 21, 2023 Changes in this version + const CanceledErrorCode + const ErrCodeInvalidPresignExpire + const ErrCodeRead + const ErrCodeRequestError + const ErrCodeResponseTimeout + const ErrCodeSerialization + const HandlerResponseTimeout + const InvalidParameterErrCode + const ParamFormatErrCode + const ParamMaxLenErrCode + const ParamMinLenErrCode + const ParamMinValueErrCode + const ParamRequiredErrCode + const WaiterResourceNotReadyErrorCode + var NoBody = http.NoBody + func AddToUserAgent(r *Request, s string) + func HandlerListLogItem(item HandlerListRunItem) bool + func HandlerListStopOnError(item HandlerListRunItem) bool + func IsErrorExpiredCreds(err error) bool + func IsErrorRetryable(err error) bool + func IsErrorThrottle(err error) bool + func MakeAddToUserAgentFreeFormHandler(s string) func(*Request) + func MakeAddToUserAgentHandler(name, version string, extra ...string) func(*Request) + func SanitizeHostForHeader(r *http.Request) + func WithRetryer(cfg *aws.Config, retryer Retryer) *aws.Config + type ErrInvalidParam interface + AddNestedContext func(string) + Field func() string + SetContext func(string) + type ErrInvalidParams struct + Context string + func (e *ErrInvalidParams) Add(err ErrInvalidParam) + func (e *ErrInvalidParams) AddNested(nestedCtx string, nested ErrInvalidParams) + func (e ErrInvalidParams) Code() string + func (e ErrInvalidParams) Error() string + func (e ErrInvalidParams) Len() int + func (e ErrInvalidParams) Message() string + func (e ErrInvalidParams) OrigErr() error + func (e ErrInvalidParams) OrigErrs() []error + type ErrParamFormat struct + func NewErrParamFormat(field string, format, value string) *ErrParamFormat + func (e *ErrParamFormat) AddNestedContext(ctx string) + func (e *ErrParamFormat) Code() string + func (e *ErrParamFormat) Error() string + func (e *ErrParamFormat) Field() string + func (e *ErrParamFormat) Format() string + func (e *ErrParamFormat) Message() string + func (e *ErrParamFormat) OrigErr() error + func (e *ErrParamFormat) SetContext(ctx string) + type ErrParamMaxLen struct + func NewErrParamMaxLen(field string, max int, value string) *ErrParamMaxLen + func (e *ErrParamMaxLen) AddNestedContext(ctx string) + func (e *ErrParamMaxLen) Code() string + func (e *ErrParamMaxLen) Error() string + func (e *ErrParamMaxLen) Field() string + func (e *ErrParamMaxLen) MaxLen() int + func (e *ErrParamMaxLen) Message() string + func (e *ErrParamMaxLen) OrigErr() error + func (e *ErrParamMaxLen) SetContext(ctx string) + type ErrParamMinLen struct + func NewErrParamMinLen(field string, min int) *ErrParamMinLen + func (e *ErrParamMinLen) AddNestedContext(ctx string) + func (e *ErrParamMinLen) Code() string + func (e *ErrParamMinLen) Error() string + func (e *ErrParamMinLen) Field() string + func (e *ErrParamMinLen) Message() string + func (e *ErrParamMinLen) MinLen() int + func (e *ErrParamMinLen) OrigErr() error + func (e *ErrParamMinLen) SetContext(ctx string) + type ErrParamMinValue struct + func NewErrParamMinValue(field string, min float64) *ErrParamMinValue + func (e *ErrParamMinValue) AddNestedContext(ctx string) + func (e *ErrParamMinValue) Code() string + func (e *ErrParamMinValue) Error() string + func (e *ErrParamMinValue) Field() string + func (e *ErrParamMinValue) Message() string + func (e *ErrParamMinValue) MinValue() float64 + func (e *ErrParamMinValue) OrigErr() error + func (e *ErrParamMinValue) SetContext(ctx string) + type ErrParamRequired struct + func NewErrParamRequired(field string) *ErrParamRequired + func (e *ErrParamRequired) AddNestedContext(ctx string) + func (e *ErrParamRequired) Code() string + func (e *ErrParamRequired) Error() string + func (e *ErrParamRequired) Field() string + func (e *ErrParamRequired) Message() string + func (e *ErrParamRequired) OrigErr() error + func (e *ErrParamRequired) SetContext(ctx string) + type HandlerList struct + AfterEachFn func(item HandlerListRunItem) bool + func (l *HandlerList) Clear() + func (l *HandlerList) Len() int + func (l *HandlerList) PushBack(f func(*Request)) + func (l *HandlerList) PushBackNamed(n NamedHandler) + func (l *HandlerList) PushFront(f func(*Request)) + func (l *HandlerList) PushFrontNamed(n NamedHandler) + func (l *HandlerList) Remove(n NamedHandler) + func (l *HandlerList) RemoveByName(name string) + func (l *HandlerList) Run(r *Request) + func (l *HandlerList) SetBackNamed(n NamedHandler) + func (l *HandlerList) SetFrontNamed(n NamedHandler) + func (l *HandlerList) Swap(name string, replace NamedHandler) bool + func (l *HandlerList) SwapNamed(n NamedHandler) (swapped bool) + type HandlerListRunItem struct + Handler NamedHandler + Index int + Request *Request + type Handlers struct + AfterRetry HandlerList + Build HandlerList + BuildStream HandlerList + Complete HandlerList + CompleteAttempt HandlerList + Retry HandlerList + Send HandlerList + Sign HandlerList + Unmarshal HandlerList + UnmarshalError HandlerList + UnmarshalMeta HandlerList + UnmarshalStream HandlerList + Validate HandlerList + ValidateResponse HandlerList + func (h *Handlers) Clear() + func (h *Handlers) Copy() Handlers + func (h *Handlers) IsEmpty() bool + type NamedHandler struct + Fn func(*Request) + Name string + type Operation struct + BeforePresignFn func(r *Request) error + HTTPMethod string + HTTPPath string + Name string + type Option func(*Request) + func WithAppendUserAgent(s string) Option + func WithGetResponseHeader(key string, val *string) Option + func WithGetResponseHeaders(headers *http.Header) Option + func WithLogLevel(l aws.LogLevelType) Option + func WithResponseReadTimeout(duration time.Duration) Option + func WithSetRequestHeaders(h map[string]string) Option + type Pagination struct + EndPageOnSameToken bool + NewRequest func() (*Request, error) + func (p *Pagination) Err() error + func (p *Pagination) HasNextPage() bool + func (p *Pagination) Next() bool + func (p *Pagination) Page() interface{} + type Paginator struct + InputTokens []string + LimitToken string + OutputTokens []string + TruncationToken string + type Request struct + AttemptTime time.Time + Body io.ReadSeeker + BodyStart int64 + ClientInfo metadata.ClientInfo + Config aws.Config + Data interface{} + DisableFollowRedirects bool + Error error + ExpireTime time.Duration + HTTPRequest *http.Request + HTTPResponse *http.Response + Handlers Handlers + LastSignedAt time.Time + NotHoist bool + Operation *Operation + Params interface{} + RequestID string + RetryCount int + RetryDelay time.Duration + RetryErrorCodes []string + Retryable *bool + SignedHeaderVals http.Header + ThrottleErrorCodes []string + Time time.Time + func New(cfg aws.Config, clientInfo metadata.ClientInfo, handlers Handlers, ...) *Request + func (r *Request) ApplyOptions(opts ...Option) + func (r *Request) Build() error + func (r *Request) Context() aws.Context + func (r *Request) DataFilled() bool + func (r *Request) EachPage(fn func(data interface{}, isLastPage bool) (shouldContinue bool)) error + func (r *Request) GetBody() io.ReadSeeker + func (r *Request) HasNextPage() bool + func (r *Request) IsErrorExpired() bool + func (r *Request) IsErrorRetryable() bool + func (r *Request) IsErrorThrottle() bool + func (r *Request) IsPresigned() bool + func (r *Request) NextPage() *Request + func (r *Request) ParamsFilled() bool + func (r *Request) Presign(expire time.Duration) (string, error) + func (r *Request) PresignRequest(expire time.Duration) (string, http.Header, error) + func (r *Request) ResetBody() + func (r *Request) Send() error + func (r *Request) SetBufferBody(buf []byte) + func (r *Request) SetContext(ctx aws.Context) + func (r *Request) SetReaderBody(reader io.ReadSeeker) + func (r *Request) SetStreamingBody(reader io.ReadCloser) + func (r *Request) SetStringBody(s string) + func (r *Request) Sign() error + func (r *Request) WillRetry() bool + type Retryer interface + MaxRetries func() int + RetryRules func(*Request) time.Duration + ShouldRetry func(*Request) bool + type Validator interface + Validate func() error + type Waiter struct + Acceptors []WaiterAcceptor + Delay WaiterDelay + Logger aws.Logger + MaxAttempts int + Name string + NewRequest func([]Option) (*Request, error) + RequestOptions []Option + SleepWithContext func(aws.Context, time.Duration) error + func (w *Waiter) ApplyOptions(opts ...WaiterOption) + func (w Waiter) WaitWithContext(ctx aws.Context) error + type WaiterAcceptor struct + Argument string + Expected interface{} + Matcher WaiterMatchMode + State WaiterState + type WaiterDelay func(attempt int) time.Duration + func ConstantWaiterDelay(delay time.Duration) WaiterDelay + type WaiterMatchMode int + const ErrorWaiterMatch + const PathAllWaiterMatch + const PathAnyWaiterMatch + const PathListWaiterMatch + const PathWaiterMatch + const StatusWaiterMatch + func (m WaiterMatchMode) String() string + type WaiterOption func(*Waiter) + func WithWaiterDelay(delayer WaiterDelay) WaiterOption + func WithWaiterLogger(logger aws.Logger) WaiterOption + func WithWaiterMaxAttempts(max int) WaiterOption + func WithWaiterRequestOptions(opts ...Option) WaiterOption + type WaiterState int + const FailureWaiterState + const RetryWaiterState + const SuccessWaiterState + func (s WaiterState) String() string