getServicePrincipalName method
Lists the service principal name that the connector uses to authenticate with Active Directory.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter connectorArn :
The Amazon Resource Name (ARN) that was returned when you called CreateConnector.
Parameter directoryRegistrationArn :
The Amazon Resource Name (ARN) that was returned when you called CreateDirectoryRegistration.
Implementation
Future<GetServicePrincipalNameResponse> getServicePrincipalName({
required String connectorArn,
required String directoryRegistrationArn,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/directoryRegistrations/${Uri.encodeComponent(directoryRegistrationArn)}/servicePrincipalNames/${Uri.encodeComponent(connectorArn)}',
exceptionFnMap: _exceptionFns,
);
return GetServicePrincipalNameResponse.fromJson(response);
}