verifyProcurementPortalValidation method
This feature API is subject to changing at any time. For more information, see the Amazon Web Services Service Terms (Betas and Previews).
Submits a validation code to complete the validation of a procurement
portal preference. Use this operation after calling
SendProcurementPortalValidation to confirm ownership and
connectivity of the configured procurement portal endpoint.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter code :
The validation code received from the procurement portal in response to a
previous SendProcurementPortalValidation request.
Parameter procurementPortalPreferenceArn :
The Amazon Resource Name (ARN) of the procurement portal preference to
validate.
Parameter clientToken :
A unique, case-sensitive identifier that you provide to ensure idempotency
of the request.
Implementation
Future<VerifyProcurementPortalValidationResponse>
verifyProcurementPortalValidation({
required String code,
required String procurementPortalPreferenceArn,
String? clientToken,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'Invoicing.VerifyProcurementPortalValidation'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Code': code,
'ProcurementPortalPreferenceArn': procurementPortalPreferenceArn,
'ClientToken': clientToken ?? _s.generateIdempotencyToken(),
},
);
return VerifyProcurementPortalValidationResponse.fromJson(
jsonResponse.body);
}