View a markdown version of this page

PutAssignmentEntry - AWS Quick

PutAssignmentEntry

A principal to assign a policy to in a BatchPutPolicyAssignmentByPolicy request.

Contents

Note

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

PrincipalArn

The ARN of the user, group, or account to assign the policy to.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 2048.

Pattern: arn:.+

Required: Yes

ExistingPolicyArn

The ARN of the policy that you expect the principal to have before this request. If the principal has a different policy of the same type, or no policy of that type, this entry fails with a ConflictException error code and makes no change.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 2048.

Pattern: arn:[\x21-\x39\x3b-\x7e]+:[\x21-\x39\x3b-\x7e]+:[\x21-\x39\x3b-\x7e]*:[0-9]{12}:[\x21-\x7e]+

Required: No

Revision

The revision of the assignment from your most recent read. If the assignment has changed since that revision, this entry fails with a ConflictException error code.

Type: Long

Valid Range: Minimum value of 1.

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: