Class: AWSCDK::AppSync::CfnChannelNamespace::HandlerConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_sync/cfn_channel_namespace.rb

Overview

The HandlerConfig property type specifies the configuration for the handler.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(behavior:, integration:) ⇒ HandlerConfigProperty

Returns a new instance of HandlerConfigProperty.

Parameters:



647
648
649
650
651
652
# File 'app_sync/cfn_channel_namespace.rb', line 647

def initialize(behavior:, integration:)
  @behavior = behavior
  Jsii::Type.check_type(@behavior, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "behavior")
  @integration = integration.is_a?(Hash) ? ::AWSCDK::AppSync::CfnChannelNamespace::IntegrationProperty.new(**integration.transform_keys(&:to_sym)) : integration
  Jsii::Type.check_type(@integration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBzeW5jLkNmbkNoYW5uZWxOYW1lc3BhY2UuSW50ZWdyYXRpb25Qcm9wZXJ0eSJ9XX19")), "integration")
end

Instance Attribute Details

#behaviorString (readonly)

The behavior for the handler.



658
659
660
# File 'app_sync/cfn_channel_namespace.rb', line 658

def behavior
  @behavior
end

Class Method Details

.jsii_propertiesObject



665
666
667
668
669
670
# File 'app_sync/cfn_channel_namespace.rb', line 665

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

Instance Method Details

#to_jsiiObject



672
673
674
675
676
677
678
679
# File 'app_sync/cfn_channel_namespace.rb', line 672

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