#[non_exhaustive]pub struct ExternalAccessDetailsBuilder { /* private fields */ }
Expand description
A builder for ExternalAccessDetails
.
Implementations§
source§impl ExternalAccessDetailsBuilder
impl ExternalAccessDetailsBuilder
sourcepub fn action(self, input: impl Into<String>) -> Self
pub fn action(self, input: impl Into<String>) -> Self
Appends an item to action
.
To override the contents of this collection use set_action
.
The action in the analyzed policy statement that an external principal has permission to use.
sourcepub fn set_action(self, input: Option<Vec<String>>) -> Self
pub fn set_action(self, input: Option<Vec<String>>) -> Self
The action in the analyzed policy statement that an external principal has permission to use.
sourcepub fn get_action(&self) -> &Option<Vec<String>>
pub fn get_action(&self) -> &Option<Vec<String>>
The action in the analyzed policy statement that an external principal has permission to use.
sourcepub fn condition(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn condition(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to condition
.
To override the contents of this collection use set_condition
.
The condition in the analyzed policy statement that resulted in an external access finding.
sourcepub fn set_condition(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_condition(self, input: Option<HashMap<String, String>>) -> Self
The condition in the analyzed policy statement that resulted in an external access finding.
sourcepub fn get_condition(&self) -> &Option<HashMap<String, String>>
pub fn get_condition(&self) -> &Option<HashMap<String, String>>
The condition in the analyzed policy statement that resulted in an external access finding.
sourcepub fn is_public(self, input: bool) -> Self
pub fn is_public(self, input: bool) -> Self
Specifies whether the external access finding is public.
sourcepub fn set_is_public(self, input: Option<bool>) -> Self
pub fn set_is_public(self, input: Option<bool>) -> Self
Specifies whether the external access finding is public.
sourcepub fn get_is_public(&self) -> &Option<bool>
pub fn get_is_public(&self) -> &Option<bool>
Specifies whether the external access finding is public.
sourcepub fn principal(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn principal(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to principal
.
To override the contents of this collection use set_principal
.
The external principal that has access to a resource within the zone of trust.
sourcepub fn set_principal(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_principal(self, input: Option<HashMap<String, String>>) -> Self
The external principal that has access to a resource within the zone of trust.
sourcepub fn get_principal(&self) -> &Option<HashMap<String, String>>
pub fn get_principal(&self) -> &Option<HashMap<String, String>>
The external principal that has access to a resource within the zone of trust.
sourcepub fn sources(self, input: FindingSource) -> Self
pub fn sources(self, input: FindingSource) -> Self
Appends an item to sources
.
To override the contents of this collection use set_sources
.
The sources of the external access finding. This indicates how the access that generated the finding is granted. It is populated for Amazon S3 bucket findings.
sourcepub fn set_sources(self, input: Option<Vec<FindingSource>>) -> Self
pub fn set_sources(self, input: Option<Vec<FindingSource>>) -> Self
The sources of the external access finding. This indicates how the access that generated the finding is granted. It is populated for Amazon S3 bucket findings.
sourcepub fn get_sources(&self) -> &Option<Vec<FindingSource>>
pub fn get_sources(&self) -> &Option<Vec<FindingSource>>
The sources of the external access finding. This indicates how the access that generated the finding is granted. It is populated for Amazon S3 bucket findings.
sourcepub fn build(self) -> Result<ExternalAccessDetails, BuildError>
pub fn build(self) -> Result<ExternalAccessDetails, BuildError>
Consumes the builder and constructs a ExternalAccessDetails
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ExternalAccessDetailsBuilder
impl Clone for ExternalAccessDetailsBuilder
source§fn clone(&self) -> ExternalAccessDetailsBuilder
fn clone(&self) -> ExternalAccessDetailsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExternalAccessDetailsBuilder
impl Debug for ExternalAccessDetailsBuilder
source§impl Default for ExternalAccessDetailsBuilder
impl Default for ExternalAccessDetailsBuilder
source§fn default() -> ExternalAccessDetailsBuilder
fn default() -> ExternalAccessDetailsBuilder
source§impl PartialEq for ExternalAccessDetailsBuilder
impl PartialEq for ExternalAccessDetailsBuilder
source§fn eq(&self, other: &ExternalAccessDetailsBuilder) -> bool
fn eq(&self, other: &ExternalAccessDetailsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ExternalAccessDetailsBuilder
Auto Trait Implementations§
impl Freeze for ExternalAccessDetailsBuilder
impl RefUnwindSafe for ExternalAccessDetailsBuilder
impl Send for ExternalAccessDetailsBuilder
impl Sync for ExternalAccessDetailsBuilder
impl Unpin for ExternalAccessDetailsBuilder
impl UnwindSafe for ExternalAccessDetailsBuilder
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