deleteIndex method
Deletes an existing Amazon Kendra index. An exception is not thrown if the
index is already being deleted. While the index is being deleted, the
Status
field returned by a call to the DescribeIndex
operation is set to DELETING
.
May throw ValidationException. May throw ConflictException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw AccessDeniedException. May throw InternalServerException.
Parameter id
:
The identifier of the index to delete.
Implementation
Future<void> deleteIndex({
required String id,
}) async {
ArgumentError.checkNotNull(id, 'id');
_s.validateStringLength(
'id',
id,
36,
36,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSKendraFrontendService.DeleteIndex'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Id': id,
},
);
}