Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Submits a service-linked role deletion request and returns a DeletionTaskId
, which you can use to check the status of the deletion. Before you call this operation, confirm that the role has no active sessions and that any resources used by the role in the linked service are deleted. If you call this operation more than once for the same service-linked role and an earlier deletion task is not complete, then the DeletionTaskId
of the earlier request is returned.
If you submit a deletion request for a service-linked role whose linked service is still accessing a resource, then the deletion task fails. If it fails, the GetServiceLinkedRoleDeletionStatus
API operation returns the reason for the failure, usually including the resources that must be deleted. To delete the service-linked role, you must first remove those resources from the linked service and then submit the deletion request again. Resources are specific to the service that is linked to the role. For more information about removing resources from a service, see the AWS documentation for your service.
For more information about service-linked roles, see Roles Terms and Concepts: AWS Service-Linked Role in the IAM User Guide .
Synopsis
- deleteServiceLinkedRole :: Text -> DeleteServiceLinkedRole
- data DeleteServiceLinkedRole
- dslrRoleName :: Lens' DeleteServiceLinkedRole Text
- deleteServiceLinkedRoleResponse :: Int -> Text -> DeleteServiceLinkedRoleResponse
- data DeleteServiceLinkedRoleResponse
- dslrrsResponseStatus :: Lens' DeleteServiceLinkedRoleResponse Int
- dslrrsDeletionTaskId :: Lens' DeleteServiceLinkedRoleResponse Text
Creating a Request
deleteServiceLinkedRole Source #
Creates a value of DeleteServiceLinkedRole
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dslrRoleName
- The name of the service-linked role to be deleted.
data DeleteServiceLinkedRole Source #
See: deleteServiceLinkedRole
smart constructor.
Instances
Request Lenses
dslrRoleName :: Lens' DeleteServiceLinkedRole Text Source #
The name of the service-linked role to be deleted.
Destructuring the Response
deleteServiceLinkedRoleResponse Source #
Creates a value of DeleteServiceLinkedRoleResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dslrrsResponseStatus
- -- | The response status code.dslrrsDeletionTaskId
- The deletion task identifier that you can use to check the status of the deletion. This identifier is returned in the formattaskaws-service-roleservice-principal-namerole-nametask-uuid
.
data DeleteServiceLinkedRoleResponse Source #
See: deleteServiceLinkedRoleResponse
smart constructor.
Instances
Response Lenses
dslrrsResponseStatus :: Lens' DeleteServiceLinkedRoleResponse Int Source #
- - | The response status code.
dslrrsDeletionTaskId :: Lens' DeleteServiceLinkedRoleResponse Text Source #
The deletion task identifier that you can use to check the status of the deletion. This identifier is returned in the format taskaws-service-roleservice-principal-namerole-nametask-uuid
.