S3StorageOptionsProperty Struct
The Amazon S3 storage options that are configured for your server.
| Source | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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"
};
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
directoryListingOptimizationoptionalstringdirectory_listing_optimizationoptionalstrdirectoryListingOptimizationoptionalStringDirectoryListingOptimizationoptionalstringDirectoryListingOptimizationoptional*string #Specifies whether or not performance for your Amazon S3 directories is optimized.
notes
- 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.