getCalculatedAttributeDefinition method

Future<GetCalculatedAttributeDefinitionResponse> getCalculatedAttributeDefinition({
  1. required String calculatedAttributeName,
  2. required String domainName,
})

Provides more information on a calculated attribute definition for Customer Profiles.

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.

Implementation

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