create_relay
¶
create_relay(
relay_name: RelayName,
server_name: RelayServerName,
server_port: RelayServerPort,
authentication: RelayAuthentication,
*,
config_overrides: Optional[MailManagerClientConfig] = 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/mail_manager.py
3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 | |