Struct aws_sdk_s3::operation::get_object_lock_configuration::GetObjectLockConfigurationInput
source · #[non_exhaustive]pub struct GetObjectLockConfigurationInput {
pub bucket: 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 retrieve.
Access points - When you use this action with an access point, you must provide the alias of the access point in place of the bucket name or specify the access point ARN. When using the access point ARN, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.
expected_bucket_owner: Option<String>
The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden
(access denied).
Implementations§
source§impl GetObjectLockConfigurationInput
impl GetObjectLockConfigurationInput
sourcepub fn bucket(&self) -> Option<&str>
pub fn bucket(&self) -> Option<&str>
The bucket whose Object Lock configuration you want to retrieve.
Access points - When you use this action with an access point, you must provide the alias of the access point in place of the bucket name or specify the access point ARN. When using the access point ARN, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.
sourcepub fn expected_bucket_owner(&self) -> Option<&str>
pub fn expected_bucket_owner(&self) -> Option<&str>
The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden
(access denied).
source§impl GetObjectLockConfigurationInput
impl GetObjectLockConfigurationInput
sourcepub fn builder() -> GetObjectLockConfigurationInputBuilder
pub fn builder() -> GetObjectLockConfigurationInputBuilder
Creates a new builder-style object to manufacture GetObjectLockConfigurationInput
.
Trait Implementations§
source§impl Clone for GetObjectLockConfigurationInput
impl Clone for GetObjectLockConfigurationInput
source§fn clone(&self) -> GetObjectLockConfigurationInput
fn clone(&self) -> GetObjectLockConfigurationInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for GetObjectLockConfigurationInput
impl PartialEq for GetObjectLockConfigurationInput
source§fn eq(&self, other: &GetObjectLockConfigurationInput) -> bool
fn eq(&self, other: &GetObjectLockConfigurationInput) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for GetObjectLockConfigurationInput
Auto Trait Implementations§
impl Freeze for GetObjectLockConfigurationInput
impl RefUnwindSafe for GetObjectLockConfigurationInput
impl Send for GetObjectLockConfigurationInput
impl Sync for GetObjectLockConfigurationInput
impl Unpin for GetObjectLockConfigurationInput
impl UnwindSafe for GetObjectLockConfigurationInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)