amazonka-appsync-1.6.0: Amazon AppSync 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.AppSync.CreateDataSource

Contents

Description

Creates a DataSource object.

Synopsis

Creating a Request

createDataSource Source #

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

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

data CreateDataSource Source #

See: createDataSource smart constructor.

Instances

Eq CreateDataSource Source # 
Data CreateDataSource Source # 

Methods

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

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

toConstr :: CreateDataSource -> Constr #

dataTypeOf :: CreateDataSource -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateDataSource Source # 
Show CreateDataSource Source # 
Generic CreateDataSource Source # 
Hashable CreateDataSource Source # 
ToJSON CreateDataSource Source # 
NFData CreateDataSource Source # 

Methods

rnf :: CreateDataSource -> () #

AWSRequest CreateDataSource Source # 
ToHeaders CreateDataSource Source # 
ToPath CreateDataSource Source # 
ToQuery CreateDataSource Source # 
type Rep CreateDataSource Source # 
type Rs CreateDataSource Source # 

Request Lenses

cdsServiceRoleARN :: Lens' CreateDataSource (Maybe Text) Source #

The IAM service role ARN for the data source. The system assumes this role when accessing the data source.

cdsDescription :: Lens' CreateDataSource (Maybe Text) Source #

A description of the DataSource .

cdsApiId :: Lens' CreateDataSource Text Source #

The API ID for the GraphQL API for the DataSource .

cdsName :: Lens' CreateDataSource Text Source #

A user-supplied name for the DataSource .

cdsType :: Lens' CreateDataSource DataSourceType Source #

The type of the DataSource .

Destructuring the Response

createDataSourceResponse Source #

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

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

data CreateDataSourceResponse Source #

See: createDataSourceResponse smart constructor.

Instances

Eq CreateDataSourceResponse Source # 
Data CreateDataSourceResponse Source # 

Methods

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

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

toConstr :: CreateDataSourceResponse -> Constr #

dataTypeOf :: CreateDataSourceResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateDataSourceResponse Source # 
Show CreateDataSourceResponse Source # 
Generic CreateDataSourceResponse Source # 
NFData CreateDataSourceResponse Source # 
type Rep CreateDataSourceResponse Source # 
type Rep CreateDataSourceResponse = D1 * (MetaData "CreateDataSourceResponse" "Network.AWS.AppSync.CreateDataSource" "amazonka-appsync-1.6.0-T90u3sf1xIAHhsH8NXxyF" False) (C1 * (MetaCons "CreateDataSourceResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_cdsrsDataSource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe DataSource))) (S1 * (MetaSel (Just Symbol "_cdsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses