Class JsonSchemaValidator
Defines a JSON Schema validator.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.AppConfig
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public abstract class JsonSchemaValidator : DeputyBase, IValidator
Syntax (vb)
Public MustInherit Class JsonSchemaValidator
Inherits DeputyBase
Implements IValidator
Remarks
ExampleMetadata: infused
Examples
Application application;
Function fn;
new HostedConfiguration(this, "MyHostedConfiguration", new HostedConfigurationProps {
Application = application,
Content = ConfigurationContent.FromInlineText("This is my configuration content."),
Validators = new [] { JsonSchemaValidator.FromFile("schema.json"), LambdaValidator.FromFunction(fn) }
});
Synopsis
Constructors
JsonSchemaValidator() | |
JsonSchemaValidator(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
JsonSchemaValidator(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
Content | The content of the validator. |
Type | The type of validator. |
Methods
FromFile(String) | Defines a JSON Schema validator from a file. |
FromInline(String) | Defines a JSON Schema validator from inline code. |
Constructors
JsonSchemaValidator()
protected JsonSchemaValidator()
JsonSchemaValidator(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected JsonSchemaValidator(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
JsonSchemaValidator(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected JsonSchemaValidator(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
Content
The content of the validator.
public abstract string Content { get; }
Property Value
System.String
Type
Methods
FromFile(String)
Defines a JSON Schema validator from a file.
public static JsonSchemaValidator FromFile(string inputPath)
Parameters
- inputPath System.String
The path to the file that defines the validator.
Returns
FromInline(String)
Defines a JSON Schema validator from inline code.
public static JsonSchemaValidator FromInline(string code)
Parameters
- code System.String
The inline code that defines the validator.
Returns