public CredentialScope getCredentialScope() {
        return credentialScope;
    }
returns credential scope for the endpoint.
aws-java-sdk-core/src/main/java/com/amazonaws/partitions/model/Endpoint.java