def METHOD_NAME(self, deployment_group_name, application_name):
    deployment_group = self.client_provider.code_deploy_client.get_deployment_group(
        applicationName=application_name, deploymentGroupName=deployment_group_name
    )
    return deployment_group["deploymentGroupInfo"]["deploymentConfigName"]