deleteVpcConnector method

Future<DeleteVpcConnectorResponse> deleteVpcConnector({
  1. required String vpcConnectorArn,
})

Delete an App Runner VPC connector resource. You can't delete a connector that's used by one or more App Runner services.

May throw InternalServiceErrorException. May throw InvalidRequestException. May throw ResourceNotFoundException.

Parameter vpcConnectorArn : The Amazon Resource Name (ARN) of the App Runner VPC connector that you want to delete.

The ARN must be a full VPC connector ARN.

Implementation

Future<DeleteVpcConnectorResponse> deleteVpcConnector({
  required String vpcConnectorArn,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'AppRunner.DeleteVpcConnector'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'VpcConnectorArn': vpcConnectorArn,
    },
  );

  return DeleteVpcConnectorResponse.fromJson(jsonResponse.body);
}