Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Configures or reconfigures the Device Defender audit settings for this account. Settings include how audit notifications are sent and which audit checks are enabled or disabled.
Requires permission to access the UpdateAccountAuditConfiguration action.
Synopsis
- data UpdateAccountAuditConfiguration = UpdateAccountAuditConfiguration' {}
- newUpdateAccountAuditConfiguration :: UpdateAccountAuditConfiguration
- updateAccountAuditConfiguration_auditCheckConfigurations :: Lens' UpdateAccountAuditConfiguration (Maybe (HashMap Text AuditCheckConfiguration))
- updateAccountAuditConfiguration_auditNotificationTargetConfigurations :: Lens' UpdateAccountAuditConfiguration (Maybe (HashMap AuditNotificationType AuditNotificationTarget))
- updateAccountAuditConfiguration_roleArn :: Lens' UpdateAccountAuditConfiguration (Maybe Text)
- data UpdateAccountAuditConfigurationResponse = UpdateAccountAuditConfigurationResponse' {
- httpStatus :: Int
- newUpdateAccountAuditConfigurationResponse :: Int -> UpdateAccountAuditConfigurationResponse
- updateAccountAuditConfigurationResponse_httpStatus :: Lens' UpdateAccountAuditConfigurationResponse Int
Creating a Request
data UpdateAccountAuditConfiguration Source #
See: newUpdateAccountAuditConfiguration
smart constructor.
UpdateAccountAuditConfiguration' | |
|
Instances
newUpdateAccountAuditConfiguration :: UpdateAccountAuditConfiguration Source #
Create a value of UpdateAccountAuditConfiguration
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:auditCheckConfigurations:UpdateAccountAuditConfiguration'
, updateAccountAuditConfiguration_auditCheckConfigurations
- Specifies which audit checks are enabled and disabled for this account.
Use DescribeAccountAuditConfiguration
to see the list of all checks,
including those that are currently enabled.
Some data collection might start immediately when certain checks are enabled. When a check is disabled, any data collected so far in relation to the check is deleted.
You cannot disable a check if it's used by any scheduled audit. You must first delete the check from the scheduled audit or delete the scheduled audit itself.
On the first call to UpdateAccountAuditConfiguration
, this parameter
is required and must specify at least one enabled check.
$sel:auditNotificationTargetConfigurations:UpdateAccountAuditConfiguration'
, updateAccountAuditConfiguration_auditNotificationTargetConfigurations
- Information about the targets to which audit notifications are sent.
$sel:roleArn:UpdateAccountAuditConfiguration'
, updateAccountAuditConfiguration_roleArn
- The Amazon Resource Name (ARN) of the role that grants permission to IoT
to access information about your devices, policies, certificates, and
other items as required when performing an audit.
Request Lenses
updateAccountAuditConfiguration_auditCheckConfigurations :: Lens' UpdateAccountAuditConfiguration (Maybe (HashMap Text AuditCheckConfiguration)) Source #
Specifies which audit checks are enabled and disabled for this account.
Use DescribeAccountAuditConfiguration
to see the list of all checks,
including those that are currently enabled.
Some data collection might start immediately when certain checks are enabled. When a check is disabled, any data collected so far in relation to the check is deleted.
You cannot disable a check if it's used by any scheduled audit. You must first delete the check from the scheduled audit or delete the scheduled audit itself.
On the first call to UpdateAccountAuditConfiguration
, this parameter
is required and must specify at least one enabled check.
updateAccountAuditConfiguration_auditNotificationTargetConfigurations :: Lens' UpdateAccountAuditConfiguration (Maybe (HashMap AuditNotificationType AuditNotificationTarget)) Source #
Information about the targets to which audit notifications are sent.
updateAccountAuditConfiguration_roleArn :: Lens' UpdateAccountAuditConfiguration (Maybe Text) Source #
The Amazon Resource Name (ARN) of the role that grants permission to IoT to access information about your devices, policies, certificates, and other items as required when performing an audit.
Destructuring the Response
data UpdateAccountAuditConfigurationResponse Source #
See: newUpdateAccountAuditConfigurationResponse
smart constructor.
UpdateAccountAuditConfigurationResponse' | |
|
Instances
newUpdateAccountAuditConfigurationResponse Source #
Create a value of UpdateAccountAuditConfigurationResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:UpdateAccountAuditConfigurationResponse'
, updateAccountAuditConfigurationResponse_httpStatus
- The response's http status code.
Response Lenses
updateAccountAuditConfigurationResponse_httpStatus :: Lens' UpdateAccountAuditConfigurationResponse Int Source #
The response's http status code.