associate_lambda_function
async
¶
associate_lambda_function(
instance_id: InstanceId,
function_arn: FunctionArn,
*,
config_overrides: Optional[AsyncConnectClientConfig] = None,
client_token: Optional[ClientToken] = None,
) -> None
This API is in preview release for Connect Customer and is subject to change.
Allows the specified Connect Customer instance to access the specified Lambda function.
Parameters:
-
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.
-
function_arn(FunctionArn) –The Amazon Resource Name (ARN) for the Lambda function being associated. Maximum number of characters allowed is 140.
-
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:
-
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.
-
ServiceQuotaExceededException–The service quota has been exceeded.
-
ThrottlingException–The throttling limit has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.