update_ingress_point
async
¶
update_ingress_point(
ingress_point_id: IngressPointId,
*,
config_overrides: Optional[AsyncMailManagerClientConfig] = None,
ingress_point_name: Optional[IngressPointName] = None,
status_to_update: Optional[IngressPointStatusToUpdate] = None,
rule_set_id: Optional[RuleSetId] = None,
traffic_policy_id: Optional[TrafficPolicyId] = None,
ingress_point_configuration: Optional[IngressPointConfiguration] = None,
tls_policy: Optional[TlsPolicy] = None,
) -> UpdateIngressPointResponse
Update attributes of a provisioned ingress endpoint resource.
Parameters:
-
ingress_point_id(IngressPointId) –The identifier for the ingress endpoint you want to update.
-
ingress_point_name(Optional[IngressPointName], default:None) –A user friendly name for the ingress endpoint resource.
-
status_to_update(Optional[IngressPointStatusToUpdate], default:None) –The update status of an ingress endpoint.
-
rule_set_id(Optional[RuleSetId], default:None) –The identifier of an existing rule set that you attach to an ingress endpoint resource.
-
traffic_policy_id(Optional[TrafficPolicyId], default:None) –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.
-
tls_policy(Optional[TlsPolicy], default:None) –The Transport Layer Security (TLS) policy for the ingress point. Valid values are REQUIRED, OPTIONAL. Only ingress endpoints using REQUIRED or OPTIONAL as TlsPolicy can be updated.
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.
Examples:
Update Open/Auth IngressPoint with new Name
>>> await client.update_ingress_point(ingress_point_id='inp-12345', ingress_point_name='ingressPointNewName')
Update Open/Auth IngressPoint with new RuleSetId / TrafficPolicyId
>>> await client.update_ingress_point(ingress_point_id='inp-12345', rule_set_id='rs-12345', traffic_policy_id='tp-12345')
Update Auth IngressPoint with new SmtpPassword
>>> await client.update_ingress_point(ingress_point_id='inp-12345', ingress_point_configuration={'SmtpPassword': 'newSmtpPassword'})
Update Auth IngressPoint with new SecretArn
>>> await client.update_ingress_point(ingress_point_id='inp-12345', ingress_point_configuration={'SecretArn': 'arn:aws:secretsmanager:us-west-2:123456789012:secret:abcde'})
Source code in docs_src/capo_mailmanager/_services/async_mail_manager.py
3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 | |