# CosmosOptions Properties

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleans.persistence.cosmos.cosmosoptions/)

## CleanResourcesOnInitialization {#cleanresourcesoninitialization-aa8c8bbf}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleans.persistence.cosmos.cosmosoptions/properties/cleanresourcesoninitialization-aa8c8bbf/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Shared/Cosmos/CosmosOptions.cs)

```csharp
public bool CleanResourcesOnInitialization
```

Delete the database on initialization. Intended only for testing scenarios.

## ClientOptions {#clientoptions-84c7ca84}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleans.persistence.cosmos.cosmosoptions/properties/clientoptions-84c7ca84/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Shared/Cosmos/CosmosOptions.cs)

```csharp
public CosmosClientOptions ClientOptions
```

The options passed to the Cosmos DB client.

## ContainerName {#containername-8bb7fa81}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleans.persistence.cosmos.cosmosoptions/properties/containername-8bb7fa81/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Shared/Cosmos/CosmosOptions.cs)

```csharp
public string ContainerName
```

The name of the container to use to store clustering information.

## ContainerThroughputProperties {#containerthroughputproperties-5f3f0cd0}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleans.persistence.cosmos.cosmosoptions/properties/containerthroughputproperties-5f3f0cd0/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Shared/Cosmos/CosmosOptions.cs)

```csharp
public ThroughputProperties? ContainerThroughputProperties
```

Throughput properties for containers. The default value is `null`, which indicates that the serverless throughput mode will be used.

## DatabaseName {#databasename-5e20a791}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleans.persistence.cosmos.cosmosoptions/properties/databasename-5e20a791/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Shared/Cosmos/CosmosOptions.cs)

```csharp
public string DatabaseName
```

The name of the database to use for clustering information. Defaults to `Orleans`.

## DatabaseThroughput {#databasethroughput-9765422d}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleans.persistence.cosmos.cosmosoptions/properties/databasethroughput-9765422d/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Shared/Cosmos/CosmosOptions.cs)

```csharp
public int? DatabaseThroughput
```

Database configured throughput. If set to `null`, which is the default value, it will not be configured.

## IsResourceCreationEnabled {#isresourcecreationenabled-fc4203aa}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleans.persistence.cosmos.cosmosoptions/properties/isresourcecreationenabled-fc4203aa/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Shared/Cosmos/CosmosOptions.cs)

```csharp
public bool IsResourceCreationEnabled
```

Tries to create the database and container used for clustering if it does not exist. Defaults to `false`.

## OperationExecutor {#operationexecutor-def04409}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleans.persistence.cosmos.cosmosoptions/properties/operationexecutor-def04409/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Shared/Cosmos/CosmosOptions.cs)

```csharp
public ICosmosOperationExecutor OperationExecutor
```

The operation executor used to execute operations using the Cosmos DB client.
