Deletes a trust anchor.
Required permissions: rolesanywhere:DeleteTrustAnchor.
Parameters:
-
trust_anchor_id
(Uuid)
–
The unique identifier of the trust anchor.
Raises:
Source code in docs_src/capo_rolesanywhere/_services/async_roles_anywhere.py
| async def delete_trust_anchor(
self,
trust_anchor_id: "capo_rolesanywhere.types.uuid.Uuid",
*,
config_overrides: Optional[AsyncRolesAnywhereClientConfig] = None,
) -> "capo_rolesanywhere.types.trust_anchor_detail_response.TrustAnchorDetailResponse":
"""<p>Deletes a trust anchor.</p> <p> <b>Required permissions: </b> <code>rolesanywhere:DeleteTrustAnchor</code>. </p>
Args:
trust_anchor_id: <p>The unique identifier of the trust anchor.</p>
Raises:
capo_rolesanywhere.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
capo_rolesanywhere.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource could not be found.</p>
capo_rolesanywhere.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_rolesanywhere.types.scalar_trust_anchor_request.ScalarTrustAnchorRequest]",
) -> AsyncOperationResponse[
"capo_rolesanywhere.types.trust_anchor_detail_response.TrustAnchorDetailResponse"
]:
import capo_rolesanywhere._operations.roles_anywhere.delete_trust_anchor
(
output,
http_response,
) = await capo_rolesanywhere._operations.roles_anywhere.delete_trust_anchor.async_delete_trust_anchor(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteTrustAnchor")
)
input_: capo_rolesanywhere.types.scalar_trust_anchor_request.ScalarTrustAnchorRequest = {
"trust_anchor_id": trust_anchor_id
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|