@Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        resource.forEach(builder::append);

        return "Arn[partition=" + partition + ", "
                + "service=" + service + ", "
                + "region=" + region + ", "
                + "accountId=" + accountId + ", "
                + "resource=" + builder + "]";
    }
Gets the ARN's resource components.

@return returns the ARN's resource components.
smithy-aws-endpoints/src/main/java/software/amazon/smithy/rulesengine/aws/language/functions/AwsArn.java