public String getService() {
        return service;
    }
Gets the ARN's service.

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