pulumi_wasm_providers_aws_mini::s3::bucket_v_2

Struct BucketV2ArgsBuilder

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

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

Implementations§

source§

impl<S: State> BucketV2ArgsBuilder<S>

source

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

Finish building and return the requested object

source

pub fn acceleration_status( self, value: impl Into<Output<Option<String>>>, ) -> BucketV2ArgsBuilder<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. Cannot be used in cn-north-1 or us-gov-west-1. This provider will only perform drift detection if a configuration value is provided. Use the resource aws.s3.BucketAccelerateConfigurationV2 instead.

source

pub fn maybe_acceleration_status( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BucketV2ArgsBuilder<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. Cannot be used in cn-north-1 or us-gov-west-1. This provider will only perform drift detection if a configuration value is provided. Use the resource aws.s3.BucketAccelerateConfigurationV2 instead.

source

pub fn acl( self, value: impl Into<Output<Option<String>>>, ) -> BucketV2ArgsBuilder<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. The provider will only perform drift detection if a configuration value is provided. Use the resource aws.s3.BucketAclV2 instead.

source

pub fn maybe_acl( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BucketV2ArgsBuilder<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. The provider will only perform drift detection if a configuration value is provided. Use the resource aws.s3.BucketAclV2 instead.

source

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

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

Name of the bucket. If omitted, the 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. The name must not be in the format [bucket_name]--[azid]--x-s3. Use the aws.s3.DirectoryBucket resource to manage S3 Express buckets.

source

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

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

Name of the bucket. If omitted, the 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. The name must not be in the format [bucket_name]--[azid]--x-s3. Use the aws.s3.DirectoryBucket resource to manage S3 Express buckets.

source

pub fn bucket_prefix( self, value: impl Into<Output<Option<String>>>, ) -> BucketV2ArgsBuilder<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>>>>, ) -> BucketV2ArgsBuilder<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<BucketV2CorsRule>>>>, ) -> BucketV2ArgsBuilder<SetCorsRules<S>>
where S::CorsRules: IsUnset,

Optional (Some / Option setters). Default:

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

Rule of Cross-Origin Resource Sharing. See CORS rule below for details. This provider will only perform drift detection if a configuration value is provided. Use the resource aws.s3.BucketCorsConfigurationV2 instead.

source

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

Optional (Some / Option setters). Default:

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

Rule of Cross-Origin Resource Sharing. See CORS rule below for details. This provider will only perform drift detection if a configuration value is provided. Use the resource aws.s3.BucketCorsConfigurationV2 instead.

source

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

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

Boolean that indicates all objects (including any locked objects) should be deleted from the bucket when the bucket is destroyed so that the bucket can be destroyed without error. These objects are not recoverable. This only deletes objects when the bucket is destroyed, not when setting this parameter to true. Once this parameter is set to true, there must be a successful pulumi up run before a destroy is required to update this value in the resource state. Without a successful pulumi up after this parameter is set, this flag will have no effect. If setting this field in the same operation that would require replacing the bucket or destroying the bucket, this flag will not work. Additionally when importing a bucket, a successful pulumi up is required to set this value in state before it will take effect on a destroy operation.

source

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

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

Boolean that indicates all objects (including any locked objects) should be deleted from the bucket when the bucket is destroyed so that the bucket can be destroyed without error. These objects are not recoverable. This only deletes objects when the bucket is destroyed, not when setting this parameter to true. Once this parameter is set to true, there must be a successful pulumi up run before a destroy is required to update this value in the resource state. Without a successful pulumi up after this parameter is set, this flag will have no effect. If setting this field in the same operation that would require replacing the bucket or destroying the bucket, this flag will not work. Additionally when importing a bucket, a successful pulumi up is required to set this value in state before it will take effect on a destroy operation.

source

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

Optional (Some / Option setters). Default:

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

An ACL policy grant. See Grant below for details. Conflicts with acl. The provider will only perform drift detection if a configuration value is provided. Use the resource aws.s3.BucketAclV2 instead.

source

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

Optional (Some / Option setters). Default:

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

An ACL policy grant. See Grant below for details. Conflicts with acl. The provider will only perform drift detection if a configuration value is provided. Use the resource aws.s3.BucketAclV2 instead.

source

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

Optional (Some / Option setters). Default:

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

Configuration of object lifecycle management. See Lifecycle Rule below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource aws.s3.BucketLifecycleConfigurationV2 instead.

source

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

Optional (Some / Option setters). Default:

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

Configuration of object lifecycle management. See Lifecycle Rule below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource aws.s3.BucketLifecycleConfigurationV2 instead.

source

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

Optional (Some / Option setters). Default:

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

Configuration of S3 bucket logging parameters. See Logging below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource aws.s3.BucketLoggingV2 instead.

source

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

Optional (Some / Option setters). Default:

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

Configuration of S3 bucket logging parameters. See Logging below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource aws.s3.BucketLoggingV2 instead.

source

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

Optional (Some / Option setters). Default:

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

Configuration of S3 object locking. See Object Lock Configuration below for details. The provider wil only perform drift detection if a configuration value is provided. Use the object_lock_enabled parameter and the resource aws.s3.BucketObjectLockConfigurationV2 instead.

source

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

Optional (Some / Option setters). Default:

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

Configuration of S3 object locking. See Object Lock Configuration below for details. The provider wil only perform drift detection if a configuration value is provided. Use the object_lock_enabled parameter and the resource aws.s3.BucketObjectLockConfigurationV2 instead.

source

pub fn object_lock_enabled( self, value: impl Into<Output<Option<bool>>>, ) -> BucketV2ArgsBuilder<SetObjectLockEnabled<S>>
where S::ObjectLockEnabled: IsUnset,

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

Indicates whether this bucket has an Object Lock configuration enabled. Valid values are true or false. This argument is not supported in all regions or partitions.

source

pub fn maybe_object_lock_enabled( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> BucketV2ArgsBuilder<SetObjectLockEnabled<S>>
where S::ObjectLockEnabled: IsUnset,

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

Indicates whether this bucket has an Object Lock configuration enabled. Valid values are true or false. This argument is not supported in all regions or partitions.

source

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

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

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 this case, please make sure you use the verbose/specific version of the policy. For more information about building AWS IAM policy documents with this provider, see the AWS IAM Policy Document Guide. The provider will only perform drift detection if a configuration value is provided. Use the resource aws.s3.BucketPolicy instead.

source

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

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

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 this case, please make sure you use the verbose/specific version of the policy. For more information about building AWS IAM policy documents with this provider, see the AWS IAM Policy Document Guide. The provider will only perform drift detection if a configuration value is provided. Use the resource aws.s3.BucketPolicy instead.

source

pub fn replication_configurations( self, value: impl Into<Output<Option<Vec<BucketV2ReplicationConfiguration>>>>, ) -> BucketV2ArgsBuilder<SetReplicationConfigurations<S>>
where S::ReplicationConfigurations: IsUnset,

Optional (Some / Option setters). Default:

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

Configuration of replication configuration. See Replication Configuration below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource aws.s3.BucketReplicationConfig instead.

source

pub fn maybe_replication_configurations( self, value: Option<impl Into<Output<Option<Vec<BucketV2ReplicationConfiguration>>>>>, ) -> BucketV2ArgsBuilder<SetReplicationConfigurations<S>>
where S::ReplicationConfigurations: IsUnset,

Optional (Some / Option setters). Default:

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

Configuration of replication configuration. See Replication Configuration below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource aws.s3.BucketReplicationConfig instead.

source

pub fn request_payer( self, value: impl Into<Output<Option<String>>>, ) -> BucketV2ArgsBuilder<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. The provider will only perform drift detection if a configuration value is provided. Use the resource aws.s3.BucketRequestPaymentConfigurationV2 instead.

source

pub fn maybe_request_payer( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BucketV2ArgsBuilder<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. The provider will only perform drift detection if a configuration value is provided. Use the resource aws.s3.BucketRequestPaymentConfigurationV2 instead.

source

pub fn server_side_encryption_configurations( self, value: impl Into<Output<Option<Vec<BucketV2ServerSideEncryptionConfiguration>>>>, ) -> BucketV2ArgsBuilder<SetServerSideEncryptionConfigurations<S>>
where S::ServerSideEncryptionConfigurations: IsUnset,

Optional (Some / Option setters). Default:

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

Configuration of server-side encryption configuration. See Server Side Encryption Configuration below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource aws.s3.BucketServerSideEncryptionConfigurationV2 instead.

source

pub fn maybe_server_side_encryption_configurations( self, value: Option<impl Into<Output<Option<Vec<BucketV2ServerSideEncryptionConfiguration>>>>>, ) -> BucketV2ArgsBuilder<SetServerSideEncryptionConfigurations<S>>
where S::ServerSideEncryptionConfigurations: IsUnset,

Optional (Some / Option setters). Default:

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

Configuration of server-side encryption configuration. See Server Side Encryption Configuration below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource aws.s3.BucketServerSideEncryptionConfigurationV2 instead.

source

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

Optional (Some / Option setters). Default:

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

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.

The following arguments are deprecated, and will be removed in a future major version:

source

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

Optional (Some / Option setters). Default:

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

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.

The following arguments are deprecated, and will be removed in a future major version:

source

pub fn versionings( self, value: impl Into<Output<Option<Vec<BucketV2Versioning>>>>, ) -> BucketV2ArgsBuilder<SetVersionings<S>>
where S::Versionings: IsUnset,

Optional (Some / Option setters). Default:

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

Configuration of the S3 bucket versioning state. See Versioning below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource aws.s3.BucketVersioningV2 instead.

source

pub fn maybe_versionings( self, value: Option<impl Into<Output<Option<Vec<BucketV2Versioning>>>>>, ) -> BucketV2ArgsBuilder<SetVersionings<S>>
where S::Versionings: IsUnset,

Optional (Some / Option setters). Default:

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

Configuration of the S3 bucket versioning state. See Versioning below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource aws.s3.BucketVersioningV2 instead.

source

pub fn websites( self, value: impl Into<Output<Option<Vec<BucketV2Website>>>>, ) -> BucketV2ArgsBuilder<SetWebsites<S>>
where S::Websites: IsUnset,

Optional (Some / Option setters). Default:

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

Configuration of the S3 bucket website. See Website below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource aws.s3.BucketWebsiteConfigurationV2 instead.

source

pub fn maybe_websites( self, value: Option<impl Into<Output<Option<Vec<BucketV2Website>>>>>, ) -> BucketV2ArgsBuilder<SetWebsites<S>>
where S::Websites: IsUnset,

Optional (Some / Option setters). Default:

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

Configuration of the S3 bucket website. See Website below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource aws.s3.BucketWebsiteConfigurationV2 instead.

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.