| 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 |
Amazonka.S3.Internal
Description
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.
Constructors
| Region' | |
Fields
| |
Bundled Patterns
| 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 Methods 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 Methods build :: Region -> ByteStringBuilder # | |
| ToQuery Region | |
Defined in Amazonka.Types Methods toQuery :: Region -> QueryString # | |
| FromXML Region | |
| ToXML Region | |
Defined in Amazonka.Types | |
| ToByteString Region | |
Defined in Amazonka.Types Methods toBS :: Region -> ByteString # | |
| FromText Region | |
| ToText Region | |
Defined in Amazonka.Types | |
| type Rep Region | |
Defined in Amazonka.Types | |
newtype BucketName Source #
Constructors
| BucketName Text |
Instances
Constructors
| ETag ByteString |
Instances
newtype ObjectVersionId Source #
Constructors
| ObjectVersionId Text |
Instances
Bucket Location
newtype LocationConstraint Source #
Constructors
| LocationConstraint | |
Fields | |
Instances
Object Key
Instances
| Eq ObjectKey Source # | |
| Ord ObjectKey Source # | |
| Read ObjectKey Source # | |
| Show ObjectKey Source # | |
| IsString ObjectKey Source # | |
Defined in Amazonka.S3.Internal Methods 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 Methods build :: ObjectKey -> ByteStringBuilder # | |
| ToPath ObjectKey Source # | |
Defined in Amazonka.S3.Internal Methods toPath :: ObjectKey -> ByteString # | |
| ToQuery ObjectKey Source # | |
Defined in Amazonka.S3.Internal Methods toQuery :: ObjectKey -> QueryString # | |
| FromXML ObjectKey Source # | |
| ToXML ObjectKey Source # | |
Defined in Amazonka.S3.Internal | |
| ToByteString ObjectKey Source # | |
Defined in Amazonka.S3.Internal Methods 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.