interface SchemaRegistryConfigProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Lambda.CfnEventSourceMapping.SchemaRegistryConfigProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awslambda#CfnEventSourceMapping_SchemaRegistryConfigProperty |
![]() | software.amazon.awscdk.services.lambda.CfnEventSourceMapping.SchemaRegistryConfigProperty |
![]() | aws_cdk.aws_lambda.CfnEventSourceMapping.SchemaRegistryConfigProperty |
![]() | aws-cdk-lib » aws_lambda » CfnEventSourceMapping » SchemaRegistryConfigProperty |
Specific configuration settings for a Kafka schema registry.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
const schemaRegistryConfigProperty: lambda.CfnEventSourceMapping.SchemaRegistryConfigProperty = {
accessConfigs: [{
type: 'type',
uri: 'uri',
}],
eventRecordFormat: 'eventRecordFormat',
schemaRegistryUri: 'schemaRegistryUri',
schemaValidationConfigs: [{
attribute: 'attribute',
}],
};
Properties
Name | Type | Description |
---|---|---|
access | IResolvable | IResolvable | Schema [] | An array of access configuration objects that tell Lambda how to authenticate with your schema registry. |
event | string | The record format that Lambda delivers to your function after schema validation. |
schema | string | The URI for your schema registry. The correct URI format depends on the type of schema registry you're using. |
schema | IResolvable | IResolvable | Schema [] | An array of schema validation configuration objects, which tell Lambda the message attributes you want to validate and filter using your schema registry. |
accessConfigs?
Type:
IResolvable
|
IResolvable
|
Schema
[]
(optional)
An array of access configuration objects that tell Lambda how to authenticate with your schema registry.
eventRecordFormat?
Type:
string
(optional)
The record format that Lambda delivers to your function after schema validation.
- Choose
JSON
to have Lambda deliver the record to your function as a standard JSON object. - Choose
SOURCE
to have Lambda deliver the record to your function in its original source format. Lambda removes all schema metadata, such as the schema ID, before sending the record to your function.
schemaRegistryUri?
Type:
string
(optional)
The URI for your schema registry. The correct URI format depends on the type of schema registry you're using.
- For AWS Glue schema registries, use the ARN of the registry.
- For Confluent schema registries, use the URL of the registry.
schemaValidationConfigs?
Type:
IResolvable
|
IResolvable
|
Schema
[]
(optional)
An array of schema validation configuration objects, which tell Lambda the message attributes you want to validate and filter using your schema registry.