create_ingress_point
async
¶
create_ingress_point(
ingress_point_name: IngressPointName,
type: IngressPointType,
rule_set_id: RuleSetId,
traffic_policy_id: TrafficPolicyId,
*,
config_overrides: Optional[AsyncMailManagerClientConfig] = None,
client_token: Optional[IdempotencyToken] = None,
ingress_point_configuration: Optional[IngressPointConfiguration] = None,
network_configuration: Optional[NetworkConfiguration] = None,
tls_policy: Optional[TlsPolicy] = None,
tags: Optional[TagList] = None,
) -> CreateIngressPointResponse
Provision a new ingress endpoint resource.
Parameters:
-
client_token(Optional[IdempotencyToken], default:None) –A unique token that Amazon SES uses to recognize subsequent retries of the same request.
-
ingress_point_name(IngressPointName) –A user friendly name for an ingress endpoint resource.
-
type(IngressPointType) –The type of the ingress endpoint to create.
-
rule_set_id(RuleSetId) –The identifier of an existing rule set that you attach to an ingress endpoint resource.
-
traffic_policy_id(TrafficPolicyId) –The identifier of an existing traffic policy that you attach to an ingress endpoint resource.
-
ingress_point_configuration(Optional[IngressPointConfiguration], default:None) –If you choose an Authenticated ingress endpoint, you must configure either an SMTP password or a secret ARN.
-
network_configuration(Optional[NetworkConfiguration], default:None) –Specifies the network configuration for the ingress point. This allows you to create an IPv4-only, Dual-Stack, or PrivateLink type of ingress point. If not specified, the default network type is IPv4-only.
-
tls_policy(Optional[TlsPolicy], default:None) –The Transport Layer Security (TLS) policy for the ingress point. The FIPS value is only valid in US and Canada regions.
-
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.
Examples:
Create Open IngressPoint
>>> await client.create_ingress_point(ingress_point_name='ingressPointName', type='OPEN', rule_set_id='rs-12345', traffic_policy_id='tp-12345', tags=[{'Key': 'key', 'Value': 'value'}])
Create Auth IngressPoint with Password
>>> await client.create_ingress_point(ingress_point_name='ingressPointName', type='AUTH', rule_set_id='rs-12345', traffic_policy_id='tp-12345', ingress_point_configuration={'SmtpPassword': 'smtpPassword'}, tags=[{'Key': 'key', 'Value': 'value'}])
Create Auth IngressPoint with SecretsManager Secret
>>> await client.create_ingress_point(ingress_point_name='ingressPointName', type='AUTH', rule_set_id='rs-12345', traffic_policy_id='tp-12345', ingress_point_configuration={'SecretArn': 'arn:aws:secretsmanager:us-west-2:123456789012:secret:abcde'}, tags=[{'Key': 'key', 'Value': 'value'}])
Source code in docs_src/capo_mailmanager/_services/async_mail_manager.py
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 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 | |