Struct aws_sdk_securityhub::types::builders::ResourceBuilder
source · #[non_exhaustive]pub struct ResourceBuilder { /* private fields */ }
Expand description
A builder for Resource
.
Implementations§
source§impl ResourceBuilder
impl ResourceBuilder
sourcepub fn type(self, input: impl Into<String>) -> Self
pub fn type(self, input: impl Into<String>) -> Self
The type of the resource that details are provided for. If possible, set Type
to one of the supported resource types. For example, if the resource is an EC2 instance, then set Type
to AwsEc2Instance
.
If the resource does not match any of the provided types, then set Type
to Other
.
sourcepub fn set_type(self, input: Option<String>) -> Self
pub fn set_type(self, input: Option<String>) -> Self
The type of the resource that details are provided for. If possible, set Type
to one of the supported resource types. For example, if the resource is an EC2 instance, then set Type
to AwsEc2Instance
.
If the resource does not match any of the provided types, then set Type
to Other
.
sourcepub fn get_type(&self) -> &Option<String>
pub fn get_type(&self) -> &Option<String>
The type of the resource that details are provided for. If possible, set Type
to one of the supported resource types. For example, if the resource is an EC2 instance, then set Type
to AwsEc2Instance
.
If the resource does not match any of the provided types, then set Type
to Other
.
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The canonical identifier for the given resource type.
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The canonical identifier for the given resource type.
sourcepub fn partition(self, input: Partition) -> Self
pub fn partition(self, input: Partition) -> Self
The canonical Amazon Web Services partition name that the Region is assigned to.
sourcepub fn set_partition(self, input: Option<Partition>) -> Self
pub fn set_partition(self, input: Option<Partition>) -> Self
The canonical Amazon Web Services partition name that the Region is assigned to.
sourcepub fn get_partition(&self) -> &Option<Partition>
pub fn get_partition(&self) -> &Option<Partition>
The canonical Amazon Web Services partition name that the Region is assigned to.
sourcepub fn region(self, input: impl Into<String>) -> Self
pub fn region(self, input: impl Into<String>) -> Self
The canonical Amazon Web Services external Region name where this resource is located.
sourcepub fn set_region(self, input: Option<String>) -> Self
pub fn set_region(self, input: Option<String>) -> Self
The canonical Amazon Web Services external Region name where this resource is located.
sourcepub fn get_region(&self) -> &Option<String>
pub fn get_region(&self) -> &Option<String>
The canonical Amazon Web Services external Region name where this resource is located.
sourcepub fn resource_role(self, input: impl Into<String>) -> Self
pub fn resource_role(self, input: impl Into<String>) -> Self
Identifies the role of the resource in the finding. A resource is either the actor or target of the finding activity,
sourcepub fn set_resource_role(self, input: Option<String>) -> Self
pub fn set_resource_role(self, input: Option<String>) -> Self
Identifies the role of the resource in the finding. A resource is either the actor or target of the finding activity,
sourcepub fn get_resource_role(&self) -> &Option<String>
pub fn get_resource_role(&self) -> &Option<String>
Identifies the role of the resource in the finding. A resource is either the actor or target of the finding activity,
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
A list of Amazon Web Services tags associated with a resource at the time the finding was processed.
A list of Amazon Web Services tags associated with a resource at the time the finding was processed.
A list of Amazon Web Services tags associated with a resource at the time the finding was processed.
sourcepub fn data_classification(self, input: DataClassificationDetails) -> Self
pub fn data_classification(self, input: DataClassificationDetails) -> Self
Contains information about sensitive data that was detected on the resource.
sourcepub fn set_data_classification(
self,
input: Option<DataClassificationDetails>
) -> Self
pub fn set_data_classification( self, input: Option<DataClassificationDetails> ) -> Self
Contains information about sensitive data that was detected on the resource.
sourcepub fn get_data_classification(&self) -> &Option<DataClassificationDetails>
pub fn get_data_classification(&self) -> &Option<DataClassificationDetails>
Contains information about sensitive data that was detected on the resource.
sourcepub fn details(self, input: ResourceDetails) -> Self
pub fn details(self, input: ResourceDetails) -> Self
Additional details about the resource related to a finding.
sourcepub fn set_details(self, input: Option<ResourceDetails>) -> Self
pub fn set_details(self, input: Option<ResourceDetails>) -> Self
Additional details about the resource related to a finding.
sourcepub fn get_details(&self) -> &Option<ResourceDetails>
pub fn get_details(&self) -> &Option<ResourceDetails>
Additional details about the resource related to a finding.
Trait Implementations§
source§impl Clone for ResourceBuilder
impl Clone for ResourceBuilder
source§fn clone(&self) -> ResourceBuilder
fn clone(&self) -> ResourceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ResourceBuilder
impl Debug for ResourceBuilder
source§impl Default for ResourceBuilder
impl Default for ResourceBuilder
source§fn default() -> ResourceBuilder
fn default() -> ResourceBuilder
source§impl PartialEq for ResourceBuilder
impl PartialEq for ResourceBuilder
source§fn eq(&self, other: &ResourceBuilder) -> bool
fn eq(&self, other: &ResourceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.