# S3JournalStorageHostingExtensions Methods

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

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

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

[Source](https://github.com/dotnet/orleans/blob/4e887e9c914a2f2647fb3c81de963511521dd9cb/src/AWS/Orleans.Durable.S3/S3JournalStorageHostingExtensions.cs#L17)

```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-dura-d0ff4d6c}

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

[Source](https://github.com/dotnet/orleans/blob/4e887e9c914a2f2647fb3c81de963511521dd9cb/src/AWS/Orleans.Durable.S3/S3JournalStorageHostingExtensions.cs#L29)

```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`.

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

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

[Source](https://github.com/dotnet/orleans/blob/4e887e9c914a2f2647fb3c81de963511521dd9cb/src/AWS/Orleans.Durable.S3/S3JournalStorageHostingExtensions.cs#L49-L64)

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

Configures a named Amazon S3 journal provider.

### Parameters

- `builder` (`ISiloBuilder`): The silo builder.
- `name` (`string`): The provider name.
- `configure` (`Action<S3JournalStorageOptions>`): The delegate used to configure this provider, or `null` to use separately configured options.

### Returns

The silo builder.

### Exceptions

- `System.ArgumentNullException`: `builder` is `null`.
- `System.ArgumentException`: `name` is empty or whitespace.
