update_data_source
async
¶
update_data_source(
knowledge_base_id: Id,
data_source_id: Id,
name: Name,
data_source_configuration: DataSourceConfiguration,
*,
config_overrides: Optional[AsyncBedrockAgentClientConfig] = 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/async_bedrock_agent.py
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 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 | |