

# AccessControlEntry

Allows or denies one end user or group, or every reader (`*`).

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

 ** access **   <a name="context-Type-AccessControlEntry-access"></a>
Specifies whether the principal can see the information.  
Valid values:  
+  `ALLOW` - Access is allowed.
+  `DENY` - Access is denied.
Type: String  
Valid Values: `ALLOW | DENY`   
Required: Yes

 ** principalId **   <a name="context-Type-AccessControlEntry-principalId"></a>
The principal's opaque user or group ID, or `*` for every reader authorized on the resource.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 1024.  
Pattern: `.*\A[^\s`]+\z.*`   
Required: Yes

 ** principalType **   <a name="context-Type-AccessControlEntry-principalType"></a>
Specifies whether `principalId` names a user or a group. Required unless `principalId` is `*`, where it is ignored.  
Valid values:  
+  `USER` - An end user.
+  `GROUP` - A group of end users.
Type: String  
Valid Values: `USER | GROUP`   
Required: No

## See Also
<a name="API_AccessControlEntry_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/AccessControlEntry) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/context-2022-07-26/AccessControlEntry) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/context-2022-07-26/AccessControlEntry) 