updateEndpointAccess method
Updates an Amazon Redshift Serverless managed endpoint.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter endpointName :
The name of the VPC endpoint to update.
Parameter vpcSecurityGroupIds :
The list of VPC security groups associated with the endpoint after the
endpoint is modified.
Implementation
Future<UpdateEndpointAccessResponse> updateEndpointAccess({
required String endpointName,
List<String>? vpcSecurityGroupIds,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'RedshiftServerless.UpdateEndpointAccess'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'endpointName': endpointName,
if (vpcSecurityGroupIds != null)
'vpcSecurityGroupIds': vpcSecurityGroupIds,
},
);
return UpdateEndpointAccessResponse.fromJson(jsonResponse.body);
}