updateVpcEndpoint method

Future<UpdateVpcEndpointResponse> updateVpcEndpoint({
  1. required String vpcEndpointId,
  2. required VPCOptions vpcOptions,
})

Modifies an Amazon OpenSearch Service-managed interface VPC endpoint.

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

Parameter vpcEndpointId : The unique identifier of the endpoint.

Parameter vpcOptions : The security groups and/or subnets to add, remove, or modify.

Implementation

Future<UpdateVpcEndpointResponse> updateVpcEndpoint({
  required String vpcEndpointId,
  required VPCOptions vpcOptions,
}) async {
  final $payload = <String, dynamic>{
    'VpcEndpointId': vpcEndpointId,
    'VpcOptions': vpcOptions,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/2021-01-01/opensearch/vpcEndpoints/update',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateVpcEndpointResponse.fromJson(response);
}