setDefaultMessageFeedbackEnabled method
Sets a configuration set's default for message feedback.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter configurationSetName :
The name of the configuration set to use. This can be either the
ConfigurationSetName or ConfigurationSetArn.
Parameter messageFeedbackEnabled :
Set to true to enable message feedback.
Implementation
Future<SetDefaultMessageFeedbackEnabledResult>
setDefaultMessageFeedbackEnabled({
required String configurationSetName,
required bool messageFeedbackEnabled,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'PinpointSMSVoiceV2.SetDefaultMessageFeedbackEnabled'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ConfigurationSetName': configurationSetName,
'MessageFeedbackEnabled': messageFeedbackEnabled,
},
);
return SetDefaultMessageFeedbackEnabledResult.fromJson(jsonResponse.body);
}