update_data_source
¶
update_data_source(
knowledge_base_id: Id,
data_source_id: Id,
name: Name,
data_source_configuration: DataSourceConfiguration,
*,
config_overrides: Optional[BedrockAgentClientConfig] = None,
description: Optional[Description] = None,
data_deletion_policy: Optional[DataDeletionPolicy] = None,
server_side_encryption_configuration: Optional[
ServerSideEncryptionConfiguration
] = None,
vector_ingestion_configuration: Optional[VectorIngestionConfiguration] = None,
) -> UpdateDataSourceResponse
Updates the configurations for a data source connector.
You can't change the chunkingConfiguration after you create the data source connector. Specify the existing chunkingConfiguration.
Parameters:
-
knowledge_base_id(Id) –The unique identifier of the knowledge base for the data source.
-
data_source_id(Id) –The unique identifier of the data source.
-
name(Name) –Specifies a new name for the data source.
-
description(Optional[Description], default:None) –Specifies a new description for the data source.
-
data_source_configuration(DataSourceConfiguration) –The connection configuration for the data source that you want to update.
-
data_deletion_policy(Optional[DataDeletionPolicy], default:None) –The data deletion policy for the data source that you want to update.
-
server_side_encryption_configuration(Optional[ServerSideEncryptionConfiguration], default:None) –Contains details about server-side encryption of the data source.
-
vector_ingestion_configuration(Optional[VectorIngestionConfiguration], default:None) –Contains details about how to ingest the documents in the data source.
Raises:
-
AccessDeniedException–The request is denied because of missing access permissions.
-
ConflictException–There was a conflict performing an operation.
-
InternalServerException–An internal server error occurred. Retry your request.
-
ResourceNotFoundException–The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
-
ThrottlingException–The number of requests exceeds the limit. Resubmit your request later.
-
ValidationException–Input validation failed. Check your request parameters and retry the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock_agent/_services/bedrock_agent.py
3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 | |