Class LambdaValidator
Defines an AWS Lambda validator.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.AppConfig
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public abstract class LambdaValidator : DeputyBase, IValidator
Syntax (vb)
Public MustInherit Class LambdaValidator
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
LambdaValidator() | |
LambdaValidator(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
LambdaValidator(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
FromFunction(Function) | Defines an AWS Lambda validator from a Lambda function. |
Constructors
LambdaValidator()
protected LambdaValidator()
LambdaValidator(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected LambdaValidator(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
LambdaValidator(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected LambdaValidator(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
FromFunction(Function)
Defines an AWS Lambda validator from a Lambda function.
public static LambdaValidator FromFunction(Function func)
Parameters
- func Function
The function that defines the validator.
Returns
Remarks
This will call
addPermission
to your function to grant AWS AppConfig permissions.