---
type: resource-type
title: DirectoryBucket
description: aws resource type AWS::S3Express::DirectoryBucket
name: DirectoryBucket
lexicon: aws
resource_type: AWS::S3Express::DirectoryBucket
---
`AWS::S3Express::DirectoryBucket`, a resource type of the aws lexicon.

## Properties

- `DataRedundancy` (`"SingleAvailabilityZone" | "SingleLocalZone"`, required): Specifies the number of Availability Zone or Local Zone that's used for redundancy for the bucket.
- `LocationName` (`string`, required): Specifies the Zone ID of the Availability Zone or Local Zone where the directory bucket will be created. An example Availability Zone ID value is 'use1-az5'.
- `Arn` (`string`, optional): Returns the Amazon Resource Name (ARN) of the specified bucket.
- `AvailabilityZoneName` (`string`, optional): Returns the code for the Availability Zone or Local Zone where the directory bucket was created. An example for the code of an Availability Zone is 'us-east-1f'.
- `BucketEncryption` (`DirectoryBucket_BucketEncryption`, optional)
- `BucketName` (`string`, optional): Specifies a name for the bucket. The bucket name must contain only lowercase letters, numbers, and hyphens (-). A directory bucket name must be unique in the chosen Availability Zone or Local Zone. The bucket name must also follow the format 'bucket_base_name--zone_id--x-s3'. The zone_id can be the ID of an Availability Zone or a Local Zone. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the bucket name.
- `InventoryConfigurations` (`DirectoryBucket_InventoryConfiguration[]`, optional): The inventory configuration for an Amazon S3 Express bucket.
- `LifecycleConfiguration` (`DirectoryBucket_LifecycleConfiguration`, optional): Lifecycle rules that define how Amazon S3 Express manages objects during their lifetime.
- `MetricsConfigurations` (`DirectoryBucket_MetricsConfiguration[]`, optional): Specifies the metrics configurations for the Amazon S3 Express bucket.
- `Tags` (`DirectoryBucket_Tag[]`, optional)

## Attributes

- `Arn`
- `AvailabilityZoneName`
