update_adapter
async
¶
update_adapter(
adapter_id: AdapterId,
*,
config_overrides: Optional[AsyncTextractClientConfig] = None,
description: Optional[AdapterDescription] = None,
adapter_name: Optional[AdapterName] = None,
auto_update: Optional[AutoUpdate] = None,
) -> UpdateAdapterResponse
Update the configuration for an adapter. FeatureTypes configurations cannot be updated. At least one new parameter must be specified as an argument.
Parameters:
-
adapter_id(AdapterId) –A string containing a unique ID for the adapter that will be updated.
-
description(Optional[AdapterDescription], default:None) –The new description to be applied to the adapter.
-
adapter_name(Optional[AdapterName], default:None) –The new name to be applied to the adapter.
-
auto_update(Optional[AutoUpdate], default:None) –The new auto-update status to be applied to the adapter.
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. -
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.
-
ThrottlingException–Amazon Textract is temporarily unable to process the request. Try your call again.
-
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
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 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 | |