

# ResourcePermission
<a name="API_ResourcePermission"></a>

Permission for the resource.

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

**Note**  
In the following list, the required parameters are described first.

 ** Actions **   <a name="QS-Type-ResourcePermission-Actions"></a>
The IAM action to grant or revoke permissions on.  
Type: Array of strings  
Array Members: Minimum number of 1 item. Maximum number of 20 items.  
Required: Yes

 ** Principal **   <a name="QS-Type-ResourcePermission-Principal"></a>
The Amazon Resource Name (ARN) of the principal. This can be one of the following:  
+ The ARN of an Quick Sight user or group associated with a data source or dataset. (This is common.)
+ The ARN of an Quick Sight user, group, or namespace associated with an analysis, dashboard, template, or theme. Namespace sharing is not supported for action connectors. (This is common.)
+ The ARN of an Amazon account root: This is an IAM ARN rather than a Quick Sight ARN. Use this option only to share resources (templates) across Amazon accounts. Account root sharing is not supported for action connectors. (This is less common.) 
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 256.  
Required: Yes

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

For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon SDK for C\+\+](https://docs.amazonaws.cn/goto/SdkForCpp/quicksight-2018-04-01/ResourcePermission) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/quicksight-2018-04-01/ResourcePermission) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/quicksight-2018-04-01/ResourcePermission) 