amazonka-s3-1.6.1: Amazon Simple Storage Service SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.S3.SelectObjectContent

Contents

Description

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

Creating a Request

selectObjectContent Source #

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:

data SelectObjectContent Source #

Instances
Eq SelectObjectContent Source # 
Instance details

Defined in Network.AWS.S3.SelectObjectContent

Data SelectObjectContent Source # 
Instance details

Defined in Network.AWS.S3.SelectObjectContent

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SelectObjectContent -> c SelectObjectContent #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SelectObjectContent #

toConstr :: SelectObjectContent -> Constr #

dataTypeOf :: SelectObjectContent -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SelectObjectContent) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SelectObjectContent) #

gmapT :: (forall b. Data b => b -> b) -> SelectObjectContent -> SelectObjectContent #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SelectObjectContent -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SelectObjectContent -> r #

gmapQ :: (forall d. Data d => d -> u) -> SelectObjectContent -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SelectObjectContent -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SelectObjectContent -> m SelectObjectContent #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SelectObjectContent -> m SelectObjectContent #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SelectObjectContent -> m SelectObjectContent #

Show SelectObjectContent Source # 
Instance details

Defined in Network.AWS.S3.SelectObjectContent

Generic SelectObjectContent Source # 
Instance details

Defined in Network.AWS.S3.SelectObjectContent

Associated Types

type Rep SelectObjectContent :: Type -> Type #

Hashable SelectObjectContent Source # 
Instance details

Defined in Network.AWS.S3.SelectObjectContent

AWSRequest SelectObjectContent Source # 
Instance details

Defined in Network.AWS.S3.SelectObjectContent

Associated Types

type Rs SelectObjectContent :: Type #

ToElement SelectObjectContent Source # 
Instance details

Defined in Network.AWS.S3.SelectObjectContent

ToXML SelectObjectContent Source # 
Instance details

Defined in Network.AWS.S3.SelectObjectContent

ToHeaders SelectObjectContent Source # 
Instance details

Defined in Network.AWS.S3.SelectObjectContent

ToPath SelectObjectContent Source # 
Instance details

Defined in Network.AWS.S3.SelectObjectContent

ToQuery SelectObjectContent Source # 
Instance details

Defined in Network.AWS.S3.SelectObjectContent

NFData SelectObjectContent Source # 
Instance details

Defined in Network.AWS.S3.SelectObjectContent

Methods

rnf :: SelectObjectContent -> () #

type Rep SelectObjectContent Source # 
Instance details

Defined in Network.AWS.S3.SelectObjectContent

type Rs SelectObjectContent Source # 
Instance details

Defined in Network.AWS.S3.SelectObjectContent

Request Lenses

socRequestProgress :: Lens' SelectObjectContent (Maybe RequestProgress) Source #

Specifies if periodic request progress information should be enabled.

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:

data SelectObjectContentResponse Source #

See: selectObjectContentResponse smart constructor.

Instances
Eq SelectObjectContentResponse Source # 
Instance details

Defined in Network.AWS.S3.SelectObjectContent

Data SelectObjectContentResponse Source # 
Instance details

Defined in Network.AWS.S3.SelectObjectContent

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SelectObjectContentResponse -> c SelectObjectContentResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SelectObjectContentResponse #

toConstr :: SelectObjectContentResponse -> Constr #

dataTypeOf :: SelectObjectContentResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SelectObjectContentResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SelectObjectContentResponse) #

gmapT :: (forall b. Data b => b -> b) -> SelectObjectContentResponse -> SelectObjectContentResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SelectObjectContentResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SelectObjectContentResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> SelectObjectContentResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SelectObjectContentResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SelectObjectContentResponse -> m SelectObjectContentResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SelectObjectContentResponse -> m SelectObjectContentResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SelectObjectContentResponse -> m SelectObjectContentResponse #

Read SelectObjectContentResponse Source # 
Instance details

Defined in Network.AWS.S3.SelectObjectContent

Show SelectObjectContentResponse Source # 
Instance details

Defined in Network.AWS.S3.SelectObjectContent

Generic SelectObjectContentResponse Source # 
Instance details

Defined in Network.AWS.S3.SelectObjectContent

Associated Types

type Rep SelectObjectContentResponse :: Type -> Type #

NFData SelectObjectContentResponse Source # 
Instance details

Defined in Network.AWS.S3.SelectObjectContent

type Rep SelectObjectContentResponse Source # 
Instance details

Defined in Network.AWS.S3.SelectObjectContent

type Rep SelectObjectContentResponse = D1 (MetaData "SelectObjectContentResponse" "Network.AWS.S3.SelectObjectContent" "amazonka-s3-1.6.1-I7VsiKive605KPmKsVgrUz" False) (C1 (MetaCons "SelectObjectContentResponse'" PrefixI True) (S1 (MetaSel (Just "_socrsPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe SelectObjectContentEventStream)) :*: S1 (MetaSel (Just "_socrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses