Struct aws_sdk_s3::model::ObjectLockConfiguration
source · [−]#[non_exhaustive]pub struct ObjectLockConfiguration {
pub object_lock_enabled: Option<ObjectLockEnabled>,
pub rule: Option<ObjectLockRule>,
}Expand description
The container element for Object Lock configuration parameters.
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.object_lock_enabled: Option<ObjectLockEnabled>Indicates whether this bucket has an Object Lock configuration enabled. Enable ObjectLockEnabled when you apply ObjectLockConfiguration to a bucket.
rule: Option<ObjectLockRule>Specifies the Object Lock rule for the specified object. Enable the this rule when you apply ObjectLockConfiguration to a bucket. Bucket settings require both a mode and a period. The period can be either Days or Years but you must select one. You cannot specify Days and Years at the same time.
Implementations
Indicates whether this bucket has an Object Lock configuration enabled. Enable ObjectLockEnabled when you apply ObjectLockConfiguration to a bucket.
Specifies the Object Lock rule for the specified object. Enable the this rule when you apply ObjectLockConfiguration to a bucket. Bucket settings require both a mode and a period. The period can be either Days or Years but you must select one. You cannot specify Days and Years at the same time.
Creates a new builder-style object to manufacture ObjectLockConfiguration
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 RefUnwindSafe for ObjectLockConfiguration
impl Send for ObjectLockConfiguration
impl Sync for ObjectLockConfiguration
impl Unpin for ObjectLockConfiguration
impl UnwindSafe for ObjectLockConfiguration
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