submitRegistrationVersion method
Submit the specified registration for review and approval.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter registrationId :
The unique identifier for the registration.
Parameter awsReview :
Set to true to request AWS review of the registration. When enabled, AWS
will perform additional validation and review of the registration
submission before processing.
Implementation
Future<SubmitRegistrationVersionResult> submitRegistrationVersion({
required String registrationId,
bool? awsReview,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'PinpointSMSVoiceV2.SubmitRegistrationVersion'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'RegistrationId': registrationId,
if (awsReview != null) 'AwsReview': awsReview,
},
);
return SubmitRegistrationVersionResult.fromJson(jsonResponse.body);
}