Struct aws_sdk_s3::input::PutObjectLockConfigurationInput [−][src]
#[non_exhaustive]pub struct PutObjectLockConfigurationInput {
pub bucket: Option<String>,
pub object_lock_configuration: Option<ObjectLockConfiguration>,
pub request_payer: Option<RequestPayer>,
pub token: Option<String>,
pub content_md5: Option<String>,
pub expected_bucket_owner: Option<String>,
}
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.bucket: Option<String>
The bucket whose Object Lock configuration you want to create or replace.
object_lock_configuration: Option<ObjectLockConfiguration>
The Object Lock configuration that you want to apply to the specified bucket.
request_payer: Option<RequestPayer>
Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from requester pays buckets, see Downloading Objects in Requestor Pays Buckets in the Amazon S3 User Guide.
token: Option<String>
A token to allow Object Lock to be enabled for an existing bucket.
content_md5: Option<String>
The MD5 hash for the request body.
For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.
expected_bucket_owner: Option<String>
The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied)
error.
Implementations
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutObjectLockConfiguration, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutObjectLockConfiguration, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<PutObjectLockConfiguration
>
Creates a new builder-style object to manufacture PutObjectLockConfigurationInput
The bucket whose Object Lock configuration you want to create or replace.
The Object Lock configuration that you want to apply to the specified bucket.
Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from requester pays buckets, see Downloading Objects in Requestor Pays Buckets in the Amazon S3 User Guide.
A token to allow Object Lock to be enabled for an existing bucket.
The MD5 hash for the request body.
For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.
The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied)
error.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl Send for PutObjectLockConfigurationInput
impl Sync for PutObjectLockConfigurationInput
impl Unpin for PutObjectLockConfigurationInput
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more