# Class CdcStrategy (1.19.0)

1.19.0 (latest) 1.18.0 1.17.0 1.16.0 1.15.0 1.14.1 1.13.2 1.12.0 1.11.0 1.10.1 1.9.5 1.8.0 1.7.0 1.6.1 1.5.1 1.4.1 1.3.0 1.2.2 1.1.1 1.0.2 0.4.3 0.3.1 0.2.0 0.1.3

    CdcStrategy(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The strategy that the stream uses for CDC replication.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `most_recent_start_position` | `https://docs.cloud.google.com/python/docs/reference/datastream/latest/google.cloud.datastream_v1.types.CdcStrategy.MostRecentStartPosition` Optional. Start replicating from the most recent position in the source. This field is a member of `oneof`_ `start_position`. |
| `next_available_start_position` | `https://docs.cloud.google.com/python/docs/reference/datastream/latest/google.cloud.datastream_v1.types.CdcStrategy.NextAvailableStartPosition` Optional. Resume replication from the next available position in the source. This field is a member of `oneof`_ `start_position`. |
| `specific_start_position` | `https://docs.cloud.google.com/python/docs/reference/datastream/latest/google.cloud.datastream_v1.types.CdcStrategy.SpecificStartPosition` Optional. Start replicating from a specific position in the source. This field is a member of `oneof`_ `start_position`. |

## Classes

### MostRecentStartPosition

    MostRecentStartPosition(mapping=None, *, ignore_unknown_fields=False, **kwargs)

CDC strategy to start replicating from the most recent
position in the source.

### NextAvailableStartPosition

    NextAvailableStartPosition(mapping=None, *, ignore_unknown_fields=False, **kwargs)

CDC strategy to resume replication from the next available
position in the source.

### SpecificStartPosition

    SpecificStartPosition(mapping=None, *, ignore_unknown_fields=False, **kwargs)

CDC strategy to start replicating from a specific position in
the source.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>