Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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_allowSudo :: Lens' SetPermission (Maybe Bool)
- setPermission_level :: Lens' SetPermission (Maybe Text)
- setPermission_allowSsh :: Lens' SetPermission (Maybe Bool)
- 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.
SetPermission' | |
|
Instances
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:
$sel:allowSudo:SetPermission'
, setPermission_allowSudo
- The user is allowed to use sudo to elevate privileges.
$sel:level: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.
$sel:allowSsh:SetPermission'
, setPermission_allowSsh
- The user is allowed to use SSH to communicate with the instance.
$sel:stackId:SetPermission'
, setPermission_stackId
- The stack ID.
$sel:iamUserArn:SetPermission'
, setPermission_iamUserArn
- The user's IAM ARN. This can also be a federated user's ARN.
Request Lenses
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_allowSsh :: Lens' SetPermission (Maybe Bool) Source #
The user is allowed to use SSH to communicate with the instance.
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.
Instances
Eq SetPermissionResponse Source # | |
Defined in Amazonka.OpsWorks.SetPermission (==) :: SetPermissionResponse -> SetPermissionResponse -> Bool # (/=) :: SetPermissionResponse -> SetPermissionResponse -> Bool # | |
Read SetPermissionResponse Source # | |
Show SetPermissionResponse Source # | |
Defined in Amazonka.OpsWorks.SetPermission showsPrec :: Int -> SetPermissionResponse -> ShowS # show :: SetPermissionResponse -> String # showList :: [SetPermissionResponse] -> ShowS # | |
Generic SetPermissionResponse Source # | |
Defined in Amazonka.OpsWorks.SetPermission type Rep SetPermissionResponse :: Type -> Type # | |
NFData SetPermissionResponse Source # | |
Defined in Amazonka.OpsWorks.SetPermission rnf :: SetPermissionResponse -> () # | |
type Rep SetPermissionResponse Source # | |
newSetPermissionResponse :: SetPermissionResponse Source #
Create a value of SetPermissionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.