# tff.program.ClientIdDataSource

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/federated/blob/v0.87.0 Version 2.0, January 2004 Licensed under the Apache License, Version 2.0 (the) |

A [`tff.program.FederatedDataSource`](https://www.tensorflow.org/federated/api_docs/python/tff/program/FederatedDataSource) backed by client ids.

Inherits From: [`FederatedDataSource`](https://www.tensorflow.org/federated/api_docs/python/tff/program/FederatedDataSource)

    tff.program.ClientIdDataSource(
        client_ids: Sequence[str]
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `client_ids` | A sequence of strings used to yield the client ids from this data source. Must not be empty. |

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `ValueError` | If `client_ids` is empty. |

<br />

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `federated_type` | The type of the data returned by calling `select` on an iterator. |

<br />

## Methods

### `iterator`

[View source](https://github.com/tensorflow/federated/blob/v0.87.0
Version 2.0, January 2004
Licensed under the Apache License, Version 2.0 (the)

    iterator() -> https://www.tensorflow.org/federated/api_docs/python/tff/program/FederatedDataSourceIterator

Returns a new iterator for retrieving client ids from this data source.