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
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiongetClientContextParams(Shape service) Gets the mapping of context parameter names and correspondingClientContextParamDefinitionto be generated on the service client's configuration.getContextParams(Shape operation) Gets the mapping ofMemberShapetoContextParamTraitfor the operation.getOperationContextParams(Shape operation) Gets the operation context parameter names and theirOperationContextParamDefinitionfor the given operation.getStaticContextParams(Shape operation) Gets the static context parameter names and theirStaticContextParamDefinitionto be set for the given operation.static ContextIndex 
- 
Constructor Details
- 
ContextIndex
 
 - 
 - 
Method Details
- 
of
 - 
getClientContextParams
Gets the mapping of context parameter names and correspondingClientContextParamDefinitionto 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 theirStaticContextParamDefinitionto be set for the given operation.- Parameters:
 operation- The operation shape.- Returns:
 - The mapping of context parameter names to the static 
Nodevalue to be set. 
 - 
getOperationContextParams
Gets the operation context parameter names and theirOperationContextParamDefinitionfor the given operation.- Parameters:
 operation- The operation shape.- Returns:
 - The mapping of context parameter names to the JMESPath expression to bind to input elements.
 
 - 
getContextParams
Gets the mapping ofMemberShapetoContextParamTraitfor the operation.- Parameters:
 operation- The operation shape.- Returns:
 - The mapping of operation's 
MemberShapetoContextParamTrait. 
 
 -