Skip to content

get_connection_recording_preferences

get_connection_recording_preferences(
    *, config_overrides: Optional[SSMGuiConnectClientConfig] = None
) -> GetConnectionRecordingPreferencesResponse

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

>>> client.get_connection_recording_preferences()
Source code in docs_src/capo_ssm_guiconnect/_services/ssm_gui_connect.py
def get_connection_recording_preferences(
    self, *, config_overrides: Optional[SSMGuiConnectClientConfig] = 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

        >>> client.get_connection_recording_preferences()
    """

    def _handler(
        req: "OperationRequest[None]",
    ) -> OperationResponse[
        "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 = (
            capo_ssm_guiconnect._operations.ssm_gui_connect.get_connection_recording_preferences.get_connection_recording_preferences(
                req.options
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetConnectionRecordingPreferences")
    )

    response = execute_pipeline(
        OperationRequest(input=None, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output