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 |
Deletes the specified role. The role must not have any policies attached. For more information about roles, see Working with roles.
Make sure that you do not have any Amazon EC2 instances running with the role you are about to delete. Deleting a role or instance profile that is associated with a running instance will break any applications running on the instance.
Synopsis
Creating a Request
data DeleteRole Source #
See: newDeleteRole
smart constructor.
DeleteRole' | |
|
Instances
Create a value of DeleteRole
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:DeleteRole'
, deleteRole_roleName
- The name of the role to delete.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
Request Lenses
deleteRole_roleName :: Lens' DeleteRole Text Source #
The name of the role to delete.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
Destructuring the Response
data DeleteRoleResponse Source #
See: newDeleteRoleResponse
smart constructor.
Instances
Eq DeleteRoleResponse Source # | |
Defined in Amazonka.IAM.DeleteRole (==) :: DeleteRoleResponse -> DeleteRoleResponse -> Bool # (/=) :: DeleteRoleResponse -> DeleteRoleResponse -> Bool # | |
Read DeleteRoleResponse Source # | |
Defined in Amazonka.IAM.DeleteRole | |
Show DeleteRoleResponse Source # | |
Defined in Amazonka.IAM.DeleteRole showsPrec :: Int -> DeleteRoleResponse -> ShowS # show :: DeleteRoleResponse -> String # showList :: [DeleteRoleResponse] -> ShowS # | |
Generic DeleteRoleResponse Source # | |
Defined in Amazonka.IAM.DeleteRole type Rep DeleteRoleResponse :: Type -> Type # from :: DeleteRoleResponse -> Rep DeleteRoleResponse x # to :: Rep DeleteRoleResponse x -> DeleteRoleResponse # | |
NFData DeleteRoleResponse Source # | |
Defined in Amazonka.IAM.DeleteRole rnf :: DeleteRoleResponse -> () # | |
type Rep DeleteRoleResponse Source # | |
newDeleteRoleResponse :: DeleteRoleResponse Source #
Create a value of DeleteRoleResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.