Class ContextIndex
java.lang.Object
software.amazon.smithy.rulesengine.traits.ContextIndex
- All Implemented Interfaces:
KnowledgeIndex
Resolves an indexes the context parameters in the model.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetClientContextParams
(Shape service) Gets the mapping of context parameter names and correspondingClientContextParamDefinition
to be generated on the service client's configuration.getContextParams
(Shape operation) Gets the mapping ofMemberShape
toContextParamTrait
for the operation.getStaticContextParams
(Shape operation) Gets the static context parameter names and theirStaticContextParamDefinition
to be set for the given operation.static ContextIndex
-
Constructor Details
-
ContextIndex
-
-
Method Details
-
of
-
getClientContextParams
Gets the mapping of context parameter names and correspondingClientContextParamDefinition
to be generated on the service client's configuration.- Parameters:
service
- The service shape.- Returns:
- The mapping of context parameter names to
ClientContextParamDefinition
.
-
getStaticContextParams
Gets the static context parameter names and theirStaticContextParamDefinition
to be set for the given operation.- Parameters:
operation
- The operation shape.- Returns:
- The mapping of context parameter names to the static
Node
value to be set.
-
getContextParams
Gets the mapping ofMemberShape
toContextParamTrait
for the operation.- Parameters:
operation
- The operation shape.- Returns:
- The mapping of operation's
MemberShape
toContextParamTrait
.
-