Struct aws_sdk_securityhub::types::builders::SecurityControlBuilder
source · #[non_exhaustive]pub struct SecurityControlBuilder { /* private fields */ }
Expand description
A builder for SecurityControl
.
Implementations§
source§impl SecurityControlBuilder
impl SecurityControlBuilder
sourcepub fn security_control_id(self, input: impl Into<String>) -> Self
pub fn security_control_id(self, input: impl Into<String>) -> Self
The unique identifier of a security control across standards. Values for this field typically consist of an Amazon Web Service name and a number, such as APIGateway.3.
sourcepub fn set_security_control_id(self, input: Option<String>) -> Self
pub fn set_security_control_id(self, input: Option<String>) -> Self
The unique identifier of a security control across standards. Values for this field typically consist of an Amazon Web Service name and a number, such as APIGateway.3.
sourcepub fn get_security_control_id(&self) -> &Option<String>
pub fn get_security_control_id(&self) -> &Option<String>
The unique identifier of a security control across standards. Values for this field typically consist of an Amazon Web Service name and a number, such as APIGateway.3.
sourcepub fn security_control_arn(self, input: impl Into<String>) -> Self
pub fn security_control_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) for a security control across standards, such as arn:aws:securityhub:eu-central-1:123456789012:security-control/S3.1
. This parameter doesn't mention a specific standard.
sourcepub fn set_security_control_arn(self, input: Option<String>) -> Self
pub fn set_security_control_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) for a security control across standards, such as arn:aws:securityhub:eu-central-1:123456789012:security-control/S3.1
. This parameter doesn't mention a specific standard.
sourcepub fn get_security_control_arn(&self) -> &Option<String>
pub fn get_security_control_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) for a security control across standards, such as arn:aws:securityhub:eu-central-1:123456789012:security-control/S3.1
. This parameter doesn't mention a specific standard.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of a security control across standards. This typically summarizes how Security Hub evaluates the control and the conditions under which it produces a failed finding. This parameter doesn't reference a specific standard.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of a security control across standards. This typically summarizes how Security Hub evaluates the control and the conditions under which it produces a failed finding. This parameter doesn't reference a specific standard.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of a security control across standards. This typically summarizes how Security Hub evaluates the control and the conditions under which it produces a failed finding. This parameter doesn't reference a specific standard.
sourcepub fn remediation_url(self, input: impl Into<String>) -> Self
pub fn remediation_url(self, input: impl Into<String>) -> Self
A link to Security Hub documentation that explains how to remediate a failed finding for a security control.
sourcepub fn set_remediation_url(self, input: Option<String>) -> Self
pub fn set_remediation_url(self, input: Option<String>) -> Self
A link to Security Hub documentation that explains how to remediate a failed finding for a security control.
sourcepub fn get_remediation_url(&self) -> &Option<String>
pub fn get_remediation_url(&self) -> &Option<String>
A link to Security Hub documentation that explains how to remediate a failed finding for a security control.
sourcepub fn severity_rating(self, input: SeverityRating) -> Self
pub fn severity_rating(self, input: SeverityRating) -> Self
The severity of a security control. For more information about how Security Hub determines control severity, see Assigning severity to control findings in the Security Hub User Guide.
sourcepub fn set_severity_rating(self, input: Option<SeverityRating>) -> Self
pub fn set_severity_rating(self, input: Option<SeverityRating>) -> Self
The severity of a security control. For more information about how Security Hub determines control severity, see Assigning severity to control findings in the Security Hub User Guide.
sourcepub fn get_severity_rating(&self) -> &Option<SeverityRating>
pub fn get_severity_rating(&self) -> &Option<SeverityRating>
The severity of a security control. For more information about how Security Hub determines control severity, see Assigning severity to control findings in the Security Hub User Guide.
sourcepub fn security_control_status(self, input: ControlStatus) -> Self
pub fn security_control_status(self, input: ControlStatus) -> Self
The enablement status of a security control in a specific standard.
sourcepub fn set_security_control_status(self, input: Option<ControlStatus>) -> Self
pub fn set_security_control_status(self, input: Option<ControlStatus>) -> Self
The enablement status of a security control in a specific standard.
sourcepub fn get_security_control_status(&self) -> &Option<ControlStatus>
pub fn get_security_control_status(&self) -> &Option<ControlStatus>
The enablement status of a security control in a specific standard.
sourcepub fn build(self) -> SecurityControl
pub fn build(self) -> SecurityControl
Consumes the builder and constructs a SecurityControl
.
Trait Implementations§
source§impl Clone for SecurityControlBuilder
impl Clone for SecurityControlBuilder
source§fn clone(&self) -> SecurityControlBuilder
fn clone(&self) -> SecurityControlBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SecurityControlBuilder
impl Debug for SecurityControlBuilder
source§impl Default for SecurityControlBuilder
impl Default for SecurityControlBuilder
source§fn default() -> SecurityControlBuilder
fn default() -> SecurityControlBuilder
source§impl PartialEq for SecurityControlBuilder
impl PartialEq for SecurityControlBuilder
source§fn eq(&self, other: &SecurityControlBuilder) -> bool
fn eq(&self, other: &SecurityControlBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.