removeFlowVpcInterface method
Removes a VPC Interface from an existing flow. This request can be made only on a VPC interface that does not have a Source or Output associated with it. If the VPC interface is referenced by a Source or Output, you must first delete or update the Source or Output to no longer reference the VPC interface.
May throw BadRequestException. May throw InternalServerErrorException. May throw ForbiddenException. May throw NotFoundException. May throw ServiceUnavailableException. May throw TooManyRequestsException.
Parameter flowArn
:
The flow that you want to remove a VPC interface from.
Parameter vpcInterfaceName
:
The name of the VPC interface that you want to remove.
Implementation
Future<RemoveFlowVpcInterfaceResponse> removeFlowVpcInterface({
required String flowArn,
required String vpcInterfaceName,
}) async {
ArgumentError.checkNotNull(flowArn, 'flowArn');
ArgumentError.checkNotNull(vpcInterfaceName, 'vpcInterfaceName');
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/v1/flows/${Uri.encodeComponent(flowArn)}/vpcInterfaces/${Uri.encodeComponent(vpcInterfaceName)}',
exceptionFnMap: _exceptionFns,
);
return RemoveFlowVpcInterfaceResponse.fromJson(response);
}