HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-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*.