create_relay
async
¶
create_relay(
relay_name: RelayName,
server_name: RelayServerName,
server_port: RelayServerPort,
authentication: RelayAuthentication,
*,
config_overrides: Optional[AsyncMailManagerClientConfig] = None,
client_token: Optional[IdempotencyToken] = None,
tags: Optional[TagList] = None,
) -> CreateRelayResponse
Creates a relay resource which can be used in rules to relay incoming emails to defined relay destinations.
Parameters:
-
client_token(Optional[IdempotencyToken], default:None) –A unique token that Amazon SES uses to recognize subsequent retries of the same request.
-
relay_name(RelayName) –The unique name of the relay resource.
-
server_name(RelayServerName) –The destination relay server address.
-
server_port(RelayServerPort) –The destination relay server port.
-
authentication(RelayAuthentication) –Authentication for the relay destination server—specify the secretARN where the SMTP credentials are stored.
-
tags(Optional[TagList], default:None) –The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
Raises:
-
ConflictException–The request configuration has conflicts. For details, see the accompanying error message.
-
ServiceQuotaExceededException–Occurs when an operation exceeds a predefined service quota or limit.
-
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/async_mail_manager.py
3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 | |