update_session_logger
async
¶
update_session_logger(
session_logger_arn: ARN,
*,
config_overrides: Optional[AsyncWorkSpacesWebClientConfig] = None,
event_filter: Optional[EventFilter] = None,
log_configuration: Optional[LogConfiguration] = None,
display_name: Optional[DisplayNameSafe] = None,
) -> UpdateSessionLoggerResponse
Updates the details of a session logger.
Parameters:
-
session_logger_arn(ARN) –The ARN of the session logger to update.
-
event_filter(Optional[EventFilter], default:None) –The updated eventFilter.
-
log_configuration(Optional[LogConfiguration], default:None) –The updated logConfiguration.
-
display_name(Optional[DisplayNameSafe], default:None) –The updated display name.
Raises:
-
AccessDeniedException–Access is denied.
-
InternalServerException–There is an internal server error.
-
ResourceNotFoundException–The resource cannot be found.
-
ThrottlingException–There is a throttling error.
-
ValidationException–There is a validation error.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Update Session Logger Event Filter Updates a session logger to capture specific events instead of all events
>>> await client.update_session_logger(session_logger_arn='arn:aws:workspaces-web:us-west-2:123456789012:sessionLogger/12345678-1234-1234-1234-123456789012', event_filter={'include': ['SessionStart', 'SessionEnd', 'UrlLoad', 'WebsiteInteract']})
Update Session Logger Configuration
Updates the log configuration of a session logger
>>> await client.update_session_logger(session_logger_arn='arn:aws:workspaces-web:us-west-2:123456789012:sessionLogger/87654321-4321-4321-4321-210987654321', log_configuration={'s3': {'bucket': 'updated-my-session-logs-bucket-2', 'keyPrefix': 'updated/key/prefix', 'bucketOwner': '123456789012', 'logFileFormat': 'Json', 'folderStructure': 'Flat'}})
Source code in docs_src/capo_workspaces_web/_services/async_work_spaces_web.py
4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 | |