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.
This field is required.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 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 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.
This field is required.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 update_status(self, input: UpdateStatus) -> Self
pub fn update_status(self, input: UpdateStatus) -> Self
Identifies whether customizable properties of a security control are reflected in Security Hub findings. A status of READY
indicates findings include the current parameter values. A status of UPDATING
indicates that all findings may not include the current parameter values.
sourcepub fn set_update_status(self, input: Option<UpdateStatus>) -> Self
pub fn set_update_status(self, input: Option<UpdateStatus>) -> Self
Identifies whether customizable properties of a security control are reflected in Security Hub findings. A status of READY
indicates findings include the current parameter values. A status of UPDATING
indicates that all findings may not include the current parameter values.
sourcepub fn get_update_status(&self) -> &Option<UpdateStatus>
pub fn get_update_status(&self) -> &Option<UpdateStatus>
Identifies whether customizable properties of a security control are reflected in Security Hub findings. A status of READY
indicates findings include the current parameter values. A status of UPDATING
indicates that all findings may not include the current parameter values.
sourcepub fn parameters(self, k: impl Into<String>, v: ParameterConfiguration) -> Self
pub fn parameters(self, k: impl Into<String>, v: ParameterConfiguration) -> Self
Adds a key-value pair to parameters
.
To override the contents of this collection use set_parameters
.
An object that identifies the name of a control parameter, its current value, and whether it has been customized.
sourcepub fn set_parameters(
self,
input: Option<HashMap<String, ParameterConfiguration>>
) -> Self
pub fn set_parameters( self, input: Option<HashMap<String, ParameterConfiguration>> ) -> Self
An object that identifies the name of a control parameter, its current value, and whether it has been customized.
sourcepub fn get_parameters(&self) -> &Option<HashMap<String, ParameterConfiguration>>
pub fn get_parameters(&self) -> &Option<HashMap<String, ParameterConfiguration>>
An object that identifies the name of a control parameter, its current value, and whether it has been customized.
sourcepub fn last_update_reason(self, input: impl Into<String>) -> Self
pub fn last_update_reason(self, input: impl Into<String>) -> Self
The most recent reason for updating the customizable properties of a security control. This differs from the UpdateReason
field of the BatchUpdateStandardsControlAssociations
API, which tracks the reason for updating the enablement status of a control. This field accepts alphanumeric characters in addition to white spaces, dashes, and underscores.
sourcepub fn set_last_update_reason(self, input: Option<String>) -> Self
pub fn set_last_update_reason(self, input: Option<String>) -> Self
The most recent reason for updating the customizable properties of a security control. This differs from the UpdateReason
field of the BatchUpdateStandardsControlAssociations
API, which tracks the reason for updating the enablement status of a control. This field accepts alphanumeric characters in addition to white spaces, dashes, and underscores.
sourcepub fn get_last_update_reason(&self) -> &Option<String>
pub fn get_last_update_reason(&self) -> &Option<String>
The most recent reason for updating the customizable properties of a security control. This differs from the UpdateReason
field of the BatchUpdateStandardsControlAssociations
API, which tracks the reason for updating the enablement status of a control. This field accepts alphanumeric characters in addition to white spaces, dashes, and underscores.
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 ==
.impl StructuralPartialEq for SecurityControlBuilder
Auto Trait Implementations§
impl Freeze for SecurityControlBuilder
impl RefUnwindSafe for SecurityControlBuilder
impl Send for SecurityControlBuilder
impl Sync for SecurityControlBuilder
impl Unpin for SecurityControlBuilder
impl UnwindSafe for SecurityControlBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more