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>
impl<S: State> BucketArgsBuilder<S>
sourcepub fn build_struct(self) -> BucketArgswhere
S: IsComplete,
pub fn build_struct(self) -> BucketArgswhere
S: IsComplete,
Finish building and return the requested object
sourcepub fn acceleration_status(
self,
value: impl Into<Output<Option<String>>>,
) -> BucketArgsBuilder<SetAccelerationStatus<S>>where
S::AccelerationStatus: IsUnset,
pub fn acceleration_status(
self,
value: impl Into<Output<Option<String>>>,
) -> BucketArgsBuilder<SetAccelerationStatus<S>>where
S::AccelerationStatus: IsUnset,
sourcepub fn maybe_acceleration_status(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> BucketArgsBuilder<SetAccelerationStatus<S>>where
S::AccelerationStatus: IsUnset,
pub fn maybe_acceleration_status(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> BucketArgsBuilder<SetAccelerationStatus<S>>where
S::AccelerationStatus: IsUnset,
sourcepub fn acl(
self,
value: impl Into<Output<Option<String>>>,
) -> BucketArgsBuilder<SetAcl<S>>where
S::Acl: IsUnset,
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
.
sourcepub fn maybe_acl(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> BucketArgsBuilder<SetAcl<S>>where
S::Acl: IsUnset,
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
.
sourcepub fn arn(
self,
value: impl Into<Output<Option<String>>>,
) -> BucketArgsBuilder<SetArn<S>>where
S::Arn: IsUnset,
pub fn arn(
self,
value: impl Into<Output<Option<String>>>,
) -> BucketArgsBuilder<SetArn<S>>where
S::Arn: IsUnset,
sourcepub fn maybe_arn(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> BucketArgsBuilder<SetArn<S>>where
S::Arn: IsUnset,
pub fn maybe_arn(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> BucketArgsBuilder<SetArn<S>>where
S::Arn: IsUnset,
sourcepub fn bucket(
self,
value: impl Into<Output<Option<String>>>,
) -> BucketArgsBuilder<SetBucket<S>>where
S::Bucket: IsUnset,
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.
sourcepub fn maybe_bucket(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> BucketArgsBuilder<SetBucket<S>>where
S::Bucket: IsUnset,
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.
sourcepub fn bucket_prefix(
self,
value: impl Into<Output<Option<String>>>,
) -> BucketArgsBuilder<SetBucketPrefix<S>>where
S::BucketPrefix: IsUnset,
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.
sourcepub fn maybe_bucket_prefix(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> BucketArgsBuilder<SetBucketPrefix<S>>where
S::BucketPrefix: IsUnset,
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.
sourcepub fn cors_rules(
self,
value: impl Into<Output<Option<Vec<BucketCorsRule>>>>,
) -> BucketArgsBuilder<SetCorsRules<S>>where
S::CorsRules: IsUnset,
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).
sourcepub fn maybe_cors_rules(
self,
value: Option<impl Into<Output<Option<Vec<BucketCorsRule>>>>>,
) -> BucketArgsBuilder<SetCorsRules<S>>where
S::CorsRules: IsUnset,
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).
sourcepub fn force_destroy(
self,
value: impl Into<Output<Option<bool>>>,
) -> BucketArgsBuilder<SetForceDestroy<S>>where
S::ForceDestroy: IsUnset,
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.
sourcepub fn maybe_force_destroy(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> BucketArgsBuilder<SetForceDestroy<S>>where
S::ForceDestroy: IsUnset,
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.
sourcepub fn grants(
self,
value: impl Into<Output<Option<Vec<BucketGrant>>>>,
) -> BucketArgsBuilder<SetGrants<S>>where
S::Grants: IsUnset,
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
.
sourcepub fn maybe_grants(
self,
value: Option<impl Into<Output<Option<Vec<BucketGrant>>>>>,
) -> BucketArgsBuilder<SetGrants<S>>where
S::Grants: IsUnset,
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
.
sourcepub fn hosted_zone_id(
self,
value: impl Into<Output<Option<String>>>,
) -> BucketArgsBuilder<SetHostedZoneId<S>>where
S::HostedZoneId: IsUnset,
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.
sourcepub fn maybe_hosted_zone_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> BucketArgsBuilder<SetHostedZoneId<S>>where
S::HostedZoneId: IsUnset,
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.
sourcepub fn lifecycle_rules(
self,
value: impl Into<Output<Option<Vec<BucketLifecycleRule>>>>,
) -> BucketArgsBuilder<SetLifecycleRules<S>>where
S::LifecycleRules: IsUnset,
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).
sourcepub fn maybe_lifecycle_rules(
self,
value: Option<impl Into<Output<Option<Vec<BucketLifecycleRule>>>>>,
) -> BucketArgsBuilder<SetLifecycleRules<S>>where
S::LifecycleRules: IsUnset,
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).
sourcepub fn loggings(
self,
value: impl Into<Output<Option<Vec<BucketLogging>>>>,
) -> BucketArgsBuilder<SetLoggings<S>>where
S::Loggings: IsUnset,
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).
sourcepub fn maybe_loggings(
self,
value: Option<impl Into<Output<Option<Vec<BucketLogging>>>>>,
) -> BucketArgsBuilder<SetLoggings<S>>where
S::Loggings: IsUnset,
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).
sourcepub fn object_lock_configuration(
self,
value: impl Into<Output<Option<BucketObjectLockConfiguration>>>,
) -> BucketArgsBuilder<SetObjectLockConfiguration<S>>where
S::ObjectLockConfiguration: IsUnset,
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
incn-north-1
orus-gov-west-1
sourcepub fn maybe_object_lock_configuration(
self,
value: Option<impl Into<Output<Option<BucketObjectLockConfiguration>>>>,
) -> BucketArgsBuilder<SetObjectLockConfiguration<S>>where
S::ObjectLockConfiguration: IsUnset,
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
incn-north-1
orus-gov-west-1
sourcepub fn policy(
self,
value: impl Into<Output<Option<String>>>,
) -> BucketArgsBuilder<SetPolicy<S>>where
S::Policy: IsUnset,
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.
sourcepub fn maybe_policy(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> BucketArgsBuilder<SetPolicy<S>>where
S::Policy: IsUnset,
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.
sourcepub fn replication_configuration(
self,
value: impl Into<Output<Option<BucketReplicationConfiguration>>>,
) -> BucketArgsBuilder<SetReplicationConfiguration<S>>where
S::ReplicationConfiguration: IsUnset,
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).
sourcepub fn maybe_replication_configuration(
self,
value: Option<impl Into<Output<Option<BucketReplicationConfiguration>>>>,
) -> BucketArgsBuilder<SetReplicationConfiguration<S>>where
S::ReplicationConfiguration: IsUnset,
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).
sourcepub fn request_payer(
self,
value: impl Into<Output<Option<String>>>,
) -> BucketArgsBuilder<SetRequestPayer<S>>where
S::RequestPayer: IsUnset,
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.
sourcepub fn maybe_request_payer(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> BucketArgsBuilder<SetRequestPayer<S>>where
S::RequestPayer: IsUnset,
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.
sourcepub fn server_side_encryption_configuration(
self,
value: impl Into<Output<Option<BucketServerSideEncryptionConfiguration>>>,
) -> BucketArgsBuilder<SetServerSideEncryptionConfiguration<S>>where
S::ServerSideEncryptionConfiguration: IsUnset,
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)
sourcepub fn maybe_server_side_encryption_configuration(
self,
value: Option<impl Into<Output<Option<BucketServerSideEncryptionConfiguration>>>>,
) -> BucketArgsBuilder<SetServerSideEncryptionConfiguration<S>>where
S::ServerSideEncryptionConfiguration: IsUnset,
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)
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.
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.
sourcepub fn versioning(
self,
value: impl Into<Output<Option<BucketVersioning>>>,
) -> BucketArgsBuilder<SetVersioning<S>>where
S::Versioning: IsUnset,
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)
sourcepub fn maybe_versioning(
self,
value: Option<impl Into<Output<Option<BucketVersioning>>>>,
) -> BucketArgsBuilder<SetVersioning<S>>where
S::Versioning: IsUnset,
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)