deleteElasticsearchServiceRole method

Future<void> deleteElasticsearchServiceRole()

Deletes the service-linked role that Elasticsearch Service uses to manage and maintain VPC domains. Role deletion will fail if any existing VPC domains use the role. You must delete any such Elasticsearch domains before deleting the role. See Deleting Elasticsearch Service Role in VPC Endpoints for Amazon Elasticsearch Service Domains.

May throw BaseException. May throw InternalException. May throw ValidationException.

Implementation

Future<void> deleteElasticsearchServiceRole() async {
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/2015-01-01/es/role',
    exceptionFnMap: _exceptionFns,
  );
}