Deletes a member. Deleting a member removes the member and all associated resources from the network. DeleteMember can only be called for a specified MemberId if the principal performing the action is associated with the Amazon Web Services account that owns the member. In all other cases, the DeleteMember action is carried out as the result of an approved proposal to remove a member. If MemberId is the last member in a network specified by the last Amazon Web Services account, the network is deleted also.
Applies only to Hyperledger Fabric.
Parameters:
-
network_id
(ResourceIdString)
–
The unique identifier of the network from which the member is removed.
-
member_id
(ResourceIdString)
–
The unique identifier of the member to remove.
Raises:
-
AccessDeniedException
–
You don't have sufficient access to perform this action.
-
InternalServiceErrorException
–
The request processing has failed because of an unknown error, exception or failure.
-
InvalidRequestException
–
The action or operation requested is invalid. Verify that the action is typed correctly.
-
ResourceNotFoundException
–
A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
-
ResourceNotReadyException
–
The requested resource exists but isn't in a status that can complete the operation.
-
ThrottlingException
–
The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_managedblockchain/_services/managed_blockchain.py
| def delete_member(
self,
network_id: "capo_managedblockchain.types.resource_id_string.ResourceIdString",
member_id: "capo_managedblockchain.types.resource_id_string.ResourceIdString",
*,
config_overrides: Optional[ManagedBlockchainClientConfig] = None,
) -> "capo_managedblockchain.types.delete_member_output.DeleteMemberOutput":
"""<p>Deletes a member. Deleting a member removes the member and all associated resources from the network. <code>DeleteMember</code> can only be called for a specified <code>MemberId</code> if the principal performing the action is associated with the Amazon Web Services account that owns the member. In all other cases, the <code>DeleteMember</code> action is carried out as the result of an approved proposal to remove a member. If <code>MemberId</code> is the last member in a network specified by the last Amazon Web Services account, the network is deleted also.</p> <p>Applies only to Hyperledger Fabric.</p>
Args:
network_id: <p>The unique identifier of the network from which the member is removed.</p>
member_id: <p>The unique identifier of the member to remove.</p>
Raises:
capo_managedblockchain.errors.access_denied_exception.AccessDeniedException: <p>You don't have sufficient access to perform this action.</p>
capo_managedblockchain.errors.internal_service_error_exception.InternalServiceErrorException: <p>The request processing has failed because of an unknown error, exception or failure.</p>
capo_managedblockchain.errors.invalid_request_exception.InvalidRequestException: <p>The action or operation requested is invalid. Verify that the action is typed correctly.</p>
capo_managedblockchain.errors.resource_not_found_exception.ResourceNotFoundException: <p>A requested resource doesn't exist. It may have been deleted or referenced incorrectly.</p>
capo_managedblockchain.errors.resource_not_ready_exception.ResourceNotReadyException: <p>The requested resource exists but isn't in a status that can complete the operation.</p>
capo_managedblockchain.errors.throttling_exception.ThrottlingException: <p>The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.</p>
capo_managedblockchain.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_managedblockchain.types.delete_member_input.DeleteMemberInput]",
) -> OperationResponse[
"capo_managedblockchain.types.delete_member_output.DeleteMemberOutput"
]:
import capo_managedblockchain._operations.taiga_web_service.delete_member
output, http_response = (
capo_managedblockchain._operations.taiga_web_service.delete_member.delete_member(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteMember")
)
input_: capo_managedblockchain.types.delete_member_input.DeleteMemberInput = {
"network_id": network_id,
"member_id": member_id,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|