Documentation ¶
Index ¶
- func GetSignerVersion(ctx context.Context) (v string)
- func RegisterSigningMiddleware(stack *middleware.Stack, signingMiddleware *SignHTTPRequestMiddleware) (err error)
- func SetSignerVersion(ctx context.Context, version string) context.Context
- func UpdateEndpoint(stack *middleware.Stack, options UpdateEndpointOptions) error
- type EndpointResolver
- type SignHTTPRequestMiddleware
- type SignHTTPRequestMiddlewareOptions
- type UpdateEndpointOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSignerVersion ¶
GetSignerVersion retrieves the signer version to use for signing
Scoped to stack values. Use github.com/aws/smithy-go/middleware#ClearStackValues to clear all stack values.
func RegisterSigningMiddleware ¶
func RegisterSigningMiddleware(stack *middleware.Stack, signingMiddleware *SignHTTPRequestMiddleware) (err error)
RegisterSigningMiddleware registers the wrapper signing middleware to the stack. If a signing middleware is already present, this provided middleware will be swapped. Otherwise the middleware will be added at the tail of the finalize step.
func SetSignerVersion ¶
SetSignerVersion sets the signer version to be used for signing the request
Scoped to stack values. Use github.com/aws/smithy-go/middleware#ClearStackValues to clear all stack values.
func UpdateEndpoint ¶
func UpdateEndpoint(stack *middleware.Stack, options UpdateEndpointOptions) error
UpdateEndpoint is a middleware that handles routing an EventBridge operation to a multi-region endpoint.
Types ¶
type EndpointResolver ¶
type EndpointResolver interface {
ResolveEndpoint(region string, options endpoints.Options) (aws.Endpoint, error)
}
EndpointResolver interface for resolving service endpoints.
type SignHTTPRequestMiddleware ¶
type SignHTTPRequestMiddleware struct {
// contains filtered or unexported fields
}
SignHTTPRequestMiddleware is a `FinalizeMiddleware` implementation to select HTTP Signing method
func NewSignHTTPRequestMiddleware ¶
func NewSignHTTPRequestMiddleware(options SignHTTPRequestMiddlewareOptions) *SignHTTPRequestMiddleware
NewSignHTTPRequestMiddleware constructs a SignHTTPRequestMiddleware using the given Signer for signing requests
func (*SignHTTPRequestMiddleware) HandleFinalize ¶
func (s *SignHTTPRequestMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( out middleware.FinalizeOutput, metadata middleware.Metadata, err error, )
HandleFinalize will take the provided input and sign the request using the SigV4 authentication scheme
func (*SignHTTPRequestMiddleware) ID ¶
func (s *SignHTTPRequestMiddleware) ID() string
ID is the SignHTTPRequestMiddleware identifier
type SignHTTPRequestMiddlewareOptions ¶
type SignHTTPRequestMiddlewareOptions struct { // credential provider CredentialsProvider aws.CredentialsProvider // log signing LogSigning bool // v4 signer V4Signer v4.HTTPSigner //v4a signer V4aSigner v4a.HTTPSigner }
SignHTTPRequestMiddlewareOptions is the configuration options for the SignHTTPRequestMiddleware middleware.
type UpdateEndpointOptions ¶
type UpdateEndpointOptions struct { GetEndpointIDFromInput func(interface{}) (*string, bool) EndpointResolver EndpointResolver EndpointResolverOptions endpoints.Options }
UpdateEndpointOptions provides configuration options for the UpdateEndpoint middleware.