authorizeVpcEndpointAccess method

Future<AuthorizeVpcEndpointAccessResponse> authorizeVpcEndpointAccess({
  1. required String account,
  2. required String domainName,
})

Provides access to an Amazon OpenSearch Service domain through the use of an interface VPC endpoint.

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

Parameter account : The account ID to grant access to.

Parameter domainName : The name of the OpenSearch Service domain to provide access to.

Implementation

Future<AuthorizeVpcEndpointAccessResponse> authorizeVpcEndpointAccess({
  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)}/authorizeVpcEndpointAccess',
    exceptionFnMap: _exceptionFns,
  );
  return AuthorizeVpcEndpointAccessResponse.fromJson(response);
}