public interface CfnMapper
The methods of a plugin are invoked by CfnConverter
during
Resource Schema generation. There is no need to invoke these manually.
Implementations may choose to leverage configuration options of the
provided context to determine whether or not to enact the plugin.
Modifier and Type | Method and Description |
---|---|
default ResourceSchema |
after(Context context,
ResourceSchema resourceSchema)
Updates an ResourceSchema.Builder after converting the model.
|
default void |
before(Context context,
ResourceSchema.Builder builder)
Updates an ResourceSchema.Builder before converting the model.
|
default byte |
getOrder()
Gets the sort order of the plugin from -128 to 127.
|
default ObjectNode |
updateNode(Context context,
ResourceSchema resourceSchema,
ObjectNode node)
Modifies the Node/JSON representation of a ResourceSchema object.
|
default byte getOrder()
Plugins are applied according to this sort order. Lower values are executed before higher values (for example, -128 comes before 0, comes before 127). Plugins default to 0, which is the middle point between the minimum and maximum order values.
default void before(Context context, ResourceSchema.Builder builder)
context
- Conversion context.builder
- ResourceSchema builder to modify.default ResourceSchema after(Context context, ResourceSchema resourceSchema)
context
- Conversion context.resourceSchema
- ResourceSchema to modify.default ObjectNode updateNode(Context context, ResourceSchema resourceSchema, ObjectNode node)
context
- Conversion context.resourceSchema
- ResourceSchema being converted to a node.node
- ResourceSchema object node.