

Die vorliegende Übersetzung wurde maschinell erstellt. Im Falle eines Konflikts oder eines Widerspruchs zwischen dieser übersetzten Fassung und der englischen Fassung (einschließlich infolge von Verzögerungen bei der Übersetzung) ist die englische Fassung maßgeblich.

# Validieren Sie berechnete Attributwerte in Amazon Connect Connect-Kundenprofilen mit APIs
<a name="customerprofiles-calculated-attributes-validating-values"></a>

Es gibt zwei APIs, `GetCalculatedAttributeForProfile` und`ListCalculatedAttributesForProfile`, die sich auf Profilebene befinden.
+ **GetCalculatedAttributeForProfile**- ruft ein einzelnes berechnetes Attribut für ein einzelnes Profil ab.
+ **ListCalculatedAttributesForProfile**- ruft eine Liste von berechneten Attributen für ein einzelnes Profil ab

Bei Angabe einer gültigen Profil-ID sollten Sie Werte für Ihre berechneten Attribute sehen:

**Beispielantwort**

```
{   
    "CalculatedAttributeName": "_average_hold_time",
    "DisplayName": "Average hold time",
    "IsDataPartial": "true",
    "Value": "24144"
}
```

**IsDataPartial**- Dieses Kennzeichen bedeutet, dass entweder der Zeitraum (30 Tage) oder die Anzahl der Objekte nicht erreicht wurde und das berechnete Attribut daher noch berechnet wird. Wenn Sie beispielsweise einen Durchschnittswert über 30 Tage ermitteln möchten, wird das `IsDataPartial`-Feld erst nach Flow von 30 Tagen auf „false“ gesetzt.

## Abrufen einer Liste mit berechneten Attributen
<a name="calculated-attributes-validating-a-list-of-values"></a>

**Verwenden Sie die AWS CLI**

```
aws customer-profiles list-calculated-attributes-for-profile --region {{your-region}} --domain-name {{your-domain-name}} --profile-id {{your-profile-id}}
```

**Verwenden Sie die AWS CLI mit einer benutzerdefinierten JSON-Datei**

Erstellen Sie eine JSON-Datei mit folgendem Inhalt:

```
{
    "DomainName": "your-domain-name", 
    "ProfileId" "some-profile-id"
}
```

```
aws customer-profiles list-calculated-attributes-for-profile --region {{your-region}} --cli-input-json file://{{list_calculated_attributes_for_profile_cli}}.json
```

**Endpunkt:**

```
https://profile.{{your-region}}.amazonaws.com/domains/{{your-domain-name}}/profile/{{your-profile-id}}/calculated-attributes/
```

## Abruf eines einzelnen berechneten Attributs
<a name="calculated-attributes-validating-a-single-value"></a>

**Verwenden Sie die AWS CLI**:

```
aws customer-profiles get-calculated-attributes-for-profile --region {{your-region}} --domain-name {{your-domain-name}} --calculated-attribute-name {{your-calculated-attribute-name}} --profile-id {{your-profile-id}}
```

**Verwenden Sie die AWS CLI mit einer benutzerdefinierten JSON-Datei**:

Erstellen Sie eine JSON-Datei mit folgendem Inhalt:

```
{   
    "DomainName": "your-domain-name", 
    "CalculatedAttributeName": "your-calculated-attribute-name",
    "ProfileId" "your-profile-id"
}
```

```
aws customer-profiles get-calculated-attributes-for-profile --region {{your-region}} --cli-input-json file://{{list_calculated_attributes_for_profile_cli}}.json
```

**Endpunkt:**

```
https://profile.{{your-region}}.amazonaws.com/domains/{{your-domain-name}}/profile/{{your-profile-id}}/calculated-attributes/{{your-calculated-attribute-name}}
```