Updates a specified logging configuration.
Parameters:
-
identifier
(LoggingConfigurationIdentifier)
–
Identifier of the logging configuration to be updated.
-
name
(Optional[LoggingConfigurationName], default:
None
)
–
Logging-configuration name. The value does not need to be unique.
-
destination_configuration
(Optional[DestinationConfiguration], default:
None
)
–
A complex type that contains a destination configuration for where chat content will be logged. There can be only one type of destination (cloudWatchLogs, firehose, or s3) in a destinationConfiguration.
Raises:
Source code in docs_src/capo_ivschat/_services/ivschat.py
| def update_logging_configuration(
self,
identifier: "capo_ivschat.types.logging_configuration_identifier.LoggingConfigurationIdentifier",
*,
config_overrides: Optional[ivschatClientConfig] = None,
name: Optional[
"capo_ivschat.types.logging_configuration_name.LoggingConfigurationName"
] = None,
destination_configuration: Optional[
"capo_ivschat.types.destination_configuration.DestinationConfiguration"
] = None,
) -> "capo_ivschat.types.update_logging_configuration_response.UpdateLoggingConfigurationResponse":
"""<p>Updates a specified logging configuration.</p>
Args:
identifier: <p>Identifier of the logging configuration to be updated.</p>
name: <p>Logging-configuration name. The value does not need to be unique.</p>
destination_configuration: <p>A complex type that contains a destination configuration for where chat content will be logged. There can be only one type of destination (<code>cloudWatchLogs</code>, <code>firehose</code>, or <code>s3</code>) in a <code>destinationConfiguration</code>.</p>
Raises:
capo_ivschat.errors.access_denied_exception.AccessDeniedException: <p/>
capo_ivschat.errors.conflict_exception.ConflictException: <p/>
capo_ivschat.errors.pending_verification.PendingVerification: <p/>
capo_ivschat.errors.resource_not_found_exception.ResourceNotFoundException: <p/>
capo_ivschat.errors.validation_exception.ValidationException: <p/>
capo_ivschat.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_ivschat.types.update_logging_configuration_request.UpdateLoggingConfigurationRequest]",
) -> OperationResponse[
"capo_ivschat.types.update_logging_configuration_response.UpdateLoggingConfigurationResponse"
]:
import capo_ivschat._operations.amazon_interactive_video_service_chat.update_logging_configuration
output, http_response = (
capo_ivschat._operations.amazon_interactive_video_service_chat.update_logging_configuration.update_logging_configuration(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UpdateLoggingConfiguration")
)
input_: capo_ivschat.types.update_logging_configuration_request.UpdateLoggingConfigurationRequest = {
"identifier": identifier
}
if name is not None:
input_["name"] = name
if destination_configuration is not None:
input_["destination_configuration"] = destination_configuration
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|