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
1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 | |