addFlowVpcInterfaces method

Future<AddFlowVpcInterfacesResponse> addFlowVpcInterfaces({
  1. required String flowArn,
  2. required List<VpcInterfaceRequest> vpcInterfaces,
})

Adds VPC interfaces to flow

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 mutate.

Parameter vpcInterfaces : A list of VPC interfaces that you want to add.

Implementation

Future<AddFlowVpcInterfacesResponse> addFlowVpcInterfaces({
  required String flowArn,
  required List<VpcInterfaceRequest> vpcInterfaces,
}) async {
  ArgumentError.checkNotNull(flowArn, 'flowArn');
  ArgumentError.checkNotNull(vpcInterfaces, 'vpcInterfaces');
  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);
}