#[non_exhaustive]pub struct AccessPreviewFindingBuilder { /* private fields */ }
Expand description
A builder for AccessPreviewFinding
.
Implementations§
source§impl AccessPreviewFindingBuilder
impl AccessPreviewFindingBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The ID of the access preview finding. This ID uniquely identifies the element in the list of access preview findings and is not related to the finding ID in Access Analyzer.
This field is required.sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The ID of the access preview finding. This ID uniquely identifies the element in the list of access preview findings and is not related to the finding ID in Access Analyzer.
sourcepub fn get_id(&self) -> &Option<String>
pub fn get_id(&self) -> &Option<String>
The ID of the access preview finding. This ID uniquely identifies the element in the list of access preview findings and is not related to the finding ID in Access Analyzer.
sourcepub fn existing_finding_id(self, input: impl Into<String>) -> Self
pub fn existing_finding_id(self, input: impl Into<String>) -> Self
The existing ID of the finding in IAM Access Analyzer, provided only for existing findings.
sourcepub fn set_existing_finding_id(self, input: Option<String>) -> Self
pub fn set_existing_finding_id(self, input: Option<String>) -> Self
The existing ID of the finding in IAM Access Analyzer, provided only for existing findings.
sourcepub fn get_existing_finding_id(&self) -> &Option<String>
pub fn get_existing_finding_id(&self) -> &Option<String>
The existing ID of the finding in IAM Access Analyzer, provided only for existing findings.
sourcepub fn existing_finding_status(self, input: FindingStatus) -> Self
pub fn existing_finding_status(self, input: FindingStatus) -> Self
The existing status of the finding, provided only for existing findings.
sourcepub fn set_existing_finding_status(self, input: Option<FindingStatus>) -> Self
pub fn set_existing_finding_status(self, input: Option<FindingStatus>) -> Self
The existing status of the finding, provided only for existing findings.
sourcepub fn get_existing_finding_status(&self) -> &Option<FindingStatus>
pub fn get_existing_finding_status(&self) -> &Option<FindingStatus>
The existing status of the finding, provided only for existing findings.
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 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 perform.
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 perform.
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 perform.
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 a 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 a 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 a finding.
sourcepub fn resource(self, input: impl Into<String>) -> Self
pub fn resource(self, input: impl Into<String>) -> Self
The resource that an external principal has access to. This is the resource associated with the access preview.
sourcepub fn set_resource(self, input: Option<String>) -> Self
pub fn set_resource(self, input: Option<String>) -> Self
The resource that an external principal has access to. This is the resource associated with the access preview.
sourcepub fn get_resource(&self) -> &Option<String>
pub fn get_resource(&self) -> &Option<String>
The resource that an external principal has access to. This is the resource associated with the access preview.
sourcepub fn is_public(self, input: bool) -> Self
pub fn is_public(self, input: bool) -> Self
Indicates whether the policy that generated the finding allows public access to the resource.
sourcepub fn set_is_public(self, input: Option<bool>) -> Self
pub fn set_is_public(self, input: Option<bool>) -> Self
Indicates whether the policy that generated the finding allows public access to the resource.
sourcepub fn get_is_public(&self) -> &Option<bool>
pub fn get_is_public(&self) -> &Option<bool>
Indicates whether the policy that generated the finding allows public access to the resource.
sourcepub fn resource_type(self, input: ResourceType) -> Self
pub fn resource_type(self, input: ResourceType) -> Self
The type of the resource that can be accessed in the finding.
This field is required.sourcepub fn set_resource_type(self, input: Option<ResourceType>) -> Self
pub fn set_resource_type(self, input: Option<ResourceType>) -> Self
The type of the resource that can be accessed in the finding.
sourcepub fn get_resource_type(&self) -> &Option<ResourceType>
pub fn get_resource_type(&self) -> &Option<ResourceType>
The type of the resource that can be accessed in the finding.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The time at which the access preview finding 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 finding 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 finding was created.
sourcepub fn change_type(self, input: FindingChangeType) -> Self
pub fn change_type(self, input: FindingChangeType) -> Self
Provides context on how the access preview finding compares to existing access identified in IAM Access Analyzer.
-
New
- The finding is for newly-introduced access. -
Unchanged
- The preview finding is an existing finding that would remain unchanged. -
Changed
- The preview finding is an existing finding with a change in status.
For example, a Changed
finding with preview status Resolved
and existing status Active
indicates the existing Active
finding would become Resolved
as a result of the proposed permissions change.
sourcepub fn set_change_type(self, input: Option<FindingChangeType>) -> Self
pub fn set_change_type(self, input: Option<FindingChangeType>) -> Self
Provides context on how the access preview finding compares to existing access identified in IAM Access Analyzer.
-
New
- The finding is for newly-introduced access. -
Unchanged
- The preview finding is an existing finding that would remain unchanged. -
Changed
- The preview finding is an existing finding with a change in status.
For example, a Changed
finding with preview status Resolved
and existing status Active
indicates the existing Active
finding would become Resolved
as a result of the proposed permissions change.
sourcepub fn get_change_type(&self) -> &Option<FindingChangeType>
pub fn get_change_type(&self) -> &Option<FindingChangeType>
Provides context on how the access preview finding compares to existing access identified in IAM Access Analyzer.
-
New
- The finding is for newly-introduced access. -
Unchanged
- The preview finding is an existing finding that would remain unchanged. -
Changed
- The preview finding is an existing finding with a change in status.
For example, a Changed
finding with preview status Resolved
and existing status Active
indicates the existing Active
finding would become Resolved
as a result of the proposed permissions change.
sourcepub fn status(self, input: FindingStatus) -> Self
pub fn status(self, input: FindingStatus) -> Self
The preview status of the finding. This is what the status of the finding would be after permissions deployment. For example, a Changed
finding with preview status Resolved
and existing status Active
indicates the existing Active
finding would become Resolved
as a result of the proposed permissions change.
sourcepub fn set_status(self, input: Option<FindingStatus>) -> Self
pub fn set_status(self, input: Option<FindingStatus>) -> Self
The preview status of the finding. This is what the status of the finding would be after permissions deployment. For example, a Changed
finding with preview status Resolved
and existing status Active
indicates the existing Active
finding would become Resolved
as a result of the proposed permissions change.
sourcepub fn get_status(&self) -> &Option<FindingStatus>
pub fn get_status(&self) -> &Option<FindingStatus>
The preview status of the finding. This is what the status of the finding would be after permissions deployment. For example, a Changed
finding with preview status Resolved
and existing status Active
indicates the existing Active
finding would become Resolved
as a result of the proposed permissions change.
sourcepub fn resource_owner_account(self, input: impl Into<String>) -> Self
pub fn resource_owner_account(self, input: impl Into<String>) -> Self
The Amazon Web Services account ID that owns the resource. For most Amazon Web Services resources, the owning account is the account in which the resource was created.
This field is required.sourcepub fn set_resource_owner_account(self, input: Option<String>) -> Self
pub fn set_resource_owner_account(self, input: Option<String>) -> Self
The Amazon Web Services account ID that owns the resource. For most Amazon Web Services resources, the owning account is the account in which the resource was created.
sourcepub fn get_resource_owner_account(&self) -> &Option<String>
pub fn get_resource_owner_account(&self) -> &Option<String>
The Amazon Web Services account ID that owns the resource. For most Amazon Web Services resources, the owning account is the account in which the resource was created.
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 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 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 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<AccessPreviewFinding, BuildError>
pub fn build(self) -> Result<AccessPreviewFinding, BuildError>
Consumes the builder and constructs a AccessPreviewFinding
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AccessPreviewFindingBuilder
impl Clone for AccessPreviewFindingBuilder
source§fn clone(&self) -> AccessPreviewFindingBuilder
fn clone(&self) -> AccessPreviewFindingBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AccessPreviewFindingBuilder
impl Debug for AccessPreviewFindingBuilder
source§impl Default for AccessPreviewFindingBuilder
impl Default for AccessPreviewFindingBuilder
source§fn default() -> AccessPreviewFindingBuilder
fn default() -> AccessPreviewFindingBuilder
source§impl PartialEq for AccessPreviewFindingBuilder
impl PartialEq for AccessPreviewFindingBuilder
source§fn eq(&self, other: &AccessPreviewFindingBuilder) -> bool
fn eq(&self, other: &AccessPreviewFindingBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AccessPreviewFindingBuilder
Auto Trait Implementations§
impl Freeze for AccessPreviewFindingBuilder
impl RefUnwindSafe for AccessPreviewFindingBuilder
impl Send for AccessPreviewFindingBuilder
impl Sync for AccessPreviewFindingBuilder
impl Unpin for AccessPreviewFindingBuilder
impl UnwindSafe for AccessPreviewFindingBuilder
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