def METHOD_NAME(self, cpack_name):
    """
    Create custom controls for all managed AWS Config rules in a conformance pack.
    :param cpack_name: The name of the conformance pack to create controls for.
    :return: The list of custom control IDs.
    """
    try:
        rules_in_pack = self.config_client.describe_conformance_pack_compliance(
            ConformancePackName=cpack_name)
        print('Number of rules in the conformance pack: ',
              len(rules_in_pack.get('ConformancePackRuleComplianceList')))
        for rule in rules_in_pack.get('ConformancePackRuleComplianceList'):
            print(f"\t{rule.get('ConfigRuleName')}")
        print('-' * 88)
        print('Creating a custom control for each rule and a custom framework '
              'consisting of these rules in Audit Manager.')
        am_controls = []
        for rule in rules_in_pack.get('ConformancePackRuleComplianceList'):
            config_rule = self.config_client.describe_config_rules(
                ConfigRuleNames=[rule.get('ConfigRuleName')])
            source_id = config_rule.get('ConfigRules')[0].get('Source', {}).get(
                'SourceIdentifier')
            custom_control = self.auditmanager_client.create_control(
                name="Config-" + rule.get('ConfigRuleName'),
                controlMappingSources=[{
                    'sourceName': 'ConfigRule',
                    'sourceSetUpOption': 'System_Controls_Mapping',
                    'sourceType': 'AWS_Config',
                    'sourceKeyword': {
                        'keywordInputType': 'SELECT_FROM_LIST',
                        'keywordValue': source_id}}]).get('control', {})
            am_controls.append({'id': custom_control.get('id')})
        print('Successfully created a control for each config rule.')
        print('-' * 88)
    except ClientError:
        logger.exception("Failed to create custom controls.")
        raise
    else:
        return am_controls