We recommend new projects start with resources from the AWS provider.
aws-native.s3express.DirectoryBucket
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::S3Express::DirectoryBucket.
Create DirectoryBucket Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DirectoryBucket(name: string, args: DirectoryBucketArgs, opts?: CustomResourceOptions);
@overload
def DirectoryBucket(resource_name: str,
args: DirectoryBucketArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DirectoryBucket(resource_name: str,
opts: Optional[ResourceOptions] = None,
data_redundancy: Optional[DirectoryBucketDataRedundancy] = None,
location_name: Optional[str] = None,
bucket_encryption: Optional[DirectoryBucketBucketEncryptionArgs] = None,
bucket_name: Optional[str] = None)
func NewDirectoryBucket(ctx *Context, name string, args DirectoryBucketArgs, opts ...ResourceOption) (*DirectoryBucket, error)
public DirectoryBucket(string name, DirectoryBucketArgs args, CustomResourceOptions? opts = null)
public DirectoryBucket(String name, DirectoryBucketArgs args)
public DirectoryBucket(String name, DirectoryBucketArgs args, CustomResourceOptions options)
type: aws-native:s3express:DirectoryBucket
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DirectoryBucketArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DirectoryBucketArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DirectoryBucketArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DirectoryBucketArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DirectoryBucketArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DirectoryBucket Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DirectoryBucket resource accepts the following input properties:
- Data
Redundancy Pulumi.Aws Native. S3Express. Directory Bucket Data Redundancy - Specifies the number of Availability Zone that's used for redundancy for the bucket.
- Location
Name string - Specifies the AZ ID of the Availability Zone where the directory bucket will be created. An example AZ ID value is 'use1-az5'.
- Bucket
Encryption Pulumi.Aws Native. S3Express. Inputs. Directory Bucket Bucket Encryption - Specifies default encryption for a bucket using server-side encryption with Amazon S3 managed keys (SSE-S3) or AWS KMS keys (SSE-KMS). For information about default encryption for directory buckets, see Setting and monitoring default encryption for directory buckets in the Amazon S3 User Guide .
- Bucket
Name string - 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. The bucket name must also follow the format 'bucket_base_name--az_id--x-s3' (for example, 'DOC-EXAMPLE-BUCKET--usw2-az1--x-s3'). If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the bucket name.
- Data
Redundancy DirectoryBucket Data Redundancy - Specifies the number of Availability Zone that's used for redundancy for the bucket.
- Location
Name string - Specifies the AZ ID of the Availability Zone where the directory bucket will be created. An example AZ ID value is 'use1-az5'.
- Bucket
Encryption DirectoryBucket Bucket Encryption Args - Specifies default encryption for a bucket using server-side encryption with Amazon S3 managed keys (SSE-S3) or AWS KMS keys (SSE-KMS). For information about default encryption for directory buckets, see Setting and monitoring default encryption for directory buckets in the Amazon S3 User Guide .
- Bucket
Name string - 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. The bucket name must also follow the format 'bucket_base_name--az_id--x-s3' (for example, 'DOC-EXAMPLE-BUCKET--usw2-az1--x-s3'). If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the bucket name.
- data
Redundancy DirectoryBucket Data Redundancy - Specifies the number of Availability Zone that's used for redundancy for the bucket.
- location
Name String - Specifies the AZ ID of the Availability Zone where the directory bucket will be created. An example AZ ID value is 'use1-az5'.
- bucket
Encryption DirectoryBucket Bucket Encryption - Specifies default encryption for a bucket using server-side encryption with Amazon S3 managed keys (SSE-S3) or AWS KMS keys (SSE-KMS). For information about default encryption for directory buckets, see Setting and monitoring default encryption for directory buckets in the Amazon S3 User Guide .
- bucket
Name String - 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. The bucket name must also follow the format 'bucket_base_name--az_id--x-s3' (for example, 'DOC-EXAMPLE-BUCKET--usw2-az1--x-s3'). If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the bucket name.
- data
Redundancy DirectoryBucket Data Redundancy - Specifies the number of Availability Zone that's used for redundancy for the bucket.
- location
Name string - Specifies the AZ ID of the Availability Zone where the directory bucket will be created. An example AZ ID value is 'use1-az5'.
- bucket
Encryption DirectoryBucket Bucket Encryption - Specifies default encryption for a bucket using server-side encryption with Amazon S3 managed keys (SSE-S3) or AWS KMS keys (SSE-KMS). For information about default encryption for directory buckets, see Setting and monitoring default encryption for directory buckets in the Amazon S3 User Guide .
- bucket
Name string - 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. The bucket name must also follow the format 'bucket_base_name--az_id--x-s3' (for example, 'DOC-EXAMPLE-BUCKET--usw2-az1--x-s3'). If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the bucket name.
- data_
redundancy DirectoryBucket Data Redundancy - Specifies the number of Availability Zone that's used for redundancy for the bucket.
- location_
name str - Specifies the AZ ID of the Availability Zone where the directory bucket will be created. An example AZ ID value is 'use1-az5'.
- bucket_
encryption DirectoryBucket Bucket Encryption Args - Specifies default encryption for a bucket using server-side encryption with Amazon S3 managed keys (SSE-S3) or AWS KMS keys (SSE-KMS). For information about default encryption for directory buckets, see Setting and monitoring default encryption for directory buckets in the Amazon S3 User Guide .
- bucket_
name str - 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. The bucket name must also follow the format 'bucket_base_name--az_id--x-s3' (for example, 'DOC-EXAMPLE-BUCKET--usw2-az1--x-s3'). If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the bucket name.
- data
Redundancy "SingleAvailability Zone" - Specifies the number of Availability Zone that's used for redundancy for the bucket.
- location
Name String - Specifies the AZ ID of the Availability Zone where the directory bucket will be created. An example AZ ID value is 'use1-az5'.
- bucket
Encryption Property Map - Specifies default encryption for a bucket using server-side encryption with Amazon S3 managed keys (SSE-S3) or AWS KMS keys (SSE-KMS). For information about default encryption for directory buckets, see Setting and monitoring default encryption for directory buckets in the Amazon S3 User Guide .
- bucket
Name String - 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. The bucket name must also follow the format 'bucket_base_name--az_id--x-s3' (for example, 'DOC-EXAMPLE-BUCKET--usw2-az1--x-s3'). If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the bucket name.
Outputs
All input properties are implicitly available as output properties. Additionally, the DirectoryBucket resource produces the following output properties:
- Arn string
- Returns the Amazon Resource Name (ARN) of the specified bucket.
- Availability
Zone stringName - Returns the code for the Availability Zone where the directory bucket was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Arn string
- Returns the Amazon Resource Name (ARN) of the specified bucket.
- Availability
Zone stringName - Returns the code for the Availability Zone where the directory bucket was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- arn String
- Returns the Amazon Resource Name (ARN) of the specified bucket.
- availability
Zone StringName - Returns the code for the Availability Zone where the directory bucket was created.
- id String
- The provider-assigned unique ID for this managed resource.
- arn string
- Returns the Amazon Resource Name (ARN) of the specified bucket.
- availability
Zone stringName - Returns the code for the Availability Zone where the directory bucket was created.
- id string
- The provider-assigned unique ID for this managed resource.
- arn str
- Returns the Amazon Resource Name (ARN) of the specified bucket.
- availability_
zone_ strname - Returns the code for the Availability Zone where the directory bucket was created.
- id str
- The provider-assigned unique ID for this managed resource.
- arn String
- Returns the Amazon Resource Name (ARN) of the specified bucket.
- availability
Zone StringName - Returns the code for the Availability Zone where the directory bucket was created.
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
DirectoryBucketBucketEncryption, DirectoryBucketBucketEncryptionArgs
- Server
Side List<Pulumi.Encryption Configuration Aws Native. S3Express. Inputs. Directory Bucket Server Side Encryption Rule> - Specifies the default server-side-encryption configuration.
- Server
Side []DirectoryEncryption Configuration Bucket Server Side Encryption Rule - Specifies the default server-side-encryption configuration.
- server
Side List<DirectoryEncryption Configuration Bucket Server Side Encryption Rule> - Specifies the default server-side-encryption configuration.
- server
Side DirectoryEncryption Configuration Bucket Server Side Encryption Rule[] - Specifies the default server-side-encryption configuration.
- server_
side_ Sequence[Directoryencryption_ configuration Bucket Server Side Encryption Rule] - Specifies the default server-side-encryption configuration.
- server
Side List<Property Map>Encryption Configuration - Specifies the default server-side-encryption configuration.
DirectoryBucketDataRedundancy, DirectoryBucketDataRedundancyArgs
- Single
Availability Zone - SingleAvailabilityZone
- Directory
Bucket Data Redundancy Single Availability Zone - SingleAvailabilityZone
- Single
Availability Zone - SingleAvailabilityZone
- Single
Availability Zone - SingleAvailabilityZone
- SINGLE_AVAILABILITY_ZONE
- SingleAvailabilityZone
- "Single
Availability Zone" - SingleAvailabilityZone
DirectoryBucketServerSideEncryptionByDefault, DirectoryBucketServerSideEncryptionByDefaultArgs
- Sse
Algorithm Pulumi.Aws Native. S3Express. Directory Bucket Server Side Encryption By Default Sse Algorithm Server-side encryption algorithm to use for the default encryption.
For directory buckets, there are only two supported values for server-side encryption:
AES256
andaws:kms
.- Kms
Master stringKey Id - AWS Key Management Service (KMS) customer managed key ID to use for the default encryption. This parameter is allowed only if SSEAlgorithm is set to aws:kms. You can specify this parameter with the key ID or the Amazon Resource Name (ARN) of the KMS key
- Sse
Algorithm DirectoryBucket Server Side Encryption By Default Sse Algorithm Server-side encryption algorithm to use for the default encryption.
For directory buckets, there are only two supported values for server-side encryption:
AES256
andaws:kms
.- Kms
Master stringKey Id - AWS Key Management Service (KMS) customer managed key ID to use for the default encryption. This parameter is allowed only if SSEAlgorithm is set to aws:kms. You can specify this parameter with the key ID or the Amazon Resource Name (ARN) of the KMS key
- sse
Algorithm DirectoryBucket Server Side Encryption By Default Sse Algorithm Server-side encryption algorithm to use for the default encryption.
For directory buckets, there are only two supported values for server-side encryption:
AES256
andaws:kms
.- kms
Master StringKey Id - AWS Key Management Service (KMS) customer managed key ID to use for the default encryption. This parameter is allowed only if SSEAlgorithm is set to aws:kms. You can specify this parameter with the key ID or the Amazon Resource Name (ARN) of the KMS key
- sse
Algorithm DirectoryBucket Server Side Encryption By Default Sse Algorithm Server-side encryption algorithm to use for the default encryption.
For directory buckets, there are only two supported values for server-side encryption:
AES256
andaws:kms
.- kms
Master stringKey Id - AWS Key Management Service (KMS) customer managed key ID to use for the default encryption. This parameter is allowed only if SSEAlgorithm is set to aws:kms. You can specify this parameter with the key ID or the Amazon Resource Name (ARN) of the KMS key
- sse_
algorithm DirectoryBucket Server Side Encryption By Default Sse Algorithm Server-side encryption algorithm to use for the default encryption.
For directory buckets, there are only two supported values for server-side encryption:
AES256
andaws:kms
.- kms_
master_ strkey_ id - AWS Key Management Service (KMS) customer managed key ID to use for the default encryption. This parameter is allowed only if SSEAlgorithm is set to aws:kms. You can specify this parameter with the key ID or the Amazon Resource Name (ARN) of the KMS key
- sse
Algorithm "aws:kms" | "AES256" Server-side encryption algorithm to use for the default encryption.
For directory buckets, there are only two supported values for server-side encryption:
AES256
andaws:kms
.- kms
Master StringKey Id - AWS Key Management Service (KMS) customer managed key ID to use for the default encryption. This parameter is allowed only if SSEAlgorithm is set to aws:kms. You can specify this parameter with the key ID or the Amazon Resource Name (ARN) of the KMS key
DirectoryBucketServerSideEncryptionByDefaultSseAlgorithm, DirectoryBucketServerSideEncryptionByDefaultSseAlgorithmArgs
- Awskms
- aws:kms
- Aes256
- AES256
- Directory
Bucket Server Side Encryption By Default Sse Algorithm Awskms - aws:kms
- Directory
Bucket Server Side Encryption By Default Sse Algorithm Aes256 - AES256
- Awskms
- aws:kms
- Aes256
- AES256
- Awskms
- aws:kms
- Aes256
- AES256
- AWSKMS
- aws:kms
- AES256
- AES256
- "aws:kms"
- aws:kms
- "AES256"
- AES256
DirectoryBucketServerSideEncryptionRule, DirectoryBucketServerSideEncryptionRuleArgs
- Bucket
Key boolEnabled - Specifies whether Amazon S3 should use an S3 Bucket Key with server-side encryption using KMS (SSE-KMS) for new objects in the bucket. Existing objects are not affected. Amazon S3 Express One Zone uses an S3 Bucket Key with SSE-KMS and S3 Bucket Key cannot be disabled. It's only allowed to set the BucketKeyEnabled element to true.
- Server
Side Pulumi.Encryption By Default Aws Native. S3Express. Inputs. Directory Bucket Server Side Encryption By Default - Specifies the default server-side encryption to apply to new objects in the bucket. If a PUT Object request doesn't specify any server-side encryption, this default encryption will be applied.
- Bucket
Key boolEnabled - Specifies whether Amazon S3 should use an S3 Bucket Key with server-side encryption using KMS (SSE-KMS) for new objects in the bucket. Existing objects are not affected. Amazon S3 Express One Zone uses an S3 Bucket Key with SSE-KMS and S3 Bucket Key cannot be disabled. It's only allowed to set the BucketKeyEnabled element to true.
- Server
Side DirectoryEncryption By Default Bucket Server Side Encryption By Default - Specifies the default server-side encryption to apply to new objects in the bucket. If a PUT Object request doesn't specify any server-side encryption, this default encryption will be applied.
- bucket
Key BooleanEnabled - Specifies whether Amazon S3 should use an S3 Bucket Key with server-side encryption using KMS (SSE-KMS) for new objects in the bucket. Existing objects are not affected. Amazon S3 Express One Zone uses an S3 Bucket Key with SSE-KMS and S3 Bucket Key cannot be disabled. It's only allowed to set the BucketKeyEnabled element to true.
- server
Side DirectoryEncryption By Default Bucket Server Side Encryption By Default - Specifies the default server-side encryption to apply to new objects in the bucket. If a PUT Object request doesn't specify any server-side encryption, this default encryption will be applied.
- bucket
Key booleanEnabled - Specifies whether Amazon S3 should use an S3 Bucket Key with server-side encryption using KMS (SSE-KMS) for new objects in the bucket. Existing objects are not affected. Amazon S3 Express One Zone uses an S3 Bucket Key with SSE-KMS and S3 Bucket Key cannot be disabled. It's only allowed to set the BucketKeyEnabled element to true.
- server
Side DirectoryEncryption By Default Bucket Server Side Encryption By Default - Specifies the default server-side encryption to apply to new objects in the bucket. If a PUT Object request doesn't specify any server-side encryption, this default encryption will be applied.
- bucket_
key_ boolenabled - Specifies whether Amazon S3 should use an S3 Bucket Key with server-side encryption using KMS (SSE-KMS) for new objects in the bucket. Existing objects are not affected. Amazon S3 Express One Zone uses an S3 Bucket Key with SSE-KMS and S3 Bucket Key cannot be disabled. It's only allowed to set the BucketKeyEnabled element to true.
- server_
side_ Directoryencryption_ by_ default Bucket Server Side Encryption By Default - Specifies the default server-side encryption to apply to new objects in the bucket. If a PUT Object request doesn't specify any server-side encryption, this default encryption will be applied.
- bucket
Key BooleanEnabled - Specifies whether Amazon S3 should use an S3 Bucket Key with server-side encryption using KMS (SSE-KMS) for new objects in the bucket. Existing objects are not affected. Amazon S3 Express One Zone uses an S3 Bucket Key with SSE-KMS and S3 Bucket Key cannot be disabled. It's only allowed to set the BucketKeyEnabled element to true.
- server
Side Property MapEncryption By Default - Specifies the default server-side encryption to apply to new objects in the bucket. If a PUT Object request doesn't specify any server-side encryption, this default encryption will be applied.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.