Deletes a syslog configuration for a log group. After deletion, syslog data is no longer ingested through the specified VPC endpoint.
Parameters:
-
log_group_identifier
(LogGroupIdentifier)
–
The name or ARN of the log group to remove the syslog configuration from.
-
vpc_endpoint_id
(Optional[VpcEndpointId], default:
None
)
–
The ID of the VPC endpoint associated with the syslog configuration to delete.
Raises:
Source code in docs_src/capo_cloudwatch_logs/_services/cloud_watch_logs.py
| def delete_syslog_configuration(
self,
log_group_identifier: "capo_cloudwatch_logs.types.log_group_identifier.LogGroupIdentifier",
*,
config_overrides: Optional[CloudWatchLogsClientConfig] = None,
vpc_endpoint_id: Optional[
"capo_cloudwatch_logs.types.vpc_endpoint_id.VpcEndpointId"
] = None,
) -> None:
"""<p>Deletes a syslog configuration for a log group. After deletion, syslog data is no longer ingested through the specified VPC endpoint.</p>
Args:
log_group_identifier: <p>The name or ARN of the log group to remove the syslog configuration from.</p>
vpc_endpoint_id: <p>The ID of the VPC endpoint associated with the syslog configuration to delete.</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.invalid_operation_exception.InvalidOperationException: <p>The operation is not valid on the specified resource.</p>
capo_cloudwatch_logs.errors.invalid_parameter_exception.InvalidParameterException: <p>A parameter is specified incorrectly.</p>
capo_cloudwatch_logs.errors.operation_aborted_exception.OperationAbortedException: <p>Multiple concurrent requests to update the same resource were in conflict.</p>
capo_cloudwatch_logs.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource does not exist.</p>
capo_cloudwatch_logs.errors.service_unavailable_exception.ServiceUnavailableException: <p>The service cannot complete the request.</p>
capo_cloudwatch_logs.errors.throttling_exception.ThrottlingException: <p>The request was throttled because of quota limits.</p>
capo_cloudwatch_logs.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_cloudwatch_logs.types.delete_syslog_configuration_request.DeleteSyslogConfigurationRequest]",
) -> OperationResponse[None]:
import capo_cloudwatch_logs._operations.logs_20140328.delete_syslog_configuration
output, http_response = (
capo_cloudwatch_logs._operations.logs_20140328.delete_syslog_configuration.delete_syslog_configuration(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteSyslogConfiguration")
)
input_: capo_cloudwatch_logs.types.delete_syslog_configuration_request.DeleteSyslogConfigurationRequest = {
"log_group_identifier": log_group_identifier
}
if vpc_endpoint_id is not None:
input_["vpc_endpoint_id"] = vpc_endpoint_id
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|