# AwsUtilsHostingExtensions.UseDynamoDBClustering(IClientBuilder, Action&lt;OptionsBuilder&lt;DynamoDBGatewayOptions&gt;&gt;)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.clustering.dynamodb/orleans.hosting.awsutilshostingextensions/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.clustering.dynamodb/orleans.hosting.awsutilshostingextensions/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/AWS/Orleans.Clustering.DynamoDB/AWSUtilsHostingExtensions.cs)

```csharp
public static IClientBuilder UseDynamoDBClustering(this IClientBuilder builder, Action<OptionsBuilder<DynamoDBGatewayOptions>> configureOptions)
```

Configures the client to use DynamoDB for clustering.

### Parameters

- `builder` (`IClientBuilder`): The builder.
- `configureOptions` (`Action<OptionsBuilder<DynamoDBGatewayOptions>>`): The configuration delegate.

### Returns

The provided [IClientBuilder](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.hosting.iclientbuilder/).
