Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Gets the headers for an object at the specified path.
Synopsis
- describeObject :: Text -> DescribeObject
- data DescribeObject
- dPath :: Lens' DescribeObject Text
- describeObjectResponse :: Int -> DescribeObjectResponse
- data DescribeObjectResponse
- drsETag :: Lens' DescribeObjectResponse (Maybe Text)
- drsContentLength :: Lens' DescribeObjectResponse (Maybe Natural)
- drsCacheControl :: Lens' DescribeObjectResponse (Maybe Text)
- drsLastModified :: Lens' DescribeObjectResponse (Maybe UTCTime)
- drsContentType :: Lens' DescribeObjectResponse (Maybe Text)
- drsResponseStatus :: Lens' DescribeObjectResponse Int
Creating a Request
:: Text | |
-> DescribeObject |
Creates a value of DescribeObject
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DescribeObject Source #
See: describeObject
smart constructor.
Instances
Request Lenses
Destructuring the Response
describeObjectResponse Source #
Creates a value of DescribeObjectResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
drsETag
- The ETag that represents a unique instance of the object.drsContentLength
- The length of the object in bytes.drsCacheControl
- An optionalCacheControl
header that allows the caller to control the object's cache behavior. Headers can be passed in as specified in the HTTP at https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9 . Headers with a custom user-defined value are also accepted.drsLastModified
- The date and time that the object was last modified.drsContentType
- The content type of the object.drsResponseStatus
- -- | The response status code.
data DescribeObjectResponse Source #
See: describeObjectResponse
smart constructor.
Instances
Response Lenses
drsETag :: Lens' DescribeObjectResponse (Maybe Text) Source #
The ETag that represents a unique instance of the object.
drsContentLength :: Lens' DescribeObjectResponse (Maybe Natural) Source #
The length of the object in bytes.
drsCacheControl :: Lens' DescribeObjectResponse (Maybe Text) Source #
An optional CacheControl
header that allows the caller to control the object's cache behavior. Headers can be passed in as specified in the HTTP at https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9 . Headers with a custom user-defined value are also accepted.
drsLastModified :: Lens' DescribeObjectResponse (Maybe UTCTime) Source #
The date and time that the object was last modified.
drsContentType :: Lens' DescribeObjectResponse (Maybe Text) Source #
The content type of the object.
drsResponseStatus :: Lens' DescribeObjectResponse Int Source #
- - | The response status code.