class LambdaValidator
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.AppConfig.LambdaValidator |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsappconfig#LambdaValidator |
Java | software.amazon.awscdk.services.appconfig.LambdaValidator |
Python | aws_cdk.aws_appconfig.LambdaValidator |
TypeScript (source) | aws-cdk-lib » aws_appconfig » LambdaValidator |
Implements
IValidator
Defines an AWS Lambda validator.
Example
declare const application: appconfig.Application;
declare const fn: lambda.Function;
new appconfig.HostedConfiguration(this, 'MyHostedConfiguration', {
application,
content: appconfig.ConfigurationContent.fromInlineText('This is my configuration content.'),
validators: [
appconfig.JsonSchemaValidator.fromFile('schema.json'),
appconfig.LambdaValidator.fromFunction(fn),
],
});
Initializer
new LambdaValidator()
Properties
| Name | Type | Description |
|---|---|---|
| content | string | The content of the validator. |
| type | Validator | The type of validator. |
content
Type:
string
The content of the validator.
type
Type:
Validator
The type of validator.
Methods
| Name | Description |
|---|---|
| static from | Defines an AWS Lambda validator from a Lambda function. |
static fromFunction(func)
public static fromFunction(func: Function): LambdaValidator
Parameters
- func
Function— The function that defines the validator.
Returns
Defines an AWS Lambda validator from a Lambda function.
This will call
addPermission to your function to grant AWS AppConfig permissions.

.NET
Go
Java
Python
TypeScript (