updateGlobalSettings method

Future<void> updateGlobalSettings({
  1. Map<String, String>? globalSettings,
})

Updates the current global settings for the AWS Account. Use the DescribeGlobalSettings API to determine the current settings.

May throw ServiceUnavailableException. May throw MissingParameterValueException. May throw InvalidParameterValueException. May throw InvalidRequestException.

Parameter globalSettings : A list of resources along with the opt-in preferences for the account.

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,
  );
}