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 ==
.