Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Amazonka.MediaStoreData.DescribeObject
Description
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' {
- cacheControl :: Maybe Text
- contentLength :: Maybe Natural
- contentType :: Maybe Text
- eTag :: Maybe Text
- lastModified :: Maybe POSIX
- httpStatus :: Int
- newDescribeObjectResponse :: Int -> DescribeObjectResponse
- describeObjectResponse_cacheControl :: Lens' DescribeObjectResponse (Maybe Text)
- describeObjectResponse_contentLength :: Lens' DescribeObjectResponse (Maybe Natural)
- describeObjectResponse_contentType :: Lens' DescribeObjectResponse (Maybe Text)
- describeObjectResponse_eTag :: Lens' DescribeObjectResponse (Maybe Text)
- describeObjectResponse_lastModified :: Lens' DescribeObjectResponse (Maybe UTCTime)
- describeObjectResponse_httpStatus :: Lens' DescribeObjectResponse Int
Creating a Request
data DescribeObject Source #
See: newDescribeObject
smart constructor.
Constructors
DescribeObject' | |
Instances
Arguments
:: Text | |
-> DescribeObject |
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.
Constructors
DescribeObjectResponse' | |
Fields
|
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: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.
DescribeObjectResponse
, describeObjectResponse_contentLength
- The length of the object in bytes.
DescribeObjectResponse
, describeObjectResponse_contentType
- The content type of the object.
DescribeObjectResponse
, describeObjectResponse_eTag
- The ETag that represents a unique instance of the object.
DescribeObjectResponse
, describeObjectResponse_lastModified
- The date and time that the object was last modified.
$sel:httpStatus:DescribeObjectResponse'
, describeObjectResponse_httpStatus
- The response's http status code.
Response Lenses
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_contentLength :: Lens' DescribeObjectResponse (Maybe Natural) Source #
The length of the object in bytes.
describeObjectResponse_contentType :: Lens' DescribeObjectResponse (Maybe Text) Source #
The content type of the object.
describeObjectResponse_eTag :: Lens' DescribeObjectResponse (Maybe Text) Source #
The ETag that represents a unique instance of the object.
describeObjectResponse_lastModified :: Lens' DescribeObjectResponse (Maybe UTCTime) Source #
The date and time that the object was last modified.
describeObjectResponse_httpStatus :: Lens' DescribeObjectResponse Int Source #
The response's http status code.