Class ArnResource

    • Method Detail

      • resourceType

        public Optional<String> resourceType()
        Returns:
        the optional resource type
      • resource

        public String resource()
        Returns:
        the entire resource as a string
      • qualifier

        public Optional<String> qualifier()
        Returns:
        the optional resource qualifier
      • fromString

        public static ArnResource fromString​(String resource)
        Parses a string containing either a resource, resource type and resource or resource type, resource and qualifier into an ArnResource.

        Supports fields separated by either ":" or "/".

        For legacy AWS Arns not following the resourceType:resource:qualifier pattern, the qualifier field will contain everything after the first two sections separated by either ":" or "/".

        Parameters:
        resource - - The resource string to parse.
        Returns:
        ArnResource
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object