#[non_exhaustive]pub struct SecurityControlDefinitionBuilder { /* private fields */ }
Expand description
A builder for SecurityControlDefinition
.
Implementations§
source§impl SecurityControlDefinitionBuilder
impl SecurityControlDefinitionBuilder
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 (for example, APIGateway.3). This parameter differs from SecurityControlArn
, which is a unique Amazon Resource Name (ARN) assigned to a control. The ARN references the security control ID (for example, arn:aws:securityhub:eu-central-1:123456789012:security-control/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 (for example, APIGateway.3). This parameter differs from SecurityControlArn
, which is a unique Amazon Resource Name (ARN) assigned to a control. The ARN references the security control ID (for example, arn:aws:securityhub:eu-central-1:123456789012:security-control/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 (for example, APIGateway.3). This parameter differs from SecurityControlArn
, which is a unique Amazon Resource Name (ARN) assigned to a control. The ARN references the security control ID (for example, arn:aws:securityhub:eu-central-1:123456789012:security-control/APIGateway.3).
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 current_region_availability(
self,
input: RegionAvailabilityStatus
) -> Self
pub fn current_region_availability( self, input: RegionAvailabilityStatus ) -> Self
Specifies whether a security control is available in the current Amazon Web Services Region.
sourcepub fn set_current_region_availability(
self,
input: Option<RegionAvailabilityStatus>
) -> Self
pub fn set_current_region_availability( self, input: Option<RegionAvailabilityStatus> ) -> Self
Specifies whether a security control is available in the current Amazon Web Services Region.
sourcepub fn get_current_region_availability(
&self
) -> &Option<RegionAvailabilityStatus>
pub fn get_current_region_availability( &self ) -> &Option<RegionAvailabilityStatus>
Specifies whether a security control is available in the current Amazon Web Services Region.
sourcepub fn build(self) -> SecurityControlDefinition
pub fn build(self) -> SecurityControlDefinition
Consumes the builder and constructs a SecurityControlDefinition
.
Trait Implementations§
source§impl Clone for SecurityControlDefinitionBuilder
impl Clone for SecurityControlDefinitionBuilder
source§fn clone(&self) -> SecurityControlDefinitionBuilder
fn clone(&self) -> SecurityControlDefinitionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for SecurityControlDefinitionBuilder
impl Default for SecurityControlDefinitionBuilder
source§fn default() -> SecurityControlDefinitionBuilder
fn default() -> SecurityControlDefinitionBuilder
source§impl PartialEq for SecurityControlDefinitionBuilder
impl PartialEq for SecurityControlDefinitionBuilder
source§fn eq(&self, other: &SecurityControlDefinitionBuilder) -> bool
fn eq(&self, other: &SecurityControlDefinitionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.