deletePolicy method

Future<DeletePolicyResponse> deletePolicy({
  1. required String policyArn,
})

Deletes a resilience policy.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ValidationException.

Implementation

Future<DeletePolicyResponse> deletePolicy({
  required String policyArn,
}) async {
  final $payload = <String, dynamic>{
    'policyArn': policyArn,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/v2/delete-policy',
    exceptionFnMap: _exceptionFns,
  );
  return DeletePolicyResponse.fromJson(response);
}