| 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.IAM.PutRolePermissionsBoundary
Description
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.
Constructors
| PutRolePermissionsBoundary' | |
Fields
| |
Instances
newPutRolePermissionsBoundary Source #
Arguments
| :: 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:
PutRolePermissionsBoundary, putRolePermissionsBoundary_roleName - The name (friendly name, not ARN) of the IAM role for which you want to
set the permissions boundary.
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.
Constructors
| PutRolePermissionsBoundaryResponse' | |
Instances
| Generic PutRolePermissionsBoundaryResponse Source # | |
Defined in Amazonka.IAM.PutRolePermissionsBoundary Associated Types type Rep PutRolePermissionsBoundaryResponse :: Type -> Type # | |
| Read PutRolePermissionsBoundaryResponse Source # | |
| Show PutRolePermissionsBoundaryResponse Source # | |
Defined in Amazonka.IAM.PutRolePermissionsBoundary Methods showsPrec :: Int -> PutRolePermissionsBoundaryResponse -> ShowS # | |
| NFData PutRolePermissionsBoundaryResponse Source # | |
Defined in Amazonka.IAM.PutRolePermissionsBoundary Methods rnf :: PutRolePermissionsBoundaryResponse -> () # | |
| Eq PutRolePermissionsBoundaryResponse Source # | |
| type Rep PutRolePermissionsBoundaryResponse Source # | |
Defined in Amazonka.IAM.PutRolePermissionsBoundary | |
newPutRolePermissionsBoundaryResponse :: PutRolePermissionsBoundaryResponse Source #
Create a value of PutRolePermissionsBoundaryResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.