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 |
Adds or updates the policy that is specified as the IAM user's permissions boundary. You can use an Amazon Web Services managed policy or a customer managed policy to set the boundary for a user. Use the boundary to control the maximum permissions that the user can have. Setting a permissions boundary is an advanced feature that can affect the permissions for the user.
Policies that are used as permissions boundaries do not provide permissions. You must also attach a permissions policy to the user. To learn how the effective permissions for a user are evaluated, see IAM JSON policy evaluation logic in the IAM User Guide.
Synopsis
- data PutUserPermissionsBoundary = PutUserPermissionsBoundary' {}
- newPutUserPermissionsBoundary :: Text -> Text -> PutUserPermissionsBoundary
- putUserPermissionsBoundary_userName :: Lens' PutUserPermissionsBoundary Text
- putUserPermissionsBoundary_permissionsBoundary :: Lens' PutUserPermissionsBoundary Text
- data PutUserPermissionsBoundaryResponse = PutUserPermissionsBoundaryResponse' {
- newPutUserPermissionsBoundaryResponse :: PutUserPermissionsBoundaryResponse
Creating a Request
data PutUserPermissionsBoundary Source #
See: newPutUserPermissionsBoundary
smart constructor.
PutUserPermissionsBoundary' | |
|
Instances
newPutUserPermissionsBoundary Source #
:: Text | |
-> Text | |
-> PutUserPermissionsBoundary |
Create a value of PutUserPermissionsBoundary
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:userName:PutUserPermissionsBoundary'
, putUserPermissionsBoundary_userName
- The name (friendly name, not ARN) of the IAM user for which you want to
set the permissions boundary.
$sel:permissionsBoundary:PutUserPermissionsBoundary'
, putUserPermissionsBoundary_permissionsBoundary
- The ARN of the policy that is used to set the permissions boundary for
the user.
Request Lenses
putUserPermissionsBoundary_userName :: Lens' PutUserPermissionsBoundary Text Source #
The name (friendly name, not ARN) of the IAM user for which you want to set the permissions boundary.
putUserPermissionsBoundary_permissionsBoundary :: Lens' PutUserPermissionsBoundary Text Source #
The ARN of the policy that is used to set the permissions boundary for the user.
Destructuring the Response
data PutUserPermissionsBoundaryResponse Source #
See: newPutUserPermissionsBoundaryResponse
smart constructor.
Instances
newPutUserPermissionsBoundaryResponse :: PutUserPermissionsBoundaryResponse Source #
Create a value of PutUserPermissionsBoundaryResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.