

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# API를 사용하여 Amazon Connect Customer Profiles에서 계산된 속성 값 검증
<a name="customerprofiles-calculated-attributes-validating-values"></a>

`GetCalculatedAttributeForProfile` 및 `ListCalculatedAttributesForProfile`의 프로필 수준 API 두 개가 있습니다.
+ **GetCalculatedAttributeForProfile** - 단일 프로필에 대해 계산된 단일 속성을 검색합니다.
+ **ListCalculatedAttributesForProfile** - 단일 프로필에 대해 계산된 속성 목록을 검색합니다.

유효한 프로필 ID가 있으면 계산된 속성의 값을 볼 수 있습니다.

**응답의 예**

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

**isDataPartial** - 이 플래그는 시간 범위(30일) 또는 객체 수에 도달하지 않아 계산된 속성이 아직 계산 중임을 의미합니다. 예를 들어 30일간의 평균이 필요할 경우 30일이 경과한 후에만 `IsDataPartial` 필드가 false로 설정됩니다.

## 계산된 속성의 목록 검색
<a name="calculated-attributes-validating-a-list-of-values"></a>

** AWS CLI 사용**

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

** AWS CLI를 사용자 지정 JSON 파일과 함께 사용**

다음 내용의 JSON 파일을 생성합니다.

```
{
    "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
```

**엔드포인트:**

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

## 계산된 단일 속성 검색
<a name="calculated-attributes-validating-a-single-value"></a>

** 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}}
```

** AWS CLI를 사용자 지정 JSON 파일과 함께 사용합니다**.

다음 내용의 JSON 파일을 생성합니다.

```
{   
    "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
```

**엔드포인트:**

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