AWS SDK for .NET Documentation
PutRolePolicyRequest Class
AmazonAmazon.IdentityManagement.ModelPutRolePolicyRequest Did this page help you?   Yes   No    Tell us about it...
Container for the parameters to the PutRolePolicy operation. Adds (or updates) a policy document associated with the specified role. For information about policies, go to Overview of Policies in Using AWS Identity and Access Management.

For information about limits on the policies you can associate with a role, 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
CopyC#
PutRolePolicy
. For information about setting up signatures and authorization through the API, go to Signing AWS API Requests in the AWS General Reference. For general information about using the Query API with IAM, go to Making Query Requests in Using IAM.
Declaration Syntax
C#
public class PutRolePolicyRequest : AmazonWebServiceRequest
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
PutRolePolicyRequest()()()()
Initializes a new instance of the PutRolePolicyRequest class

Equals(Object)
Determines whether the specified Object is equal to the current 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
Gets and sets the property PolicyDocument.

The policy document.


PolicyName
Gets and sets the property PolicyName.

Name of the policy document.


RoleName
Gets and sets the property RoleName.

Name of the role to associate the policy with.


ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
WithPolicyDocument(String) Obsolete.
Sets the PolicyDocument property

WithPolicyName(String) Obsolete.
Sets the PolicyName property

WithRoleName(String) Obsolete.
Sets the RoleName property

Inheritance Hierarchy
Object
AmazonWebServiceRequest
 PutRolePolicyRequest

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)