disassociate_email_address_alias
¶
disassociate_email_address_alias(
email_address_id: EmailAddressId,
instance_id: InstanceId,
alias_configuration: AliasConfiguration,
*,
config_overrides: Optional[ConnectClientConfig] = None,
client_token: Optional[ClientToken] = None,
) -> DisassociateEmailAddressAliasResponse
Removes the alias association between two email addresses in an Connect Customer instance. After disassociation, emails sent to the former alias email address are no longer forwarded to the primary email address. Both email addresses continue to exist independently and can receive emails directly.
Use cases
Following are common uses cases for this API:
-
Department separation: Remove alias relationships when splitting a consolidated support queue back into separate department-specific queues.
-
Email address retirement: Cleanly remove forwarding relationships before decommissioning old email addresses.
-
Organizational restructuring: Reconfigure email routing when business processes change and aliases are no longer needed.
Important things to know
-
Concurrent operations: This API uses distributed locking, so concurrent operations on the same email addresses may be temporarily blocked.
-
Emails sent to the former alias address are still delivered directly to that address if it exists.
-
You do not need to delete the email addresses after disassociation. Both addresses remain active independently.
-
After a successful disassociation, you can immediately create a new alias relationship with the same addresses.
-
200 status means alias was successfully disassociated.
DisassociateEmailAddressAlias does not return the following information:
-
Details in the response about the email that was disassociated. The response returns an empty body.
-
The timestamp of when the disassociation occurred.
Endpoints: See Connect Customer endpoints and quotas.
Related operations
-
AssociateEmailAddressAlias: Associates an email address alias with an existing email address in an Connect Customer instance.
-
DescribeEmailAddress: View current alias configurations for an email address.
-
SearchEmailAddresses: Find email addresses and their alias relationships across an instance.
-
CreateEmailAddress: Create new email addresses that can participate in alias relationships.
-
DeleteEmailAddress: Remove email addresses (automatically removes any alias relationships).
-
UpdateEmailAddressMetadata: Modify email address properties (does not affect alias relationships).
Parameters:
-
email_address_id(EmailAddressId) –The identifier of the email address.
-
instance_id(InstanceId) –The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
-
alias_configuration(AliasConfiguration) –Configuration object that specifies which alias relationship to remove. The alias association must currently exist between the primary email address and the specified alias email address.
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
InternalServiceException–Request processing failed because of an error or failure with the service.
-
InvalidParameterException–One or more of the specified parameters are not valid.
-
InvalidRequestException–The request is not valid.
-
ResourceConflictException–A resource already has that name.
-
ResourceNotFoundException–The specified resource was not found.
-
ThrottlingException–The throttling limit has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_connect/_services/connect.py
11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 | |