Deletes the preferences for recording RDP connections.
Parameters:
Raises:
Examples:
Delete the connection recording preferences for the account
>>> client.delete_connection_recording_preferences()
Source code in docs_src/capo_ssm_guiconnect/_services/ssm_gui_connect.py
| def delete_connection_recording_preferences(
self,
*,
config_overrides: Optional[SSMGuiConnectClientConfig] = None,
client_token: Optional[
"capo_ssm_guiconnect.types.client_token.ClientToken"
] = None,
) -> "capo_ssm_guiconnect.types.delete_connection_recording_preferences_response.DeleteConnectionRecordingPreferencesResponse":
"""<p>Deletes the preferences for recording RDP connections.</p>
Args:
client_token: <p>User-provided idempotency token.</p>
Raises:
capo_ssm_guiconnect.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
capo_ssm_guiconnect.errors.conflict_exception.ConflictException: <p>An error occurred due to a conflict.</p>
capo_ssm_guiconnect.errors.internal_server_exception.InternalServerException: <p>The request processing has failed because of an unknown error, exception or failure.</p>
capo_ssm_guiconnect.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource could not be found.</p>
capo_ssm_guiconnect.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>Your request exceeds a service quota.</p>
capo_ssm_guiconnect.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
capo_ssm_guiconnect.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an AWS service.</p>
capo_ssm_guiconnect.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
Delete the connection recording preferences for the account
>>> client.delete_connection_recording_preferences()
"""
def _handler(
req: "OperationRequest[capo_ssm_guiconnect.types.delete_connection_recording_preferences_request.DeleteConnectionRecordingPreferencesRequest]",
) -> OperationResponse[
"capo_ssm_guiconnect.types.delete_connection_recording_preferences_response.DeleteConnectionRecordingPreferencesResponse"
]:
import capo_ssm_guiconnect._operations.ssm_gui_connect.delete_connection_recording_preferences
output, http_response = (
capo_ssm_guiconnect._operations.ssm_gui_connect.delete_connection_recording_preferences.delete_connection_recording_preferences(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteConnectionRecordingPreferences")
)
input_: capo_ssm_guiconnect.types.delete_connection_recording_preferences_request.DeleteConnectionRecordingPreferencesRequest = {}
if client_token is None:
client_token = str(uuid.uuid4())
input_["client_token"] = client_token
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|