Class CfnEventSourceMapping.SchemaRegistryConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CfnEventSourceMapping.SchemaRegistryConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventSourceMapping.SchemaRegistryConfigProperty>
- Enclosing interface:
CfnEventSourceMapping.SchemaRegistryConfigProperty
@Stability(Stable)
public static final class CfnEventSourceMapping.SchemaRegistryConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventSourceMapping.SchemaRegistryConfigProperty>
A builder for
CfnEventSourceMapping.SchemaRegistryConfigProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessConfigs
(List<? extends Object> accessConfigs) Sets the value ofCfnEventSourceMapping.SchemaRegistryConfigProperty.getAccessConfigs()
accessConfigs
(IResolvable accessConfigs) Sets the value ofCfnEventSourceMapping.SchemaRegistryConfigProperty.getAccessConfigs()
build()
Builds the configured instance.eventRecordFormat
(String eventRecordFormat) schemaRegistryUri
(String schemaRegistryUri) schemaValidationConfigs
(List<? extends Object> schemaValidationConfigs) schemaValidationConfigs
(IResolvable schemaValidationConfigs)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessConfigs
@Stability(Stable) public CfnEventSourceMapping.SchemaRegistryConfigProperty.Builder accessConfigs(IResolvable accessConfigs) Sets the value ofCfnEventSourceMapping.SchemaRegistryConfigProperty.getAccessConfigs()
- Parameters:
accessConfigs
- An array of access configuration objects that tell Lambda how to authenticate with your schema registry.- Returns:
this
-
accessConfigs
@Stability(Stable) public CfnEventSourceMapping.SchemaRegistryConfigProperty.Builder accessConfigs(List<? extends Object> accessConfigs) Sets the value ofCfnEventSourceMapping.SchemaRegistryConfigProperty.getAccessConfigs()
- Parameters:
accessConfigs
- An array of access configuration objects that tell Lambda how to authenticate with your schema registry.- Returns:
this
-
eventRecordFormat
@Stability(Stable) public CfnEventSourceMapping.SchemaRegistryConfigProperty.Builder eventRecordFormat(String eventRecordFormat) - Parameters:
eventRecordFormat
- 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.
- Choose
- Returns:
this
-
schemaRegistryUri
@Stability(Stable) public CfnEventSourceMapping.SchemaRegistryConfigProperty.Builder schemaRegistryUri(String schemaRegistryUri) - Parameters:
schemaRegistryUri
- 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.
- Returns:
this
-
schemaValidationConfigs
@Stability(Stable) public CfnEventSourceMapping.SchemaRegistryConfigProperty.Builder schemaValidationConfigs(IResolvable schemaValidationConfigs) - Parameters:
schemaValidationConfigs
- An array of schema validation configuration objects, which tell Lambda the message attributes you want to validate and filter using your schema registry.- Returns:
this
-
schemaValidationConfigs
@Stability(Stable) public CfnEventSourceMapping.SchemaRegistryConfigProperty.Builder schemaValidationConfigs(List<? extends Object> schemaValidationConfigs) - Parameters:
schemaValidationConfigs
- An array of schema validation configuration objects, which tell Lambda the message attributes you want to validate and filter using your schema registry.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEventSourceMapping.SchemaRegistryConfigProperty>
- Returns:
- a new instance of
CfnEventSourceMapping.SchemaRegistryConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-