#[non_exhaustive]pub struct RowLevelPermissionDataSetBuilder { /* private fields */ }Expand description
A builder for RowLevelPermissionDataSet.
Implementations§
source§impl RowLevelPermissionDataSetBuilder
impl RowLevelPermissionDataSetBuilder
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 get_namespace(&self) -> &Option<String>
pub fn get_namespace(&self) -> &Option<String>
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.
This field is required.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 get_arn(&self) -> &Option<String>
pub fn get_arn(&self) -> &Option<String>
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 get_permission_policy(&self) -> &Option<RowLevelPermissionPolicy>
pub fn get_permission_policy(&self) -> &Option<RowLevelPermissionPolicy>
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 get_format_version(&self) -> &Option<RowLevelPermissionFormatVersion>
pub fn get_format_version(&self) -> &Option<RowLevelPermissionFormatVersion>
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 get_status(&self) -> &Option<Status>
pub fn get_status(&self) -> &Option<Status>
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) -> Result<RowLevelPermissionDataSet, BuildError>
pub fn build(self) -> Result<RowLevelPermissionDataSet, BuildError>
Consumes the builder and constructs a RowLevelPermissionDataSet.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for RowLevelPermissionDataSetBuilder
impl Clone for RowLevelPermissionDataSetBuilder
source§fn clone(&self) -> RowLevelPermissionDataSetBuilder
fn clone(&self) -> RowLevelPermissionDataSetBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for RowLevelPermissionDataSetBuilder
impl Default for RowLevelPermissionDataSetBuilder
source§fn default() -> RowLevelPermissionDataSetBuilder
fn default() -> RowLevelPermissionDataSetBuilder
source§impl PartialEq for RowLevelPermissionDataSetBuilder
impl PartialEq for RowLevelPermissionDataSetBuilder
source§fn eq(&self, other: &RowLevelPermissionDataSetBuilder) -> bool
fn eq(&self, other: &RowLevelPermissionDataSetBuilder) -> bool
self and other values to be equal, and is used
by ==.