Deletes an AWS re:Post Private private re:Post.
Parameters:
-
space_id
(SpaceId)
–
The unique ID of the private re:Post.
Raises:
Source code in docs_src/capo_repostspace/_services/async_repostspace.py
| async def delete_space(
self,
space_id: "capo_repostspace.types.space_id.SpaceId",
*,
config_overrides: Optional[AsyncrepostspaceClientConfig] = None,
) -> None:
"""<p>Deletes an AWS re:Post Private private re:Post.</p>
Args:
space_id: <p>The unique ID of the private re:Post.</p>
Raises:
capo_repostspace.errors.access_denied_exception.AccessDeniedException: <p>User does not have sufficient access to perform this action.</p>
capo_repostspace.errors.internal_server_exception.InternalServerException: <p>Unexpected error during processing of request.</p>
capo_repostspace.errors.resource_not_found_exception.ResourceNotFoundException: <p>Request references a resource which does not exist.</p>
capo_repostspace.errors.throttling_exception.ThrottlingException: <p>Request was denied due to request throttling.</p>
capo_repostspace.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an AWS service.</p>
capo_repostspace.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_repostspace.types.delete_space_input.DeleteSpaceInput]",
) -> AsyncOperationResponse[None]:
import capo_repostspace._operations.repost_space.delete_space
(
output,
http_response,
) = await capo_repostspace._operations.repost_space.delete_space.async_delete_space(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteSpace")
)
input_: capo_repostspace.types.delete_space_input.DeleteSpaceInput = {
"space_id": space_id
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|