#[non_exhaustive]pub struct ExternalAccessDetails {
pub action: Option<Vec<String>>,
pub condition: HashMap<String, String>,
pub is_public: Option<bool>,
pub principal: Option<HashMap<String, String>>,
pub sources: Option<Vec<FindingSource>>,
}
Expand description
Contains information about an external access finding.
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.action: Option<Vec<String>>
The action in the analyzed policy statement that an external principal has permission to use.
condition: HashMap<String, String>
The condition in the analyzed policy statement that resulted in an external access finding.
is_public: Option<bool>
Specifies whether the external access finding is public.
principal: Option<HashMap<String, String>>
The external principal that has access to a resource within the zone of trust.
sources: 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.
Implementations§
source§impl ExternalAccessDetails
impl ExternalAccessDetails
sourcepub fn action(&self) -> &[String]
pub fn action(&self) -> &[String]
The action in the analyzed policy statement that an external principal has permission to use.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .action.is_none()
.
sourcepub fn condition(&self) -> &HashMap<String, String>
pub fn condition(&self) -> &HashMap<String, String>
The condition in the analyzed policy statement that resulted in an external access finding.
sourcepub fn is_public(&self) -> Option<bool>
pub fn is_public(&self) -> Option<bool>
Specifies whether the external access finding is public.
sourcepub fn principal(&self) -> Option<&HashMap<String, String>>
pub fn principal(&self) -> Option<&HashMap<String, String>>
The external principal that has access to a resource within the zone of trust.
sourcepub fn sources(&self) -> &[FindingSource]
pub fn sources(&self) -> &[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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .sources.is_none()
.
source§impl ExternalAccessDetails
impl ExternalAccessDetails
sourcepub fn builder() -> ExternalAccessDetailsBuilder
pub fn builder() -> ExternalAccessDetailsBuilder
Creates a new builder-style object to manufacture ExternalAccessDetails
.
Trait Implementations§
source§impl Clone for ExternalAccessDetails
impl Clone for ExternalAccessDetails
source§fn clone(&self) -> ExternalAccessDetails
fn clone(&self) -> ExternalAccessDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExternalAccessDetails
impl Debug for ExternalAccessDetails
source§impl PartialEq for ExternalAccessDetails
impl PartialEq for ExternalAccessDetails
source§fn eq(&self, other: &ExternalAccessDetails) -> bool
fn eq(&self, other: &ExternalAccessDetails) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ExternalAccessDetails
Auto Trait Implementations§
impl Freeze for ExternalAccessDetails
impl RefUnwindSafe for ExternalAccessDetails
impl Send for ExternalAccessDetails
impl Sync for ExternalAccessDetails
impl Unpin for ExternalAccessDetails
impl UnwindSafe for ExternalAccessDetails
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