I am trying to create an EntitiesDetectionV2JobRequest in C# and I can't find a DataAccessRoleARN that works.
The code I am using right now is:
StartEntitiesDetectionV2JobRequest request = new StartEntitiesDetectionV2JobRequest()
{
InputDataConfig = input,
JobName = "firstjobincsharp",
LanguageCode = "en",
OutputDataConfig = output,
DataAccessRoleArn = "arn:aws:iam::556071315067:role/PassRole"
};
And I am getting this error:
Failed to create job due to the provided IAM role doesn't trust Comprehend Medical service principal. Role Arn: arn:aws:iam::556071315067:role/PassRole