update_customer_account
¶
update_customer_account(
catalog: CatalogIdentifier,
identifier: CustomerAccountArnOrIdentifier,
account: CustomerAccountData,
last_modified_date: DateTime,
*,
config_overrides: Optional[PartnerCentralSellingClientConfig] = None,
partner_account_identifier: Optional[PartnerAccountIdentifier] = None,
) -> UpdateCustomerAccountResponse
Use UpdateCustomerAccount to replace the customer information on an existing customer account. AWS matches the account again with the updated information.
To prevent concurrent changes from overwriting each other, specify the LastModifiedDate value that you last read for the account. If the account changed since then, the request fails with a ConflictException.
Parameters:
-
catalog(CatalogIdentifier) –Specifies the catalog for the request. Valid values:
-
AWS: Production. -
Sandbox: Testing environments.
-
-
identifier(CustomerAccountArnOrIdentifier) –Specifies the ARN or the identifier of the customer account.
-
account(CustomerAccountData) –Specifies the complete, updated details of the customer. These details replace the existing details on the customer account.
-
partner_account_identifier(Optional[PartnerAccountIdentifier], default:None) –Specifies your own identifier for the customer account, such as the account ID in your CRM system. Use it to correlate the customer account with your records.
-
last_modified_date(DateTime) –Specifies the
LastModifiedDateof the customer account as you last read it. If it doesn't match the current value, the request fails with aConflictException.
Raises:
-
AccessDeniedException–This error occurs when you don't have permission to perform the requested action.
You don’t have access to this action or resource. Review IAM policies or contact your AWS administrator for assistance.
-
ConflictException–This error occurs when the request can’t be processed due to a conflict with the target resource's current state, which could result from updating or deleting the resource.
Suggested action: Fetch the latest state of the resource, verify the state, and retry the request.
-
InternalServerException–This error occurs when the specified resource can’t be found or doesn't exist. Resource ID and type might be incorrect.
Suggested action: This is usually a transient error. Retry after the provided retry delay or a short interval. If the problem persists, contact AWS support.
-
ResourceNotFoundException–This error occurs when the specified resource can't be found. The resource might not exist, or isn't visible with the current credentials.
Suggested action: Verify that the resource ID is correct and the resource is in the expected AWS region. Check IAM permissions for accessing the resource.
-
ThrottlingException–This error occurs when there are too many requests sent. Review the provided quotas and adapt your usage to avoid throttling.
This error occurs when there are too many requests sent. Review the provided Quotas and retry after the provided delay.
-
ValidationException–The input fails to satisfy the constraints specified by the service or business validation rules.
Suggested action: Review the error message, including the failed fields and reasons, to correct the request payload.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_partnercentral_selling/_services/partner_central_selling.py
1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 | |