C# Класс 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.

Наследование: Amazon.Runtime.AmazonWebServiceRequest
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
IsSetPolicyDocument ( ) : bool
IsSetPolicyName ( ) : bool
IsSetUserName ( ) : bool

Описание методов

PutUserPolicyRequest() публичный Метод

Empty constructor used to set properties independently even when a simple constructor is available
public PutUserPolicyRequest ( ) : System
Результат System

PutUserPolicyRequest() публичный Метод

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).
Результат System