Skip to content
v2.278.0

CustomSMSSenderProperty Struct ​

The configuration of a custom SMS sender Lambda trigger.

This trigger routes all SMS notifications from a user pool to a Lambda function that delivers the message using custom logic.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cognito as cognito } from 'aws-cdk-lib';
const customSMSSenderProperty: cognito.CfnUserPool.CustomSMSSenderProperty = {
  lambdaArn: 'lambdaArn',
  lambdaVersion: 'lambdaVersion',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cognito as cognito

custom_sms_sender_property = cognito.CfnUserPool.CustomSMSSenderProperty(
    lambda_arn="lambdaArn",
    lambda_version="lambdaVersion"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cognito.*;

CustomSMSSenderProperty customSMSSenderProperty = CustomSMSSenderProperty.builder()
        .lambdaArn("lambdaArn")
        .lambdaVersion("lambdaVersion")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Cognito;

var customSMSSenderProperty = new CustomSMSSenderProperty {
    LambdaArn = "lambdaArn",
    LambdaVersion = "lambdaVersion"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

customSMSSenderProperty := &CustomSMSSenderProperty{
	LambdaArn: jsii.String("lambdaArn"),
	LambdaVersion: jsii.String("lambdaVersion"),
}

Properties ​

lambdaArnoptionalstringlambda_arnoptionalstrlambdaArnoptionalStringLambdaArnoptionalstringLambdaArnoptional*string #
The Amazon Resource Name (ARN) of the function that you want to assign to your Lambda trigger.
lambdaVersionoptionalstringlambda_versionoptionalstrlambdaVersionoptionalStringLambdaVersionoptionalstringLambdaVersionoptional*string #
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.