amazonka-ml-1.4.5: Amazon Machine Learning SDK.

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

Network.AWS.MachineLearning.UpdateDataSource

Contents

Description

Updates the DataSourceName of a DataSource .

You can use the GetDataSource operation to view the contents of the updated data element.

Synopsis

Creating a Request

updateDataSource #

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

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

  • udsDataSourceId - The ID assigned to the DataSource during creation.
  • udsDataSourceName - A new user-supplied name or description of the DataSource that will replace the current description.

data UpdateDataSource #

See: updateDataSource smart constructor.

Instances

Eq UpdateDataSource # 
Data UpdateDataSource # 

Methods

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

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

toConstr :: UpdateDataSource -> Constr #

dataTypeOf :: UpdateDataSource -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateDataSource # 
Show UpdateDataSource # 
Generic UpdateDataSource # 
Hashable UpdateDataSource # 
ToJSON UpdateDataSource # 
NFData UpdateDataSource # 

Methods

rnf :: UpdateDataSource -> () #

AWSRequest UpdateDataSource # 
ToQuery UpdateDataSource # 
ToPath UpdateDataSource # 
ToHeaders UpdateDataSource # 
type Rep UpdateDataSource # 
type Rep UpdateDataSource = D1 (MetaData "UpdateDataSource" "Network.AWS.MachineLearning.UpdateDataSource" "amazonka-ml-1.4.5-CevT0Y7DDZXCSb8Nqca7UU" False) (C1 (MetaCons "UpdateDataSource'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_udsDataSourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_udsDataSourceName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs UpdateDataSource # 

Request Lenses

udsDataSourceId :: Lens' UpdateDataSource Text #

The ID assigned to the DataSource during creation.

udsDataSourceName :: Lens' UpdateDataSource Text #

A new user-supplied name or description of the DataSource that will replace the current description.

Destructuring the Response

updateDataSourceResponse #

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

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

  • udsrsDataSourceId - The ID assigned to the DataSource during creation. This value should be identical to the value of the DataSourceID in the request.
  • udsrsResponseStatus - -- | The response status code.

data UpdateDataSourceResponse #

Represents the output of an UpdateDataSource operation.

You can see the updated content by using the GetBatchPrediction operation.

See: updateDataSourceResponse smart constructor.

Instances

Eq UpdateDataSourceResponse # 
Data UpdateDataSourceResponse # 

Methods

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

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

toConstr :: UpdateDataSourceResponse -> Constr #

dataTypeOf :: UpdateDataSourceResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateDataSourceResponse # 
Show UpdateDataSourceResponse # 
Generic UpdateDataSourceResponse # 
NFData UpdateDataSourceResponse # 
type Rep UpdateDataSourceResponse # 
type Rep UpdateDataSourceResponse = D1 (MetaData "UpdateDataSourceResponse" "Network.AWS.MachineLearning.UpdateDataSource" "amazonka-ml-1.4.5-CevT0Y7DDZXCSb8Nqca7UU" False) (C1 (MetaCons "UpdateDataSourceResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_udsrsDataSourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_udsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

udsrsDataSourceId :: Lens' UpdateDataSourceResponse (Maybe Text) #

The ID assigned to the DataSource during creation. This value should be identical to the value of the DataSourceID in the request.

udsrsResponseStatus :: Lens' UpdateDataSourceResponse Int #

  • - | The response status code.