

# PathSegment

One segment of a resource hierarchy path: the hierarchy `level`, such as `database` or `table`, and the `id` of the resource at that level. Both are required.

In a `GLUE_DATA_CATALOG` connection's scope, the level `glueService` names a service instead of a resource. Its `id` is one of the following:
+  `GLUE` - AWS Glue databases and tables.
+  `SAGEMAKER_AI` - Amazon SageMaker AI resources.
+  `REDSHIFT` - Amazon Redshift resources.
+  `RDS` - Amazon RDS resources.
+  `MSK` - Amazon Managed Streaming for Apache Kafka (Amazon MSK) resources.
+  `KINESIS` - Amazon Kinesis Data Streams resources.
+  `FIREHOSE` - Amazon Data Firehose resources.
+  `DYNAMODB` - Amazon DynamoDB resources.
+  `KEYSPACES` - Amazon Keyspaces (for Apache Cassandra) resources.
+  `ELASTICACHE` - Amazon ElastiCache resources.
+  `OPENSEARCH` - Amazon OpenSearch Service resources.
+  `NEPTUNE` - Amazon Neptune resources.
+  `TIMESTREAM` - Amazon Timestream resources.
+  `ATHENA` - Amazon Athena resources.
+  `GLUE_SCHEMA_REGISTRY` - AWS Glue Schema Registry resources.
+  `S3` - Amazon S3 resources.
+  `S3_VECTORS` - Amazon S3 Vectors resources.

Every later segment of the selector must name a level of that service. Any other value, a second `glueService` segment, or a `glueService` segment in any other position returns `ValidationException`. A resource path never contains `glueService`.

## Contents
<a name="API_PathSegment_Contents"></a>

 ** id **   <a name="context-Type-PathSegment-id"></a>
The ID of the resource at this level. Non-blank. Can contain spaces, backticks, and `%` (it is a resource name), but no control characters. AWS Context matches it exactly.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 1024.  
Pattern: `[^\p{Cc}\p{Zl}\p{Zp}]+`   
Required: Yes

 ** level **   <a name="context-Type-PathSegment-level"></a>
The hierarchy level name for this segment (for example, "database", "table"). Non-blank, no whitespace.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 1024.  
Pattern: `[^\s`]+`   
Required: Yes

## See Also
<a name="API_PathSegment_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/context-2022-07-26/PathSegment) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/context-2022-07-26/PathSegment) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/context-2022-07-26/PathSegment) 