

# IamRoleAccess

The IAM role in your account that AWS Context assumes to read the connection's data source.

## Contents
<a name="API_IamRoleAccess_Contents"></a>

 ** roleArn **   <a name="context-Type-IamRoleAccess-roleArn"></a>
The IAM role that AWS Context assumes to read this connection's data source. The role must be in your account. AWS Context rejects a role in another account. It has the same format as `ingestionConfig.roleArn`. You must have `iam:PassRole` permission on the role to pass it to AWS Context. Otherwise, CreateConnection and UpdateConnection fail with `AccessDeniedException`.  
Type: String  
Length Constraints: Minimum length of 20. Maximum length of 1011.  
Pattern: `arn:(aws|aws-cn|aws-us-gov):iam::[0-9]{12}:role/(?:[a-zA-Z0-9+=,.@_-]{1,512}/)*[a-zA-Z0-9+=,.@_-]{1,64}`   
Required: Yes

## See Also
<a name="API_IamRoleAccess_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/context-2022-07-26/IamRoleAccess) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/context-2022-07-26/IamRoleAccess) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/context-2022-07-26/IamRoleAccess) 