# AwsUtilsHostingExtensions Methods

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

## UseDynamoDBClustering(IClientBuilder, Action&lt;DynamoDBGatewayOptions&gt;) {#usedynamodbclustering-this-orleans-hosting-iclientbuilder-system-action-orleans-b0462fd9}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.clustering.dynamodb/orleans.hosting.awsutilshostingextensions/methods/usedynamodbclustering-this-orleans-hosting-iclientbuilder-system-action-orleans-b0462fd9/)

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

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

Configures the client to use DynamoDB for clustering.

### Parameters

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

### Returns

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

## UseDynamoDBClustering(IClientBuilder, Action&lt;OptionsBuilder&lt;DynamoDBGatewayOptions&gt;&gt;) {#usedynamodbclustering-this-orleans-hosting-iclientbuilder-system-action-microsof-84d17c18}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.clustering.dynamodb/orleans.hosting.awsutilshostingextensions/methods/usedynamodbclustering-this-orleans-hosting-iclientbuilder-system-action-microsof-84d17c18/)

[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/).

## UseDynamoDBClustering(ISiloBuilder, Action&lt;DynamoDBClusteringOptions&gt;) {#usedynamodbclustering-this-orleans-hosting-isilobuilder-system-action-orleans-co-5de987d1}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.clustering.dynamodb/orleans.hosting.awsutilshostingextensions/methods/usedynamodbclustering-this-orleans-hosting-isilobuilder-system-action-orleans-co-5de987d1/)

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

```csharp
public static ISiloBuilder UseDynamoDBClustering(this ISiloBuilder builder, Action<DynamoDBClusteringOptions> configureOptions)
```

Configures the silo to use DynamoDB for clustering.

### Parameters

- `builder` (`ISiloBuilder`): The builder.
- `configureOptions` (`Action<DynamoDBClusteringOptions>`): The configuration delegate.

### Returns

The provided [ISiloBuilder](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.hosting.isilobuilder/).

## UseDynamoDBClustering(ISiloBuilder, Action&lt;OptionsBuilder&lt;DynamoDBClusteringOptions&gt;&gt;) {#usedynamodbclustering-this-orleans-hosting-isilobuilder-system-action-microsoft-2eb81ebe}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.clustering.dynamodb/orleans.hosting.awsutilshostingextensions/methods/usedynamodbclustering-this-orleans-hosting-isilobuilder-system-action-microsoft-2eb81ebe/)

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

```csharp
public static ISiloBuilder UseDynamoDBClustering(this ISiloBuilder builder, Action<OptionsBuilder<DynamoDBClusteringOptions>> configureOptions)
```

Configures the silo to use DynamoDB for clustering.

### Parameters

- `builder` (`ISiloBuilder`): The builder.
- `configureOptions` (`Action<OptionsBuilder<DynamoDBClusteringOptions>>`): The configuration delegate.

### Returns

The provided [ISiloBuilder](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.hosting.isilobuilder/).
