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 |
Network.AWS.IAM.GetServiceLinkedRoleDeletionStatus
Description
Retrieves the status of your service-linked role deletion. After you use the DeleteServiceLinkedRole
API operation to submit a service-linked role for deletion, you can use the DeletionTaskId
parameter in GetServiceLinkedRoleDeletionStatus
to check the status of the deletion. If the deletion fails, this operation returns the reason that it failed, if that information is returned by the service.
- getServiceLinkedRoleDeletionStatus :: Text -> GetServiceLinkedRoleDeletionStatus
- data GetServiceLinkedRoleDeletionStatus
- gslrdsDeletionTaskId :: Lens' GetServiceLinkedRoleDeletionStatus Text
- getServiceLinkedRoleDeletionStatusResponse :: Int -> DeletionTaskStatusType -> GetServiceLinkedRoleDeletionStatusResponse
- data GetServiceLinkedRoleDeletionStatusResponse
- gslrdsrsReason :: Lens' GetServiceLinkedRoleDeletionStatusResponse (Maybe DeletionTaskFailureReasonType)
- gslrdsrsResponseStatus :: Lens' GetServiceLinkedRoleDeletionStatusResponse Int
- gslrdsrsStatus :: Lens' GetServiceLinkedRoleDeletionStatusResponse DeletionTaskStatusType
Creating a Request
getServiceLinkedRoleDeletionStatus #
Arguments
:: Text | |
-> GetServiceLinkedRoleDeletionStatus |
Creates a value of GetServiceLinkedRoleDeletionStatus
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gslrdsDeletionTaskId
- The deletion task identifier. This identifier is returned by theDeleteServiceLinkedRole
operation in the formattaskaws-service-roleservice-principal-namerole-nametask-uuid
.
data GetServiceLinkedRoleDeletionStatus #
See: getServiceLinkedRoleDeletionStatus
smart constructor.
Instances
Request Lenses
gslrdsDeletionTaskId :: Lens' GetServiceLinkedRoleDeletionStatus Text #
The deletion task identifier. This identifier is returned by the DeleteServiceLinkedRole
operation in the format taskaws-service-roleservice-principal-namerole-nametask-uuid
.
Destructuring the Response
getServiceLinkedRoleDeletionStatusResponse #
Arguments
:: Int | |
-> DeletionTaskStatusType | |
-> GetServiceLinkedRoleDeletionStatusResponse |
Creates a value of GetServiceLinkedRoleDeletionStatusResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gslrdsrsReason
- An object that contains details about the reason the deletion failed.gslrdsrsResponseStatus
- -- | The response status code.gslrdsrsStatus
- The status of the deletion.
data GetServiceLinkedRoleDeletionStatusResponse #
See: getServiceLinkedRoleDeletionStatusResponse
smart constructor.
Instances
Response Lenses
gslrdsrsReason :: Lens' GetServiceLinkedRoleDeletionStatusResponse (Maybe DeletionTaskFailureReasonType) #
An object that contains details about the reason the deletion failed.
gslrdsrsResponseStatus :: Lens' GetServiceLinkedRoleDeletionStatusResponse Int #
- - | The response status code.
gslrdsrsStatus :: Lens' GetServiceLinkedRoleDeletionStatusResponse DeletionTaskStatusType #
The status of the deletion.