amazonka-core-2.0: Core data types and functionality for Amazonka libraries.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityprovisional
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Sign.V4.Base

Description

 
Synopsis

Documentation

newtype Tag (s :: Symbol) a Source #

Used to tag provenance. This allows keeping the same layout as the signing documentation, passing ByteStrings everywhere, with some type guarantees.

Data.Tagged is not used for no reason other than the dependency, syntactic length, and the ToByteString instance.

Constructors

Tag 

Fields

Instances

Instances details
ToByteString CredentialScope Source # 
Instance details

Defined in Amazonka.Sign.V4.Base

ToByteString (Tag s ByteString) Source # 
Instance details

Defined in Amazonka.Sign.V4.Base

ToLog (Tag s ByteString) Source # 
Instance details

Defined in Amazonka.Sign.V4.Base

Show a => Show (Tag s a) Source # 
Instance details

Defined in Amazonka.Sign.V4.Base

Methods

showsPrec :: Int -> Tag s a -> ShowS #

show :: Tag s a -> String #

showList :: [Tag s a] -> ShowS #

type Hash = Tag "body-digest" ByteString Source #

type StringToSign = Tag "string-to-sign" ByteString Source #

type Credential = Tag "credential" ByteString Source #

type CredentialScope = Tag "credential-scope" [ByteString] Source #

type CanonicalRequest = Tag "canonical-request" ByteString Source #

type CanonicalHeaders = Tag "canonical-headers" ByteString Source #

type CanonicalQuery = Tag "canonical-query" ByteString Source #

type SignedHeaders = Tag "signed-headers" ByteString Source #

type NormalisedHeaders = Tag "normalised-headers" [(ByteString, ByteString)] Source #

type Method = Tag "method" ByteString Source #

type CanonicalPath = Tag "canonical-path" ByteString Source #

type Path = Tag "path" ByteString Source #

type Signature = Tag "signature" ByteString Source #

signRequest Source #

Arguments

:: V4

Pre-signRequestd signing metadata.

-> RequestBody

The request body.

-> (ClientRequest -> ClientRequest)

Insert authentication information.

-> Signed a 

fullRawPath :: Region -> Request a -> RawPath Source #

The complete raw path for a request, including any $sel:basePath:Endpoint on the endpoint.