#[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 title(self, input: impl Into<String>) -> Self
pub fn title(self, input: impl Into<String>) -> Self
The title of a security control.
This field is required.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.
This field is required.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.
This field is required.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.
This field is required.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.
This field is required.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 customizable_properties(self, input: SecurityControlProperty) -> Self
pub fn customizable_properties(self, input: SecurityControlProperty) -> Self
Appends an item to customizable_properties
.
To override the contents of this collection use set_customizable_properties
.
Security control properties that you can customize. Currently, only parameter customization is supported for select controls. An empty array is returned for controls that don’t support custom properties.
sourcepub fn set_customizable_properties(
self,
input: Option<Vec<SecurityControlProperty>>
) -> Self
pub fn set_customizable_properties( self, input: Option<Vec<SecurityControlProperty>> ) -> Self
Security control properties that you can customize. Currently, only parameter customization is supported for select controls. An empty array is returned for controls that don’t support custom properties.
sourcepub fn get_customizable_properties(
&self
) -> &Option<Vec<SecurityControlProperty>>
pub fn get_customizable_properties( &self ) -> &Option<Vec<SecurityControlProperty>>
Security control properties that you can customize. Currently, only parameter customization is supported for select controls. An empty array is returned for controls that don’t support custom properties.
sourcepub fn parameter_definitions(
self,
k: impl Into<String>,
v: ParameterDefinition
) -> Self
pub fn parameter_definitions( self, k: impl Into<String>, v: ParameterDefinition ) -> Self
Adds a key-value pair to parameter_definitions
.
To override the contents of this collection use set_parameter_definitions
.
An object that provides a security control parameter name, description, and the options for customizing it. This object is excluded for a control that doesn't support custom parameters.
sourcepub fn set_parameter_definitions(
self,
input: Option<HashMap<String, ParameterDefinition>>
) -> Self
pub fn set_parameter_definitions( self, input: Option<HashMap<String, ParameterDefinition>> ) -> Self
An object that provides a security control parameter name, description, and the options for customizing it. This object is excluded for a control that doesn't support custom parameters.
sourcepub fn get_parameter_definitions(
&self
) -> &Option<HashMap<String, ParameterDefinition>>
pub fn get_parameter_definitions( &self ) -> &Option<HashMap<String, ParameterDefinition>>
An object that provides a security control parameter name, description, and the options for customizing it. This object is excluded for a control that doesn't support custom parameters.
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 ==
.