C# Class Amazon.IdentityManagement.Model.PutUserPolicyRequest

Container for the parameters to the PutUserPolicy operation.

Adds (or updates) a policy document associated with the specified User. For information about how to write a policy, refer to 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 Using the Query API in Using AWS Identity and Access Management.

Inheritance: Amazon.Runtime.AmazonWebServiceRequest
显示文件 Open project: aws/aws-sdk-net Class Usage Examples

Public Methods

Method Description
PutUserPolicyRequest ( ) : System

Empty constructor used to set properties independently even when a simple constructor is available

PutUserPolicyRequest ( string userName, string policyName, string policyDocument ) : System

Instantiates PutUserPolicyRequest with the parameterized properties

Private Methods

Method Description
IsSetPolicyDocument ( ) : bool
IsSetPolicyName ( ) : bool
IsSetUserName ( ) : bool

Method Details

PutUserPolicyRequest() public method

Empty constructor used to set properties independently even when a simple constructor is available
public PutUserPolicyRequest ( ) : System
return System

PutUserPolicyRequest() public method

Instantiates PutUserPolicyRequest with the parameterized properties
public PutUserPolicyRequest ( string userName, string policyName, string policyDocument ) : System
userName string The name of the user to associate the policy with. This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
policyName string The name of the policy document. This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
policyDocument string The policy document. This parameter allows (per its regex pattern) a string of characters consisting of any printable ASCII character ranging from the space character (\u0020) through end of the ASCII character range (\u00FF). It also includes the special characters tab (\u0009), line feed (\u000A), and carriage return (\u000D).
return System