Gets information about an existing Amazon Q Business data source connector.
See also: AWS API Documentation
get-data-source
uses document type values. Document types follow the JSON data model where valid values are: strings, numbers, booleans, null, arrays, and objects. For command input, options and nested parameters that are labeled with the type document
must be provided as JSON. Shorthand syntax does not support document types.
get-data-source
--application-id <value>
--index-id <value>
--data-source-id <value>
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]
[--cli-binary-format <value>]
[--no-cli-pager]
[--cli-auto-prompt]
[--no-cli-auto-prompt]
--application-id
(string)
The identifier of the Amazon Q Business application.
--index-id
(string)
The identfier of the index used with the data source connector.
--data-source-id
(string)
The identifier of the data source connector.
--cli-input-json
| --cli-input-yaml
(string)
Reads arguments from the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton
. If other arguments are provided on the command line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally. This may not be specified along with --cli-input-yaml
.
--generate-cli-skeleton
(string)
Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input
, prints a sample input JSON that can be used as an argument for --cli-input-json
. Similarly, if provided yaml-input
it will print a sample input YAML that can be used with --cli-input-yaml
. If provided with the value output
, it validates the command inputs and returns a sample output JSON for that command. The generated JSON skeleton is not stable between versions of the AWS CLI and there are no backwards compatibility guarantees in the JSON skeleton generated.
--debug
(boolean)
Turn on debug logging.
--endpoint-url
(string)
Override command’s default URL with the given URL.
--no-verify-ssl
(boolean)
By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.
--no-paginate
(boolean)
Disable automatic pagination. If automatic pagination is disabled, the AWS CLI will only make one call, for the first page of results.
--output
(string)
The formatting style for command output.
--query
(string)
A JMESPath query to use in filtering the response data.
--profile
(string)
Use a specific profile from your credential file.
--region
(string)
The region to use. Overrides config/env settings.
--version
(string)
Display the version of this tool.
--color
(string)
Turn on/off color output.
--no-sign-request
(boolean)
Do not sign requests. Credentials will not be loaded if this argument is provided.
--ca-bundle
(string)
The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.
--cli-read-timeout
(int)
The maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not timeout. The default value is 60 seconds.
--cli-connect-timeout
(int)
The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout. The default value is 60 seconds.
--cli-binary-format
(string)
The formatting style to be used for binary blobs. The default format is base64. The base64 format expects binary blobs to be provided as a base64 encoded string. The raw-in-base64-out format preserves compatibility with AWS CLI V1 behavior and binary values must be passed literally. When providing contents from a file that map to a binary blob fileb://
will always be treated as binary and use the file contents directly regardless of the cli-binary-format
setting. When using file://
the file contents will need to properly formatted for the configured cli-binary-format
.
--no-cli-pager
(boolean)
Disable cli pager for output.
--cli-auto-prompt
(boolean)
Automatically prompt for CLI input parameters.
--no-cli-auto-prompt
(boolean)
Disable automatically prompt for CLI input parameters.
applicationId -> (string)
The identifier of the Amazon Q Business application.
indexId -> (string)
The identifier of the index linked to the data source connector.
dataSourceId -> (string)
The identifier of the data source connector.
dataSourceArn -> (string)
The Amazon Resource Name (ARN) of the data source.
displayName -> (string)
The name for the data source connector.
type -> (string)
The type of the data source connector. For example,S3
.
configuration -> (document)
The details of how the data source connector is configured.
vpcConfiguration -> (structure)
Configuration information for an Amazon VPC (Virtual Private Cloud) to connect to your data source.
subnetIds -> (list)
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.
(string)
securityGroupIds -> (list)
A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Q Business to connect to the data source.
(string)
createdAt -> (timestamp)
The Unix timestamp when the data source connector was created.
updatedAt -> (timestamp)
The Unix timestamp when the data source connector was last updated.
description -> (string)
The description for the data source connector.
status -> (string)
The current status of the data source connector. When theStatus
field value isFAILED
, theErrorMessage
field contains a description of the error that caused the data source connector to fail.
syncSchedule -> (string)
The schedule for Amazon Q Business to update the index.
roleArn -> (string)
The Amazon Resource Name (ARN) of the role with permission to access the data source and required resources.
error -> (structure)
When the
Status
field value isFAILED
, theErrorMessage
field contains a description of the error that caused the data source connector to fail.errorMessage -> (string)
The message explaining the data source sync error.errorCode -> (string)
The code associated with the data source sync error.
documentEnrichmentConfiguration -> (structure)
Provides the configuration information for altering document metadata and content during the document ingestion process.
For more information, see Custom document enrichment .
inlineConfigurations -> (list)
Configuration information to alter document attributes or metadata fields and content when ingesting documents into Amazon Q Business.
(structure)
Provides the configuration information for applying basic logic to alter document metadata and content when ingesting documents into Amazon Q Business.
To apply advanced logic, to go beyond what you can do with basic logic, see `
HookConfiguration
https://docs.aws.amazon.com/amazonq/latest/api-reference/API_HookConfiguration.html`__ .For more information, see Custom document enrichment .
condition -> (structure)
The condition used for the target document attribute or metadata field when ingesting documents into Amazon Q Business. You use this with `
DocumentAttributeTarget
https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeTarget.html`__ to apply the condition.For example, you can create the ‘Department’ target field and have it prefill department names associated with the documents based on information in the ‘Source_URI’ field. Set the condition that if the ‘Source_URI’ field contains ‘financial’ in its URI value, then prefill the target field ‘Department’ with the target value ‘Finance’ for the document.
Amazon Q Business can’t create a target field if it has not already been created as an index field. After you create your index field, you can create a document metadata field using
DocumentAttributeTarget
. Amazon Q Business then will map your newly created metadata field to your index field.key -> (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 Q Business currently doesn’t support
_document_body
as an attribute key used for the condition.operator -> (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 Q Business currently does not support
_document_body
as an attribute key used for the condition.value -> (tagged union structure)
The value of a document attribute. You can only provide one value for a document attribute.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:stringValue
,stringListValue
,longValue
,dateValue
.stringValue -> (string)
A string.stringListValue -> (list)
A list of strings.
(string)
longValue -> (long)
A long integer value.dateValue -> (timestamp)
A date expressed as an ISO 8601 string.
It’s 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.
target -> (structure)
The target document attribute or metadata field you want to alter when ingesting documents into Amazon Q Business.
For example, you can delete all customer identification numbers associated with the documents, stored in the document metadata field called ‘Customer_ID’ by setting the target key as ‘Customer_ID’ and the deletion flag to
TRUE
. This removes all customer ID values in the field ‘Customer_ID’. This would scrub personally identifiable information from each document’s metadata.Amazon Q Business can’t create a target field if it has not already been created as an index field. After you create your index field, you can create a document metadata field using `
DocumentAttributeTarget
https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeTarget.html`__ . Amazon Q Business will then map your newly created document attribute to your index field.You can also use this with `
DocumentAttributeCondition
https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeCondition.html`__ .key -> (string)
The identifier of the target document attribute or metadata field. For example, ‘Department’ could be an identifier for the target attribute or metadata field that includes the department names associated with the documents.value -> (tagged union structure)
The value of a document attribute. You can only provide one value for a document attribute.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:stringValue
,stringListValue
,longValue
,dateValue
.stringValue -> (string)
A string.stringListValue -> (list)
A list of strings.
(string)
longValue -> (long)
A long integer value.dateValue -> (timestamp)
A date expressed as an ISO 8601 string.
It’s 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.
attributeValueOperator -> (string)
TRUE
to delete the existing target value for your specified target attribute key. You cannot create a target value and set this toTRUE
.documentContentOperator -> (string)
TRUE
to delete content if the condition used for the target attribute is met.preExtractionHookConfiguration -> (structure)
Provides the configuration information for invoking a Lambda function in Lambda to alter document metadata and content when ingesting documents into Amazon Q Business.
You can configure your Lambda function using the
PreExtractionHookConfiguration
parameter if you want to apply advanced alterations on the original or raw documents.If you want to apply advanced alterations on the Amazon Q Business structured documents, you must configure your Lambda function using
PostExtractionHookConfiguration
.You can only invoke one Lambda function. However, this function can invoke other functions it requires.
For more information, see Custom document enrichment .
invocationCondition -> (structure)
The condition used for when a Lambda function should be invoked.
For example, you can specify a condition that if there are empty date-time values, then Amazon Q Business should invoke a function that inserts the current date-time.
key -> (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 Q Business currently doesn’t support
_document_body
as an attribute key used for the condition.operator -> (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 Q Business currently does not support
_document_body
as an attribute key used for the condition.value -> (tagged union structure)
The value of a document attribute. You can only provide one value for a document attribute.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:stringValue
,stringListValue
,longValue
,dateValue
.stringValue -> (string)
A string.stringListValue -> (list)
A list of strings.
(string)
longValue -> (long)
A long integer value.dateValue -> (timestamp)
A date expressed as an ISO 8601 string.
It’s 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.
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 Custom Document Enrichment (CDE) .s3BucketName -> (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 .roleArn -> (string)
The Amazon Resource Name (ARN) of a role with permission to runPreExtractionHookConfiguration
andPostExtractionHookConfiguration
for altering document metadata and content during the document ingestion process.postExtractionHookConfiguration -> (structure)
Provides the configuration information for invoking a Lambda function in Lambda to alter document metadata and content when ingesting documents into Amazon Q Business.
You can configure your Lambda function using the
PreExtractionHookConfiguration
parameter if you want to apply advanced alterations on the original or raw documents.If you want to apply advanced alterations on the Amazon Q Business structured documents, you must configure your Lambda function using
PostExtractionHookConfiguration
.You can only invoke one Lambda function. However, this function can invoke other functions it requires.
For more information, see Custom document enrichment .
invocationCondition -> (structure)
The condition used for when a Lambda function should be invoked.
For example, you can specify a condition that if there are empty date-time values, then Amazon Q Business should invoke a function that inserts the current date-time.
key -> (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 Q Business currently doesn’t support
_document_body
as an attribute key used for the condition.operator -> (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 Q Business currently does not support
_document_body
as an attribute key used for the condition.value -> (tagged union structure)
The value of a document attribute. You can only provide one value for a document attribute.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:stringValue
,stringListValue
,longValue
,dateValue
.stringValue -> (string)
A string.stringListValue -> (list)
A list of strings.
(string)
longValue -> (long)
A long integer value.dateValue -> (timestamp)
A date expressed as an ISO 8601 string.
It’s 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.
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 Custom Document Enrichment (CDE) .s3BucketName -> (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 .roleArn -> (string)
The Amazon Resource Name (ARN) of a role with permission to runPreExtractionHookConfiguration
andPostExtractionHookConfiguration
for altering document metadata and content during the document ingestion process.