service_linked_role_deletion_status
Creates, updates, deletes, gets or lists a service_linked_role_deletion_status resource.
Overview
| Name | service_linked_role_deletion_status |
| Type | Resource |
| Id | aws.iam.service_linked_role_deletion_status |
Fields
The following fields are returned by SELECT queries:
- get_service_linked_role_deletion_status
| Name | Datatype | Description |
|---|---|---|
reason | string | An object that contains details about the reason the deletion failed. |
status | string | The status of the deletion. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_service_linked_role_deletion_status | select | DeletionTaskId, region | Retrieves the status of your service-linked role deletion. After you use DeleteServiceLinkedRole 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. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
DeletionTaskId | string | The deletion task identifier. This identifier is returned by the DeleteServiceLinkedRole operation in the format task/aws-service-role/<service-principal-name>/<role-name>/<task-uuid>. |
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_service_linked_role_deletion_status
Retrieves the status of your service-linked role deletion. After you use DeleteServiceLinkedRole 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.
SELECT
reason,
status
FROM aws.iam.service_linked_role_deletion_status
WHERE DeletionTaskId = '{{ DeletionTaskId }}' -- required
AND region = '{{ region }}' -- required
;