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

Amazonka.MachineLearning.UpdateDataSource

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

data UpdateDataSource Source #

See: newUpdateDataSource smart constructor.

Constructors

UpdateDataSource' 

Fields

  • dataSourceId :: Text

    The ID assigned to the DataSource during creation.

  • dataSourceName :: Text

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

Instances

Instances details
Eq UpdateDataSource Source # 
Instance details

Defined in Amazonka.MachineLearning.UpdateDataSource

Read UpdateDataSource Source # 
Instance details

Defined in Amazonka.MachineLearning.UpdateDataSource

Show UpdateDataSource Source # 
Instance details

Defined in Amazonka.MachineLearning.UpdateDataSource

Generic UpdateDataSource Source # 
Instance details

Defined in Amazonka.MachineLearning.UpdateDataSource

Associated Types

type Rep UpdateDataSource :: Type -> Type #

NFData UpdateDataSource Source # 
Instance details

Defined in Amazonka.MachineLearning.UpdateDataSource

Methods

rnf :: UpdateDataSource -> () #

Hashable UpdateDataSource Source # 
Instance details

Defined in Amazonka.MachineLearning.UpdateDataSource

ToJSON UpdateDataSource Source # 
Instance details

Defined in Amazonka.MachineLearning.UpdateDataSource

AWSRequest UpdateDataSource Source # 
Instance details

Defined in Amazonka.MachineLearning.UpdateDataSource

Associated Types

type AWSResponse UpdateDataSource #

ToHeaders UpdateDataSource Source # 
Instance details

Defined in Amazonka.MachineLearning.UpdateDataSource

ToPath UpdateDataSource Source # 
Instance details

Defined in Amazonka.MachineLearning.UpdateDataSource

ToQuery UpdateDataSource Source # 
Instance details

Defined in Amazonka.MachineLearning.UpdateDataSource

type Rep UpdateDataSource Source # 
Instance details

Defined in Amazonka.MachineLearning.UpdateDataSource

type Rep UpdateDataSource = D1 ('MetaData "UpdateDataSource" "Amazonka.MachineLearning.UpdateDataSource" "libZSservicesZSamazonka-mlZSamazonka-ml" 'False) (C1 ('MetaCons "UpdateDataSource'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dataSourceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "dataSourceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse UpdateDataSource Source # 
Instance details

Defined in Amazonka.MachineLearning.UpdateDataSource

newUpdateDataSource Source #

Create a value of UpdateDataSource with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:dataSourceId:UpdateDataSource', updateDataSource_dataSourceId - The ID assigned to the DataSource during creation.

$sel:dataSourceName:UpdateDataSource', updateDataSource_dataSourceName - A new user-supplied name or description of the DataSource that will replace the current description.

Request Lenses

updateDataSource_dataSourceId :: Lens' UpdateDataSource Text Source #

The ID assigned to the DataSource during creation.

updateDataSource_dataSourceName :: Lens' UpdateDataSource Text Source #

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

Destructuring the Response

data UpdateDataSourceResponse Source #

Represents the output of an UpdateDataSource operation.

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

See: newUpdateDataSourceResponse smart constructor.

Constructors

UpdateDataSourceResponse' 

Fields

  • dataSourceId :: Maybe Text

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

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq UpdateDataSourceResponse Source # 
Instance details

Defined in Amazonka.MachineLearning.UpdateDataSource

Read UpdateDataSourceResponse Source # 
Instance details

Defined in Amazonka.MachineLearning.UpdateDataSource

Show UpdateDataSourceResponse Source # 
Instance details

Defined in Amazonka.MachineLearning.UpdateDataSource

Generic UpdateDataSourceResponse Source # 
Instance details

Defined in Amazonka.MachineLearning.UpdateDataSource

Associated Types

type Rep UpdateDataSourceResponse :: Type -> Type #

NFData UpdateDataSourceResponse Source # 
Instance details

Defined in Amazonka.MachineLearning.UpdateDataSource

type Rep UpdateDataSourceResponse Source # 
Instance details

Defined in Amazonka.MachineLearning.UpdateDataSource

type Rep UpdateDataSourceResponse = D1 ('MetaData "UpdateDataSourceResponse" "Amazonka.MachineLearning.UpdateDataSource" "libZSservicesZSamazonka-mlZSamazonka-ml" 'False) (C1 ('MetaCons "UpdateDataSourceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dataSourceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newUpdateDataSourceResponse Source #

Create a value of UpdateDataSourceResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:dataSourceId:UpdateDataSource', updateDataSourceResponse_dataSourceId - The ID assigned to the DataSource during creation. This value should be identical to the value of the DataSourceID in the request.

$sel:httpStatus:UpdateDataSourceResponse', updateDataSourceResponse_httpStatus - The response's http status code.

Response Lenses

updateDataSourceResponse_dataSourceId :: Lens' UpdateDataSourceResponse (Maybe Text) Source #

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