pub struct Builder { /* private fields */ }
Expand description
A builder for EnableSecurityHubInput
.
Implementations§
source§impl Builder
impl Builder
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
The tags to add to the hub resource when you enable Security Hub.
The tags to add to the hub resource when you enable Security Hub.
sourcepub fn enable_default_standards(self, input: bool) -> Self
pub fn enable_default_standards(self, input: bool) -> Self
Whether to enable the security standards that Security Hub has designated as automatically enabled. If you do not provide a value for EnableDefaultStandards
, it is set to true
. To not enable the automatically enabled standards, set EnableDefaultStandards
to false
.
sourcepub fn set_enable_default_standards(self, input: Option<bool>) -> Self
pub fn set_enable_default_standards(self, input: Option<bool>) -> Self
Whether to enable the security standards that Security Hub has designated as automatically enabled. If you do not provide a value for EnableDefaultStandards
, it is set to true
. To not enable the automatically enabled standards, set EnableDefaultStandards
to false
.
sourcepub fn build(self) -> Result<EnableSecurityHubInput, BuildError>
pub fn build(self) -> Result<EnableSecurityHubInput, BuildError>
Consumes the builder and constructs a EnableSecurityHubInput
.