| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.OpsWorks.SetPermission
Description
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.
Synopsis
- data SetPermission = SetPermission' {}
- newSetPermission :: Text -> Text -> SetPermission
- setPermission_allowSsh :: Lens' SetPermission (Maybe Bool)
- setPermission_allowSudo :: Lens' SetPermission (Maybe Bool)
- setPermission_level :: Lens' SetPermission (Maybe Text)
- setPermission_stackId :: Lens' SetPermission Text
- setPermission_iamUserArn :: Lens' SetPermission Text
- data SetPermissionResponse = SetPermissionResponse' {
- newSetPermissionResponse :: SetPermissionResponse
Creating a Request
data SetPermission Source #
See: newSetPermission smart constructor.
Constructors
| SetPermission' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> SetPermission |
Create a value of SetPermission with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
SetPermission, setPermission_allowSsh - The user is allowed to use SSH to communicate with the instance.
SetPermission, setPermission_allowSudo - The user is allowed to use sudo to elevate privileges.
SetPermission, setPermission_level - The user's permission level, which must be set to one of the following
strings. You cannot set your own permissions level.
deny
show
deploy
manage
iam_only
For more information about the permissions associated with these levels, see Managing User Permissions.
SetPermission, setPermission_stackId - The stack ID.
SetPermission, setPermission_iamUserArn - The user's IAM ARN. This can also be a federated user's ARN.
Request Lenses
setPermission_allowSsh :: Lens' SetPermission (Maybe Bool) Source #
The user is allowed to use SSH to communicate with the instance.
setPermission_allowSudo :: Lens' SetPermission (Maybe Bool) Source #
The user is allowed to use sudo to elevate privileges.
setPermission_level :: Lens' SetPermission (Maybe Text) Source #
The user's permission level, which must be set to one of the following strings. You cannot set your own permissions level.
deny
show
deploy
manage
iam_only
For more information about the permissions associated with these levels, see Managing User Permissions.
setPermission_stackId :: Lens' SetPermission Text Source #
The stack ID.
setPermission_iamUserArn :: Lens' SetPermission Text Source #
The user's IAM ARN. This can also be a federated user's ARN.
Destructuring the Response
data SetPermissionResponse Source #
See: newSetPermissionResponse smart constructor.
Constructors
| SetPermissionResponse' | |
Instances
newSetPermissionResponse :: SetPermissionResponse Source #
Create a value of SetPermissionResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.