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 |
This operation filters the contents of an Amazon S3 object based on a simple Structured Query Language (SQL) statement. In the request, along with the SQL expression, you must also specify a data serialization format (JSON or CSV) of the object. Amazon S3 uses this to parse object data into records, and returns only records that match the specified SQL expression. You must also specify the data serialization format for the response.
Synopsis
- selectObjectContent :: BucketName -> ObjectKey -> Text -> ExpressionType -> InputSerialization -> OutputSerialization -> SelectObjectContent
- data SelectObjectContent
- socSSECustomerAlgorithm :: Lens' SelectObjectContent (Maybe Text)
- socSSECustomerKey :: Lens' SelectObjectContent (Maybe Text)
- socRequestProgress :: Lens' SelectObjectContent (Maybe RequestProgress)
- socSSECustomerKeyMD5 :: Lens' SelectObjectContent (Maybe Text)
- socBucket :: Lens' SelectObjectContent BucketName
- socKey :: Lens' SelectObjectContent ObjectKey
- socExpression :: Lens' SelectObjectContent Text
- socExpressionType :: Lens' SelectObjectContent ExpressionType
- socInputSerialization :: Lens' SelectObjectContent InputSerialization
- socOutputSerialization :: Lens' SelectObjectContent OutputSerialization
- selectObjectContentResponse :: Int -> SelectObjectContentResponse
- data SelectObjectContentResponse
- socrsPayload :: Lens' SelectObjectContentResponse (Maybe SelectObjectContentEventStream)
- socrsResponseStatus :: Lens' SelectObjectContentResponse Int
Creating a Request
:: BucketName | |
-> ObjectKey | |
-> Text | |
-> ExpressionType | |
-> InputSerialization | |
-> OutputSerialization | |
-> SelectObjectContent |
Creates a value of SelectObjectContent
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
socSSECustomerAlgorithm
- Server-Side Encryption (Using Customer-Provided Encryption KeyssocSSECustomerKey
- Server-Side Encryption (Using Customer-Provided Encryption KeyssocRequestProgress
- Specifies if periodic request progress information should be enabled.socSSECustomerKeyMD5
- Server-Side Encryption (Using Customer-Provided Encryption KeyssocBucket
- The S3 Bucket.socKey
- The Object Key.socExpression
- The expression that is used to query the object.socExpressionType
- The type of the provided expression (e.g., SQL).socInputSerialization
- Describes the format of the data in the object that is being queried.socOutputSerialization
- Describes the format of the data that you want Amazon S3 to return in response.
data SelectObjectContent Source #
See: selectObjectContent
smart constructor.
Instances
Request Lenses
socRequestProgress :: Lens' SelectObjectContent (Maybe RequestProgress) Source #
Specifies if periodic request progress information should be enabled.
socBucket :: Lens' SelectObjectContent BucketName Source #
The S3 Bucket.
socExpression :: Lens' SelectObjectContent Text Source #
The expression that is used to query the object.
socExpressionType :: Lens' SelectObjectContent ExpressionType Source #
The type of the provided expression (e.g., SQL).
socInputSerialization :: Lens' SelectObjectContent InputSerialization Source #
Describes the format of the data in the object that is being queried.
socOutputSerialization :: Lens' SelectObjectContent OutputSerialization Source #
Describes the format of the data that you want Amazon S3 to return in response.
Destructuring the Response
selectObjectContentResponse Source #
Creates a value of SelectObjectContentResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
socrsPayload
- Undocumented member.socrsResponseStatus
- -- | The response status code.
data SelectObjectContentResponse Source #
See: selectObjectContentResponse
smart constructor.
Instances
Response Lenses
socrsPayload :: Lens' SelectObjectContentResponse (Maybe SelectObjectContentEventStream) Source #
Undocumented member.
socrsResponseStatus :: Lens' SelectObjectContentResponse Int Source #
- - | The response status code.