Container for the parameters to the PutUserPolicy operation.
Namespace: Amazon.IdentityManagement.ModelAdds (or updates) a policy document associated with the specified user. For information about policies, refer to Overview of Policies in Using AWS Identity and Access Management .
For information about limits on the number of policies you can associate with a user, see Limitations on IAM Entities in Using AWS Identity and Access Management .
NOTE:Because policy documents can be large, you should use POST rather than GET when calling PutUserPolicy. For more information, see Making Query Requests in Using AWS Identity and Access Management.
Assembly: AWSSDK (in AWSSDK.dll) Version: 1.4.10.0 (1.4.10.0)
Syntax
| C# | Visual Basic | Visual C++ |
public class PutUserPolicyRequest : AmazonWebServiceRequest
Public Class PutUserPolicyRequest _ Inherits AmazonWebServiceRequest
public ref class PutUserPolicyRequest : public AmazonWebServiceRequest
Members
| All Members | Constructors | Properties | Methods |
| Member | Description | |
|---|---|---|
| PutUserPolicyRequest()()()() | Initializes a new instance of the PutUserPolicyRequest class | |
| Equals(Object) | (Inherited from Object.) | |
| GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| PolicyDocument |
The policy document.
Constraints: | |
| PolicyName |
Name of the policy document.
Constraints: | |
| ToString()()()() | (Inherited from Object.) | |
| UserName |
Name of the user to associate the policy with.
Constraints: | |
| WithPolicyDocument(String) |
Sets the PolicyDocument property
| |
| WithPolicyName(String) |
Sets the PolicyName property
| |
| WithUserName(String) |
Sets the UserName property
|
Inheritance Hierarchy
System..::..Object
Amazon.Runtime..::..AmazonWebServiceRequest
Amazon.IdentityManagement.Model..::..PutUserPolicyRequest
Amazon.Runtime..::..AmazonWebServiceRequest
Amazon.IdentityManagement.Model..::..PutUserPolicyRequest