create_ingress_point
¶
create_ingress_point(
ingress_point_name: IngressPointName,
type: IngressPointType,
rule_set_id: RuleSetId,
traffic_policy_id: TrafficPolicyId,
*,
config_overrides: Optional[MailManagerClientConfig] = 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
>>> 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
>>> 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
>>> 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/mail_manager.py
3257 3258 3259 3260 3261 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 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 | |