verifyTrust method
AWS Directory Service for Microsoft Active Directory allows you to configure and verify trust relationships.
This action verifies a trust relationship between your AWS Managed Microsoft AD directory and an external domain.
May throw EntityDoesNotExistException. May throw InvalidParameterException. May throw ClientException. May throw ServiceException. May throw UnsupportedOperationException.
Parameter trustId
:
The unique Trust ID of the trust relationship to verify.
Implementation
Future<VerifyTrustResult> verifyTrust({
required String trustId,
}) async {
ArgumentError.checkNotNull(trustId, 'trustId');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'DirectoryService_20150416.VerifyTrust'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'TrustId': trustId,
},
);
return VerifyTrustResult.fromJson(jsonResponse.body);
}