revokeVpcEndpointAccess method

Future<void> revokeVpcEndpointAccess({
  1. required String account,
  2. required String domainName,
})

Revokes access to an Amazon OpenSearch Service domain that was provided through an interface VPC endpoint.

May throw BaseException. May throw DisabledOperationException. May throw InternalException. May throw ResourceNotFoundException. May throw ValidationException.

Parameter account : The account ID to revoke access from.

Parameter domainName : The name of the OpenSearch Service domain.

Implementation

Future<void> revokeVpcEndpointAccess({
  required String account,
  required String domainName,
}) async {
  final $payload = <String, dynamic>{
    'Account': account,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri:
        '/2015-01-01/es/domain/${Uri.encodeComponent(domainName)}/revokeVpcEndpointAccess',
    exceptionFnMap: _exceptionFns,
  );
}