### Is there an existing issue for this?

- [X] I have searched the existing issues

### Enhancement description

AWS Lambda recently added support for Java 17 as managed runtime:
https://aws.amazon.com/about-aws/whats-new/2023/04/aws-lambda-java-17/



### 🧑‍💻 Implementation

_No response_

### Anything else?

_No response_
sts_client_1 = create_client_with_keys("sts", keys=keys_1)
            sts_client_2 = create_client_with_keys("sts", keys=keys_2)
            identity_1 = sts_client_1.get_caller_identity()
            identity_2 = sts_client_2.get_caller_identity()
            assert identity_1["Arn"] == identity_2["Arn"]
            role_part = (
                identity_1["Arn"]
                .replace("sts", "iam")
                .replace("assumed-role", "role")
                .rpartition("/")
            )
            assert lambda_su_role == role_part[0]
            assert function_name == role_part[2]
            assert identity_1["Account"] == identity_2["Account"]
            assert identity_1["UserId"] == identity_2["UserId"]
            assert function_name == identity_1["UserId"].partition(":")[2]
        retry(_assert_invocations)
class TestLambdaBehavior:
    @pytest.mark.skip_snapshot_verify(
        condition=is_old_provider,
        paths=[
            
            "$..FunctionError",
            "$..LogResult",
            "$..Payload.errorMessage",
            "$..Payload.errorType",
            "$..Payload.event",
            "$..Payload.platform_machine",
            "$..Payload.platform_system",
            "$..Payload.stackTrace",