Struct aws_sdk_securityhub::operation::create_configuration_policy::builders::CreateConfigurationPolicyFluentBuilder
source · pub struct CreateConfigurationPolicyFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateConfigurationPolicy
.
Creates a configuration policy with the defined configuration. Only the Security Hub delegated administrator can invoke this operation from the home Region.
Implementations§
source§impl CreateConfigurationPolicyFluentBuilder
impl CreateConfigurationPolicyFluentBuilder
sourcepub fn as_input(&self) -> &CreateConfigurationPolicyInputBuilder
pub fn as_input(&self) -> &CreateConfigurationPolicyInputBuilder
Access the CreateConfigurationPolicy as a reference.
sourcepub async fn send(
self
) -> Result<CreateConfigurationPolicyOutput, SdkError<CreateConfigurationPolicyError, HttpResponse>>
pub async fn send( self ) -> Result<CreateConfigurationPolicyOutput, SdkError<CreateConfigurationPolicyError, 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<CreateConfigurationPolicyOutput, CreateConfigurationPolicyError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateConfigurationPolicyOutput, CreateConfigurationPolicyError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 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).
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).
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).
Adds a key-value pair to Tags
.
To override the contents of this collection use set_tags
.
User-defined tags associated with a configuration policy. For more information, see Tagging Security Hub resources in the Security Hub user guide.
User-defined tags associated with a configuration policy. For more information, see Tagging Security Hub resources in the Security Hub user guide.
User-defined tags associated with a configuration policy. For more information, see Tagging Security Hub resources in the Security Hub user guide.
Trait Implementations§
source§impl Clone for CreateConfigurationPolicyFluentBuilder
impl Clone for CreateConfigurationPolicyFluentBuilder
source§fn clone(&self) -> CreateConfigurationPolicyFluentBuilder
fn clone(&self) -> CreateConfigurationPolicyFluentBuilder
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 CreateConfigurationPolicyFluentBuilder
impl !RefUnwindSafe for CreateConfigurationPolicyFluentBuilder
impl Send for CreateConfigurationPolicyFluentBuilder
impl Sync for CreateConfigurationPolicyFluentBuilder
impl Unpin for CreateConfigurationPolicyFluentBuilder
impl !UnwindSafe for CreateConfigurationPolicyFluentBuilder
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