Safe Haskell | None |
---|---|
Language | Haskell2010 |
Adds an object to a bucket.
http://docs.aws.amazon.com/AmazonS3/latest/API/PutObject.html
- data PutObject
- putObject :: RqBody -> Text -> Text -> PutObject
- poACL :: Lens' PutObject (Maybe ObjectCannedACL)
- poBody :: Lens' PutObject RqBody
- poBucket :: Lens' PutObject Text
- poCacheControl :: Lens' PutObject (Maybe Text)
- poContentDisposition :: Lens' PutObject (Maybe Text)
- poContentEncoding :: Lens' PutObject (Maybe Text)
- poContentLanguage :: Lens' PutObject (Maybe Text)
- poContentLength :: Lens' PutObject (Maybe Int)
- poContentMD5 :: Lens' PutObject (Maybe Text)
- poContentType :: Lens' PutObject (Maybe Text)
- poExpires :: Lens' PutObject (Maybe UTCTime)
- poGrantFullControl :: Lens' PutObject (Maybe Text)
- poGrantRead :: Lens' PutObject (Maybe Text)
- poGrantReadACP :: Lens' PutObject (Maybe Text)
- poGrantWriteACP :: Lens' PutObject (Maybe Text)
- poKey :: Lens' PutObject Text
- poMetadata :: Lens' PutObject (HashMap (CI Text) Text)
- poSSECustomerAlgorithm :: Lens' PutObject (Maybe Text)
- poSSECustomerKey :: Lens' PutObject (Maybe Text)
- poSSECustomerKeyMD5 :: Lens' PutObject (Maybe Text)
- poSSEKMSKeyId :: Lens' PutObject (Maybe Text)
- poServerSideEncryption :: Lens' PutObject (Maybe ServerSideEncryption)
- poStorageClass :: Lens' PutObject (Maybe StorageClass)
- poWebsiteRedirectLocation :: Lens' PutObject (Maybe Text)
- data PutObjectResponse
- putObjectResponse :: PutObjectResponse
- porETag :: Lens' PutObjectResponse (Maybe Text)
- porExpiration :: Lens' PutObjectResponse (Maybe UTCTime)
- porSSECustomerAlgorithm :: Lens' PutObjectResponse (Maybe Text)
- porSSECustomerKeyMD5 :: Lens' PutObjectResponse (Maybe Text)
- porSSEKMSKeyId :: Lens' PutObjectResponse (Maybe Text)
- porServerSideEncryption :: Lens' PutObjectResponse (Maybe ServerSideEncryption)
- porVersionId :: Lens' PutObjectResponse (Maybe Text)
Request
Request constructor
PutObject
constructor.
The fields accessible through corresponding lenses are:
poACL
::
Maybe
ObjectCannedACL
poBody
::
RqBody
poBucket
::
Text
poCacheControl
::
Maybe
Text
poContentDisposition
::
Maybe
Text
poContentEncoding
::
Maybe
Text
poContentLanguage
::
Maybe
Text
poContentLength
::
Maybe
Int
poContentMD5
::
Maybe
Text
poContentType
::
Maybe
Text
poExpires
::
Maybe
UTCTime
poGrantFullControl
::
Maybe
Text
poGrantRead
::
Maybe
Text
poGrantReadACP
::
Maybe
Text
poGrantWriteACP
::
Maybe
Text
poKey
::
Text
poMetadata
::
HashMap
(CI
Text
)Text
poSSECustomerAlgorithm
::
Maybe
Text
poSSECustomerKey
::
Maybe
Text
poSSECustomerKeyMD5
::
Maybe
Text
poSSEKMSKeyId
::
Maybe
Text
poServerSideEncryption
::
Maybe
ServerSideEncryption
poStorageClass
::
Maybe
StorageClass
poWebsiteRedirectLocation
::
Maybe
Text
Request lenses
poCacheControl :: Lens' PutObject (Maybe Text) Source
Specifies caching behavior along the request/reply chain.
poContentDisposition :: Lens' PutObject (Maybe Text) Source
Specifies presentational information for the object.
poContentEncoding :: Lens' PutObject (Maybe Text) Source
Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.
poContentLength :: Lens' PutObject (Maybe Int) Source
Size of the body in bytes. This parameter is useful when the size of the body cannot be determined automatically.
poContentType :: Lens' PutObject (Maybe Text) Source
A standard MIME type describing the format of the object data.
poExpires :: Lens' PutObject (Maybe UTCTime) Source
The date and time at which the object is no longer cacheable.
poGrantFullControl :: Lens' PutObject (Maybe Text) Source
Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the object.
poGrantRead :: Lens' PutObject (Maybe Text) Source
Allows grantee to read the object data and its metadata.
poGrantWriteACP :: Lens' PutObject (Maybe Text) Source
Allows grantee to write the ACL for the applicable object.
poMetadata :: Lens' PutObject (HashMap (CI Text) Text) Source
A map of metadata to store with the object in S3.
poSSECustomerAlgorithm :: Lens' PutObject (Maybe Text) Source
Specifies the algorithm to use to when encrypting the object (e.g., AES256, aws:kms).
poSSECustomerKey :: Lens' PutObject (Maybe Text) Source
Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side-encryption-customer-algorithm header.
poSSECustomerKeyMD5 :: Lens' PutObject (Maybe Text) Source
Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure the encryption key was transmitted without error.
poSSEKMSKeyId :: Lens' PutObject (Maybe Text) Source
Specifies the AWS KMS key ID to use for object encryption.
poServerSideEncryption :: Lens' PutObject (Maybe ServerSideEncryption) Source
The Server-side encryption algorithm used when storing this object in S3 (e.g., AES256, aws:kms).
poStorageClass :: Lens' PutObject (Maybe StorageClass) Source
The type of storage to use for the object. Defaults to STANDARD
.
poWebsiteRedirectLocation :: Lens' PutObject (Maybe Text) Source
If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. Amazon S3 stores the value of this header in the object metadata.
Response
Response constructor
putObjectResponse :: PutObjectResponse Source
PutObjectResponse
constructor.
The fields accessible through corresponding lenses are:
Response lenses
porExpiration :: Lens' PutObjectResponse (Maybe UTCTime) Source
If the object expiration is configured, this will contain the expiration date (expiry-date) and rule ID (rule-id). The value of rule-id is URL encoded.
porSSECustomerAlgorithm :: Lens' PutObjectResponse (Maybe Text) Source
If server-side encryption with a customer-provided encryption key was requested, the response will include this header confirming the encryption algorithm used.
porSSECustomerKeyMD5 :: Lens' PutObjectResponse (Maybe Text) Source
If server-side encryption with a customer-provided encryption key was requested, the response will include this header to provide round trip message integrity verification of the customer-provided encryption key.
porSSEKMSKeyId :: Lens' PutObjectResponse (Maybe Text) Source
If present, specifies the AWS KMS key used to encrypt the object.
porServerSideEncryption :: Lens' PutObjectResponse (Maybe ServerSideEncryption) Source
The Server-side encryption algorithm used when storing this object in S3 (e.g., AES256, aws:kms).
porVersionId :: Lens' PutObjectResponse (Maybe Text) Source
Version of the object.