Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | This Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | experimental |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- newtype Region where
- Region' {
- fromRegion :: Text
- pattern Mumbai :: Region
- pattern Sydney :: Region
- pattern Singapore :: Region
- pattern Osaka :: Region
- pattern Seoul :: Region
- pattern Tokyo :: Region
- pattern HongKong :: Region
- pattern Ningxia :: Region
- pattern Beijing :: Region
- pattern CapeTown :: Region
- pattern Bahrain :: Region
- pattern Stockholm :: Region
- pattern Paris :: Region
- pattern Milan :: Region
- pattern London :: Region
- pattern Ireland :: Region
- pattern Frankfurt :: Region
- pattern SaoPaulo :: Region
- pattern Montreal :: Region
- pattern GovCloudEast :: Region
- pattern GovCloudWest :: Region
- pattern Oregon :: Region
- pattern NorthCalifornia :: Region
- pattern Ohio :: Region
- pattern NorthVirginia :: Region
- Region' {
- newtype BucketName = BucketName Text
- newtype ETag = ETag ByteString
- newtype ObjectVersionId = ObjectVersionId Text
- newtype LocationConstraint = LocationConstraint {}
- _LocationConstraint :: Iso' LocationConstraint Region
- type Delimiter = Char
- newtype ObjectKey = ObjectKey Text
- _ObjectKey :: Iso' ObjectKey Text
- keyPrefix :: Delimiter -> Traversal' ObjectKey Text
- keyName :: Delimiter -> Traversal' ObjectKey Text
- keyComponents :: Delimiter -> IndexedTraversal' Int ObjectKey Text
- getWebsiteEndpoint :: Region -> Text
Documentation
The available AWS regions.
pattern Mumbai :: Region | |
pattern Sydney :: Region | |
pattern Singapore :: Region | |
pattern Osaka :: Region | |
pattern Seoul :: Region | |
pattern Tokyo :: Region | |
pattern HongKong :: Region | |
pattern Ningxia :: Region | |
pattern Beijing :: Region | |
pattern CapeTown :: Region | |
pattern Bahrain :: Region | |
pattern Stockholm :: Region | |
pattern Paris :: Region | |
pattern Milan :: Region | |
pattern London :: Region | |
pattern Ireland :: Region | |
pattern Frankfurt :: Region | |
pattern SaoPaulo :: Region | |
pattern Montreal :: Region | |
pattern GovCloudEast :: Region | |
pattern GovCloudWest :: Region | |
pattern Oregon :: Region | |
pattern NorthCalifornia :: Region | |
pattern Ohio :: Region | |
pattern NorthVirginia :: Region |
Instances
Eq Region | |
Ord Region | |
Read Region | |
Show Region | |
IsString Region | |
Defined in Amazonka.Types fromString :: String -> Region # | |
Generic Region | |
NFData Region | |
Defined in Amazonka.Types | |
Hashable Region | |
Defined in Amazonka.Types | |
ToJSON Region | |
Defined in Amazonka.Types | |
FromJSON Region | |
ToLog Region | |
Defined in Amazonka.Types build :: Region -> ByteStringBuilder # | |
ToQuery Region | |
Defined in Amazonka.Types toQuery :: Region -> QueryString # | |
FromXML Region | |
ToXML Region | |
Defined in Amazonka.Types | |
ToByteString Region | |
Defined in Amazonka.Types toBS :: Region -> ByteString # | |
FromText Region | |
ToText Region | |
Defined in Amazonka.Types | |
type Rep Region | |
Defined in Amazonka.Types |
newtype BucketName Source #
Instances
Instances
newtype ObjectVersionId Source #
Instances
Bucket Location
newtype LocationConstraint Source #
Instances
Object Key
Instances
Eq ObjectKey Source # | |
Ord ObjectKey Source # | |
Defined in Amazonka.S3.Internal | |
Read ObjectKey Source # | |
Show ObjectKey Source # | |
IsString ObjectKey Source # | |
Defined in Amazonka.S3.Internal fromString :: String -> ObjectKey # | |
Generic ObjectKey Source # | |
NFData ObjectKey Source # | |
Defined in Amazonka.S3.Internal | |
Hashable ObjectKey Source # | |
Defined in Amazonka.S3.Internal | |
ToLog ObjectKey Source # | |
Defined in Amazonka.S3.Internal build :: ObjectKey -> ByteStringBuilder # | |
ToPath ObjectKey Source # | |
Defined in Amazonka.S3.Internal toPath :: ObjectKey -> ByteString # | |
ToQuery ObjectKey Source # | |
Defined in Amazonka.S3.Internal toQuery :: ObjectKey -> QueryString # | |
FromXML ObjectKey Source # | |
ToXML ObjectKey Source # | |
Defined in Amazonka.S3.Internal | |
ToByteString ObjectKey Source # | |
Defined in Amazonka.S3.Internal toBS :: ObjectKey -> ByteString # | |
FromText ObjectKey Source # | |
ToText ObjectKey Source # | |
Defined in Amazonka.S3.Internal | |
type Rep ObjectKey Source # | |
Defined in Amazonka.S3.Internal |
keyPrefix :: Delimiter -> Traversal' ObjectKey Text Source #
Traverse the prefix of an object key.
The prefix is classified as the entirety of the object key minus the name. A leading prefix in the presence of a name, and no other delimiters is interpreted as a blank prefix.
>>>
"/home/jsmith/base.wiki" ^? keyPrefix '/'
Just "/home/jsmith"
>>>
"/home/jsmith/" ^? keyPrefix '/'
Just "/home/jsmith"
>>>
"/home" ^? keyPrefix '/'
Nothing
>>>
"/" ^? keyPrefix '/'
Nothing
keyComponents :: Delimiter -> IndexedTraversal' Int ObjectKey Text Source #
Traverse the path components of an object key using the specified delimiter.
Website Endpoints
getWebsiteEndpoint :: Region -> Text Source #
Get the S3 website endpoint for a specific region.
When you configure your bucket as a website, the website is available using this region-specific website endpoint.