选择您的 Cookie 首选项

我们使用必要 Cookie 和类似工具提供我们的网站和服务。我们使用性能 Cookie 收集匿名统计数据,以便我们可以了解客户如何使用我们的网站并进行改进。必要 Cookie 无法停用,但您可以单击“自定义”或“拒绝”来拒绝性能 Cookie。

如果您同意,AWS 和经批准的第三方还将使用 Cookie 提供有用的网站功能、记住您的首选项并显示相关内容,包括相关广告。要接受或拒绝所有非必要 Cookie,请单击“接受”或“拒绝”。要做出更详细的选择,请单击“自定义”。

DescribeIdentityIdFormat - Amazon Elastic Compute Cloud
此页面尚未翻译为您的语言。 请求翻译

DescribeIdentityIdFormat

Describes the ID format settings for resources for the specified IAM user, IAM role, or root user. For example, you can view the resource types that are enabled for longer IDs. This request only returns information about resource types whose ID formats can be modified; it does not return information about other resource types. For more information, see Resource IDs in the Amazon Elastic Compute Cloud User Guide.

The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

These settings apply to the principal specified in the request. They do not apply to the principal that makes the request.

Request Parameters

The following parameters are for this specific action. For more information about required and optional parameters that are common to all actions, see Common Query Parameters.

PrincipalArn

The ARN of the principal, which can be an IAM role, IAM user, or the root user.

Type: String

Required: Yes

Resource

The type of resource: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway

Type: String

Required: No

Response Elements

The following elements are returned by the service.

requestId

The ID of the request.

Type: String

statusSet

Information about the ID format for the resources.

Type: Array of IdFormat objects

Errors

For information about the errors that are common to all actions, see Common client error codes.

Examples

Example

This example describes the ID format for the IAM role 'EC2Role'.

Sample Request

https://ec2.amazonaws.com/?Action=DescribeIdentityIdFormat &PrincipalArn=arn:aws:iam::123456789012:role/EC2Role &AUTHPARAMS

Sample Response

<DescribeIdentityIdFormatResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/"> <requestId>7a62c49f-347e-4fc4-9331-6e8eEXAMPLE</requestId> <statusSet> <item> <useLongIds>true</useLongIds> <deadline>2016-12-15T12:00:00Z</deadline> <resource>reservation</resource> </item> <item> <useLongIds>true</useLongIds> <deadline>2016-12-15T12:00:00Z</deadline> <resource>instance</resource> </item> <item> <useLongIds>true</useLongIds> <deadline>2016-12-15T12:00:00Z</deadline> <resource>volume</resource> </item> <item> <useLongIds>true</useLongIds> <deadline>2016-12-15T12:00:00Z</deadline> <resource>snapshot</resource> </item> <item> <useLongIds>true</useLongIds> <resource>network-interface-attachment</resource> </item> <item> <useLongIds>true</useLongIds> <resource>network-interface</resource> </item> <item> <useLongIds>true</useLongIds> <resource>elastic-ip-allocation</resource> </item> <item> <useLongIds>true</useLongIds> <resource>elastic-ip-association</resource> </item> <item> <useLongIds>true</useLongIds> <resource>vpc</resource> </item> <item> <useLongIds>true</useLongIds> <resource>subnet</resource> </item> <item> <useLongIds>true</useLongIds> <resource>route-table</resource> </item> <item> <useLongIds>true</useLongIds> <resource>route-table-association</resource> </item> <item> <useLongIds>true</useLongIds> <resource>network-acl</resource> </item> <item> <useLongIds>true</useLongIds> <resource>network-acl-association</resource> </item> <item> <useLongIds>true</useLongIds> <resource>dhcp-options</resource> </item> <item> <useLongIds>true</useLongIds> <resource>internet-gateway</resource> </item> <item> <useLongIds>false</useLongIds> <resource>vpc-cidr-block-association</resource> </item> <item> <useLongIds>false</useLongIds> <resource>vpc-ipv6-cidr-block-association</resource> </item> <item> <useLongIds>true</useLongIds> <resource>subnet-ipv6-cidr-block-association</resource> </item> <item> <useLongIds>false</useLongIds> <resource>vpc-peering-connection</resource> </item> <item> <useLongIds>true</useLongIds> <resource>security-group</resource> </item> <item> <useLongIds>true</useLongIds> <resource>flow-log</resource> </item> <item> <useLongIds>true</useLongIds> <resource>customer-gateway</resource> </item> <item> <useLongIds>true</useLongIds> <resource>vpc-endpoint</resource> </item> <item> <useLongIds>true</useLongIds> <resource>vpn-connection</resource> </item> <item> <useLongIds>true</useLongIds> <resource>vpn-gateway</resource> </item> </statusSet> </DescribeIdentityIdFormatResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

隐私网站条款Cookie 首选项
© 2025, Amazon Web Services, Inc. 或其附属公司。保留所有权利。