@Override
    public CreateCalculatedAttributeDefinitionResult createCalculatedAttributeDefinition(CreateCalculatedAttributeDefinitionRequest request) {
        request = beforeClientExecution(request);
        return executeCreateCalculatedAttributeDefinition(request);
    }
<p>
Creates a new calculated attribute definition. After creation, new object data ingested into Customer Profiles
will be included in the calculated attribute, which can be retrieved for a profile using the <a href=
"https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_GetCalculatedAttributeForProfile.html"
>GetCalculatedAttributeForProfile</a> API. Defining a calculated attribute makes it available for all profiles
within a domain. Each calculated attribute can only reference one <code>ObjectType</code> and at most, two fields
from that <code>ObjectType</code>.
</p>

@param createCalculatedAttributeDefinitionRequest
@return Result of the CreateCalculatedAttributeDefinition operation returned by the service.
@throws BadRequestException
        The input you provided is invalid.
@throws ResourceNotFoundException
        The requested resource does not exist, or access was denied.
@throws AccessDeniedException
        You do not have sufficient access to perform this action.
@throws ThrottlingException
        You exceeded the maximum number of requests.
@throws InternalServerException
        An internal service error occurred.
@sample AmazonCustomerProfiles.CreateCalculatedAttributeDefinition
@see <a
     href="http://docs.aws.amazon.com/goto/WebAPI/customer-profiles-2020-08-15/CreateCalculatedAttributeDefinition"
     target="_top">AWS API Documentation</a>
aws-java-sdk-customerprofiles/src/main/java/com/amazonaws/services/customerprofiles/AmazonCustomerProfilesClient.java