Twilio 엔터티에서 읽기
사전 조건
읽으려는 Twilio 객체입니다. 객체 이름(예: SMS-Message 또는 SMS-CountryPricing)이 필요합니다.
소스에 대해 지원되는 엔터티:
| 개체 | 인터페이스 | 필터링 가능 | 제한 지원 | 정렬 기준 지원 | Select * 지원 | 분할 지원 |
|---|---|---|---|---|---|---|
| SMS-Message | REST | 예 | 예 | 아니요 | 예 | 예 |
| SMS-CountryPricing | REST | 아니요 | 아니요 | 아니요 | 예 | 아니요 |
| Voice-Call | REST | 예 | 예 | 아니요 | 예 | 아니요 |
| Voice-Application | REST | 예 | 예 | 아니요 | 예 | 아니요 |
| Voice-OutgoingCallerID | REST | 예 | 예 | 아니요 | 예 | 아니요 |
| Voice-Queue | REST | 예 | 예 | 아니요 | 예 | 아니요 |
| Conversations-Conversation | REST | 예 | 예 | 아니요 | 예 | 아니요 |
| Conversations-User | REST | 아니요 | 예 | 아니요 | 예 | 아니요 |
| Conversations-Role | REST | 아니요 | 예 | 아니요 | 예 | 아니요 |
| Conversations-Configuration | REST | 아니요 | 아니요 | 아니요 | 예 | 아니요 |
| Conversations-AddressConfiguration | REST | 예 | 예 | 아니요 | 예 | 아니요 |
| Conversations-WebhookConfiguration | REST | 아니요 | 아니요 | 아니요 | 예 | 아니요 |
| Conversations-ParticipantConversation | REST | 아니요 | 아니요 | 아니요 | 예 | 아니요 |
| Conversations-Credential | REST | 아니요 | 예 | 아니요 | 예 | 아니요 |
| Conversations-ConversationService | REST | 아니요 | 예 | 아니요 | 예 | 아니요 |
예시:
twilio_read = glueContext.create_dynamic_frame.from_options( connection_type="twilio", connection_options={ "connectionName": "connectionName", "ENTITY_NAME": "sms-message", "API_VERSION": "2010-04-01", "Edge_Location": "sydney.us1" }
Twilio 엔터티 및 필드 세부 정보:
| 개체 | 필드 | 데이터 유형 | 지원되는 연산자 |
|---|---|---|---|
| SMS-Message | account_sid | String | 해당 사항 없음 |
| api_version | String | 해당 사항 없음 | |
| 본문 | String | 해당 사항 없음 | |
| date_created | 날짜시간 | N/A | |
| date_sent | 날짜시간 | >=, <=, = | |
| date_updated | 날짜시간 | N/A | |
| direction | String | 해당 사항 없음 | |
| error_code | Integer | N/A | |
| error_message | String | 해당 사항 없음 | |
| from | Integer | = | |
| messaging_service_sid | String | 해당 사항 없음 | |
| num_media | String | 해당 사항 없음 | |
| num_segments | String | 해당 사항 없음 | |
| 가격 | String | 해당 사항 없음 | |
| price_unit | Struct | N/A | |
| sid | Integer | N/A | |
| status | String | 해당 사항 없음 | |
| subresource_uris | 맵 | N/A | |
| 아래로 변경합니다. | Integer | = | |
| uri | 날짜시간 | N/A | |
| SMS-CountryPricing | country | String | 해당 사항 없음 |
| iso_country | String | 해당 사항 없음 | |
| url | String | 해당 사항 없음 | |
| outbound_sms_prices | 나열 | N/A | |
| inbound_sms_prices | 나열 | N/A | |
| price_unit | String | 해당 사항 없음 | |
| Voice-Call | account_sid | String | 해당 사항 없음 |
| annotation | String | 해당 사항 없음 | |
| answered_by | String | 해당 사항 없음 | |
| api_version | String | 해당 사항 없음 | |
| caller_name | String | 해당 사항 없음 | |
| date_created | 날짜시간 | N/A | |
| date_updated | 날짜시간 | N/A | |
| direction | String | 해당 사항 없음 | |
| duration | String | 해당 사항 없음 | |
| end_time | 날짜시간 | >=, <=, = | |
| forwarded_from | String | 해당 사항 없음 | |
| from | String | = | |
| from_formatted | String | 해당 사항 없음 | |
| group_sid | String | 해당 사항 없음 | |
| parent_call_sid | String | 해당 사항 없음 | |
| phone_number_sid | String | 해당 사항 없음 | |
| 가격 | String | 해당 사항 없음 | |
| price_unit | String | 해당 사항 없음 | |
| sid | String | 해당 사항 없음 | |
| start_time | 날짜시간 | >=, <=, = | |
| status | String | = | |
| subresource_uris | String | 해당 사항 없음 | |
| 아래로 변경합니다. | String | = | |
| to_formatted | String | 해당 사항 없음 | |
| trunk_sid | String | 해당 사항 없음 | |
| uri | String | 해당 사항 없음 | |
| queue_time | String | 해당 사항 없음 | |
| Voice-Application | account_sid | String | 해당 사항 없음 |
| api_version | String | 해당 사항 없음 | |
| date_created | 날짜시간 | N/A | |
| date_updated | 날짜시간 | N/A | |
| friendly_name | String | = | |
| message_status_callback | String | 해당 사항 없음 | |
| sid | String | 해당 사항 없음 | |
| sms_fallback_method | String | 해당 사항 없음 | |
| sms_fallback_url | String | 해당 사항 없음 | |
| sms_method | String | 해당 사항 없음 | |
| sms_status_callback | String | 해당 사항 없음 | |
| sms_url | String | 해당 사항 없음 | |
| status_callback | String | 해당 사항 없음 | |
| status_callback_method | String | 해당 사항 없음 | |
| uri | String | 해당 사항 없음 | |
| voice_caller_id_lookup | 불 | N/A | |
| voice_fallback_method | String | 해당 사항 없음 | |
| voice_fallback_url | String | 해당 사항 없음 | |
| voice_method | String | 해당 사항 없음 | |
| voice_url | String | 해당 사항 없음 | |
| public_application_connect_enabled | 불 | N/A | |
| Voice-OutgoingCallerID | sid | String | 해당 사항 없음 |
| date_created | 날짜시간 | N/A | |
| date_updated | 날짜시간 | N/A | |
| account_sid | String | 해당 사항 없음 | |
| friendly_name | String | = | |
| phone_number | String | = | |
| uri | String | 해당 사항 없음 | |
| Voice-Queue | date_created | 날짜시간 | N/A |
| date_updated | 날짜시간 | N/A | |
| current_size | Integer | N/A | |
| friendly_name | String | 해당 사항 없음 | |
| uri | String | 해당 사항 없음 | |
| account_sid | String | 해당 사항 없음 | |
| average_wait_time | Integer | N/A | |
| sid | String | 해당 사항 없음 | |
| max_size | Integer | N/A | |
| Conversations-Conversation | account_sid | String | 해당 사항 없음 |
| chat_service_sid | String | 해당 사항 없음 | |
| messaging_service_sid | String | 해당 사항 없음 | |
| sid | String | 해당 사항 없음 | |
| friendly_name | String | 해당 사항 없음 | |
| unique_name | String | 해당 사항 없음 | |
| attributes | String | 해당 사항 없음 | |
| state | String | = | |
| date_created | 날짜시간 | N/A | |
| date_updated | 날짜시간 | N/A | |
| timers | Struct | N/A | |
| url | String | 해당 사항 없음 | |
| links | Struct | N/A | |
| bindings | Struct | N/A | |
| start_date | 날짜시간 | = | |
| end_date | 날짜시간 | = | |
| Timers.DateInactive | String | 해당 사항 없음 | |
| Timers.DateClosed | String | 해당 사항 없음 | |
| Conversations-User | sid | String | 해당 사항 없음 |
| account_sid | String | 해당 사항 없음 | |
| chat_service_sid | String | 해당 사항 없음 | |
| role_sid | String | 해당 사항 없음 | |
| identity | String | 해당 사항 없음 | |
| friendly_name | String | 해당 사항 없음 | |
| attributes | String | 해당 사항 없음 | |
| is_online | 불 | N/A | |
| is_notifiable | 불 | N/A | |
| date_created | 날짜시간 | N/A | |
| date_updated | 날짜시간 | N/A | |
| url | String | 해당 사항 없음 | |
| links | Struct | N/A | |
| Conversations-Role | sid | String | 해당 사항 없음 |
| account_sid | String | 해당 사항 없음 | |
| chat_service_sid | String | 해당 사항 없음 | |
| friendly_name | String | 해당 사항 없음 | |
| type | String | 해당 사항 없음 | |
| permissions | String | 해당 사항 없음 | |
| date_created | 날짜시간 | N/A | |
| date_updated | 날짜시간 | N/A | |
| url | String | 해당 사항 없음 | |
| Conversations-Configuration | account_sid | Long | N/A |
| default_chat_service_sid | String | 해당 사항 없음 | |
| default_messaging_service_sid | String | 해당 사항 없음 | |
| default_inactive_timer | String | 해당 사항 없음 | |
| default_closed_timer | String | 해당 사항 없음 | |
| url | String | 해당 사항 없음 | |
| links | 맵 | N/A | |
| Conversations-AddressConfiguration | sid | String | 해당 사항 없음 |
| account_sid | String | 해당 사항 없음 | |
| type | String | 해당 사항 없음 | |
| address | String | 해당 사항 없음 | |
| friendly_name | String | 해당 사항 없음 | |
| auto_creation | Struct | N/A | |
| date_created | 날짜시간 | N/A | |
| date_updated | 날짜시간 | N/A | |
| url | String | 해당 사항 없음 | |
| address_country | String | 해당 사항 없음 | |
| AutoCreation.Enabled | 불 | N/A | |
| AutoCreation.Type | String | 해당 사항 없음 | |
| AutoCreation.ConversationServiceSid | String | 해당 사항 없음 | |
| AutoCreation.WebhookUrl | String | 해당 사항 없음 | |
| AutoCreation.WebhookMethod | String | 해당 사항 없음 | |
| AutoCreation.WebhookFilters | 나열 | N/A | |
| AutoCreation.StudioFlowSid | String | 해당 사항 없음 | |
| AutoCreation.StudioRetryCount | Integer | N/A | |
| Conversations-WebhookConfiguration | account_sid | String | 해당 사항 없음 |
| method | String | 해당 사항 없음 | |
| filters | 나열 | N/A | |
| pre_webhook_url | String | 해당 사항 없음 | |
| post_webhook_url | String | 해당 사항 없음 | |
| 대상 | String | 해당 사항 없음 | |
| url | String | 해당 사항 없음 | |
| Converations-ParticipantConversation | account_sid | String | 해당 사항 없음 |
| chat_service_sid | String | 해당 사항 없음 | |
| participant_sid | String | 해당 사항 없음 | |
| participant_user_sid | String | 해당 사항 없음 | |
| participant_identity | String | 해당 사항 없음 | |
| participant_messaging_binding | Struct | N/A | |
| Conversation_sid | String | 해당 사항 없음 | |
| conversation_unique_name | String | 해당 사항 없음 | |
| conversation_friendly_name | String | 해당 사항 없음 | |
| conversation_attributes | String | 해당 사항 없음 | |
| conversation_date_created | 날짜시간 | N/A | |
| conversation_date_updated | 날짜시간 | N/A | |
| conversation_created_by | String | 해당 사항 없음 | |
| conversation_state | String | 해당 사항 없음 | |
| conversation_timers | Struct | N/A | |
| links | 맵 | N/A | |
| address | String | = | |
| identity | String | = | |
| Conversation-Credentials | sid | String | 해당 사항 없음 |
| account_sid | String | 해당 사항 없음 | |
| friendly_name | String | 해당 사항 없음 | |
| type | String | 해당 사항 없음 | |
| sandbox | String | 해당 사항 없음 | |
| date_created | 날짜시간 | N/A | |
| dated_updated | 날짜시간 | N/A | |
| url | String | 해당 사항 없음 | |
| certificate | String | 해당 사항 없음 | |
| private_key | String | 해당 사항 없음 | |
| api_key | String | 해당 사항 없음 | |
| secret | String | 해당 사항 없음 | |
| Conversations-ConversationService | sid | String | 해당 사항 없음 |
| account_sid | String | 해당 사항 없음 | |
| friendly_name | String | 해당 사항 없음 | |
| date_created | 날짜시간 | N/A | |
| date_updated | 날짜시간 | N/A | |
| url | String | 해당 사항 없음 | |
| links | 맵 | N/A |
분할 쿼리
분할을 지원하는 필드:
Twilio에서 DateTime 데이터 형식 필드는 필드 기반 분할을 지원합니다.
Spark에서 동시성을 활용하려는 경우 추가 Spark 옵션(PARTITION_FIELD, LOWER_BOUND, UPPER_BOUND, NUM_PARTITIONS)을 제공할 수 있습니다. 이러한 파라미터를 사용하면 Spark 작업에서 동시에 실행할 수 있는 NUM_PARTITIONS개의 하위 쿼리로 원래 쿼리가 분할됩니다.
PARTITION_FIELD: 쿼리 분할에 사용할 필드의 이름입니다.LOWER_BOUND: 선택한 파티션 필드의 하한 값(경계 포함).Datetime 필드의 경우 Spark SQL 쿼리에 사용된 Spark 타임스탬프 형식을 허용합니다.
유효한 값의 예제:
"2024-05-01T20:55:02.000Z"UPPER_BOUND: 선택한 파티션 필드의 상한 값(경계 제외).NUM_PARTITIONS: 파티션 수.
예시:
twilio_read = glueContext.create_dynamic_frame.from_options( connection_type="twilio", connection_options={ "connectionName": "connectionName", "ENTITY_NAME": "sms-message", "API_VERSION": "2010-04-01", "PARTITION_FIELD": "date_sent" "LOWER_BOUND": "2024-05-01T20:55:02.000Z" "UPPER_BOUND": "2024-06-01T20:55:02.000Z" "NUM_PARTITIONS": "10" }