updateTrust method
Updates the trust that has been set up between your AWS Managed Microsoft AD directory and an on-premises Active Directory.
May throw EntityDoesNotExistException. May throw InvalidParameterException. May throw ClientException. May throw ServiceException.
Parameter trustId
:
Identifier of the trust relationship.
Parameter selectiveAuth
:
Updates selective authentication for the trust.
Implementation
Future<UpdateTrustResult> updateTrust({
required String trustId,
SelectiveAuth? selectiveAuth,
}) async {
ArgumentError.checkNotNull(trustId, 'trustId');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'DirectoryService_20150416.UpdateTrust'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'TrustId': trustId,
if (selectiveAuth != null) 'SelectiveAuth': selectiveAuth.toValue(),
},
);
return UpdateTrustResult.fromJson(jsonResponse.body);
}