pub struct SecurityHubClient<'a> { /* private fields */ }Expand description
Client for the AWS Security Hub API.
Implementations§
Source§impl<'a> SecurityHubClient<'a>
impl<'a> SecurityHubClient<'a>
Sourcepub async fn describe_hub(&self) -> Result<DescribeHubResponse>
pub async fn describe_hub(&self) -> Result<DescribeHubResponse>
Return details about the Security Hub resource in the current account/region.
Returns Err(AwsError::NotFound { .. }) if Security Hub is not enabled.
CIS 5.16: Security Hub must be enabled in every active region.
Sourcepub async fn is_enabled(&self) -> Result<bool>
pub async fn is_enabled(&self) -> Result<bool>
Return true if Security Hub is enabled in the current account/region.
Treats both 404 (ResourceNotFoundException) and 403
(InvalidAccessException — “not subscribed”) as “not enabled”.
CIS 5.16: all active regions should have Security Hub enabled.
Auto Trait Implementations§
impl<'a> Freeze for SecurityHubClient<'a>
impl<'a> !RefUnwindSafe for SecurityHubClient<'a>
impl<'a> Send for SecurityHubClient<'a>
impl<'a> Sync for SecurityHubClient<'a>
impl<'a> Unpin for SecurityHubClient<'a>
impl<'a> UnsafeUnpin for SecurityHubClient<'a>
impl<'a> !UnwindSafe for SecurityHubClient<'a>
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
Mutably borrows from an owned value. Read more