Struct aws_sdk_securityhub::operation::update_configuration_policy::builders::UpdateConfigurationPolicyFluentBuilder
source · pub struct UpdateConfigurationPolicyFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateConfigurationPolicy
.
Updates a configuration policy. Only the Security Hub delegated administrator can invoke this operation from the home Region.
Implementations§
source§impl UpdateConfigurationPolicyFluentBuilder
impl UpdateConfigurationPolicyFluentBuilder
sourcepub fn as_input(&self) -> &UpdateConfigurationPolicyInputBuilder
pub fn as_input(&self) -> &UpdateConfigurationPolicyInputBuilder
Access the UpdateConfigurationPolicy as a reference.
sourcepub async fn send(
self
) -> Result<UpdateConfigurationPolicyOutput, SdkError<UpdateConfigurationPolicyError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateConfigurationPolicyOutput, SdkError<UpdateConfigurationPolicyError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<UpdateConfigurationPolicyOutput, UpdateConfigurationPolicyError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdateConfigurationPolicyOutput, UpdateConfigurationPolicyError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn identifier(self, input: impl Into<String>) -> Self
pub fn identifier(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) or universally unique identifier (UUID) of the configuration policy.
sourcepub fn set_identifier(self, input: Option<String>) -> Self
pub fn set_identifier(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) or universally unique identifier (UUID) of the configuration policy.
sourcepub fn get_identifier(&self) -> &Option<String>
pub fn get_identifier(&self) -> &Option<String>
The Amazon Resource Name (ARN) or universally unique identifier (UUID) of the configuration policy.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the configuration policy. Alphanumeric characters and the following ASCII characters are permitted: -, ., !, *, /
.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the configuration policy. Alphanumeric characters and the following ASCII characters are permitted: -, ., !, *, /
.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the configuration policy. Alphanumeric characters and the following ASCII characters are permitted: -, ., !, *, /
.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the configuration policy.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the configuration policy.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the configuration policy.
sourcepub fn updated_reason(self, input: impl Into<String>) -> Self
pub fn updated_reason(self, input: impl Into<String>) -> Self
The reason for updating the configuration policy.
sourcepub fn set_updated_reason(self, input: Option<String>) -> Self
pub fn set_updated_reason(self, input: Option<String>) -> Self
The reason for updating the configuration policy.
sourcepub fn get_updated_reason(&self) -> &Option<String>
pub fn get_updated_reason(&self) -> &Option<String>
The reason for updating the configuration policy.
sourcepub fn configuration_policy(self, input: Policy) -> Self
pub fn configuration_policy(self, input: Policy) -> Self
An object that defines how Security Hub is configured. It includes whether Security Hub is enabled or disabled, a list of enabled security standards, a list of enabled or disabled security controls, and a list of custom parameter values for specified controls. If you provide a list of security controls that are enabled in the configuration policy, Security Hub disables all other controls (including newly released controls). If you provide a list of security controls that are disabled in the configuration policy, Security Hub enables all other controls (including newly released controls).
When updating a configuration policy, provide a complete list of standards that you want to enable and a complete list of controls that you want to enable or disable. The updated configuration replaces the current configuration.
sourcepub fn set_configuration_policy(self, input: Option<Policy>) -> Self
pub fn set_configuration_policy(self, input: Option<Policy>) -> Self
An object that defines how Security Hub is configured. It includes whether Security Hub is enabled or disabled, a list of enabled security standards, a list of enabled or disabled security controls, and a list of custom parameter values for specified controls. If you provide a list of security controls that are enabled in the configuration policy, Security Hub disables all other controls (including newly released controls). If you provide a list of security controls that are disabled in the configuration policy, Security Hub enables all other controls (including newly released controls).
When updating a configuration policy, provide a complete list of standards that you want to enable and a complete list of controls that you want to enable or disable. The updated configuration replaces the current configuration.
sourcepub fn get_configuration_policy(&self) -> &Option<Policy>
pub fn get_configuration_policy(&self) -> &Option<Policy>
An object that defines how Security Hub is configured. It includes whether Security Hub is enabled or disabled, a list of enabled security standards, a list of enabled or disabled security controls, and a list of custom parameter values for specified controls. If you provide a list of security controls that are enabled in the configuration policy, Security Hub disables all other controls (including newly released controls). If you provide a list of security controls that are disabled in the configuration policy, Security Hub enables all other controls (including newly released controls).
When updating a configuration policy, provide a complete list of standards that you want to enable and a complete list of controls that you want to enable or disable. The updated configuration replaces the current configuration.
Trait Implementations§
source§impl Clone for UpdateConfigurationPolicyFluentBuilder
impl Clone for UpdateConfigurationPolicyFluentBuilder
source§fn clone(&self) -> UpdateConfigurationPolicyFluentBuilder
fn clone(&self) -> UpdateConfigurationPolicyFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for UpdateConfigurationPolicyFluentBuilder
impl !RefUnwindSafe for UpdateConfigurationPolicyFluentBuilder
impl Send for UpdateConfigurationPolicyFluentBuilder
impl Sync for UpdateConfigurationPolicyFluentBuilder
impl Unpin for UpdateConfigurationPolicyFluentBuilder
impl !UnwindSafe for UpdateConfigurationPolicyFluentBuilder
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