Deletes an Access Control List. The ACL must first be disassociated from the cluster before it can be deleted. For more information, see Authenticating users with Access Contol Lists (ACLs).
Parameters:
-
acl_name
(String)
–
The name of the Access Control List to delete.
Raises:
Source code in docs_src/capo_memorydb/_services/async_memory_db.py
| async def delete_acl(
self,
acl_name: "capo_memorydb.types.string.String",
*,
config_overrides: Optional[AsyncMemoryDBClientConfig] = None,
) -> "capo_memorydb.types.delete_acl_response.DeleteACLResponse":
"""<p>Deletes an Access Control List. The ACL must first be disassociated from the cluster before it can be deleted. For more information, see <a href="https://docs.aws.amazon.com/MemoryDB/latest/devguide/clusters.acls.html">Authenticating users with Access Contol Lists (ACLs)</a>.</p>
Args:
acl_name: <p>The name of the Access Control List to delete.</p>
Raises:
capo_memorydb.errors.acl_not_found_fault.ACLNotFoundFault: <p>The specified ACL does not exist.</p>
capo_memorydb.errors.invalid_acl_state_fault.InvalidACLStateFault: <p>The ACL is not in a valid state for the requested operation.</p>
capo_memorydb.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>The specified parameter value is not valid.</p>
capo_memorydb.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_memorydb.types.delete_acl_request.DeleteACLRequest]",
) -> AsyncOperationResponse[
"capo_memorydb.types.delete_acl_response.DeleteACLResponse"
]:
import capo_memorydb._operations.amazon_memory_db.delete_acl
(
output,
http_response,
) = await capo_memorydb._operations.amazon_memory_db.delete_acl.async_delete_acl(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteACL")
)
input_: capo_memorydb.types.delete_acl_request.DeleteACLRequest = {
"acl_name": acl_name
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|