

# DataSourceScope

The part of the data source that a connection ingests, as a list of resource selectors. If you omit it or the list is empty, the connection ingests the whole data source.

For a `GLUE_DATA_CATALOG` connection, a selector can name the service whose resources it selects with a `glueService` segment, placed directly after the `glueCatalog` segment, or first if the selector names no `glueCatalog`. For example, `[{glueCatalog: C}, {glueService: SAGEMAKER_AI}]` selects every SageMaker AI resource in catalog `C`, including resources created later, and `[{glueCatalog: C}, {glueService: REDSHIFT}, {redshiftNamespace: N}]` selects only namespace `N`. A selector without `glueService` keeps its usual meaning, and one scope can combine selectors for different services. For the segment values, see `PathSegment`.

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

 ** selectors **   <a name="context-Type-DataSourceScope-selectors"></a>
The selectors describing which parts of the data source are in scope.  
Type: Array of [ResourceSelector](API_ResourceSelector.md) objects  
Array Members: Minimum number of 0 items. Maximum number of 100 items.  
Required: No

## See Also
<a name="API_DataSourceScope_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/DataSourceScope) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/context-2022-07-26/DataSourceScope) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/context-2022-07-26/DataSourceScope) 