amazonka-appsync-1.6.1: 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 # 
Instance details

Defined in Network.AWS.AppSync.CreateDataSource

Data CreateDataSource Source # 
Instance details

Defined in Network.AWS.AppSync.CreateDataSource

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 # 
Instance details

Defined in Network.AWS.AppSync.CreateDataSource

Show CreateDataSource Source # 
Instance details

Defined in Network.AWS.AppSync.CreateDataSource

Generic CreateDataSource Source # 
Instance details

Defined in Network.AWS.AppSync.CreateDataSource

Associated Types

type Rep CreateDataSource :: Type -> Type #

Hashable CreateDataSource Source # 
Instance details

Defined in Network.AWS.AppSync.CreateDataSource

ToJSON CreateDataSource Source # 
Instance details

Defined in Network.AWS.AppSync.CreateDataSource

AWSRequest CreateDataSource Source # 
Instance details

Defined in Network.AWS.AppSync.CreateDataSource

Associated Types

type Rs CreateDataSource :: Type #

ToHeaders CreateDataSource Source # 
Instance details

Defined in Network.AWS.AppSync.CreateDataSource

ToPath CreateDataSource Source # 
Instance details

Defined in Network.AWS.AppSync.CreateDataSource

ToQuery CreateDataSource Source # 
Instance details

Defined in Network.AWS.AppSync.CreateDataSource

NFData CreateDataSource Source # 
Instance details

Defined in Network.AWS.AppSync.CreateDataSource

Methods

rnf :: CreateDataSource -> () #

type Rep CreateDataSource Source # 
Instance details

Defined in Network.AWS.AppSync.CreateDataSource

type Rs CreateDataSource Source # 
Instance details

Defined in Network.AWS.AppSync.CreateDataSource

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 # 
Instance details

Defined in Network.AWS.AppSync.CreateDataSource

Data CreateDataSourceResponse Source # 
Instance details

Defined in Network.AWS.AppSync.CreateDataSource

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 # 
Instance details

Defined in Network.AWS.AppSync.CreateDataSource

Show CreateDataSourceResponse Source # 
Instance details

Defined in Network.AWS.AppSync.CreateDataSource

Generic CreateDataSourceResponse Source # 
Instance details

Defined in Network.AWS.AppSync.CreateDataSource

Associated Types

type Rep CreateDataSourceResponse :: Type -> Type #

NFData CreateDataSourceResponse Source # 
Instance details

Defined in Network.AWS.AppSync.CreateDataSource

type Rep CreateDataSourceResponse Source # 
Instance details

Defined in Network.AWS.AppSync.CreateDataSource

type Rep CreateDataSourceResponse = D1 (MetaData "CreateDataSourceResponse" "Network.AWS.AppSync.CreateDataSource" "amazonka-appsync-1.6.1-4DHxIkxAhvS86OTagCP3cH" False) (C1 (MetaCons "CreateDataSourceResponse'" PrefixI True) (S1 (MetaSel (Just "_cdsrsDataSource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DataSource)) :*: S1 (MetaSel (Just "_cdsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses