

# PermissionSetAssignment

A permission set assignment record.

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

 ** assignmentId **   <a name="assurance-Type-PermissionSetAssignment-assignmentId"></a>
The unique identifier of the permission set assignment.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 128.  
Pattern: `[a-zA-Z0-9][a-zA-Z0-9\-_:/.]*`   
Required: Yes

 ** createdAt **   <a name="assurance-Type-PermissionSetAssignment-createdAt"></a>
The timestamp when the assignment was created.  
Type: Timestamp  
Required: Yes

 ** permissionSetId **   <a name="assurance-Type-PermissionSetAssignment-permissionSetId"></a>
The identifier of the permission set.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 128.  
Pattern: `[a-zA-Z0-9][a-zA-Z0-9\-_:/.]*`   
Required: Yes

 ** principalId **   <a name="assurance-Type-PermissionSetAssignment-principalId"></a>
The unique identifier of the principal the permission set is assigned to.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 256.  
Pattern: `[a-zA-Z0-9][a-zA-Z0-9\-_:/.@]*`   
Required: Yes

 ** principalType **   <a name="assurance-Type-PermissionSetAssignment-principalType"></a>
The type of principal the permission set is assigned to.  
Type: String  
Valid Values: `USER | GROUP`   
Required: Yes

 ** scopeId **   <a name="assurance-Type-PermissionSetAssignment-scopeId"></a>
The identifier of the scoped resource. Omitted for environment-wide assignments.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 255.  
Pattern: `[a-zA-Z0-9][a-zA-Z0-9\-_:/.]*`   
Required: No

 ** scopeType **   <a name="assurance-Type-PermissionSetAssignment-scopeType"></a>
The type of the assignment scope. ENVIRONMENT for an environment-wide assignment, PROJECT when the assignment is scoped to the project named by scopeId.  
Type: String  
Valid Values: `ENVIRONMENT | PROJECT`   
Required: No

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