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.Types

Description

 
Synopsis

Authentication

Credentials

newtype AccessKey Source #

An access key ID.

For example: AKIAIOSFODNN7EXAMPLE

See: Understanding and Getting Your Security Credentials.

Constructors

AccessKey ByteString 

Instances

Instances details
FromJSON AccessKey Source # 
Instance details

Defined in Amazonka.Types

ToJSON AccessKey Source # 
Instance details

Defined in Amazonka.Types

ToByteString AccessKey Source # 
Instance details

Defined in Amazonka.Types

ToLog AccessKey Source # 
Instance details

Defined in Amazonka.Types

ToQuery AccessKey Source # 
Instance details

Defined in Amazonka.Types

FromText AccessKey Source # 
Instance details

Defined in Amazonka.Types

ToText AccessKey Source # 
Instance details

Defined in Amazonka.Types

FromXML AccessKey Source # 
Instance details

Defined in Amazonka.Types

ToXML AccessKey Source # 
Instance details

Defined in Amazonka.Types

Methods

toXML :: AccessKey -> XML Source #

IsString AccessKey Source # 
Instance details

Defined in Amazonka.Types

Generic AccessKey Source # 
Instance details

Defined in Amazonka.Types

Associated Types

type Rep AccessKey :: Type -> Type #

Read AccessKey Source # 
Instance details

Defined in Amazonka.Types

Show AccessKey Source # 
Instance details

Defined in Amazonka.Types

NFData AccessKey Source # 
Instance details

Defined in Amazonka.Types

Methods

rnf :: AccessKey -> () #

Eq AccessKey Source # 
Instance details

Defined in Amazonka.Types

Hashable AccessKey Source # 
Instance details

Defined in Amazonka.Types

type Rep AccessKey Source # 
Instance details

Defined in Amazonka.Types

type Rep AccessKey = D1 ('MetaData "AccessKey" "Amazonka.Types" "amazonka-core-2.0-BFuA7FRvuklLoYhn4b6A6p" 'True) (C1 ('MetaCons "AccessKey" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))

newtype SecretKey Source #

Secret access key credential.

For example: wJalrXUtnFEMIK7MDENGbPxRfiCYEXAMPLEKE

See: Understanding and Getting Your Security Credentials.

Constructors

SecretKey ByteString 

Instances

Instances details
FromJSON SecretKey Source # 
Instance details

Defined in Amazonka.Types

ToJSON SecretKey Source # 
Instance details

Defined in Amazonka.Types

ToByteString SecretKey Source # 
Instance details

Defined in Amazonka.Types

FromText SecretKey Source # 
Instance details

Defined in Amazonka.Types

ToText SecretKey Source # 
Instance details

Defined in Amazonka.Types

FromXML SecretKey Source # 
Instance details

Defined in Amazonka.Types

ToXML SecretKey Source # 
Instance details

Defined in Amazonka.Types

Methods

toXML :: SecretKey -> XML Source #

IsString SecretKey Source # 
Instance details

Defined in Amazonka.Types

Generic SecretKey Source # 
Instance details

Defined in Amazonka.Types

Associated Types

type Rep SecretKey :: Type -> Type #

NFData SecretKey Source # 
Instance details

Defined in Amazonka.Types

Methods

rnf :: SecretKey -> () #

Eq SecretKey Source # 
Instance details

Defined in Amazonka.Types

Hashable SecretKey Source # 
Instance details

Defined in Amazonka.Types

type Rep SecretKey Source # 
Instance details

Defined in Amazonka.Types

type Rep SecretKey = D1 ('MetaData "SecretKey" "Amazonka.Types" "amazonka-core-2.0-BFuA7FRvuklLoYhn4b6A6p" 'True) (C1 ('MetaCons "SecretKey" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))

newtype SessionToken Source #

A session token used by STS to temporarily authorise access to an AWS resource.

See: Temporary Security Credentials.

Constructors

SessionToken ByteString 

Instances

Instances details
FromJSON SessionToken Source # 
Instance details

Defined in Amazonka.Types

ToJSON SessionToken Source # 
Instance details

Defined in Amazonka.Types

ToByteString SessionToken Source # 
Instance details

Defined in Amazonka.Types

FromText SessionToken Source # 
Instance details

Defined in Amazonka.Types

ToText SessionToken Source # 
Instance details

Defined in Amazonka.Types

FromXML SessionToken Source # 
Instance details

Defined in Amazonka.Types

ToXML SessionToken Source # 
Instance details

Defined in Amazonka.Types

IsString SessionToken Source # 
Instance details

Defined in Amazonka.Types

Generic SessionToken Source # 
Instance details

Defined in Amazonka.Types

Associated Types

type Rep SessionToken :: Type -> Type #

NFData SessionToken Source # 
Instance details

Defined in Amazonka.Types

Methods

rnf :: SessionToken -> () #

Eq SessionToken Source # 
Instance details

Defined in Amazonka.Types

Hashable SessionToken Source # 
Instance details

Defined in Amazonka.Types

type Rep SessionToken Source # 
Instance details

Defined in Amazonka.Types

type Rep SessionToken = D1 ('MetaData "SessionToken" "Amazonka.Types" "amazonka-core-2.0-BFuA7FRvuklLoYhn4b6A6p" 'True) (C1 ('MetaCons "SessionToken" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))

Optics

Environment

data Auth Source #

An authorisation environment containing AWS credentials, and potentially a reference which can be refreshed out-of-band as temporary credentials expire.

Instances

Instances details
ToLog Auth Source # 
Instance details

Defined in Amazonka.Types

withAuth :: MonadIO m => Auth -> (AuthEnv -> m a) -> m a Source #

data AuthEnv Source #

The AuthN/AuthZ credential environment.

Instances

Instances details
FromJSON AuthEnv Source # 
Instance details

Defined in Amazonka.Types

ToLog AuthEnv Source # 
Instance details

Defined in Amazonka.Types

FromXML AuthEnv Source # 
Instance details

Defined in Amazonka.Types

Generic AuthEnv Source # 
Instance details

Defined in Amazonka.Types

Associated Types

type Rep AuthEnv :: Type -> Type #

Methods

from :: AuthEnv -> Rep AuthEnv x #

to :: Rep AuthEnv x -> AuthEnv #

Show AuthEnv Source # 
Instance details

Defined in Amazonka.Types

NFData AuthEnv Source # 
Instance details

Defined in Amazonka.Types

Methods

rnf :: AuthEnv -> () #

Eq AuthEnv Source # 
Instance details

Defined in Amazonka.Types

Methods

(==) :: AuthEnv -> AuthEnv -> Bool #

(/=) :: AuthEnv -> AuthEnv -> Bool #

type Rep AuthEnv Source # 
Instance details

Defined in Amazonka.Types

type Rep AuthEnv = D1 ('MetaData "AuthEnv" "Amazonka.Types" "amazonka-core-2.0-BFuA7FRvuklLoYhn4b6A6p" 'False) (C1 ('MetaCons "AuthEnv" 'PrefixI 'True) ((S1 ('MetaSel ('Just "accessKeyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 AccessKey) :*: S1 ('MetaSel ('Just "secretAccessKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive SecretKey))) :*: (S1 ('MetaSel ('Just "sessionToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive SessionToken))) :*: S1 ('MetaSel ('Just "expiration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)))))

Lenses

Signing

data Meta where Source #

Signing algorithm specific metadata.

Constructors

Meta :: ToLog a => a -> Meta 

Instances

Instances details
ToLog Meta Source # 
Instance details

Defined in Amazonka.Types

data Signer Source #

Constructors

Signer 

Fields

data Signed a Source #

A signed ClientRequest and associated metadata specific to the signing algorithm, tagged with the initial request type to be able to obtain the associated response, AWSResponse a.

Constructors

Signed 

Lenses

Service

data Abbrev Source #

Abbreviated service name.

Instances

Instances details
FromJSON Abbrev Source # 
Instance details

Defined in Amazonka.Types

ToLog Abbrev Source # 
Instance details

Defined in Amazonka.Types

FromText Abbrev Source # 
Instance details

Defined in Amazonka.Types

ToText Abbrev Source # 
Instance details

Defined in Amazonka.Types

Methods

toText :: Abbrev -> Text Source #

FromXML Abbrev Source # 
Instance details

Defined in Amazonka.Types

IsString Abbrev Source # 
Instance details

Defined in Amazonka.Types

Methods

fromString :: String -> Abbrev #

Generic Abbrev Source # 
Instance details

Defined in Amazonka.Types

Associated Types

type Rep Abbrev :: Type -> Type #

Methods

from :: Abbrev -> Rep Abbrev x #

to :: Rep Abbrev x -> Abbrev #

Show Abbrev Source # 
Instance details

Defined in Amazonka.Types

Eq Abbrev Source # 
Instance details

Defined in Amazonka.Types

Methods

(==) :: Abbrev -> Abbrev -> Bool #

(/=) :: Abbrev -> Abbrev -> Bool #

Ord Abbrev Source # 
Instance details

Defined in Amazonka.Types

type Rep Abbrev Source # 
Instance details

Defined in Amazonka.Types

type Rep Abbrev = D1 ('MetaData "Abbrev" "Amazonka.Types" "amazonka-core-2.0-BFuA7FRvuklLoYhn4b6A6p" 'True) (C1 ('MetaCons "Abbrev" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromAbbrev") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data Service Source #

Attributes and functions specific to an AWS service.

Constructors

Service 

Fields

Instances

Instances details
Generic Service Source # 
Instance details

Defined in Amazonka.Types

Associated Types

type Rep Service :: Type -> Type #

Methods

from :: Service -> Rep Service x #

to :: Rep Service x -> Service #

type Rep Service Source # 
Instance details

Defined in Amazonka.Types

data S3AddressingStyle Source #

When to rewrite S3 requests into virtual-hosted style.

Requests to S3 can be rewritten to access buckets by setting the Host: header, which allows you to point a CNAME record at an Amazon S3 Bucket.

Non-S3 object stores usually do not support this, which is usually the only time you'll need to change this.

See: Virtual hosting of buckets in the Amazon S3 User Guide.

See: Changing the Addressing Style for the corresponding option in Boto 3.

Constructors

S3AddressingStyleAuto

Rewrite S3 request paths only if they can be expressed as a DNS label. This is the default.

S3AddressingStylePath

Do not ever rewrite S3 request paths.

S3AddressingStyleVirtual

Force virtual hosted style rewrites without checking the bucket name.

Instances

Instances details
Generic S3AddressingStyle Source # 
Instance details

Defined in Amazonka.Types

Associated Types

type Rep S3AddressingStyle :: Type -> Type #

Show S3AddressingStyle Source # 
Instance details

Defined in Amazonka.Types

Eq S3AddressingStyle Source # 
Instance details

Defined in Amazonka.Types

type Rep S3AddressingStyle Source # 
Instance details

Defined in Amazonka.Types

type Rep S3AddressingStyle = D1 ('MetaData "S3AddressingStyle" "Amazonka.Types" "amazonka-core-2.0-BFuA7FRvuklLoYhn4b6A6p" 'False) (C1 ('MetaCons "S3AddressingStyleAuto" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "S3AddressingStylePath" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "S3AddressingStyleVirtual" 'PrefixI 'False) (U1 :: Type -> Type)))

Optics

Requests

class AWSRequest a where Source #

Specify how a request can be de/serialised.

Associated Types

type AWSResponse a :: Type Source #

The successful, expected response associated with a request.

Methods

request Source #

Arguments

:: (Service -> Service)

Overrides applied to the default Service.

-> a 
-> Request a 

response Source #

Arguments

:: MonadResource m 
=> (ByteStringLazy -> IO ByteStringLazy)

Raw response body hook.

-> Service 
-> Proxy a 
-> ClientResponse ClientBody 
-> m (Either Error (ClientResponse (AWSResponse a))) 

data Request a Source #

An unsigned request.

Instances

Instances details
Generic (Request a) Source # 
Instance details

Defined in Amazonka.Types

Associated Types

type Rep (Request a) :: Type -> Type #

Methods

from :: Request a -> Rep (Request a) x #

to :: Rep (Request a) x -> Request a #

type Rep (Request a) Source # 
Instance details

Defined in Amazonka.Types

requestUnsigned :: Request a -> Region -> ClientRequest Source #

Create an unsigned ClientRequest. You will almost never need to do this.

Lenses

Retries

data Retry Source #

Constants and predicates used to create a RetryPolicy.

Constructors

Exponential 

Fields

Instances

Instances details
Generic Retry Source # 
Instance details

Defined in Amazonka.Types

Associated Types

type Rep Retry :: Type -> Type #

Methods

from :: Retry -> Rep Retry x #

to :: Rep Retry x -> Retry #

type Rep Retry Source # 
Instance details

Defined in Amazonka.Types

Lenses

Errors

class AsError a where Source #

Minimal complete definition

_Error

Methods

_Error :: Prism' a Error Source #

A general Amazonka error.

_TransportError :: Prism' a HttpException Source #

An error occured while communicating over HTTP with a remote service.

_SerializeError :: Prism' a SerializeError Source #

A serialisation error occured when attempting to deserialise a response.

_ServiceError :: Prism' a ServiceError Source #

A service specific error returned by the remote service.

data Error Source #

An error type representing errors that can be attributed to this library.

Instances

Instances details
ToLog Error Source # 
Instance details

Defined in Amazonka.Types

AsError Error Source # 
Instance details

Defined in Amazonka.Types

Exception Error Source # 
Instance details

Defined in Amazonka.Types

Generic Error Source # 
Instance details

Defined in Amazonka.Types

Associated Types

type Rep Error :: Type -> Type #

Methods

from :: Error -> Rep Error x #

to :: Rep Error x -> Error #

Show Error Source # 
Instance details

Defined in Amazonka.Types

Methods

showsPrec :: Int -> Error -> ShowS #

show :: Error -> String #

showList :: [Error] -> ShowS #

type Rep Error Source # 
Instance details

Defined in Amazonka.Types

HTTP Errors

data HttpException #

An exception which may be generated by this library

Since: http-client-0.5.0

Serialize Errors

data SerializeError Source #

Constructors

SerializeError' 

Fields

Instances

Instances details
ToLog SerializeError Source # 
Instance details

Defined in Amazonka.Types

Generic SerializeError Source # 
Instance details

Defined in Amazonka.Types

Associated Types

type Rep SerializeError :: Type -> Type #

Show SerializeError Source # 
Instance details

Defined in Amazonka.Types

Eq SerializeError Source # 
Instance details

Defined in Amazonka.Types

type Rep SerializeError Source # 
Instance details

Defined in Amazonka.Types

Lenses

Service Errors

data ServiceError Source #

Instances

Instances details
ToLog ServiceError Source # 
Instance details

Defined in Amazonka.Types

Generic ServiceError Source # 
Instance details

Defined in Amazonka.Types

Associated Types

type Rep ServiceError :: Type -> Type #

Show ServiceError Source # 
Instance details

Defined in Amazonka.Types

Eq ServiceError Source # 
Instance details

Defined in Amazonka.Types

type Rep ServiceError Source # 
Instance details

Defined in Amazonka.Types

Lenses

Error Types

newtype ErrorCode Source #

Constructors

ErrorCode Text 

Instances

Instances details
FromJSON ErrorCode Source # 
Instance details

Defined in Amazonka.Types

ToLog ErrorCode Source # 
Instance details

Defined in Amazonka.Types

FromText ErrorCode Source # 
Instance details

Defined in Amazonka.Types

ToText ErrorCode Source # 
Instance details

Defined in Amazonka.Types

FromXML ErrorCode Source # 
Instance details

Defined in Amazonka.Types

IsString ErrorCode Source # 
Instance details

Defined in Amazonka.Types

Show ErrorCode Source # 
Instance details

Defined in Amazonka.Types

Eq ErrorCode Source # 
Instance details

Defined in Amazonka.Types

Ord ErrorCode Source # 
Instance details

Defined in Amazonka.Types

newtype ErrorMessage Source #

Constructors

ErrorMessage 

Instances

Instances details
FromJSON ErrorMessage Source # 
Instance details

Defined in Amazonka.Types

ToLog ErrorMessage Source # 
Instance details

Defined in Amazonka.Types

FromText ErrorMessage Source # 
Instance details

Defined in Amazonka.Types

ToText ErrorMessage Source # 
Instance details

Defined in Amazonka.Types

FromXML ErrorMessage Source # 
Instance details

Defined in Amazonka.Types

IsString ErrorMessage Source # 
Instance details

Defined in Amazonka.Types

Generic ErrorMessage Source # 
Instance details

Defined in Amazonka.Types

Associated Types

type Rep ErrorMessage :: Type -> Type #

Show ErrorMessage Source # 
Instance details

Defined in Amazonka.Types

Eq ErrorMessage Source # 
Instance details

Defined in Amazonka.Types

Ord ErrorMessage Source # 
Instance details

Defined in Amazonka.Types

type Rep ErrorMessage Source # 
Instance details

Defined in Amazonka.Types

type Rep ErrorMessage = D1 ('MetaData "ErrorMessage" "Amazonka.Types" "amazonka-core-2.0-BFuA7FRvuklLoYhn4b6A6p" 'True) (C1 ('MetaCons "ErrorMessage" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromErrorMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

newtype RequestId Source #

Constructors

RequestId 

Fields

Instances

Instances details
FromJSON RequestId Source # 
Instance details

Defined in Amazonka.Types

ToLog RequestId Source # 
Instance details

Defined in Amazonka.Types

FromText RequestId Source # 
Instance details

Defined in Amazonka.Types

ToText RequestId Source # 
Instance details

Defined in Amazonka.Types

FromXML RequestId Source # 
Instance details

Defined in Amazonka.Types

IsString RequestId Source # 
Instance details

Defined in Amazonka.Types

Generic RequestId Source # 
Instance details

Defined in Amazonka.Types

Associated Types

type Rep RequestId :: Type -> Type #

Show RequestId Source # 
Instance details

Defined in Amazonka.Types

Eq RequestId Source # 
Instance details

Defined in Amazonka.Types

Ord RequestId Source # 
Instance details

Defined in Amazonka.Types

type Rep RequestId Source # 
Instance details

Defined in Amazonka.Types

type Rep RequestId = D1 ('MetaData "RequestId" "Amazonka.Types" "amazonka-core-2.0-BFuA7FRvuklLoYhn4b6A6p" 'True) (C1 ('MetaCons "RequestId" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromRequestId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

Optics

Regions

newtype Region Source #

The available AWS regions.

Constructors

Region' 

Fields

Bundled Patterns

pattern Ohio :: Region 
pattern NorthVirginia :: Region 
pattern NorthCalifornia :: Region 
pattern Oregon :: Region 
pattern CapeTown :: Region 
pattern HongKong :: Region 
pattern Hyderabad :: Region 
pattern Jakarta :: Region 
pattern Melbourne :: Region 
pattern Mumbai :: Region 
pattern Osaka :: Region 
pattern Seoul :: Region 
pattern Singapore :: Region 
pattern Sydney :: Region 
pattern Tokyo :: Region 
pattern Montreal :: Region 
pattern Frankfurt :: Region 
pattern Ireland :: Region 
pattern London :: Region 
pattern Milan :: Region 
pattern Paris :: Region 
pattern Spain :: Region 
pattern Stockholm :: Region 
pattern Zurich :: Region 
pattern Bahrain :: Region 
pattern UAE :: Region 
pattern SaoPaulo :: Region 
pattern GovCloudEast :: Region 
pattern GovCloudWest :: Region 
pattern Beijing :: Region 
pattern Ningxia :: Region 

Instances

Instances details
FromJSON Region Source # 
Instance details

Defined in Amazonka.Types

ToJSON Region Source # 
Instance details

Defined in Amazonka.Types

ToByteString Region Source # 
Instance details

Defined in Amazonka.Types

ToLog Region Source # 
Instance details

Defined in Amazonka.Types

ToQuery Region Source # 
Instance details

Defined in Amazonka.Types

FromText Region Source # 
Instance details

Defined in Amazonka.Types

ToText Region Source # 
Instance details

Defined in Amazonka.Types

Methods

toText :: Region -> Text Source #

FromXML Region Source # 
Instance details

Defined in Amazonka.Types

ToXML Region Source # 
Instance details

Defined in Amazonka.Types

Methods

toXML :: Region -> XML Source #

IsString Region Source # 
Instance details

Defined in Amazonka.Types

Methods

fromString :: String -> Region #

Generic Region Source # 
Instance details

Defined in Amazonka.Types

Associated Types

type Rep Region :: Type -> Type #

Methods

from :: Region -> Rep Region x #

to :: Rep Region x -> Region #

Read Region Source # 
Instance details

Defined in Amazonka.Types

Show Region Source # 
Instance details

Defined in Amazonka.Types

NFData Region Source # 
Instance details

Defined in Amazonka.Types

Methods

rnf :: Region -> () #

Eq Region Source # 
Instance details

Defined in Amazonka.Types

Methods

(==) :: Region -> Region -> Bool #

(/=) :: Region -> Region -> Bool #

Ord Region Source # 
Instance details

Defined in Amazonka.Types

Hashable Region Source # 
Instance details

Defined in Amazonka.Types

Methods

hashWithSalt :: Int -> Region -> Int #

hash :: Region -> Int #

type Rep Region Source # 
Instance details

Defined in Amazonka.Types

type Rep Region = D1 ('MetaData "Region" "Amazonka.Types" "amazonka-core-2.0-BFuA7FRvuklLoYhn4b6A6p" 'True) (C1 ('MetaCons "Region'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromRegion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

Endpoints

data Endpoint Source #

Constructors

Endpoint 

Fields

  • host :: ByteString

    The host to make requests to. Usually something like s3.us-east-1.amazonaws.com.

  • basePath :: RawPath

    Path segment prepended to the request path of any request made to this endpoint. This is useful if you want to use the AWS API Gateway Management API, which requires you to override the client endpoint including a leading path segment (either the stage or, on a custom domain, the mapped base path).

  • secure :: Bool
     
  • port :: Int
     
  • scope :: ByteString

    Signing scope, usually a region like us-east-1.

Instances

Instances details
Generic Endpoint Source # 
Instance details

Defined in Amazonka.Types

Associated Types

type Rep Endpoint :: Type -> Type #

Methods

from :: Endpoint -> Rep Endpoint x #

to :: Rep Endpoint x -> Endpoint #

Show Endpoint Source # 
Instance details

Defined in Amazonka.Types

Eq Endpoint Source # 
Instance details

Defined in Amazonka.Types

type Rep Endpoint Source # 
Instance details

Defined in Amazonka.Types

Lenses

HTTP

type ClientRequest = Request Source #

A convenience alias to avoid type ambiguity.

type ClientResponse = Response Source #

A convenience alias encapsulating the common Response.

type ClientBody = ConduitM () ByteString (ResourceT IO) () Source #

A convenience alias encapsulating the common Response body.

newClientRequest :: Endpoint -> Maybe Seconds -> ClientRequest Source #

Construct a ClientRequest using common parameters such as TLS and prevent throwing errors when receiving erroneous status codes in respones.

Seconds

newtype Seconds Source #

A numeric value representing seconds.

Constructors

Seconds DiffTime 

Instances

Instances details
ToByteString Seconds Source # 
Instance details

Defined in Amazonka.Types

ToLog Seconds Source # 
Instance details

Defined in Amazonka.Types

ToQuery Seconds Source # 
Instance details

Defined in Amazonka.Types

FromText Seconds Source # 
Instance details

Defined in Amazonka.Types

ToText Seconds Source # 
Instance details

Defined in Amazonka.Types

Methods

toText :: Seconds -> Text Source #

Enum Seconds Source # 
Instance details

Defined in Amazonka.Types

Generic Seconds Source # 
Instance details

Defined in Amazonka.Types

Associated Types

type Rep Seconds :: Type -> Type #

Methods

from :: Seconds -> Rep Seconds x #

to :: Rep Seconds x -> Seconds #

Num Seconds Source # 
Instance details

Defined in Amazonka.Types

Read Seconds Source # 
Instance details

Defined in Amazonka.Types

Real Seconds Source # 
Instance details

Defined in Amazonka.Types

Show Seconds Source # 
Instance details

Defined in Amazonka.Types

NFData Seconds Source # 
Instance details

Defined in Amazonka.Types

Methods

rnf :: Seconds -> () #

Eq Seconds Source # 
Instance details

Defined in Amazonka.Types

Methods

(==) :: Seconds -> Seconds -> Bool #

(/=) :: Seconds -> Seconds -> Bool #

Ord Seconds Source # 
Instance details

Defined in Amazonka.Types

Hashable Seconds Source # 
Instance details

Defined in Amazonka.Types

Methods

hashWithSalt :: Int -> Seconds -> Int #

hash :: Seconds -> Int #

type Rep Seconds Source # 
Instance details

Defined in Amazonka.Types

type Rep Seconds = D1 ('MetaData "Seconds" "Amazonka.Types" "amazonka-core-2.0-BFuA7FRvuklLoYhn4b6A6p" 'True) (C1 ('MetaCons "Seconds" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DiffTime)))