deleteVpcIngressConnection method

Future<DeleteVpcIngressConnectionResponse> deleteVpcIngressConnection({
  1. required String vpcIngressConnectionArn,
})

Delete an App Runner VPC Ingress Connection resource that's associated with an App Runner service. The VPC Ingress Connection must be in one of the following states to be deleted:

  • AVAILABLE
  • FAILED_CREATION
  • FAILED_UPDATE
  • FAILED_DELETION

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

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

Implementation

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

  return DeleteVpcIngressConnectionResponse.fromJson(jsonResponse.body);
}