Copyright | (c) 2013-2021 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 |
Gets the headers for an object at the specified path.
Synopsis
- data DescribeObject = DescribeObject' {}
- newDescribeObject :: Text -> DescribeObject
- describeObject_path :: Lens' DescribeObject Text
- data DescribeObjectResponse = DescribeObjectResponse' {
- eTag :: Maybe Text
- contentLength :: Maybe Natural
- cacheControl :: Maybe Text
- lastModified :: Maybe POSIX
- contentType :: Maybe Text
- httpStatus :: Int
- newDescribeObjectResponse :: Int -> DescribeObjectResponse
- describeObjectResponse_eTag :: Lens' DescribeObjectResponse (Maybe Text)
- describeObjectResponse_contentLength :: Lens' DescribeObjectResponse (Maybe Natural)
- describeObjectResponse_cacheControl :: Lens' DescribeObjectResponse (Maybe Text)
- describeObjectResponse_lastModified :: Lens' DescribeObjectResponse (Maybe UTCTime)
- describeObjectResponse_contentType :: Lens' DescribeObjectResponse (Maybe Text)
- describeObjectResponse_httpStatus :: Lens' DescribeObjectResponse Int
Creating a Request
data DescribeObject Source #
See: newDescribeObject
smart constructor.
Instances
Create a value of DescribeObject
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:path:DescribeObject'
, describeObject_path
- The path (including the file name) where the object is stored in the
container. Format: <folder name>/<folder name>/<file name>
Request Lenses
describeObject_path :: Lens' DescribeObject Text Source #
The path (including the file name) where the object is stored in the container. Format: <folder name>/<folder name>/<file name>
Destructuring the Response
data DescribeObjectResponse Source #
See: newDescribeObjectResponse
smart constructor.
DescribeObjectResponse' | |
|
Instances
newDescribeObjectResponse Source #
Create a value of DescribeObjectResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:eTag:DescribeObjectResponse'
, describeObjectResponse_eTag
- The ETag that represents a unique instance of the object.
$sel:contentLength:DescribeObjectResponse'
, describeObjectResponse_contentLength
- The length of the object in bytes.
$sel:cacheControl:DescribeObjectResponse'
, describeObjectResponse_cacheControl
- 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.
$sel:lastModified:DescribeObjectResponse'
, describeObjectResponse_lastModified
- The date and time that the object was last modified.
$sel:contentType:DescribeObjectResponse'
, describeObjectResponse_contentType
- The content type of the object.
$sel:httpStatus:DescribeObjectResponse'
, describeObjectResponse_httpStatus
- The response's http status code.
Response Lenses
describeObjectResponse_eTag :: Lens' DescribeObjectResponse (Maybe Text) Source #
The ETag that represents a unique instance of the object.
describeObjectResponse_contentLength :: Lens' DescribeObjectResponse (Maybe Natural) Source #
The length of the object in bytes.
describeObjectResponse_cacheControl :: 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.
describeObjectResponse_lastModified :: Lens' DescribeObjectResponse (Maybe UTCTime) Source #
The date and time that the object was last modified.
describeObjectResponse_contentType :: Lens' DescribeObjectResponse (Maybe Text) Source #
The content type of the object.
describeObjectResponse_httpStatus :: Lens' DescribeObjectResponse Int Source #
The response's http status code.