#[non_exhaustive]pub struct FindingSummaryBuilder { /* private fields */ }Expand description
A builder for FindingSummary.
Implementations§
source§impl FindingSummaryBuilder
impl FindingSummaryBuilder
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 the 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 the external principal has access to.
sourcepub fn get_resource(&self) -> &Option<String>
pub fn get_resource(&self) -> &Option<String>
The resource that the external principal has access to.
sourcepub fn is_public(self, input: bool) -> Self
pub fn is_public(self, input: bool) -> Self
Indicates whether the finding reports a resource that has a policy that allows public access.
sourcepub fn set_is_public(self, input: Option<bool>) -> Self
pub fn set_is_public(self, input: Option<bool>) -> Self
Indicates whether the finding reports a resource that has a policy that allows public access.
sourcepub fn get_is_public(&self) -> &Option<bool>
pub fn get_is_public(&self) -> &Option<bool>
Indicates whether the finding reports a resource that has a policy that allows public access.
sourcepub fn resource_type(self, input: ResourceType) -> Self
pub fn resource_type(self, input: ResourceType) -> Self
The type of the resource that the external principal has access to.
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 the external principal has access to.
sourcepub fn get_resource_type(&self) -> &Option<ResourceType>
pub fn get_resource_type(&self) -> &Option<ResourceType>
The type of the resource that the external principal has access to.
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 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 finding was created.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The time at which the finding was created.
sourcepub fn analyzed_at(self, input: DateTime) -> Self
pub fn analyzed_at(self, input: DateTime) -> Self
The time at which the resource-based policy that generated the finding 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-based policy that generated the finding was analyzed.
sourcepub fn get_analyzed_at(&self) -> &Option<DateTime>
pub fn get_analyzed_at(&self) -> &Option<DateTime>
The time at which the resource-based policy that generated the finding 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 most recently 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 most recently updated.
sourcepub fn get_updated_at(&self) -> &Option<DateTime>
pub fn get_updated_at(&self) -> &Option<DateTime>
The time at which the finding was most recently updated.
sourcepub fn status(self, input: FindingStatus) -> Self
pub fn status(self, input: FindingStatus) -> Self
The 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 status of the finding.
sourcepub fn get_status(&self) -> &Option<FindingStatus>
pub fn get_status(&self) -> &Option<FindingStatus>
The 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 error(self, input: impl Into<String>) -> Self
pub fn error(self, input: impl Into<String>) -> Self
The error that resulted in an Error finding.
sourcepub fn set_error(self, input: Option<String>) -> Self
pub fn set_error(self, input: Option<String>) -> Self
The error that resulted in an Error finding.
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<FindingSummary, BuildError>
pub fn build(self) -> Result<FindingSummary, BuildError>
Consumes the builder and constructs a FindingSummary.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for FindingSummaryBuilder
impl Clone for FindingSummaryBuilder
source§fn clone(&self) -> FindingSummaryBuilder
fn clone(&self) -> FindingSummaryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for FindingSummaryBuilder
impl Debug for FindingSummaryBuilder
source§impl Default for FindingSummaryBuilder
impl Default for FindingSummaryBuilder
source§fn default() -> FindingSummaryBuilder
fn default() -> FindingSummaryBuilder
source§impl PartialEq for FindingSummaryBuilder
impl PartialEq for FindingSummaryBuilder
source§fn eq(&self, other: &FindingSummaryBuilder) -> bool
fn eq(&self, other: &FindingSummaryBuilder) -> bool
self and other values to be equal, and is used
by ==.