#[non_exhaustive]pub struct AccessPreviewBuilder { /* private fields */ }
Expand description
A builder for AccessPreview
.
Implementations§
source§impl AccessPreviewBuilder
impl AccessPreviewBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The unique ID for the access preview.
This field is required.sourcepub fn analyzer_arn(self, input: impl Into<String>) -> Self
pub fn analyzer_arn(self, input: impl Into<String>) -> Self
The ARN of the analyzer used to generate the access preview.
This field is required.sourcepub fn set_analyzer_arn(self, input: Option<String>) -> Self
pub fn set_analyzer_arn(self, input: Option<String>) -> Self
The ARN of the analyzer used to generate the access preview.
sourcepub fn get_analyzer_arn(&self) -> &Option<String>
pub fn get_analyzer_arn(&self) -> &Option<String>
The ARN of the analyzer used to generate the access preview.
sourcepub fn configurations(self, k: impl Into<String>, v: Configuration) -> Self
pub fn configurations(self, k: impl Into<String>, v: Configuration) -> Self
Adds a key-value pair to configurations
.
To override the contents of this collection use set_configurations
.
A map of resource ARNs for the proposed resource configuration.
sourcepub fn set_configurations(
self,
input: Option<HashMap<String, Configuration>>
) -> Self
pub fn set_configurations( self, input: Option<HashMap<String, Configuration>> ) -> Self
A map of resource ARNs for the proposed resource configuration.
sourcepub fn get_configurations(&self) -> &Option<HashMap<String, Configuration>>
pub fn get_configurations(&self) -> &Option<HashMap<String, Configuration>>
A map of resource ARNs for the proposed resource configuration.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The time at which the access preview was created.
This field is required.sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The time at which the access preview was created.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The time at which the access preview was created.
sourcepub fn status(self, input: AccessPreviewStatus) -> Self
pub fn status(self, input: AccessPreviewStatus) -> Self
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 set_status(self, input: Option<AccessPreviewStatus>) -> Self
pub fn set_status(self, input: Option<AccessPreviewStatus>) -> Self
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 get_status(&self) -> &Option<AccessPreviewStatus>
pub fn get_status(&self) -> &Option<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, input: AccessPreviewStatusReason) -> Self
pub fn status_reason(self, input: AccessPreviewStatusReason) -> Self
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.
sourcepub fn set_status_reason(self, input: Option<AccessPreviewStatusReason>) -> Self
pub fn set_status_reason(self, input: Option<AccessPreviewStatusReason>) -> Self
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.
sourcepub fn get_status_reason(&self) -> &Option<AccessPreviewStatusReason>
pub fn get_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.
sourcepub fn build(self) -> Result<AccessPreview, BuildError>
pub fn build(self) -> Result<AccessPreview, BuildError>
Consumes the builder and constructs a AccessPreview
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AccessPreviewBuilder
impl Clone for AccessPreviewBuilder
source§fn clone(&self) -> AccessPreviewBuilder
fn clone(&self) -> AccessPreviewBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AccessPreviewBuilder
impl Debug for AccessPreviewBuilder
source§impl Default for AccessPreviewBuilder
impl Default for AccessPreviewBuilder
source§fn default() -> AccessPreviewBuilder
fn default() -> AccessPreviewBuilder
source§impl PartialEq for AccessPreviewBuilder
impl PartialEq for AccessPreviewBuilder
source§fn eq(&self, other: &AccessPreviewBuilder) -> bool
fn eq(&self, other: &AccessPreviewBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AccessPreviewBuilder
Auto Trait Implementations§
impl Freeze for AccessPreviewBuilder
impl RefUnwindSafe for AccessPreviewBuilder
impl Send for AccessPreviewBuilder
impl Sync for AccessPreviewBuilder
impl Unpin for AccessPreviewBuilder
impl UnwindSafe for AccessPreviewBuilder
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