# AWS::SSO::Assignment Resource Type definition for SSO assignmet ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{
"Type" : "AWS::SSO::Assignment",
"Properties" : {
"InstanceArn" : String,
"TargetId" : String,
"TargetType" : String,
"PermissionSetArn" : String,
"PrincipalType" : String,
"PrincipalId" : String
}
}
### YAML
Type: AWS::SSO::Assignment
Properties:
InstanceArn: String
TargetId: String
TargetType: String
PermissionSetArn: String
PrincipalType: String
PrincipalId: String
## Properties
#### InstanceArn
The sso instance that the permission set is owned.
_Required_: Yes
_Type_: String
_Minimum_: 10
_Maximum_: 1224
_Pattern_: arn:aws:sso:::instance/(sso)?ins-[a-zA-Z0-9-.]{16}
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)
#### TargetId
The account id to be provisioned.
_Required_: Yes
_Type_: String
_Pattern_: \d{12}
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)
#### TargetType
The type of resource to be provsioned to, only aws account now
_Required_: Yes
_Type_: String
_Allowed Values_: AWS_ACCOUNT
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)
#### PermissionSetArn
The permission set that the assignemt will be assigned
_Required_: Yes
_Type_: String
_Minimum_: 10
_Maximum_: 1224
_Pattern_: arn:aws:sso:::permissionSet/(sso)?ins-[a-zA-Z0-9-.]{16}/ps-[a-zA-Z0-9-./]{16}
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)
#### PrincipalType
The assignee's type, user/group
_Required_: Yes
_Type_: String
_Allowed Values_: USER | GROUP
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)
#### PrincipalId
The assignee's identifier, user id/group id
_Required_: Yes
_Type_: String
_Minimum_: 1
_Maximum_: 47
_Pattern_: ^([0-9a-f]{10}-|)[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}$
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)