AWS SDK for .NET Documentation
SetPermissionRequest Class
AmazonAmazon.OpsWorks.ModelSetPermissionRequest Did this page help you?   Yes   No    Tell us about it...
Container for the parameters to the SetPermission operation. Specifies a user's permissions. For more information, see Security and Permissions.

Required Permissions: To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.

Declaration Syntax
C#
public class SetPermissionRequest : AmazonWebServiceRequest
Members
All MembersConstructorsMethodsProperties



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

AllowSsh
Gets and sets the property AllowSsh.

The user is allowed to use SSH to communicate with the instance.


AllowSudo
Gets and sets the property AllowSudo.

The user is allowed to use sudo to elevate privileges.


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.)
IamUserArn
Gets and sets the property IamUserArn.

The user's IAM ARN.


Level
Gets and sets the property Level.

The user's permission level, which must be set to one of the following strings. You cannot set your own permissions level.

  • CopyC#
    deny
  • CopyC#
    show
  • CopyC#
    deploy
  • CopyC#
    manage
  • CopyC#
    iam_only

For more information on the permissions associated with these levels, see Managing User Permissions


StackId
Gets and sets the property StackId.

The stack ID.


ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
WithAllowSsh(Boolean) Obsolete.
Sets the AllowSsh property

WithAllowSudo(Boolean) Obsolete.
Sets the AllowSudo property

WithIamUserArn(String) Obsolete.
Sets the IamUserArn property

WithLevel(String) Obsolete.
Sets the Level property

WithStackId(String) Obsolete.
Sets the StackId property

Inheritance Hierarchy
Object
AmazonWebServiceRequest
 SetPermissionRequest

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