Class SigV4AuthSchemeCodegenKnowledgeIndex
- java.lang.Object
-
- software.amazon.awssdk.codegen.poet.auth.scheme.SigV4AuthSchemeCodegenKnowledgeIndex
-
public final class SigV4AuthSchemeCodegenKnowledgeIndex extends Object
Knowledge index to compute the sets of operations that share the same set of sigv4 overrides.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
forEachOperationsOverridesGroup(BiConsumer<List<String>,AuthSchemeCodegenMetadata> consumer)
Traverses each group of operations with the same set of auth schemes.boolean
hasPerOperationSigV4Overrides()
Returns true if there are any sigv4 overrides per operation.boolean
hasServiceSigV4Overrides()
Returns true if there are any service wide sigv4 overrides.boolean
hasSigV4Overrides()
Returns true if there are sigv4 signer overrides in the model.static SigV4AuthSchemeCodegenKnowledgeIndex
of(IntermediateModel intermediateModel)
Creates a new knowledge index from the given model.AuthSchemeCodegenMetadata
serviceSigV4Overrides()
Returns the service overrides for sigv4.
-
-
-
Method Detail
-
of
public static SigV4AuthSchemeCodegenKnowledgeIndex of(IntermediateModel intermediateModel)
Creates a new knowledge index from the given model.
-
serviceSigV4Overrides
public AuthSchemeCodegenMetadata serviceSigV4Overrides()
Returns the service overrides for sigv4. This method returns null if there are none configured. The service may or may not support sigv4 regardless.
-
hasPerOperationSigV4Overrides
public boolean hasPerOperationSigV4Overrides()
Returns true if there are any sigv4 overrides per operation.- Returns:
- true if there are auth scheme overrides per operation
-
hasServiceSigV4Overrides
public boolean hasServiceSigV4Overrides()
Returns true if there are any service wide sigv4 overrides.
-
hasSigV4Overrides
public boolean hasSigV4Overrides()
Returns true if there are sigv4 signer overrides in the model.
-
forEachOperationsOverridesGroup
public void forEachOperationsOverridesGroup(BiConsumer<List<String>,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.
-
-