Disassociates a data source from an S3 Table Integration, removing query access and deleting all associated data from the integration.
Parameters:
Raises:
Source code in docs_src/capo_cloudwatch_logs/_services/async_cloud_watch_logs.py
| async def disassociate_source_from_s3_table_integration(
self,
identifier: "capo_cloudwatch_logs.types.s3_table_integration_source_identifier.S3TableIntegrationSourceIdentifier",
*,
config_overrides: Optional[AsyncCloudWatchLogsClientConfig] = None,
) -> "capo_cloudwatch_logs.types.disassociate_source_from_s3_table_integration_response.DisassociateSourceFromS3TableIntegrationResponse":
"""<p>Disassociates a data source from an S3 Table Integration, removing query access and deleting all associated data from the integration.</p>
Args:
identifier: <p>The unique identifier of the association to remove between the data source and S3 Table Integration.</p>
Raises:
capo_cloudwatch_logs.errors.access_denied_exception.AccessDeniedException: <p>You don't have sufficient permissions to perform this action.</p>
capo_cloudwatch_logs.errors.internal_server_exception.InternalServerException: <p>An internal server error occurred while processing the request. This exception is returned when the service encounters an unexpected condition that prevents it from fulfilling the request.</p>
capo_cloudwatch_logs.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource does not exist.</p>
capo_cloudwatch_logs.errors.throttling_exception.ThrottlingException: <p>The request was throttled because of quota limits.</p>
capo_cloudwatch_logs.errors.validation_exception.ValidationException: <p>One of the parameters for the request is not valid.</p>
capo_cloudwatch_logs.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_cloudwatch_logs.types.disassociate_source_from_s3_table_integration_request.DisassociateSourceFromS3TableIntegrationRequest]",
) -> AsyncOperationResponse[
"capo_cloudwatch_logs.types.disassociate_source_from_s3_table_integration_response.DisassociateSourceFromS3TableIntegrationResponse"
]:
import capo_cloudwatch_logs._operations.logs_20140328.disassociate_source_from_s3_table_integration
(
output,
http_response,
) = await capo_cloudwatch_logs._operations.logs_20140328.disassociate_source_from_s3_table_integration.async_disassociate_source_from_s3_table_integration(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides,
OperationLogging("DisassociateSourceFromS3TableIntegration"),
)
input_: capo_cloudwatch_logs.types.disassociate_source_from_s3_table_integration_request.DisassociateSourceFromS3TableIntegrationRequest = {
"identifier": identifier
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|