update_project
¶
update_project(
project_arn: ProjectArn,
*,
config_overrides: Optional[TextractClientConfig] = 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/textract.py
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 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 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 | |