Struct aws_sdk_securityhub::model::resource::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for Resource
.
Implementations§
source§impl Builder
impl Builder
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 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 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 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,
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.
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 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.