update_project
async
¶
update_project(
project_arn: ProjectArn,
*,
config_overrides: Optional[AsyncTextractClientConfig] = None,
project_description: Optional[ProjectDescription] = None,
extraction_configuration: Optional[ExtractionConfiguration] = None,
generative_configuration: Optional[GenerativeConfiguration] = None,
custom_configuration: Optional[CustomConfiguration] = None,
splitter_configuration: Optional[SplitterConfiguration] = None,
sensitive_data_configuration: Optional[SensitiveDataConfiguration] = None,
encryption_configuration: Optional[EncryptionConfiguration] = None,
) -> UpdateProjectResponse
Updates the configuration of an existing project. If you omit a configuration, UpdateProject leaves it unchanged. A configuration that you supply replaces the stored one, so include every setting that you want to keep.
Parameters:
-
project_arn(ProjectArn) –The Amazon Resource Name (ARN) of the project to update.
-
project_description(Optional[ProjectDescription], default:None) –The updated description of the project.
-
extraction_configuration(Optional[ExtractionConfiguration], default:None) –The configuration that controls how Amazon Textract extracts content from the document, including bounding boxes, granularity, and output format. Replaces the stored extraction configuration.
-
generative_configuration(Optional[GenerativeConfiguration], default:None) –The configuration that controls generative capabilities such as summarization and figure captioning. Replaces the stored generative configuration, so a capability that you omit is turned off.
-
custom_configuration(Optional[CustomConfiguration], default:None) –The configuration that associates blueprints with the project for custom output extraction. Replaces the stored custom configuration. To disable custom configuration, specify an empty
Blueprintslist. -
splitter_configuration(Optional[SplitterConfiguration], default:None) –The configuration that controls whether multi-document packets are split into individual documents. Replaces the stored splitter configuration.
-
sensitive_data_configuration(Optional[SensitiveDataConfiguration], default:None) –The configuration that controls detection and redaction of sensitive data, such as personally identifiable information (PII). Replaces the stored sensitive data configuration. To turn off detection, set
DetectionModetoDISABLED. -
encryption_configuration(Optional[EncryptionConfiguration], default:None) –The AWS KMS encryption configuration used to encrypt the project at rest.
Raises:
-
AccessDeniedException–You aren't authorized to perform the action. Use the Amazon Resource Name (ARN) of an authorized user or IAM role to perform the operation.
-
ConflictException–Updating or deleting a resource can cause an inconsistent state.
-
InternalServerError–Amazon Textract experienced a service issue. Try your call again.
-
InvalidParameterException–An input parameter violated a constraint. For example, in synchronous operations, an
InvalidParameterExceptionexception occurs when neither of theS3ObjectorBytesvalues are supplied in theDocumentrequest parameter. Validate your parameter before calling the API operation again. -
LimitExceededException–An Amazon Textract service limit was exceeded. For example, if you start too many asynchronous jobs concurrently, calls to start operations (
StartDocumentTextDetection, for example) raise a LimitExceededException exception (HTTP status code: 400) until the number of concurrently running jobs is below the Amazon Textract service limit. -
ProvisionedThroughputExceededException–The number of requests exceeded your throughput limit. If you want to increase this limit, contact Amazon Textract.
-
ResourceNotFoundException–Returned when an operation tried to access a nonexistent resource.
-
ValidationException–Indicates that a request was not valid. Check request for proper formatting.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_textract/_services/async_textract.py
3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 | |