<!-- Love localstack? Please consider supporting our collective:
👉  https://opencollective.com/localstack/donate -->

# Type of request: This is a ...

[ ] bug report
[x] feature request

# Detailed description
* Define a lambda function in a CDK stack (e.g. "TestStack"), giving it a descriptive ID value (e.g. "DescriptiveName")
* Deploy the CDK template (`cdklocal deploy`)
* Check the function's name in the dashboard

## Expected behavior
Function's name includes its CDK stack ID. For example, deploying the template to AWS will produce a function name of the form `<StackName>-<FunctionID><mishmash>` (e.g. TestStack-DescriptiveName8C62FF46-hXye7CyPgrc7)

## Actual behavior
Function's name has the form `<StackName>-lambda-<mishmash>` (e.g. TestStack-lambda-cb0e840d), making it more difficult to use in the localstack dashboard when there are several lambdas.

# Steps to reproduce
See detailed description

## Command used to start LocalStack
`LOCALSTACK_API_KEY=... localstack start`

## Client code (AWS SDK code snippet, or sequence of "awslocal" commands)
(none)
pol_name = policy.get("PolicyName")
            doc = dict(policy["PolicyDocument"])
            doc["Version"] = doc.get("Version") or IAM_POLICY_VERSION
            statements = (
                doc["Statement"] if isinstance(doc["Statement"], list) else [doc["Statement"]]
            )
            for statement in statements:
                if isinstance(statement.get("Resource"), list):
                    
                    statement["Resource"] = [r for r in statement["Resource"] if r]
            doc = json.dumps(doc)
            LOG.debug(
                "Running put_role_policy(...) for IAM::Role policy: %s %s %s"
                % (resource_props["RoleName"], pol_name, doc)
            )
            iam.put_role_policy(
                RoleName=resource_props["RoleName"],
                PolicyName=pol_name,
                PolicyDocument=doc,
            )
    elif resource_type == "IAM::Policy":
        
        groups = resource_props.get("Groups", [])
        roles = resource_props.get("Roles", [])
        users = resource_props.get("Users", [])
        policy_arn = aws_stack.policy_arn(resource_props.get("PolicyName"))
        iam = aws_stack.connect_to_service("iam")
        for group in groups:
            iam.attach_group_policy(GroupName=group, PolicyArn=policy_arn)
        for role in roles: