Struct aws_sdk_macie2::types::builders::BucketPublicAccessBuilder
source · #[non_exhaustive]pub struct BucketPublicAccessBuilder { /* private fields */ }Expand description
A builder for BucketPublicAccess.
Implementations§
source§impl BucketPublicAccessBuilder
impl BucketPublicAccessBuilder
sourcepub fn effective_permission(self, input: EffectivePermission) -> Self
pub fn effective_permission(self, input: EffectivePermission) -> Self
Specifies whether the bucket is publicly accessible due to the combination of permissions settings that apply to the bucket. Possible values are:
-
NOT_PUBLIC - The bucket isn't publicly accessible.
-
PUBLIC - The bucket is publicly accessible.
-
UNKNOWN - Amazon Macie can't determine whether the bucket is publicly accessible.
sourcepub fn set_effective_permission(
self,
input: Option<EffectivePermission>
) -> Self
pub fn set_effective_permission( self, input: Option<EffectivePermission> ) -> Self
Specifies whether the bucket is publicly accessible due to the combination of permissions settings that apply to the bucket. Possible values are:
-
NOT_PUBLIC - The bucket isn't publicly accessible.
-
PUBLIC - The bucket is publicly accessible.
-
UNKNOWN - Amazon Macie can't determine whether the bucket is publicly accessible.
sourcepub fn get_effective_permission(&self) -> &Option<EffectivePermission>
pub fn get_effective_permission(&self) -> &Option<EffectivePermission>
Specifies whether the bucket is publicly accessible due to the combination of permissions settings that apply to the bucket. Possible values are:
-
NOT_PUBLIC - The bucket isn't publicly accessible.
-
PUBLIC - The bucket is publicly accessible.
-
UNKNOWN - Amazon Macie can't determine whether the bucket is publicly accessible.
sourcepub fn permission_configuration(
self,
input: BucketPermissionConfiguration
) -> Self
pub fn permission_configuration( self, input: BucketPermissionConfiguration ) -> Self
The account-level and bucket-level permissions settings for the bucket.
sourcepub fn set_permission_configuration(
self,
input: Option<BucketPermissionConfiguration>
) -> Self
pub fn set_permission_configuration( self, input: Option<BucketPermissionConfiguration> ) -> Self
The account-level and bucket-level permissions settings for the bucket.
sourcepub fn get_permission_configuration(
&self
) -> &Option<BucketPermissionConfiguration>
pub fn get_permission_configuration( &self ) -> &Option<BucketPermissionConfiguration>
The account-level and bucket-level permissions settings for the bucket.
sourcepub fn build(self) -> BucketPublicAccess
pub fn build(self) -> BucketPublicAccess
Consumes the builder and constructs a BucketPublicAccess.
Trait Implementations§
source§impl Clone for BucketPublicAccessBuilder
impl Clone for BucketPublicAccessBuilder
source§fn clone(&self) -> BucketPublicAccessBuilder
fn clone(&self) -> BucketPublicAccessBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for BucketPublicAccessBuilder
impl Debug for BucketPublicAccessBuilder
source§impl Default for BucketPublicAccessBuilder
impl Default for BucketPublicAccessBuilder
source§fn default() -> BucketPublicAccessBuilder
fn default() -> BucketPublicAccessBuilder
source§impl PartialEq for BucketPublicAccessBuilder
impl PartialEq for BucketPublicAccessBuilder
source§fn eq(&self, other: &BucketPublicAccessBuilder) -> bool
fn eq(&self, other: &BucketPublicAccessBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for BucketPublicAccessBuilder
Auto Trait Implementations§
impl Freeze for BucketPublicAccessBuilder
impl RefUnwindSafe for BucketPublicAccessBuilder
impl Send for BucketPublicAccessBuilder
impl Sync for BucketPublicAccessBuilder
impl Unpin for BucketPublicAccessBuilder
impl UnwindSafe for BucketPublicAccessBuilder
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more