

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# PathElement
<a name="API_PathElement"></a>

策略的 JSON 表示形式路径中的单个元素。

## 内容
<a name="API_PathElement_Contents"></a>

**重要**  
此数据类型为 UNION，因此在使用或返回时只能指定以下成员之一。

 ** index **   <a name="accessanalyzer-Type-PathElement-index"></a>
指的是 JSON 数组中的索引。  
类型：整数  
必需：否

 ** key **   <a name="accessanalyzer-Type-PathElement-key"></a>
指的是 JSON 对象中的密钥。  
类型：字符串  
必需：否

 ** substring **   <a name="accessanalyzer-Type-PathElement-substring"></a>
指的是 JSON 对象中文字字符串的子字符串。  
类型：[Substring](API_Substring.md) 对象  
必需：否

 ** value **   <a name="accessanalyzer-Type-PathElement-value"></a>
指与 JSON 对象中给定键关联的值。  
类型：字符串  
必需：否

## 另请参阅
<a name="API_PathElement_SeeAlso"></a>

有关以特定语言之一使用此 API 的更多信息 AWS SDKs，请参阅以下内容：
+  [AWS 适用于 C\$1\$1 的 SDK](https://docs.aws.amazon.com/goto/SdkForCpp/accessanalyzer-2019-11-01/PathElement) 
+  [AWS 适用于 Java 的 SDK V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/accessanalyzer-2019-11-01/PathElement) 
+  [AWS 适用于 Ruby V3 的 SDK](https://docs.aws.amazon.com/goto/SdkForRubyV3/accessanalyzer-2019-11-01/PathElement) 