def del_acm_cert()

in functions/source/ConvertCertificate/lambda_function.py [0:0]


def del_acm_cert(cert_arn):
    try:
        response = acm.delete_certificate(
            CertificateArn=cert_arn
        )
        return response
    except ClientError as e:
        if e.response['Error']['Code'] == 'ResourceNotFoundException':
            response = e.response['Error']['Message']
            return response
        else:
            return e.response['Error']