Class ModelAuthSchemeKnowledgeIndex
- java.lang.Object
-
- software.amazon.awssdk.codegen.poet.auth.scheme.ModelAuthSchemeKnowledgeIndex
-
public final class ModelAuthSchemeKnowledgeIndex extends Object
Knowledge index to get access to the configured service auth schemes and operations overrides. This index is optimized for code generation of switch statements therefore the data is grouped by operations that share the same auth schemes. This index is a building block forAuthSchemeCodegenKnowledgeIndex
andSigV4AuthSchemeCodegenKnowledgeIndex
indexes that have a friendly interface for the codegen use cases.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ModelAuthSchemeKnowledgeIndex
of(IntermediateModel intermediateModel)
Creates a new knowledge index using the given model.Map<List<String>,List<AuthSchemeCodegenMetadata>>
operationsToMetadata()
Returns a map from a list of operations to all the auth schemes that the operations accept.
-
-
-
Method Detail
-
of
public static ModelAuthSchemeKnowledgeIndex of(IntermediateModel intermediateModel)
Creates a new knowledge index using the given model.
-
operationsToMetadata
public Map<List<String>,List<AuthSchemeCodegenMetadata>> operationsToMetadata()
Returns a map from a list of operations to all the auth schemes that the operations accept.- Returns:
- a map from a list of operations to all the auth schemes that the operations accept
-
-