Struct aws_sdk_accessanalyzer::types::AccessPreview
source · #[non_exhaustive]pub struct AccessPreview {
pub id: String,
pub analyzer_arn: String,
pub configurations: HashMap<String, Configuration>,
pub created_at: DateTime,
pub status: AccessPreviewStatus,
pub status_reason: Option<AccessPreviewStatusReason>,
}Expand description
Contains information about an access preview.
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.id: StringThe unique ID for the access preview.
analyzer_arn: StringThe ARN of the analyzer used to generate the access preview.
configurations: HashMap<String, Configuration>A map of resource ARNs for the proposed resource configuration.
created_at: DateTimeThe time at which the access preview was created.
status: AccessPreviewStatusThe status of the access preview.
-
Creating- The access preview creation is in progress. -
Completed- The access preview is complete. You can preview findings for external access to the resource. -
Failed- The access preview creation has failed.
status_reason: Option<AccessPreviewStatusReason>Provides more details about the current status of the access preview.
For example, if the creation of the access preview fails, a Failed status is returned. This failure can be due to an internal issue with the analysis or due to an invalid resource configuration.
Implementations§
source§impl AccessPreview
impl AccessPreview
sourcepub fn analyzer_arn(&self) -> &str
pub fn analyzer_arn(&self) -> &str
The ARN of the analyzer used to generate the access preview.
sourcepub fn configurations(&self) -> &HashMap<String, Configuration>
pub fn configurations(&self) -> &HashMap<String, Configuration>
A map of resource ARNs for the proposed resource configuration.
sourcepub fn created_at(&self) -> &DateTime
pub fn created_at(&self) -> &DateTime
The time at which the access preview was created.
sourcepub fn status(&self) -> &AccessPreviewStatus
pub fn status(&self) -> &AccessPreviewStatus
The status of the access preview.
-
Creating- The access preview creation is in progress. -
Completed- The access preview is complete. You can preview findings for external access to the resource. -
Failed- The access preview creation has failed.
sourcepub fn status_reason(&self) -> Option<&AccessPreviewStatusReason>
pub fn status_reason(&self) -> Option<&AccessPreviewStatusReason>
Provides more details about the current status of the access preview.
For example, if the creation of the access preview fails, a Failed status is returned. This failure can be due to an internal issue with the analysis or due to an invalid resource configuration.
source§impl AccessPreview
impl AccessPreview
sourcepub fn builder() -> AccessPreviewBuilder
pub fn builder() -> AccessPreviewBuilder
Creates a new builder-style object to manufacture AccessPreview.
Trait Implementations§
source§impl Clone for AccessPreview
impl Clone for AccessPreview
source§fn clone(&self) -> AccessPreview
fn clone(&self) -> AccessPreview
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AccessPreview
impl Debug for AccessPreview
source§impl PartialEq for AccessPreview
impl PartialEq for AccessPreview
source§fn eq(&self, other: &AccessPreview) -> bool
fn eq(&self, other: &AccessPreview) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AccessPreview
Auto Trait Implementations§
impl Freeze for AccessPreview
impl RefUnwindSafe for AccessPreview
impl Send for AccessPreview
impl Sync for AccessPreview
impl Unpin for AccessPreview
impl UnwindSafe for AccessPreview
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