public final class ConditionKeysIndex extends java.lang.Object implements KnowledgeIndex
Constructor and Description |
---|
ConditionKeysIndex(Model model) |
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.String> |
getConditionKeyNames(ToShapeId service)
Get all of the condition key names used in a service.
|
java.util.Set<java.lang.String> |
getConditionKeyNames(ToShapeId service,
ToShapeId resourceOrOperation)
Get all of the defined condition keys used in an operation or resource, including
any inferred keys and keys inherited by parent resource bindings.
|
java.util.Map<java.lang.String,ConditionKeyDefinition> |
getDefinedConditionKeys(ToShapeId service)
Get all of the explicit and inferred condition keys used in the entire service.
|
java.util.Map<java.lang.String,ConditionKeyDefinition> |
getDefinedConditionKeys(ToShapeId service,
ToShapeId resourceOrOperation)
Get all of the defined condition keys used in an operation or resource, including
any inferred keys and keys inherited by parent resource bindings.
|
static ConditionKeysIndex |
of(Model model) |
public ConditionKeysIndex(Model model)
public static ConditionKeysIndex of(Model model)
public java.util.Map<java.lang.String,ConditionKeyDefinition> getDefinedConditionKeys(ToShapeId service)
The result does not include global condition keys like "aws:accountId".
Use getConditionKeyNames(software.amazon.smithy.model.shapes.ToShapeId)
to find all of the condition keys used
but not necessarily defined for a service.
service
- Service shape/shapeId to get.public java.util.Set<java.lang.String> getConditionKeyNames(ToShapeId service)
service
- Service shape/shapeId use to scope the result.public java.util.Set<java.lang.String> getConditionKeyNames(ToShapeId service, ToShapeId resourceOrOperation)
service
- Service shape/shapeId use to scope the result.resourceOrOperation
- Resource or operation shape/shapeIdpublic java.util.Map<java.lang.String,ConditionKeyDefinition> getDefinedConditionKeys(ToShapeId service, ToShapeId resourceOrOperation)
The result does not include global condition keys like "aws:accountId".
Use getConditionKeyNames(software.amazon.smithy.model.shapes.ToShapeId)
to find all of the condition keys used
but not necessarily defined for a resource or operation.
service
- Service shape/shapeId use to scope the result.resourceOrOperation
- Resource or operation shape/shapeId