Class JsonSchemaValidator

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.appconfig.JsonSchemaValidator
All Implemented Interfaces:
IValidator, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-17T05:10:05.423Z") @Stability(Stable) public abstract class JsonSchemaValidator extends software.amazon.jsii.JsiiObject implements IValidator
Defines a JSON Schema validator.

Example:

 Application application;
 Function fn;
 HostedConfiguration.Builder.create(this, "MyHostedConfiguration")
         .application(application)
         .content(ConfigurationContent.fromInlineText("This is my configuration content."))
         .validators(List.of(JsonSchemaValidator.fromFile("schema.json"), LambdaValidator.fromFunction(fn)))
         .build();
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode

    Nested classes/interfaces inherited from interface software.amazon.awscdk.services.appconfig.IValidator

    IValidator.Jsii$Default
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
    protected
    JsonSchemaValidator(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    JsonSchemaValidator(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    fromFile(String inputPath)
    Defines a JSON Schema validator from a file.
    Defines a JSON Schema validator from inline code.
    abstract String
    The content of the validator.
    abstract ValidatorType
    The type of validator.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • JsonSchemaValidator

      protected JsonSchemaValidator(software.amazon.jsii.JsiiObjectRef objRef)
    • JsonSchemaValidator

      protected JsonSchemaValidator(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • JsonSchemaValidator

      @Stability(Stable) protected JsonSchemaValidator()
  • Method Details

    • fromFile

      @Stability(Stable) @NotNull public static JsonSchemaValidator fromFile(@NotNull String inputPath)
      Defines a JSON Schema validator from a file.

      Parameters:
      inputPath - The path to the file that defines the validator. This parameter is required.
    • fromInline

      @Stability(Stable) @NotNull public static JsonSchemaValidator fromInline(@NotNull String code)
      Defines a JSON Schema validator from inline code.

      Parameters:
      code - The inline code that defines the validator. This parameter is required.
    • getContent

      @Stability(Stable) @NotNull public abstract String getContent()
      The content of the validator.
      Specified by:
      getContent in interface IValidator
    • getType

      @Stability(Stable) @NotNull public abstract ValidatorType getType()
      The type of validator.
      Specified by:
      getType in interface IValidator