amazonka-athena-1.6.1: Amazon Athena 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.Athena.CreateNamedQuery

Contents

Description

Creates a named query.

For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide .

Synopsis

Creating a Request

createNamedQuery Source #

Creates a value of CreateNamedQuery with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • cnqClientRequestToken - A unique case-sensitive string used to ensure the request to create the query is idempotent (executes only once). If another CreateNamedQuery request is received, the same response is returned and another query is not created. If a parameter has changed, for example, the QueryString , an error is returned. Important: This token is listed as not required because AWS SDKs (for example the AWS SDK for Java) auto-generate the token for users. If you are not using the AWS SDK or the AWS CLI, you must provide this token or the action will fail.
  • cnqDescription - A brief explanation of the query.
  • cnqName - The plain language name for the query.
  • cnqDatabase - The database to which the query belongs.
  • cnqQueryString - The text of the query itself. In other words, all query statements.

data CreateNamedQuery Source #

See: createNamedQuery smart constructor.

Instances
Eq CreateNamedQuery Source # 
Instance details

Defined in Network.AWS.Athena.CreateNamedQuery

Data CreateNamedQuery Source # 
Instance details

Defined in Network.AWS.Athena.CreateNamedQuery

Methods

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

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

toConstr :: CreateNamedQuery -> Constr #

dataTypeOf :: CreateNamedQuery -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateNamedQuery Source # 
Instance details

Defined in Network.AWS.Athena.CreateNamedQuery

Show CreateNamedQuery Source # 
Instance details

Defined in Network.AWS.Athena.CreateNamedQuery

Generic CreateNamedQuery Source # 
Instance details

Defined in Network.AWS.Athena.CreateNamedQuery

Associated Types

type Rep CreateNamedQuery :: Type -> Type #

Hashable CreateNamedQuery Source # 
Instance details

Defined in Network.AWS.Athena.CreateNamedQuery

ToJSON CreateNamedQuery Source # 
Instance details

Defined in Network.AWS.Athena.CreateNamedQuery

AWSRequest CreateNamedQuery Source # 
Instance details

Defined in Network.AWS.Athena.CreateNamedQuery

Associated Types

type Rs CreateNamedQuery :: Type #

ToHeaders CreateNamedQuery Source # 
Instance details

Defined in Network.AWS.Athena.CreateNamedQuery

ToPath CreateNamedQuery Source # 
Instance details

Defined in Network.AWS.Athena.CreateNamedQuery

ToQuery CreateNamedQuery Source # 
Instance details

Defined in Network.AWS.Athena.CreateNamedQuery

NFData CreateNamedQuery Source # 
Instance details

Defined in Network.AWS.Athena.CreateNamedQuery

Methods

rnf :: CreateNamedQuery -> () #

type Rep CreateNamedQuery Source # 
Instance details

Defined in Network.AWS.Athena.CreateNamedQuery

type Rep CreateNamedQuery = D1 (MetaData "CreateNamedQuery" "Network.AWS.Athena.CreateNamedQuery" "amazonka-athena-1.6.1-3l4hGXnA3w2LezY8q3vNku" False) (C1 (MetaCons "CreateNamedQuery'" PrefixI True) ((S1 (MetaSel (Just "_cnqClientRequestToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cnqDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_cnqName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_cnqDatabase") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_cnqQueryString") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs CreateNamedQuery Source # 
Instance details

Defined in Network.AWS.Athena.CreateNamedQuery

Request Lenses

cnqClientRequestToken :: Lens' CreateNamedQuery (Maybe Text) Source #

A unique case-sensitive string used to ensure the request to create the query is idempotent (executes only once). If another CreateNamedQuery request is received, the same response is returned and another query is not created. If a parameter has changed, for example, the QueryString , an error is returned. Important: This token is listed as not required because AWS SDKs (for example the AWS SDK for Java) auto-generate the token for users. If you are not using the AWS SDK or the AWS CLI, you must provide this token or the action will fail.

cnqDescription :: Lens' CreateNamedQuery (Maybe Text) Source #

A brief explanation of the query.

cnqName :: Lens' CreateNamedQuery Text Source #

The plain language name for the query.

cnqDatabase :: Lens' CreateNamedQuery Text Source #

The database to which the query belongs.

cnqQueryString :: Lens' CreateNamedQuery Text Source #

The text of the query itself. In other words, all query statements.

Destructuring the Response

createNamedQueryResponse Source #

Creates a value of CreateNamedQueryResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateNamedQueryResponse Source #

See: createNamedQueryResponse smart constructor.

Instances
Eq CreateNamedQueryResponse Source # 
Instance details

Defined in Network.AWS.Athena.CreateNamedQuery

Data CreateNamedQueryResponse Source # 
Instance details

Defined in Network.AWS.Athena.CreateNamedQuery

Methods

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

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

toConstr :: CreateNamedQueryResponse -> Constr #

dataTypeOf :: CreateNamedQueryResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateNamedQueryResponse Source # 
Instance details

Defined in Network.AWS.Athena.CreateNamedQuery

Show CreateNamedQueryResponse Source # 
Instance details

Defined in Network.AWS.Athena.CreateNamedQuery

Generic CreateNamedQueryResponse Source # 
Instance details

Defined in Network.AWS.Athena.CreateNamedQuery

Associated Types

type Rep CreateNamedQueryResponse :: Type -> Type #

NFData CreateNamedQueryResponse Source # 
Instance details

Defined in Network.AWS.Athena.CreateNamedQuery

type Rep CreateNamedQueryResponse Source # 
Instance details

Defined in Network.AWS.Athena.CreateNamedQuery

type Rep CreateNamedQueryResponse = D1 (MetaData "CreateNamedQueryResponse" "Network.AWS.Athena.CreateNamedQuery" "amazonka-athena-1.6.1-3l4hGXnA3w2LezY8q3vNku" False) (C1 (MetaCons "CreateNamedQueryResponse'" PrefixI True) (S1 (MetaSel (Just "_cnqrsNamedQueryId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cnqrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses