#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for RowLevelPermissionDataSet
Implementations
sourceimpl Builder
impl Builder
sourcepub fn namespace(self, input: impl Into<String>) -> Self
pub fn namespace(self, input: impl Into<String>) -> Self
The namespace associated with the dataset that contains permissions for RLS.
sourcepub fn set_namespace(self, input: Option<String>) -> Self
pub fn set_namespace(self, input: Option<String>) -> Self
The namespace associated with the dataset that contains permissions for RLS.
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the dataset that contains permissions for RLS.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the dataset that contains permissions for RLS.
sourcepub fn permission_policy(self, input: RowLevelPermissionPolicy) -> Self
pub fn permission_policy(self, input: RowLevelPermissionPolicy) -> Self
The type of permissions to use when interpreting the permissions for RLS. DENY_ACCESS
is included for backward compatibility only.
sourcepub fn set_permission_policy(
self,
input: Option<RowLevelPermissionPolicy>
) -> Self
pub fn set_permission_policy(
self,
input: Option<RowLevelPermissionPolicy>
) -> Self
The type of permissions to use when interpreting the permissions for RLS. DENY_ACCESS
is included for backward compatibility only.
sourcepub fn format_version(self, input: RowLevelPermissionFormatVersion) -> Self
pub fn format_version(self, input: RowLevelPermissionFormatVersion) -> Self
The user or group rules associated with the dataset that contains permissions for RLS.
By default, FormatVersion
is VERSION_1
. When FormatVersion
is VERSION_1
, UserName
and GroupName
are required. When FormatVersion
is VERSION_2
, UserARN
and GroupARN
are required, and Namespace
must not exist.
sourcepub fn set_format_version(
self,
input: Option<RowLevelPermissionFormatVersion>
) -> Self
pub fn set_format_version(
self,
input: Option<RowLevelPermissionFormatVersion>
) -> Self
The user or group rules associated with the dataset that contains permissions for RLS.
By default, FormatVersion
is VERSION_1
. When FormatVersion
is VERSION_1
, UserName
and GroupName
are required. When FormatVersion
is VERSION_2
, UserARN
and GroupARN
are required, and Namespace
must not exist.
sourcepub fn status(self, input: Status) -> Self
pub fn status(self, input: Status) -> Self
The status of the row-level security permission dataset. If enabled, the status is ENABLED
. If disabled, the status is DISABLED
.
sourcepub fn set_status(self, input: Option<Status>) -> Self
pub fn set_status(self, input: Option<Status>) -> Self
The status of the row-level security permission dataset. If enabled, the status is ENABLED
. If disabled, the status is DISABLED
.
sourcepub fn build(self) -> RowLevelPermissionDataSet
pub fn build(self) -> RowLevelPermissionDataSet
Consumes the builder and constructs a RowLevelPermissionDataSet
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more