updateRegionSettings method
Updates the current service opt-in settings for the Region. If
service-opt-in is enabled for a service, AWS Backup tries to protect that
service's resources in this Region, when the resource is included in an
on-demand backup or scheduled backup plan. Otherwise, AWS Backup does not
try to protect that service's resources in this Region. Use the
DescribeRegionSettings
API to determine the resource types
that are supported.
May throw ServiceUnavailableException. May throw MissingParameterValueException. May throw InvalidParameterValueException.
Parameter resourceTypeOptInPreference
:
Updates the list of services along with the opt-in preferences for the
Region.
Implementation
Future<void> updateRegionSettings({
Map<String, bool>? resourceTypeOptInPreference,
}) async {
final $payload = <String, dynamic>{
if (resourceTypeOptInPreference != null)
'ResourceTypeOptInPreference': resourceTypeOptInPreference,
};
await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/account-settings',
exceptionFnMap: _exceptionFns,
);
}