getCalculatedAttributeForProfile method

Future<GetCalculatedAttributeForProfileResponse> getCalculatedAttributeForProfile({
  1. required String calculatedAttributeName,
  2. required String domainName,
  3. required String profileId,
})

Retrieve a calculated attribute for a customer profile.

May throw AccessDeniedException. May throw BadRequestException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter calculatedAttributeName : The unique name of the calculated attribute.

Parameter domainName : The unique name of the domain.

Parameter profileId : The unique identifier of a customer profile.

Implementation

Future<GetCalculatedAttributeForProfileResponse>
    getCalculatedAttributeForProfile({
  required String calculatedAttributeName,
  required String domainName,
  required String profileId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/domains/${Uri.encodeComponent(domainName)}/profile/${Uri.encodeComponent(profileId)}/calculated-attributes/${Uri.encodeComponent(calculatedAttributeName)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetCalculatedAttributeForProfileResponse.fromJson(response);
}