addFlowVpcInterfaces method
Adds VPC interfaces to a flow.
May throw BadRequestException.
May throw ForbiddenException.
May throw InternalServerErrorException.
May throw NotFoundException.
May throw ServiceUnavailableException.
May throw TooManyRequestsException.
Parameter flowArn :
The Amazon Resource Name (ARN) of the flow that you want to update.
Parameter vpcInterfaces :
A list of VPC interfaces that you want to add to the flow.
Implementation
Future<AddFlowVpcInterfacesResponse> addFlowVpcInterfaces({
required String flowArn,
required List<VpcInterfaceRequest> vpcInterfaces,
}) async {
final $payload = <String, dynamic>{
'vpcInterfaces': vpcInterfaces,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/v1/flows/${Uri.encodeComponent(flowArn)}/vpcInterfaces',
exceptionFnMap: _exceptionFns,
);
return AddFlowVpcInterfacesResponse.fromJson(response);
}