Disassociates a session logger from a portal.
Parameters:
-
portal_arn
(ARN)
–
The ARN of the portal to disassociate from the a session logger.
Raises:
Examples:
Disassociate Session Logger from Portal
Removes the association between a session logger and a portal
>>> client.disassociate_session_logger(portal_arn='arn:aws:workspaces-web:us-west-2:123456789012:portal/12345678-1234-1234-1234-123456789012')
Source code in docs_src/capo_workspaces_web/_services/work_spaces_web.py
| def disassociate_session_logger(
self,
portal_arn: "capo_workspaces_web.types.arn.ARN",
*,
config_overrides: Optional[WorkSpacesWebClientConfig] = None,
) -> "capo_workspaces_web.types.disassociate_session_logger_response.DisassociateSessionLoggerResponse":
"""<p>Disassociates a session logger from a portal.</p>
Args:
portal_arn: <p>The ARN of the portal to disassociate from the a session logger.</p>
Raises:
capo_workspaces_web.errors.access_denied_exception.AccessDeniedException: <p>Access is denied.</p>
capo_workspaces_web.errors.internal_server_exception.InternalServerException: <p>There is an internal server error.</p>
capo_workspaces_web.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource cannot be found.</p>
capo_workspaces_web.errors.throttling_exception.ThrottlingException: <p>There is a throttling error.</p>
capo_workspaces_web.errors.validation_exception.ValidationException: <p>There is a validation error.</p>
capo_workspaces_web.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
Disassociate Session Logger from Portal
Removes the association between a session logger and a portal
>>> client.disassociate_session_logger(portal_arn='arn:aws:workspaces-web:us-west-2:123456789012:portal/12345678-1234-1234-1234-123456789012')
"""
def _handler(
req: "OperationRequest[capo_workspaces_web.types.disassociate_session_logger_request.DisassociateSessionLoggerRequest]",
) -> OperationResponse[
"capo_workspaces_web.types.disassociate_session_logger_response.DisassociateSessionLoggerResponse"
]:
import capo_workspaces_web._operations.aws_ermine_control_plane_service.disassociate_session_logger
output, http_response = (
capo_workspaces_web._operations.aws_ermine_control_plane_service.disassociate_session_logger.disassociate_session_logger(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DisassociateSessionLogger")
)
input_: capo_workspaces_web.types.disassociate_session_logger_request.DisassociateSessionLoggerRequest = {
"portal_arn": portal_arn
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|