# S3JournalStorageHostingExtensions Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.journaling.s3/orleans.journaling.s3journalstoragehostingextensions/)

## AddS3JournalStorage(ISiloBuilder) {#adds3journalstorage-this-orleans-hosting-isilobuilder-f141485f}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.journaling.s3/orleans.journaling.s3journalstoragehostingextensions/methods/adds3journalstorage-this-orleans-hosting-isilobuilder-f141485f/)

[Source](https://github.com/dotnet/orleans/blob/1644940b035c7bdf215a4fd7135757c06bcfe9ec/src/AWS/Orleans.Journaling.S3/S3JournalStorageHostingExtensions.cs#L18)

```csharp
public static ISiloBuilder AddS3JournalStorage(this ISiloBuilder builder)
```

Configures Amazon S3 as the journal storage provider.

### Parameters

- `builder` (`ISiloBuilder`): The silo builder.

### Returns

The silo builder.

## AddS3JournalStorage(ISiloBuilder, Action&lt;S3JournalStorageOptions&gt;) {#adds3journalstorage-this-orleans-hosting-isilobuilder-system-action-orleans-jour-d0ff4d6c}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.journaling.s3/orleans.journaling.s3journalstoragehostingextensions/methods/adds3journalstorage-this-orleans-hosting-isilobuilder-system-action-orleans-jour-d0ff4d6c/)

[Source](https://github.com/dotnet/orleans/blob/1644940b035c7bdf215a4fd7135757c06bcfe9ec/src/AWS/Orleans.Journaling.S3/S3JournalStorageHostingExtensions.cs#L31-L51)

```csharp
public static ISiloBuilder AddS3JournalStorage(this ISiloBuilder builder, Action<S3JournalStorageOptions>? configure)
```

Configures Amazon S3 as the journal storage provider.

### Parameters

- `builder` (`ISiloBuilder`): The silo builder.
- `configure` (`Action<S3JournalStorageOptions>`): The Amazon S3 journal storage configuration delegate.

### Returns

The silo builder.

### Exceptions

- `System.ArgumentNullException`: `builder` is `null`.
