Returns the preferences specified for recording RDP connections in the requesting Amazon Web Services account and Amazon Web Services Region.
Raises:
Examples:
Retrieves the connection recording preferences for the account
>>> await client.get_connection_recording_preferences()
Source code in docs_src/capo_ssm_guiconnect/_services/async_ssm_gui_connect.py
| async def get_connection_recording_preferences(
self, *, config_overrides: Optional[AsyncSSMGuiConnectClientConfig] = None
) -> "capo_ssm_guiconnect.types.get_connection_recording_preferences_response.GetConnectionRecordingPreferencesResponse":
"""<p>Returns the preferences specified for recording RDP connections in the requesting Amazon Web Services account and Amazon Web Services Region.</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:
Retrieves the connection recording preferences for the account
>>> await client.get_connection_recording_preferences()
"""
async def _handler(
req: "AsyncOperationRequest[None]",
) -> AsyncOperationResponse[
"capo_ssm_guiconnect.types.get_connection_recording_preferences_response.GetConnectionRecordingPreferencesResponse"
]:
import capo_ssm_guiconnect._operations.ssm_gui_connect.get_connection_recording_preferences
(
output,
http_response,
) = await capo_ssm_guiconnect._operations.ssm_gui_connect.get_connection_recording_preferences.async_get_connection_recording_preferences(
req.options
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetConnectionRecordingPreferences")
)
response = await aexecute_pipeline(
AsyncOperationRequest(input=None, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|