pulumi_wasm_providers_aws_mini::s3::bucket

Struct BucketArgsBuilder

source
pub struct BucketArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build_struct().

Implementations§

source§

impl<S: State> BucketArgsBuilder<S>

source

pub fn build_struct(self) -> BucketArgs
where S: IsComplete,

Finish building and return the requested object

source

pub fn acceleration_status( self, value: impl Into<Output<Option<String>>>, ) -> BucketArgsBuilder<SetAccelerationStatus<S>>
where S::AccelerationStatus: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_acceleration_status( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BucketArgsBuilder<SetAccelerationStatus<S>>
where S::AccelerationStatus: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn acl( self, value: impl Into<Output<Option<String>>>, ) -> BucketArgsBuilder<SetAcl<S>>
where S::Acl: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn maybe_acl( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BucketArgsBuilder<SetAcl<S>>
where S::Acl: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn arn( self, value: impl Into<Output<Option<String>>>, ) -> BucketArgsBuilder<SetArn<S>>
where S::Arn: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_arn( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BucketArgsBuilder<SetArn<S>>
where S::Arn: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn bucket( self, value: impl Into<Output<Option<String>>>, ) -> BucketArgsBuilder<SetBucket<S>>
where S::Bucket: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn maybe_bucket( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BucketArgsBuilder<SetBucket<S>>
where S::Bucket: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn bucket_prefix( self, value: impl Into<Output<Option<String>>>, ) -> BucketArgsBuilder<SetBucketPrefix<S>>
where S::BucketPrefix: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn maybe_bucket_prefix( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BucketArgsBuilder<SetBucketPrefix<S>>
where S::BucketPrefix: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn cors_rules( self, value: impl Into<Output<Option<Vec<BucketCorsRule>>>>, ) -> BucketArgsBuilder<SetCorsRules<S>>
where S::CorsRules: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::s3::BucketCorsRule>>,
> as Default>::default()

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

source

pub fn maybe_cors_rules( self, value: Option<impl Into<Output<Option<Vec<BucketCorsRule>>>>>, ) -> BucketArgsBuilder<SetCorsRules<S>>
where S::CorsRules: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::s3::BucketCorsRule>>,
> as Default>::default()

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

source

pub fn force_destroy( self, value: impl Into<Output<Option<bool>>>, ) -> BucketArgsBuilder<SetForceDestroy<S>>
where S::ForceDestroy: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

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.

source

pub fn maybe_force_destroy( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> BucketArgsBuilder<SetForceDestroy<S>>
where S::ForceDestroy: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

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.

source

pub fn grants( self, value: impl Into<Output<Option<Vec<BucketGrant>>>>, ) -> BucketArgsBuilder<SetGrants<S>>
where S::Grants: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::s3::BucketGrant>>,
> as Default>::default()

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

source

pub fn maybe_grants( self, value: Option<impl Into<Output<Option<Vec<BucketGrant>>>>>, ) -> BucketArgsBuilder<SetGrants<S>>
where S::Grants: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::s3::BucketGrant>>,
> as Default>::default()

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

source

pub fn hosted_zone_id( self, value: impl Into<Output<Option<String>>>, ) -> BucketArgsBuilder<SetHostedZoneId<S>>
where S::HostedZoneId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_hosted_zone_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BucketArgsBuilder<SetHostedZoneId<S>>
where S::HostedZoneId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn lifecycle_rules( self, value: impl Into<Output<Option<Vec<BucketLifecycleRule>>>>, ) -> BucketArgsBuilder<SetLifecycleRules<S>>
where S::LifecycleRules: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::s3::BucketLifecycleRule>>,
> as Default>::default()

A configuration of object lifecycle management (documented below).

source

pub fn maybe_lifecycle_rules( self, value: Option<impl Into<Output<Option<Vec<BucketLifecycleRule>>>>>, ) -> BucketArgsBuilder<SetLifecycleRules<S>>
where S::LifecycleRules: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::s3::BucketLifecycleRule>>,
> as Default>::default()

A configuration of object lifecycle management (documented below).

source

pub fn loggings( self, value: impl Into<Output<Option<Vec<BucketLogging>>>>, ) -> BucketArgsBuilder<SetLoggings<S>>
where S::Loggings: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::s3::BucketLogging>>,
> as Default>::default()

A settings of bucket logging (documented below).

source

pub fn maybe_loggings( self, value: Option<impl Into<Output<Option<Vec<BucketLogging>>>>>, ) -> BucketArgsBuilder<SetLoggings<S>>
where S::Loggings: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::s3::BucketLogging>>,
> as Default>::default()

A settings of bucket logging (documented below).

source

pub fn object_lock_configuration( self, value: impl Into<Output<Option<BucketObjectLockConfiguration>>>, ) -> BucketArgsBuilder<SetObjectLockConfiguration<S>>
where S::ObjectLockConfiguration: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::s3::BucketObjectLockConfiguration>,
> as Default>::default()

A configuration of S3 object locking (documented below)

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

source

pub fn maybe_object_lock_configuration( self, value: Option<impl Into<Output<Option<BucketObjectLockConfiguration>>>>, ) -> BucketArgsBuilder<SetObjectLockConfiguration<S>>
where S::ObjectLockConfiguration: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::s3::BucketObjectLockConfiguration>,
> as Default>::default()

A configuration of S3 object locking (documented below)

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

source

pub fn policy( self, value: impl Into<Output<Option<String>>>, ) -> BucketArgsBuilder<SetPolicy<S>>
where S::Policy: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn maybe_policy( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BucketArgsBuilder<SetPolicy<S>>
where S::Policy: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn replication_configuration( self, value: impl Into<Output<Option<BucketReplicationConfiguration>>>, ) -> BucketArgsBuilder<SetReplicationConfiguration<S>>
where S::ReplicationConfiguration: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::s3::BucketReplicationConfiguration>,
> as Default>::default()

A configuration of replication configuration (documented below).

source

pub fn maybe_replication_configuration( self, value: Option<impl Into<Output<Option<BucketReplicationConfiguration>>>>, ) -> BucketArgsBuilder<SetReplicationConfiguration<S>>
where S::ReplicationConfiguration: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::s3::BucketReplicationConfiguration>,
> as Default>::default()

A configuration of replication configuration (documented below).

source

pub fn request_payer( self, value: impl Into<Output<Option<String>>>, ) -> BucketArgsBuilder<SetRequestPayer<S>>
where S::RequestPayer: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn maybe_request_payer( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BucketArgsBuilder<SetRequestPayer<S>>
where S::RequestPayer: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn server_side_encryption_configuration( self, value: impl Into<Output<Option<BucketServerSideEncryptionConfiguration>>>, ) -> BucketArgsBuilder<SetServerSideEncryptionConfiguration<S>>
where S::ServerSideEncryptionConfiguration: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::s3::BucketServerSideEncryptionConfiguration>,
> as Default>::default()

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

source

pub fn maybe_server_side_encryption_configuration( self, value: Option<impl Into<Output<Option<BucketServerSideEncryptionConfiguration>>>>, ) -> BucketArgsBuilder<SetServerSideEncryptionConfiguration<S>>
where S::ServerSideEncryptionConfiguration: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::s3::BucketServerSideEncryptionConfiguration>,
> as Default>::default()

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

source

pub fn tags( self, value: impl Into<Output<Option<HashMap<String, String>>>>, ) -> BucketArgsBuilder<SetTags<S>>
where S::Tags: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

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.

source

pub fn maybe_tags( self, value: Option<impl Into<Output<Option<HashMap<String, String>>>>>, ) -> BucketArgsBuilder<SetTags<S>>
where S::Tags: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

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.

source

pub fn versioning( self, value: impl Into<Output<Option<BucketVersioning>>>, ) -> BucketArgsBuilder<SetVersioning<S>>
where S::Versioning: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::s3::BucketVersioning>,
> as Default>::default()

A state of versioning (documented below)

source

pub fn maybe_versioning( self, value: Option<impl Into<Output<Option<BucketVersioning>>>>, ) -> BucketArgsBuilder<SetVersioning<S>>
where S::Versioning: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::s3::BucketVersioning>,
> as Default>::default()

A state of versioning (documented below)

source

pub fn website( self, value: impl Into<Output<Option<BucketWebsite>>>, ) -> BucketArgsBuilder<SetWebsite<S>>
where S::Website: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::s3::BucketWebsite>,
> as Default>::default()

A website object (documented below).

source

pub fn maybe_website( self, value: Option<impl Into<Output<Option<BucketWebsite>>>>, ) -> BucketArgsBuilder<SetWebsite<S>>
where S::Website: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::s3::BucketWebsite>,
> as Default>::default()

A website object (documented below).

source

pub fn website_domain( self, value: impl Into<Output<Option<String>>>, ) -> BucketArgsBuilder<SetWebsiteDomain<S>>
where S::WebsiteDomain: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn maybe_website_domain( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BucketArgsBuilder<SetWebsiteDomain<S>>
where S::WebsiteDomain: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn website_endpoint( self, value: impl Into<Output<Option<String>>>, ) -> BucketArgsBuilder<SetWebsiteEndpoint<S>>
where S::WebsiteEndpoint: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_website_endpoint( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BucketArgsBuilder<SetWebsiteEndpoint<S>>
where S::WebsiteEndpoint: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

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> 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, 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.