package s3shared
Import Path
github.com/aws/aws-sdk-go-v2/service/internal/s3shared (on go.dev)
Dependency Relation
imports 13 packages, and imported by 2 packages
Involved Source Files
arn_lookup.go
endpoint_error.go
go_module_metadata.go
host_id.go
metadata.go
metadata_retriever.go
resource_request.go
response_error.go
response_error_middleware.go
update_endpoint.go
xml_utils.go
Package-Level Type Names (total 13, in which 8 are exported)
ARNLookup is the initial middleware that looks up if an arn is provided.
This middleware is responsible for fetching ARN from a arnable field, and registering the ARN on
middleware context. This middleware must be executed before input validation step or any other
arn processing middleware.
GetARNValue takes in a input interface and returns a ptr to string and a bool
HandleInitialize handles the behavior of this initialize step
ID for the middleware
*ARNLookup : github.com/aws/smithy-go/middleware.InitializeMiddleware
*ARNLookup : github.com/aws/smithy-go/middleware.ider
ConfigurationError is used to denote a client configuration error
clientPartitionID string
clientRegion string
message string
origErr error
resource arn.Resource
Error returns the Configuration error string
OrigErr is the original error wrapped by Configuration Error
ConfigurationError : error
func NewClientConfiguredForAccelerateError(resource arn.Resource, clientPartitionID, clientRegion string, err error) ConfigurationError
func NewClientConfiguredForCrossRegionFIPSError(resource arn.Resource, clientPartitionID, clientRegion string, err error) ConfigurationError
func NewClientConfiguredForDualStackError(resource arn.Resource, clientPartitionID, clientRegion string, err error) ConfigurationError
func NewClientConfiguredForFIPSError(resource arn.Resource, clientPartitionID, clientRegion string, err error) ConfigurationError
func NewClientPartitionMismatchError(resource arn.Resource, clientPartitionID, clientRegion string, err error) ConfigurationError
func NewClientRegionMismatchError(resource arn.Resource, clientPartitionID, clientRegion string, err error) ConfigurationError
func NewFailedToResolveEndpointError(resource arn.Resource, clientPartitionID, clientRegion string, err error) ConfigurationError
func NewFIPSConfigurationError(resource arn.Resource, clientPartitionID, clientRegion string, err error) ConfigurationError
EnableDualstack represents middleware struct for enabling dualstack support
Deprecated: See EndpointResolverOptions' UseDualStackEndpoint support
DefaultServiceID is the service id prefix used in endpoint resolving
by default service-id is 's3' and 's3-control' for service s3, s3control.
UseDualstack indicates if dualstack endpoint resolving is to be enabled
HandleSerialize handles serializer middleware behavior when middleware is executed
ID returns the middleware ID.
*EnableDualstack : github.com/aws/smithy-go/middleware.SerializeMiddleware
*EnableDualstack : github.com/aws/smithy-go/middleware.ider
ErrorComponents represents the error response fields
that will be deserialized from an xml error response body
Code string
HostID string
Message string
RequestID string
func GetErrorResponseComponents(r io.Reader, options ErrorResponseDeserializerOptions) (ErrorComponents, error)
func GetUnwrappedErrorResponseComponents(r io.Reader) (ErrorComponents, error)
func GetWrappedErrorResponseComponents(r io.Reader) (ErrorComponents, error)
ErrorResponseDeserializerOptions represents error response deserializer options for s3 and s3-control service
IsWrappedWithErrorTag represents if error response's code, msg is wrapped within an
additional <Error> tag
StatusCode is status code of error response
UseStatusCode denotes if status code should be used to retrieve error code, msg
func GetErrorResponseComponents(r io.Reader, options ErrorResponseDeserializerOptions) (ErrorComponents, error)
InvalidARNError denotes the error for Invalid ARN
message string
origErr error
resource arn.Resource
Error returns the InvalidARN error string
OrigErr is the original error wrapped by Invalid ARN Error
InvalidARNError : error
func NewInvalidARNError(resource arn.Resource, err error) InvalidARNError
func NewInvalidARNWithFIPSError(resource arn.Resource, err error) InvalidARNError
func NewInvalidARNWithUnsupportedPartitionError(resource arn.Resource, err error) InvalidARNError
ResourceRequest represents an ARN resource and api request metadata
PartitionID is the resolved partition id for the provided request region
RequestRegion is the region configured on the request config
Resource arn.Resource
SigningRegion is the signing region resolved for the request
UseARNRegion indicates if client should use the region provided in an ARN resource
UseFIPS indicates if te client is configured for FIPS
ARN returns the resource ARN
AllowCrossRegion returns a bool value to denote if S3UseARNRegion flag is set
IsCrossPartition returns true if request is configured for region of another partition, than
the partition that resource ARN region resolves to. IsCrossPartition will not return an error,
if request is not configured with a specific partition id. This might happen if customer provides
custom endpoint url, but does not associate a partition id with it.
IsCrossRegion returns true if request signing region is not same as arn region
ResourceConfiguredForFIPS returns true if resource ARNs region is FIPS
Deprecated: FIPS will not be present in the ARN region
func github.com/aws/aws-sdk-go-v2/service/s3/internal/customizations.validateRegionForResourceRequest(resourceRequest ResourceRequest) error
ResponseError provides the HTTP centric error type wrapping the underlying error
with the HTTP response value and the deserialized RequestID.
HostID associated with response error
ResponseError *awshttp.ResponseError
RequestID associated with response error
ResponseError.ResponseError.Err error
ResponseError.ResponseError.Response *http.Response
As populates target and returns true if the type of target is a error type that
the ResponseError embeds, (e.g.S3 HTTP ResponseError)
Error returns the formatted error
HTTPResponse returns the HTTP response received from the service.
HTTPStatusCode returns the HTTP response status code received from the service.
ServiceHostID returns the host id associated with Response Error
ServiceRequestID returns the request id associated with Response Error
Unwrap returns the nested error if any, or nil.
*ResponseError : github.com/aws/aws-sdk-go-v2/service/s3.ResponseError
*ResponseError : error
Package-Level Functions (total 23, in which 22 are exported)
AddMetadataRetrieverMiddleware adds request id, host id retriever middleware
AddResponseErrorMiddleware adds response error wrapper middleware
GetARNResourceFromContext returns an ARN from context and a bool indicating
presence of ARN on ctx.
Scoped to stack values. Use github.com/aws/smithy-go/middleware#ClearStackValues
to clear all stack values.
GetErrorResponseComponents retrieves error components according to passed in options
GetHostIDMetadata retrieves the host id from middleware metadata
returns host id as string along with a boolean indicating presence of
hostId on middleware metadata.
GetUnwrappedErrorResponseComponents returns the error fields from an xml error response body
GetWrappedErrorResponseComponents returns the error fields from an xml error response body
in which error code, and message are wrapped by a <Error> tag
IsClonedInput retrieves if context key for cloned input was set.
If set, we can infer that the reuqest input was cloned previously.
Scoped to stack values. Use github.com/aws/smithy-go/middleware#ClearStackValues
to clear all stack values.
IsFIPS returns true if region is a fips pseudo-region
Deprecated: FIPS should be specified via EndpointOptions.
NewClientConfiguredForAccelerateError denotes client config error for unsupported S3 accelerate
NewClientConfiguredForCrossRegionFIPSError denotes client config error for unsupported cross region FIPS request
NewClientConfiguredForDualStackError denotes client config error for unsupported S3 Dual-stack
NewClientConfiguredForFIPSError denotes client config error for unsupported cross region FIPS access
NewClientPartitionMismatchError stub
NewClientRegionMismatchError denotes cross region access error
NewFailedToResolveEndpointError denotes endpoint resolving error
NewFIPSConfigurationError denotes a configuration error when a client or request is configured for FIPS
NewInvalidARNError denotes invalid arn error
NewInvalidARNWithFIPSError ARN not supported for FIPS region
Deprecated: FIPS will not appear in the ARN region component.
NewInvalidARNWithUnsupportedPartitionError ARN not supported for the target partition
SetClonedInputKey sets a key on context to denote input was cloned previously.
Scoped to stack values. Use github.com/aws/smithy-go/middleware#ClearStackValues
to clear all stack values.
SetHostIDMetadata sets the provided host id over middleware metadata
Package-Level Constants (total 4, none are exported)
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)