HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //usr/lib/python3.6/site-packages/awscli/examples/connect/get-contact-attributes.rst
**To retrieve the attributes for a contact**

The following ``get-contact-attributes`` example retrieves the attributes that were set for the specified Amazon Connect contact. ::

    aws connect get-contact-attributes \
        --instance-id a1b2c3d4-5678-90ab-cdef-EXAMPLE11111 \
        --initial-contact-id 12345678-1111-2222-800e-a2b3c4d5f6g7

Output::

    {
        "Attributes": {
            "greetingPlayed": "true"
        }
    }

For more information, see `Use Amazon Connect Contact Attributes <https://docs.aws.amazon.com/connect/latest/adminguide/connect-contact-attributes.html>`__ in the *Amazon Connect Administrator Guide*.