Class: AWSCDK::Lambda::CfnEventSourceMapping::SchemaValidationConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lambda/cfn_event_source_mapping.rb

Overview

Specific schema validation configuration settings that tell Lambda the message attributes you want to validate and filter using your schema registry.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attribute: nil) ⇒ SchemaValidationConfigProperty

Returns a new instance of SchemaValidationConfigProperty.

Parameters:

  • attribute (String, nil) (defaults to: nil)

    The attributes you want your schema registry to validate and filter for.



1463
1464
1465
1466
# File 'lambda/cfn_event_source_mapping.rb', line 1463

def initialize(attribute: nil)
  @attribute = attribute
  Jsii::Type.check_type(@attribute, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "attribute") unless @attribute.nil?
end

Instance Attribute Details

#attributeString? (readonly)

The attributes you want your schema registry to validate and filter for.

If you selected JSON as the EventRecordFormat , Lambda also deserializes the selected message attributes.



1474
1475
1476
# File 'lambda/cfn_event_source_mapping.rb', line 1474

def attribute
  @attribute
end

Class Method Details

.jsii_propertiesObject



1476
1477
1478
1479
1480
# File 'lambda/cfn_event_source_mapping.rb', line 1476

def self.jsii_properties
  {
    :attribute => "attribute",
  }
end

Instance Method Details

#to_jsiiObject



1482
1483
1484
1485
1486
1487
1488
# File 'lambda/cfn_event_source_mapping.rb', line 1482

def to_jsii
  result = {}
  result.merge!({
    "attribute" => @attribute,
  })
  result.compact
end