https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/awscli/examples/ec2/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/awscli/examples/ec2/describe-identity-id-format.rst
**To describe the ID format for an IAM role**

The following ``describe-identity-id-format`` example describes the ID format received by instances created by the IAM role ``EC2Role`` in your AWS account. ::

    aws ec2 describe-identity-id-format \
        --principal-arn arn:aws:iam::123456789012:role/my-iam-role \
        --resource instance

The following output indicates that instances created by this role receive IDs in long ID format. ::

    {
        "Statuses": [
            {
                "Deadline": "2016-12-15T00:00:00Z",
                "Resource": "instance",
                "UseLongIds": true
            }
        ]
    }

**To describe the ID format for an IAM user**

The following ``describe-identity-id-format`` example describes the ID format received by snapshots created by the IAM user ``AdminUser`` in your AWS account. ::

    aws ec2 describe-identity-id-format \
        --principal-arn arn:aws:iam::123456789012:user/AdminUser \
        --resource snapshot

The output indicates that snapshots created by this user receive IDs in long ID format. ::

    {
        "Statuses": [
            {
                "Deadline": "2016-12-15T00:00:00Z",
                "Resource": "snapshot",
                "UseLongIds": true
            }
        ]
    }

https://t.me/RX1948 - 2025