// Updates a data source.
Updates a data source.
// Updates a data source .
func (c *Client) UpdateDataSource(ctx context.Context, params *UpdateDataSourceInput, optFns ...func(*Options)) (*UpdateDataSourceOutput, error) {
	if params == nil {
		params = &UpdateDataSourceInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "UpdateDataSource", params, optFns, addOperationUpdateDataSourceMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*UpdateDataSourceOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) UpdateDataSource ( ctx context . Context , params * UpdateDataSourceInput , optFns ... func ( * Options ) ) ( * UpdateDataSourceOutput , error ) { if params == nil { params = & UpdateDataSourceInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationUpdateDataSourceMiddlewares ) if err != nil { return nil , err } out := result . ( * UpdateDataSourceOutput ) out . ResultMetadata = metadata return out , nil }
Updates a data source.
Updates a data source .