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.Data.Path

Description

 
Synopsis

Path Types

data Path :: Encoding -> Type where Source #

Constructors

Raw :: [ByteString] -> Path 'NoEncoding 
Encoded :: [ByteString] -> Path 'Percent 

Instances

Instances details
ToByteString EscapedPath Source # 
Instance details

Defined in Amazonka.Data.Path

ToLog EscapedPath Source # 
Instance details

Defined in Amazonka.Data.Log

Monoid RawPath Source # 
Instance details

Defined in Amazonka.Data.Path

Semigroup RawPath Source # 
Instance details

Defined in Amazonka.Data.Path

Show (Path a) Source # 
Instance details

Defined in Amazonka.Data.Path

Methods

showsPrec :: Int -> Path a -> ShowS #

show :: Path a -> String #

showList :: [Path a] -> ShowS #

Eq (Path a) Source # 
Instance details

Defined in Amazonka.Data.Path

Methods

(==) :: Path a -> Path a -> Bool #

(/=) :: Path a -> Path a -> Bool #

type RawPath = Path 'NoEncoding Source #

type EscapedPath = Path 'Percent Source #

Constructing Paths

class ToPath a where Source #

Methods

toPath :: a -> ByteString Source #

Instances

Instances details
ToPath ByteString Source # 
Instance details

Defined in Amazonka.Data.Path

ToPath Text Source # 
Instance details

Defined in Amazonka.Data.Path

rawPath :: ToPath a => a -> Path 'NoEncoding Source #

Manipulating Paths

escapePathTwice :: Path a -> TwiceEscapedPath Source #

Escape a path twice. Used when computing the SigV4 canonical path.