Struct aws_sdk_accessanalyzer::types::builders::FindingBuilder
source · #[non_exhaustive]pub struct FindingBuilder { /* private fields */ }
Expand description
A builder for Finding
.
Implementations§
source§impl FindingBuilder
impl FindingBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The ID of the finding.
This field is required.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 use.
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 use.
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 use.
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.
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.
sourcepub fn get_resource(&self) -> &Option<String>
pub fn get_resource(&self) -> &Option<String>
The resource that an external principal has access to.
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 identified 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 identified in the finding.
sourcepub fn get_resource_type(&self) -> &Option<ResourceType>
pub fn get_resource_type(&self) -> &Option<ResourceType>
The type of the resource identified in the finding.
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 created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The time at which the finding was generated.
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 finding was generated.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The time at which the finding was generated.
sourcepub fn analyzed_at(self, input: DateTime) -> Self
pub fn analyzed_at(self, input: DateTime) -> Self
The time at which the resource was analyzed.
This field is required.sourcepub fn set_analyzed_at(self, input: Option<DateTime>) -> Self
pub fn set_analyzed_at(self, input: Option<DateTime>) -> Self
The time at which the resource was analyzed.
sourcepub fn get_analyzed_at(&self) -> &Option<DateTime>
pub fn get_analyzed_at(&self) -> &Option<DateTime>
The time at which the resource was analyzed.
sourcepub fn updated_at(self, input: DateTime) -> Self
pub fn updated_at(self, input: DateTime) -> Self
The time at which the finding was updated.
This field is required.sourcepub fn set_updated_at(self, input: Option<DateTime>) -> Self
pub fn set_updated_at(self, input: Option<DateTime>) -> Self
The time at which the finding was updated.
sourcepub fn get_updated_at(&self) -> &Option<DateTime>
pub fn get_updated_at(&self) -> &Option<DateTime>
The time at which the finding was updated.
sourcepub fn status(self, input: FindingStatus) -> Self
pub fn status(self, input: FindingStatus) -> Self
The current status of the finding.
This field is required.sourcepub fn set_status(self, input: Option<FindingStatus>) -> Self
pub fn set_status(self, input: Option<FindingStatus>) -> Self
The current status of the finding.
sourcepub fn get_status(&self) -> &Option<FindingStatus>
pub fn get_status(&self) -> &Option<FindingStatus>
The current status of the finding.
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.
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.
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.
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.
Trait Implementations§
source§impl Clone for FindingBuilder
impl Clone for FindingBuilder
source§fn clone(&self) -> FindingBuilder
fn clone(&self) -> FindingBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FindingBuilder
impl Debug for FindingBuilder
source§impl Default for FindingBuilder
impl Default for FindingBuilder
source§fn default() -> FindingBuilder
fn default() -> FindingBuilder
source§impl PartialEq for FindingBuilder
impl PartialEq for FindingBuilder
source§fn eq(&self, other: &FindingBuilder) -> bool
fn eq(&self, other: &FindingBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FindingBuilder
Auto Trait Implementations§
impl Freeze for FindingBuilder
impl RefUnwindSafe for FindingBuilder
impl Send for FindingBuilder
impl Sync for FindingBuilder
impl Unpin for FindingBuilder
impl UnwindSafe for FindingBuilder
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