Class: AWSCDK::Cognito::CfnUserPool::CustomEmailSenderProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Cognito::CfnUserPool::CustomEmailSenderProperty
- Defined in:
- cognito/cfn_user_pool.rb
Overview
The configuration of a custom email sender Lambda trigger.
This trigger routes all email notifications from a user pool to a Lambda function that delivers the message using custom logic.
Instance Attribute Summary collapse
-
#lambda_arn ⇒ String?
readonly
The Amazon Resource Name (ARN) of the function that you want to assign to your Lambda trigger.
-
#lambda_version ⇒ String?
readonly
The user pool trigger version of the request that Amazon Cognito sends to your Lambda function.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(lambda_arn: nil, lambda_version: nil) ⇒ CustomEmailSenderProperty
constructor
A new instance of CustomEmailSenderProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(lambda_arn: nil, lambda_version: nil) ⇒ CustomEmailSenderProperty
Returns a new instance of CustomEmailSenderProperty.
1090 1091 1092 1093 1094 1095 |
# File 'cognito/cfn_user_pool.rb', line 1090 def initialize(lambda_arn: nil, lambda_version: nil) @lambda_arn = lambda_arn Jsii::Type.check_type(@lambda_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "lambdaArn") unless @lambda_arn.nil? @lambda_version = lambda_version Jsii::Type.check_type(@lambda_version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "lambdaVersion") unless @lambda_version.nil? end |
Instance Attribute Details
#lambda_arn ⇒ String? (readonly)
The Amazon Resource Name (ARN) of the function that you want to assign to your Lambda trigger.
1101 1102 1103 |
# File 'cognito/cfn_user_pool.rb', line 1101 def lambda_arn @lambda_arn end |
#lambda_version ⇒ String? (readonly)
The user pool trigger version of the request that Amazon Cognito sends to your Lambda function.
Higher-numbered versions add fields that support new features.
You must use a LambdaVersion of V1_0 with a custom sender function.
1110 1111 1112 |
# File 'cognito/cfn_user_pool.rb', line 1110 def lambda_version @lambda_version end |
Class Method Details
.jsii_properties ⇒ Object
1112 1113 1114 1115 1116 1117 |
# File 'cognito/cfn_user_pool.rb', line 1112 def self.jsii_properties { :lambda_arn => "lambdaArn", :lambda_version => "lambdaVersion", } end |
Instance Method Details
#to_jsii ⇒ Object
1119 1120 1121 1122 1123 1124 1125 1126 |
# File 'cognito/cfn_user_pool.rb', line 1119 def to_jsii result = {} result.merge!({ "lambdaArn" => @lambda_arn, "lambdaVersion" => @lambda_version, }) result.compact end |