setAccountDefaultProtectConfiguration method
Future<SetAccountDefaultProtectConfigurationResult>
setAccountDefaultProtectConfiguration({
- required String protectConfigurationId,
Set a protect configuration as your account default. You can only have one account default protect configuration at a time. The current account default protect configuration is replaced with the provided protect configuration.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter protectConfigurationId :
The unique identifier for the protect configuration.
Implementation
Future<SetAccountDefaultProtectConfigurationResult>
setAccountDefaultProtectConfiguration({
required String protectConfigurationId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'PinpointSMSVoiceV2.SetAccountDefaultProtectConfiguration'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ProtectConfigurationId': protectConfigurationId,
},
);
return SetAccountDefaultProtectConfigurationResult.fromJson(
jsonResponse.body);
}