Class PlaneIndex
- java.lang.Object
-
- software.amazon.smithy.aws.traits.PlaneIndex
-
- All Implemented Interfaces:
KnowledgeIndex
public final class PlaneIndex extends java.lang.Object implements KnowledgeIndex
Determines if a service, resource, or operation are considered part of the data plane or control plane.The plane is inherited from the top-down and can be overridden per shape. For example, if a service shape has the
aws.api#controlPlaneshape, then every shape within the closure of the service inherits this property. If a resource shape defines aaws.api#controlPlaneoraws.api#dataPlanetrait, then all shapes within the closure of the resource inherit it. If an operation is marked with theaws.api#dataPlanetrait, it overrides any plane traits of the service or resource its bound within.
-
-
Constructor Summary
Constructors Constructor Description PlaneIndex(Model model)
-
Method Summary
Modifier and Type Method Description booleanisControlPlane(ToShapeId service)Checks if the given service shape is part of the control plane.booleanisControlPlane(ToShapeId service, ToShapeId operationOrResource)Checks if the given shape within a service is part of the control plane.booleanisDataPlane(ToShapeId service)Checks if the given service shape is part of the data plane.booleanisDataPlane(ToShapeId service, ToShapeId operationOrResource)Checks if the given shape within a service is part of the data plane.booleanisPlaneDefined(ToShapeId service)Checks if the given service shape has defined its plane.booleanisPlaneDefined(ToShapeId service, ToShapeId operationOrResource)Checks if the given shape within a service has a resolvable plane.
-
-
-
Constructor Detail
-
PlaneIndex
public PlaneIndex(Model model)
-
-
Method Detail
-
isControlPlane
public boolean isControlPlane(ToShapeId service)
Checks if the given service shape is part of the control plane.- Parameters:
service- Service to check.- Returns:
- Returns true if the service is part of the control plane.
-
isControlPlane
public boolean isControlPlane(ToShapeId service, ToShapeId operationOrResource)
Checks if the given shape within a service is part of the control plane.- Parameters:
service- Service to check.operationOrResource- Operation or resource within the service to check.- Returns:
- Returns true if the shape is part of the control plane.
-
isDataPlane
public boolean isDataPlane(ToShapeId service)
Checks if the given service shape is part of the data plane.- Parameters:
service- Service to check.- Returns:
- Returns true if the service is part of the data plane.
-
isDataPlane
public boolean isDataPlane(ToShapeId service, ToShapeId operationOrResource)
Checks if the given shape within a service is part of the data plane.- Parameters:
service- Service to check.operationOrResource- Operation or resource within the service to check.- Returns:
- Returns true if the shape is part of the data plane.
-
isPlaneDefined
public boolean isPlaneDefined(ToShapeId service)
Checks if the given service shape has defined its plane.- Parameters:
service- Service to check.- Returns:
- Returns true if the service has defined its plane.
-
isPlaneDefined
public boolean isPlaneDefined(ToShapeId service, ToShapeId operationOrResource)
Checks if the given shape within a service has a resolvable plane.- Parameters:
service- Service to check.operationOrResource- Operation or resource within the service to check.- Returns:
- Returns true if the shape has a resolvable plane.
-
-