Class LambdaValidator
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.appconfig.LambdaValidator
- All Implemented Interfaces:
IValidator
,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-10-31T19:12:51.906Z")
@Stability(Stable)
public abstract class LambdaValidator
extends software.amazon.jsii.JsiiObject
implements IValidator
Defines an AWS Lambda 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
ModifierConstructorDescriptionprotected
protected
LambdaValidator
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
LambdaValidator
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic LambdaValidator
fromFunction
(Function func) Defines an AWS Lambda validator from a Lambda function.abstract String
The content of the validator.abstract ValidatorType
getType()
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
-
LambdaValidator
protected LambdaValidator(software.amazon.jsii.JsiiObjectRef objRef) -
LambdaValidator
protected LambdaValidator(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
LambdaValidator
@Stability(Stable) protected LambdaValidator()
-
-
Method Details
-
fromFunction
Defines an AWS Lambda validator from a Lambda function.This will call
addPermission
to your function to grant AWS AppConfig permissions.- Parameters:
func
- The function that defines the validator. This parameter is required.
-
getContent
The content of the validator.- Specified by:
getContent
in interfaceIValidator
-
getType
The type of validator.- Specified by:
getType
in interfaceIValidator
-