getEndpointAccess method
Returns information, such as the name, about a VPC endpoint.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter endpointName :
The name of the VPC endpoint to return information for.
Implementation
Future<GetEndpointAccessResponse> getEndpointAccess({
required String endpointName,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'RedshiftServerless.GetEndpointAccess'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'endpointName': endpointName,
},
);
return GetEndpointAccessResponse.fromJson(jsonResponse.body);
}