Class: AWSCDK::SAM::CfnFunction::CognitoEventProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SAM::CfnFunction::CognitoEventProperty
- Defined in:
- sam/cfn_function.rb
Overview
Instance Attribute Summary collapse
- #trigger ⇒ String readonly
- #user_pool ⇒ String readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(trigger:, user_pool:) ⇒ CognitoEventProperty
constructor
A new instance of CognitoEventProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(trigger:, user_pool:) ⇒ CognitoEventProperty
Returns a new instance of CognitoEventProperty.
1261 1262 1263 1264 1265 1266 |
# File 'sam/cfn_function.rb', line 1261 def initialize(trigger:, user_pool:) @trigger = trigger Jsii::Type.check_type(@trigger, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "trigger") @user_pool = user_pool Jsii::Type.check_type(@user_pool, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "userPool") end |
Instance Attribute Details
#trigger ⇒ String (readonly)
1270 1271 1272 |
# File 'sam/cfn_function.rb', line 1270 def trigger @trigger end |
#user_pool ⇒ String (readonly)
1273 1274 1275 |
# File 'sam/cfn_function.rb', line 1273 def user_pool @user_pool end |
Class Method Details
.jsii_properties ⇒ Object
1275 1276 1277 1278 1279 1280 |
# File 'sam/cfn_function.rb', line 1275 def self.jsii_properties { :trigger => "trigger", :user_pool => "userPool", } end |
Instance Method Details
#to_jsii ⇒ Object
1282 1283 1284 1285 1286 1287 1288 1289 |
# File 'sam/cfn_function.rb', line 1282 def to_jsii result = {} result.merge!({ "trigger" => @trigger, "userPool" => @user_pool, }) result.compact end |