pulumi_wasm_providers_aws_mini::s3::bucket

Struct BucketArgs

source
pub struct BucketArgs {
Show 21 fields pub acceleration_status: Output<Option<String>>, pub acl: Output<Option<String>>, pub arn: Output<Option<String>>, pub bucket: Output<Option<String>>, pub bucket_prefix: Output<Option<String>>, pub cors_rules: Output<Option<Vec<BucketCorsRule>>>, pub force_destroy: Output<Option<bool>>, pub grants: Output<Option<Vec<BucketGrant>>>, pub hosted_zone_id: Output<Option<String>>, pub lifecycle_rules: Output<Option<Vec<BucketLifecycleRule>>>, pub loggings: Output<Option<Vec<BucketLogging>>>, pub object_lock_configuration: Output<Option<BucketObjectLockConfiguration>>, pub policy: Output<Option<String>>, pub replication_configuration: Output<Option<BucketReplicationConfiguration>>, pub request_payer: Output<Option<String>>, pub server_side_encryption_configuration: Output<Option<BucketServerSideEncryptionConfiguration>>, pub tags: Output<Option<HashMap<String, String>>>, pub versioning: Output<Option<BucketVersioning>>, pub website: Output<Option<BucketWebsite>>, pub website_domain: Output<Option<String>>, pub website_endpoint: Output<Option<String>>,
}

Fields§

§acceleration_status: Output<Option<String>>

Sets the accelerate configuration of an existing bucket. Can be Enabled or Suspended.

§acl: Output<Option<String>>

The canned ACL to apply. Valid values are private, public-read, public-read-write, aws-exec-read, authenticated-read, and log-delivery-write. Defaults to private. Conflicts with grant.

§arn: Output<Option<String>>

The ARN of the bucket. Will be of format arn:aws:s3:::bucketname.

§bucket: Output<Option<String>>

The name of the bucket. If omitted, this provider will assign a random, unique name. Must be lowercase and less than or equal to 63 characters in length. A full list of bucket naming rules may be found here.

§bucket_prefix: Output<Option<String>>

Creates a unique bucket name beginning with the specified prefix. Conflicts with bucket. Must be lowercase and less than or equal to 37 characters in length. A full list of bucket naming rules may be found here.

§cors_rules: Output<Option<Vec<BucketCorsRule>>>

A rule of Cross-Origin Resource Sharing (documented below).

§force_destroy: Output<Option<bool>>

A boolean that indicates all objects (including any locked objects) should be deleted from the bucket so that the bucket can be destroyed without error. These objects are not recoverable.

§grants: Output<Option<Vec<BucketGrant>>>

An ACL policy grant (documented below). Conflicts with acl.

§hosted_zone_id: Output<Option<String>>

The Route 53 Hosted Zone ID for this bucket’s region.

§lifecycle_rules: Output<Option<Vec<BucketLifecycleRule>>>

A configuration of object lifecycle management (documented below).

§loggings: Output<Option<Vec<BucketLogging>>>

A settings of bucket logging (documented below).

§object_lock_configuration: Output<Option<BucketObjectLockConfiguration>>

A configuration of S3 object locking (documented below)

NOTE: You cannot use acceleration_status in cn-north-1 or us-gov-west-1

§policy: Output<Option<String>>

A valid bucket policy JSON document. Note that if the policy document is not specific enough (but still valid), this provider may view the policy as constantly changing in a pulumi preview. In this case, please make sure you use the verbose/specific version of the policy.

§replication_configuration: Output<Option<BucketReplicationConfiguration>>

A configuration of replication configuration (documented below).

§request_payer: Output<Option<String>>

Specifies who should bear the cost of Amazon S3 data transfer. Can be either BucketOwner or Requester. By default, the owner of the S3 bucket would incur the costs of any data transfer. See Requester Pays Buckets developer guide for more information.

§server_side_encryption_configuration: Output<Option<BucketServerSideEncryptionConfiguration>>

A configuration of server-side encryption configuration (documented below)

§tags: Output<Option<HashMap<String, String>>>

A map of tags to assign to the bucket. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

§versioning: Output<Option<BucketVersioning>>

A state of versioning (documented below)

§website: Output<Option<BucketWebsite>>

A website object (documented below).

§website_domain: Output<Option<String>>

The domain of the website endpoint, if the bucket is configured with a website. If not, this will be an empty string. This is used to create Route 53 alias records.

§website_endpoint: Output<Option<String>>

The website endpoint, if the bucket is configured with a website. If not, this will be an empty string.

Implementations§

source§

impl BucketArgs

source

pub fn builder() -> BucketArgsBuilder

Create an instance of BucketArgs using the builder syntax

Trait Implementations§

source§

impl Clone for BucketArgs

source§

fn clone(&self) -> BucketArgs

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.