JsonSchemaValidator
- class aws_cdk.aws_appconfig.JsonSchemaValidator
Bases:
object
Defines a JSON Schema validator.
- ExampleMetadata:
infused
Example:
# application: appconfig.Application # fn: lambda.Function appconfig.HostedConfiguration(self, "MyHostedConfiguration", application=application, content=appconfig.ConfigurationContent.from_inline_text("This is my configuration content."), validators=[ appconfig.JsonSchemaValidator.from_file("schema.json"), appconfig.LambdaValidator.from_function(fn) ] )
Attributes
- content
The content of the validator.
- type
The type of validator.
Static Methods
- classmethod from_file(input_path)
Defines a JSON Schema validator from a file.
- Parameters:
input_path (
str
) – The path to the file that defines the validator.- Return type:
- classmethod from_inline(code)
Defines a JSON Schema validator from inline code.
- Parameters:
code (
str
) – The inline code that defines the validator.- Return type: