update_relay
¶
update_relay(
relay_id: RelayId,
*,
config_overrides: Optional[MailManagerClientConfig] = None,
relay_name: Optional[RelayName] = None,
server_name: Optional[RelayServerName] = None,
server_port: Optional[RelayServerPort] = None,
authentication: Optional[RelayAuthentication] = None,
) -> UpdateRelayResponse
Updates the attributes of an existing relay resource.
Parameters:
-
relay_id(RelayId) –The unique relay identifier.
-
relay_name(Optional[RelayName], default:None) –The name of the relay resource.
-
server_name(Optional[RelayServerName], default:None) –The destination relay server address.
-
server_port(Optional[RelayServerPort], default:None) –The destination relay server port.
-
authentication(Optional[RelayAuthentication], default:None) –Authentication for the relay destination server—specify the secretARN where the SMTP credentials are stored.
Raises:
-
ConflictException–The request configuration has conflicts. For details, see the accompanying error message.
-
ResourceNotFoundException–Occurs when a requested resource is not found.
-
ValidationException–The request validation has failed. For details, see the accompanying error message.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_mailmanager/_services/mail_manager.py
3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 | |