Skip to content

get_service_linked_role_deletion_status

Operation

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.

Parameters:

Name Type Description Default
request GetServiceLinkedRoleDeletionStatusInput | GetServiceLinkedRoleDeletionStatusInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None
**kwargs Unpack[GetServiceLinkedRoleDeletionStatusInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
GetServiceLinkedRoleDeletionStatusOutput

An instance of GetServiceLinkedRoleDeletionStatusOutput.

get_service_linked_role_deletion_status async

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:

Name Type Description Default
request GetServiceLinkedRoleDeletionStatusInput | GetServiceLinkedRoleDeletionStatusInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None
**kwargs Unpack[GetServiceLinkedRoleDeletionStatusInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
GetServiceLinkedRoleDeletionStatusOutput

An instance of GetServiceLinkedRoleDeletionStatusOutput.

Input

Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.

GetServiceLinkedRoleDeletionStatusInputDict

Bases: TypedDict

Dictionary form of GetServiceLinkedRoleDeletionStatusInput.

Attributes

deletion_task_id instance-attribute
deletion_task_id: Required[str]

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>.

GetServiceLinkedRoleDeletionStatusInput dataclass

Bases: _SerdeShape

Dataclass for GetServiceLinkedRoleDeletionStatusInput structure.

Attributes

deletion_task_id class-attribute instance-attribute
deletion_task_id: str | None = ...

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>.

Output

GetServiceLinkedRoleDeletionStatusOutput dataclass

Bases: _SerdeShape

Dataclass for GetServiceLinkedRoleDeletionStatusOutput structure.

Attributes

reason class-attribute instance-attribute
reason: DeletionTaskFailureReasonType | None = ...

An object that contains details about the reason the deletion failed.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.

status instance-attribute
status: str

The status of the deletion.