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