Class EndpointModifierIndex

java.lang.Object
software.amazon.smithy.rulesengine.aws.traits.EndpointModifierIndex
All Implemented Interfaces:
KnowledgeIndex

public final class EndpointModifierIndex extends Object implements KnowledgeIndex
Locates the endpoint modifier traits applied to services. Endpoint modifier traits are traits that are marked by EndpointModifierTrait
  • Constructor Details

    • EndpointModifierIndex

      public EndpointModifierIndex(Model model)
  • Method Details

    • of

      public static EndpointModifierIndex of(Model model)
    • getEndpointModifierTraits

      public Map<ShapeId,Trait> getEndpointModifierTraits(ToShapeId toShapeId)
      Gets all endpoint modifier traits applied to a service.
      Parameters:
      toShapeId - Service shape to query
      Returns:
      Map of endpoint modifier trait ID to the trait