private static String getResourceArnFrom()

in aws-codeguruprofiler-profilinggroup/src/main/java/software/amazon/codeguruprofiler/profilinggroup/UpdateHandler.java [204:220]


    private static String getResourceArnFrom(final ResourceHandlerRequest<ResourceModel> request) {
        ResourceModel model = request.getDesiredResourceState();
        if (model.getArn() == null) {
            return Arn.builder()
                       // FIXME: Figure out why request.getAwsPartition() always returns null
                       //  As we only support aws partition now, it is fine to hardcode the partition
                       .partition("aws")
                       .accountId(request.getAwsAccountId())
                       .region(request.getRegion())
                       .service("codeguru-profiler")
                       .resource("profilingGroup/" + model.getProfilingGroupName())
                       .build()
                       .toString();
        }

        return model.getArn();
    }