Struct aws_sdk_securityhub::operation::create_configuration_policy::builders::CreateConfigurationPolicyInputBuilder
source · #[non_exhaustive]pub struct CreateConfigurationPolicyInputBuilder { /* private fields */ }Expand description
A builder for CreateConfigurationPolicyInput.
Implementations§
source§impl CreateConfigurationPolicyInputBuilder
impl CreateConfigurationPolicyInputBuilder
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).
This field is required.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.
sourcepub fn build(self) -> Result<CreateConfigurationPolicyInput, BuildError>
pub fn build(self) -> Result<CreateConfigurationPolicyInput, BuildError>
Consumes the builder and constructs a CreateConfigurationPolicyInput.
source§impl CreateConfigurationPolicyInputBuilder
impl CreateConfigurationPolicyInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<CreateConfigurationPolicyOutput, SdkError<CreateConfigurationPolicyError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<CreateConfigurationPolicyOutput, SdkError<CreateConfigurationPolicyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateConfigurationPolicyInputBuilder
impl Clone for CreateConfigurationPolicyInputBuilder
source§fn clone(&self) -> CreateConfigurationPolicyInputBuilder
fn clone(&self) -> CreateConfigurationPolicyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CreateConfigurationPolicyInputBuilder
impl Default for CreateConfigurationPolicyInputBuilder
source§fn default() -> CreateConfigurationPolicyInputBuilder
fn default() -> CreateConfigurationPolicyInputBuilder
source§impl PartialEq for CreateConfigurationPolicyInputBuilder
impl PartialEq for CreateConfigurationPolicyInputBuilder
source§fn eq(&self, other: &CreateConfigurationPolicyInputBuilder) -> bool
fn eq(&self, other: &CreateConfigurationPolicyInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CreateConfigurationPolicyInputBuilder
Auto Trait Implementations§
impl Freeze for CreateConfigurationPolicyInputBuilder
impl RefUnwindSafe for CreateConfigurationPolicyInputBuilder
impl Send for CreateConfigurationPolicyInputBuilder
impl Sync for CreateConfigurationPolicyInputBuilder
impl Unpin for CreateConfigurationPolicyInputBuilder
impl UnwindSafe for CreateConfigurationPolicyInputBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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