AWS Tools for Windows PowerShell
Command Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Synopsis

Calls the Amazon Kendra CreateDataSource API operation.

Syntax

New-KNDRDataSource
-Name <String>
-CustomDocumentEnrichmentConfiguration_PostExtractionHookConfiguration_InvocationCondition_ConditionDocumentAttributeKey <String>
-CustomDocumentEnrichmentConfiguration_PreExtractionHookConfiguration_InvocationCondition_ConditionDocumentAttributeKey <String>
-Configuration <DataSourceConfiguration>
-CustomDocumentEnrichmentConfiguration_PostExtractionHookConfiguration_InvocationCondition_ConditionOnValue_DateValue <DateTime>
-CustomDocumentEnrichmentConfiguration_PreExtractionHookConfiguration_InvocationCondition_ConditionOnValue_DateValue <DateTime>
-Description <String>
-IndexId <String>
-CustomDocumentEnrichmentConfiguration_InlineConfiguration <InlineCustomDocumentEnrichmentConfiguration[]>
-PostExtractionHookConfiguration_LambdaArn <String>
-PreExtractionHookConfiguration_LambdaArn <String>
-LanguageCode <String>
-CustomDocumentEnrichmentConfiguration_PostExtractionHookConfiguration_InvocationCondition_ConditionOnValue_LongValue <Int64>
-CustomDocumentEnrichmentConfiguration_PreExtractionHookConfiguration_InvocationCondition_ConditionOnValue_LongValue <Int64>
-CustomDocumentEnrichmentConfiguration_PostExtractionHookConfiguration_InvocationCondition_Operator <ConditionOperator>
-CustomDocumentEnrichmentConfiguration_PreExtractionHookConfiguration_InvocationCondition_Operator <ConditionOperator>
-CustomDocumentEnrichmentConfiguration_RoleArn <String>
-RoleArn <String>
-PostExtractionHookConfiguration_S3Bucket <String>
-PreExtractionHookConfiguration_S3Bucket <String>
-Schedule <String>
-VpcConfiguration_SecurityGroupId <String[]>
-CustomDocumentEnrichmentConfiguration_PostExtractionHookConfiguration_InvocationCondition_ConditionOnValue_StringListValue <String[]>
-CustomDocumentEnrichmentConfiguration_PreExtractionHookConfiguration_InvocationCondition_ConditionOnValue_StringListValue <String[]>
-CustomDocumentEnrichmentConfiguration_PostExtractionHookConfiguration_InvocationCondition_ConditionOnValue_StringValue <String>
-CustomDocumentEnrichmentConfiguration_PreExtractionHookConfiguration_InvocationCondition_ConditionOnValue_StringValue <String>
-VpcConfiguration_SubnetId <String[]>
-Tag <Tag[]>
-Type <DataSourceType>
-ClientToken <String>
-Select <String>
-PassThru <SwitchParameter>
-Force <SwitchParameter>
-ClientConfig <AmazonKendraConfig>

Description

Creates a data source connector that you want to use with an Amazon Kendra index. You specify a name, data source connector type and description for your data source. You also specify configuration information for the data source connector. CreateDataSource is a synchronous operation. The operation returns 200 if the data source was successfully created. Otherwise, an exception is raised. For an example of creating an index and data source using the Python SDK, see Getting started with Python SDK. For an example of creating an index and data source using the Java SDK, see Getting started with Java SDK.

Parameters

-ClientConfig <AmazonKendraConfig>
Amazon.PowerShell.Cmdlets.KNDR.AmazonKendraClientCmdlet.ClientConfig
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-ClientToken <String>
A token that you provide to identify the request to create a data source connector. Multiple calls to the CreateDataSource API with the same client token will create only one data source connector.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration <DataSourceConfiguration>
Configuration information to connect to your data source repository.You can't specify the Configuration parameter when the Type parameter is set to CUSTOM. If you do, you receive a ValidationException exception.The Configuration parameter is required for all other data sources.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-CustomDocumentEnrichmentConfiguration_InlineConfiguration <InlineCustomDocumentEnrichmentConfiguration[]>
Configuration information to alter document attributes or metadata fields and content when ingesting documents into Amazon Kendra.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesCustomDocumentEnrichmentConfiguration_InlineConfigurations
-CustomDocumentEnrichmentConfiguration_PostExtractionHookConfiguration_InvocationCondition_ConditionDocumentAttributeKey <String>
The identifier of the document attribute used for the condition.For example, 'Source_URI' could be an identifier for the attribute or metadata field that contains source URIs associated with the documents.Amazon Kendra currently does not support _document_body as an attribute key used for the condition.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesPostExtractionHookConfiguration_InvocationCondition_ConditionDocumentAttributeKey
-CustomDocumentEnrichmentConfiguration_PostExtractionHookConfiguration_InvocationCondition_ConditionOnValue_DateValue <DateTime>
A date expressed as an ISO 8601 string.It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesPostExtractionHookConfiguration_InvocationCondition_ConditionOnValue_DateValue
-CustomDocumentEnrichmentConfiguration_PostExtractionHookConfiguration_InvocationCondition_ConditionOnValue_LongValue <Int64>
A long integer value.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesPostExtractionHookConfiguration_InvocationCondition_ConditionOnValue_LongValue
-CustomDocumentEnrichmentConfiguration_PostExtractionHookConfiguration_InvocationCondition_ConditionOnValue_StringListValue <String[]>
A list of strings. The default maximum length or number of strings is 10.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesPostExtractionHookConfiguration_InvocationCondition_ConditionOnValue_StringListValue
-CustomDocumentEnrichmentConfiguration_PostExtractionHookConfiguration_InvocationCondition_ConditionOnValue_StringValue <String>
A string, such as "department".
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesPostExtractionHookConfiguration_InvocationCondition_ConditionOnValue_StringValue
-CustomDocumentEnrichmentConfiguration_PostExtractionHookConfiguration_InvocationCondition_Operator <ConditionOperator>
The condition operator.For example, you can use 'Contains' to partially match a string.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesPostExtractionHookConfiguration_InvocationCondition_Operator
-CustomDocumentEnrichmentConfiguration_PreExtractionHookConfiguration_InvocationCondition_ConditionDocumentAttributeKey <String>
The identifier of the document attribute used for the condition.For example, 'Source_URI' could be an identifier for the attribute or metadata field that contains source URIs associated with the documents.Amazon Kendra currently does not support _document_body as an attribute key used for the condition.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesPreExtractionHookConfiguration_InvocationCondition_ConditionDocumentAttributeKey
-CustomDocumentEnrichmentConfiguration_PreExtractionHookConfiguration_InvocationCondition_ConditionOnValue_DateValue <DateTime>
A date expressed as an ISO 8601 string.It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesPreExtractionHookConfiguration_InvocationCondition_ConditionOnValue_DateValue
-CustomDocumentEnrichmentConfiguration_PreExtractionHookConfiguration_InvocationCondition_ConditionOnValue_LongValue <Int64>
A long integer value.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesPreExtractionHookConfiguration_InvocationCondition_ConditionOnValue_LongValue
-CustomDocumentEnrichmentConfiguration_PreExtractionHookConfiguration_InvocationCondition_ConditionOnValue_StringListValue <String[]>
A list of strings. The default maximum length or number of strings is 10.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesPreExtractionHookConfiguration_InvocationCondition_ConditionOnValue_StringListValue
-CustomDocumentEnrichmentConfiguration_PreExtractionHookConfiguration_InvocationCondition_ConditionOnValue_StringValue <String>
A string, such as "department".
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesPreExtractionHookConfiguration_InvocationCondition_ConditionOnValue_StringValue
-CustomDocumentEnrichmentConfiguration_PreExtractionHookConfiguration_InvocationCondition_Operator <ConditionOperator>
The condition operator.For example, you can use 'Contains' to partially match a string.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesPreExtractionHookConfiguration_InvocationCondition_Operator
-CustomDocumentEnrichmentConfiguration_RoleArn <String>
The Amazon Resource Name (ARN) of a role with permission to run PreExtractionHookConfiguration and PostExtractionHookConfiguration for altering document metadata and content during the document ingestion process. For more information, see IAM roles for Amazon Kendra.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Description <String>
A description for the data source connector.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
This parameter overrides confirmation prompts to force the cmdlet to continue its operation. This parameter should always be used with caution.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-IndexId <String>
The identifier of the index you want to use with the data source connector.
Required?True
Position?Named
Accept pipeline input?True (ByPropertyName)
-LanguageCode <String>
The code for a language. This allows you to support a language for all documents when creating the data source connector. English is supported by default. For more information on supported languages, including their codes, see Adding documents in languages other than English.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Name <String>
A name for the data source connector.
Required?True
Position?1
Accept pipeline input?True (ByValue, ByPropertyName)
-PassThru <SwitchParameter>
Changes the cmdlet behavior to return the value passed to the Name parameter. The -PassThru parameter is deprecated, use -Select '^Name' instead. This parameter will be removed in a future version.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-PostExtractionHookConfiguration_LambdaArn <String>
The Amazon Resource Name (ARN) of a role with permission to run a Lambda function during ingestion. For more information, see IAM roles for Amazon Kendra.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesCustomDocumentEnrichmentConfiguration_PostExtractionHookConfiguration_LambdaArn
-PostExtractionHookConfiguration_S3Bucket <String>
Stores the original, raw documents or the structured, parsed documents before and after altering them. For more information, see Data contracts for Lambda functions.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesCustomDocumentEnrichmentConfiguration_PostExtractionHookConfiguration_S3Bucket
-PreExtractionHookConfiguration_LambdaArn <String>
The Amazon Resource Name (ARN) of a role with permission to run a Lambda function during ingestion. For more information, see IAM roles for Amazon Kendra.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesCustomDocumentEnrichmentConfiguration_PreExtractionHookConfiguration_LambdaArn
-PreExtractionHookConfiguration_S3Bucket <String>
Stores the original, raw documents or the structured, parsed documents before and after altering them. For more information, see Data contracts for Lambda functions.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesCustomDocumentEnrichmentConfiguration_PreExtractionHookConfiguration_S3Bucket
-RoleArn <String>
The Amazon Resource Name (ARN) of an IAM role with permission to access the data source and required resources. For more information, see IAM access roles for Amazon Kendra..You can't specify the RoleArn parameter when the Type parameter is set to CUSTOM. If you do, you receive a ValidationException exception.The RoleArn parameter is required for all other data sources.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Schedule <String>
Sets the frequency for Amazon Kendra to check the documents in your data source repository and update the index. If you don't set a schedule Amazon Kendra will not periodically update the index. You can call the StartDataSourceSyncJob API to update the index.Specify a cron- format schedule string or an empty string to indicate that the index is updated on demand.You can't specify the Schedule parameter when the Type parameter is set to CUSTOM. If you do, you receive a ValidationException exception.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Select <String>
Use the -Select parameter to control the cmdlet output. The default value is 'Id'. Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.Kendra.Model.CreateDataSourceResponse). Specifying the name of a property of type Amazon.Kendra.Model.CreateDataSourceResponse will result in that property being returned. Specifying -Select '^ParameterName' will result in the cmdlet returning the selected cmdlet parameter value.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Tag <Tag[]>
A list of key-value pairs that identify or categorize the data source connector. You can also use tags to help control access to the data source connector. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesTags
The type of data source repository. For example, SHAREPOINT.
Required?True
Position?Named
Accept pipeline input?True (ByPropertyName)
-VpcConfiguration_SecurityGroupId <String[]>
A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Kendra to connect to the data source.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesVpcConfiguration_SecurityGroupIds
-VpcConfiguration_SubnetId <String[]>
A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesVpcConfiguration_SubnetIds

Common Credential and Region Parameters

-AccessKey <String>
The AWS access key for the user account. This can be a temporary access key if the corresponding session token is supplied to the -SessionToken parameter.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAK
-Credential <AWSCredentials>
An AWSCredentials object instance containing access and secret key information, and optionally a token for session-based credentials.
Required?False
Position?Named
Accept pipeline input?True (ByValue, ByPropertyName)
-EndpointUrl <String>
The endpoint to make the call against.Note: This parameter is primarily for internal AWS use and is not required/should not be specified for normal usage. The cmdlets normally determine which endpoint to call based on the region specified to the -Region parameter or set as default in the shell (via Set-DefaultAWSRegion). Only specify this parameter if you must direct the call to a specific custom endpoint.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-NetworkCredential <PSCredential>
Used with SAML-based authentication when ProfileName references a SAML role profile. Contains the network credentials to be supplied during authentication with the configured identity provider's endpoint. This parameter is not required if the user's default network identity can or should be used during authentication.
Required?False
Position?Named
Accept pipeline input?True (ByValue, ByPropertyName)
-ProfileLocation <String>
Used to specify the name and location of the ini-format credential file (shared with the AWS CLI and other AWS SDKs)If this optional parameter is omitted this cmdlet will search the encrypted credential file used by the AWS SDK for .NET and AWS Toolkit for Visual Studio first. If the profile is not found then the cmdlet will search in the ini-format credential file at the default location: (user's home directory)\.aws\credentials.If this parameter is specified then this cmdlet will only search the ini-format credential file at the location given.As the current folder can vary in a shell or during script execution it is advised that you use specify a fully qualified path instead of a relative path.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAWSProfilesLocation, ProfilesLocation
-ProfileName <String>
The user-defined name of an AWS credentials or SAML-based role profile containing credential information. The profile is expected to be found in the secure credential file shared with the AWS SDK for .NET and AWS Toolkit for Visual Studio. You can also specify the name of a profile stored in the .ini-format credential file used with the AWS CLI and other AWS SDKs.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesStoredCredentials, AWSProfileName
-Region <Object>
The system name of an AWS region or an AWSRegion instance. This governs the endpoint that will be used when calling service operations. Note that the AWS resources referenced in a call are usually region-specific.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesRegionToCall
-SecretKey <String>
The AWS secret key for the user account. This can be a temporary secret key if the corresponding session token is supplied to the -SessionToken parameter.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSK, SecretAccessKey
-SessionToken <String>
The session token if the access and secret keys are temporary session-based credentials.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesST

Outputs

This cmdlet returns a System.String object. The service call response (type Amazon.Kendra.Model.CreateDataSourceResponse) can also be referenced from properties attached to the cmdlet entry in the $AWSHistory stack.

Supported Version

AWS Tools for PowerShell: 2.x.y.z