updateGlobalSettings method
Updates whether the Amazon Web Services account has enabled different
cross-account management options, including cross-account backup,
multi-party approval, and delegated administrator. Returns an error if the
account is not an Organizations management account. Use the
DescribeGlobalSettings API to determine the current settings.
May throw InvalidParameterValueException.
May throw InvalidRequestException.
May throw MissingParameterValueException.
May throw ServiceUnavailableException.
Parameter globalSettings :
Inputs can include:
A value for isCrossAccountBackupEnabled. Values can be true
or false. Example: update-global-settings --global-settings
isCrossAccountBackupEnabled=false.
A value for Multi-party approval, styled as isMpaEnabled.
Values can be true or false. Example: update-global-settings
--global-settings isMpaEnabled=false.
A value for Backup Service-Linked Role creation, styled as
isDelegatedAdministratorEnabled. Values can be true or false.
Example: update-global-settings --global-settings
isDelegatedAdministratorEnabled=false.
Implementation
Future<void> updateGlobalSettings({
Map<String, String>? globalSettings,
}) async {
final $payload = <String, dynamic>{
if (globalSettings != null) 'GlobalSettings': globalSettings,
};
await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/global-settings',
exceptionFnMap: _exceptionFns,
);
}