# S3StorageOptionsProperty

The Amazon S3 storage options that are configured for your server.

- Source: Generated at build time
- Type last changed: v2.114.0 · 5 Dec 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_transfer as transfer } from 'aws-cdk-lib';
const s3StorageOptionsProperty: transfer.CfnServer.S3StorageOptionsProperty = {
  directoryListingOptimization: 'directoryListingOptimization',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_transfer as transfer

s3_storage_options_property = transfer.CfnServer.S3StorageOptionsProperty(
    directory_listing_optimization="directoryListingOptimization"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.transfer.*;

S3StorageOptionsProperty s3StorageOptionsProperty = S3StorageOptionsProperty.builder()
        .directoryListingOptimization("directoryListingOptimization")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Transfer;

var s3StorageOptionsProperty = new S3StorageOptionsProperty {
    DirectoryListingOptimization = "directoryListingOptimization"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

s3StorageOptionsProperty := &S3StorageOptionsProperty{
	DirectoryListingOptimization: jsii.String("directoryListingOptimization"),
}
```

## Properties

- `directoryListingOptimization`: string — Specifies whether or not performance for your Amazon S3 directories is optimized.

  - If using the console, this is enabled by default.
  - If using the API or CLI, this is disabled by default.

  By default, home directory mappings have a `TYPE` of `DIRECTORY` . If you enable this option, you would then need to explicitly set the `HomeDirectoryMapEntry` `Type` to `FILE` if you want a mapping to have a file target.
