updateOrganizationConfiguration method

Future<void> updateOrganizationConfiguration({
  1. required bool autoEnable,
})

Used to update the configuration related to Organizations. Can only be called from a Security Hub administrator account.

May throw InternalException. May throw InvalidInputException. May throw InvalidAccessException. May throw LimitExceededException.

Parameter autoEnable : Whether to automatically enable Security Hub for new accounts in the organization.

By default, this is false, and new accounts are not added automatically.

To automatically enable Security Hub for new accounts, set this to true.

Implementation

Future<void> updateOrganizationConfiguration({
  required bool autoEnable,
}) async {
  ArgumentError.checkNotNull(autoEnable, 'autoEnable');
  final $payload = <String, dynamic>{
    'AutoEnable': autoEnable,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/organization/configuration',
    exceptionFnMap: _exceptionFns,
  );
}