### 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_
with pytest.raises(aws_client.awslambda.exceptions.ResourceNotFoundException) as e:
            aws_client.awslambda.remove_layer_version_permission(
                LayerName=layer_name, VersionNumber=1, StatementId="doesnotexist"
            )
        snapshot.match("layer_permission_statementid_doesnotexist_remove", e.value.response)
        
        with pytest.raises(aws_client.awslambda.exceptions.PreconditionFailedException) as e:
            aws_client.awslambda.remove_layer_version_permission(
                LayerName=layer_name, VersionNumber=1, StatementId="s1", RevisionId="wrong"
            )
        snapshot.match("layer_permission_wrong_revision_remove", e.value.response)
    @pytest.mark.aws_validated
    def test_layer_policy_lifecycle(
        self, create_lambda_function, snapshot, dummylayer, cleanups, aws_client
    ):
        """
        Simple lifecycle tests for lambda layer policies
        TODO: OrganizationId
        """
        layer_name = f"testlayer-{short_uid()}"
        publish_result = aws_client.awslambda.publish_layer_version(
            LayerName=layer_name,
            CompatibleRuntimes=[Runtime.python3_9],
            Content={"ZipFile": dummylayer},
            CompatibleArchitectures=[Architecture.x86_64],
        )
        cleanups.append(
            lambda: aws_client.awslambda.delete_layer_version(
                LayerName=layer_name, VersionNumber=publish_result["Version"]
            )