Struct aws_sdk_accessanalyzer::types::AnalyzedResource
source · #[non_exhaustive]pub struct AnalyzedResource {
pub resource_arn: String,
pub resource_type: ResourceType,
pub created_at: DateTime,
pub analyzed_at: DateTime,
pub updated_at: DateTime,
pub is_public: bool,
pub actions: Option<Vec<String>>,
pub shared_via: Option<Vec<String>>,
pub status: Option<FindingStatus>,
pub resource_owner_account: String,
pub error: Option<String>,
}
Expand description
Contains details about the analyzed resource.
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.resource_arn: String
The ARN of the resource that was analyzed.
resource_type: ResourceType
The type of the resource that was analyzed.
created_at: DateTime
The time at which the finding was created.
analyzed_at: DateTime
The time at which the resource was analyzed.
updated_at: DateTime
The time at which the finding was updated.
is_public: bool
Indicates whether the policy that generated the finding grants public access to the resource.
actions: Option<Vec<String>>
The actions that an external principal is granted permission to use by the policy that generated the finding.
Indicates how the access that generated the finding is granted. This is populated for Amazon S3 bucket findings.
status: Option<FindingStatus>
The current status of the finding generated from the analyzed resource.
resource_owner_account: String
The Amazon Web Services account ID that owns the resource.
error: Option<String>
An error message.
Implementations§
source§impl AnalyzedResource
impl AnalyzedResource
sourcepub fn resource_arn(&self) -> &str
pub fn resource_arn(&self) -> &str
The ARN of the resource that was analyzed.
sourcepub fn resource_type(&self) -> &ResourceType
pub fn resource_type(&self) -> &ResourceType
The type of the resource that was analyzed.
sourcepub fn created_at(&self) -> &DateTime
pub fn created_at(&self) -> &DateTime
The time at which the finding was created.
sourcepub fn analyzed_at(&self) -> &DateTime
pub fn analyzed_at(&self) -> &DateTime
The time at which the resource was analyzed.
sourcepub fn updated_at(&self) -> &DateTime
pub fn updated_at(&self) -> &DateTime
The time at which the finding was updated.
sourcepub fn is_public(&self) -> bool
pub fn is_public(&self) -> bool
Indicates whether the policy that generated the finding grants public access to the resource.
sourcepub fn actions(&self) -> &[String]
pub fn actions(&self) -> &[String]
The actions that an external principal is granted permission to use by the policy that generated the finding.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .actions.is_none()
.
Indicates how the access that generated the finding is granted. This 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 .shared_via.is_none()
.
sourcepub fn status(&self) -> Option<&FindingStatus>
pub fn status(&self) -> Option<&FindingStatus>
The current status of the finding generated from the analyzed resource.
sourcepub fn resource_owner_account(&self) -> &str
pub fn resource_owner_account(&self) -> &str
The Amazon Web Services account ID that owns the resource.
source§impl AnalyzedResource
impl AnalyzedResource
sourcepub fn builder() -> AnalyzedResourceBuilder
pub fn builder() -> AnalyzedResourceBuilder
Creates a new builder-style object to manufacture AnalyzedResource
.
Trait Implementations§
source§impl Clone for AnalyzedResource
impl Clone for AnalyzedResource
source§fn clone(&self) -> AnalyzedResource
fn clone(&self) -> AnalyzedResource
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AnalyzedResource
impl Debug for AnalyzedResource
source§impl PartialEq for AnalyzedResource
impl PartialEq for AnalyzedResource
source§fn eq(&self, other: &AnalyzedResource) -> bool
fn eq(&self, other: &AnalyzedResource) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AnalyzedResource
Auto Trait Implementations§
impl Freeze for AnalyzedResource
impl RefUnwindSafe for AnalyzedResource
impl Send for AnalyzedResource
impl Sync for AnalyzedResource
impl Unpin for AnalyzedResource
impl UnwindSafe for AnalyzedResource
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