Class AuthSchemeCodegenKnowledgeIndex
java.lang.Object
software.amazon.awssdk.codegen.poet.auth.scheme.AuthSchemeCodegenKnowledgeIndex
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.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Traverses each group of operations with the same set of auth schemes.boolean
Returns true if there are auth scheme overrides per operation.of
(IntermediateModel intermediateModel) Creates a newAuthSchemeCodegenKnowledgeIndex
using the givenintermediateModel
..Returns the service defaults auth schemes.
-
Method Details
-
of
Creates a newAuthSchemeCodegenKnowledgeIndex
using the givenintermediateModel
.. -
serviceDefaultAuthSchemes
Returns the service defaults auth schemes. These can be overridden by operation.- Returns:
- the service defaults auth schemes.
-
hasPerOperationAuthSchemesOverrides
public boolean hasPerOperationAuthSchemesOverrides()Returns true if there are auth scheme overrides per operation.- Returns:
- true if there are auth scheme overrides per operation
-
forEachOperationsOverridesGroup
public void forEachOperationsOverridesGroup(BiConsumer<List<String>, List<AuthSchemeCodegenMetadata>> consumer) Traverses each group of operations with the same set of auth schemes.- Parameters:
consumer
- The consumer to call for each group of operations with the same set of auth schemes.
-