Documentation
¶
Overview ¶
CDK constructs for defining an interaction between an AWS Lambda function and an Amazon SNS topic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LambdaToSns_IsConstruct ¶
func LambdaToSns_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func NewLambdaToSns_Override ¶
func NewLambdaToSns_Override(l LambdaToSns, scope constructs.Construct, id *string, props *LambdaToSnsProps)
Types ¶
type LambdaToSns ¶
type LambdaToSns interface { constructs.Construct LambdaFunction() awslambda.Function Node() constructs.Node SnsTopic() awssns.Topic Vpc() awsec2.IVpc ToString() *string }
func NewLambdaToSns ¶
func NewLambdaToSns(scope constructs.Construct, id *string, props *LambdaToSnsProps) LambdaToSns
type LambdaToSnsProps ¶
type LambdaToSnsProps struct { // Whether to deploy a new VPC. DeployVpc *bool `json:"deployVpc"` // Existing instance of Lambda Function object, providing both this and `lambdaFunctionProps` will cause an error. ExistingLambdaObj awslambda.Function `json:"existingLambdaObj"` // Existing instance of SNS Topic object, providing both this and topicProps will cause an error.. ExistingTopicObj awssns.Topic `json:"existingTopicObj"` // An existing VPC for the construct to use (construct will NOT create a new VPC in this case). ExistingVpc awsec2.IVpc `json:"existingVpc"` // User provided props to override the default props for the Lambda function. LambdaFunctionProps *awslambda.FunctionProps `json:"lambdaFunctionProps"` // Optional Name for the SNS topic arn environment variable set for the Lambda function. TopicArnEnvironmentVariableName *string `json:"topicArnEnvironmentVariableName"` // Optional Name for the SNS topic name environment variable set for the Lambda function. TopicNameEnvironmentVariableName *string `json:"topicNameEnvironmentVariableName"` // Optional user provided properties to override the default properties for the SNS topic. TopicProps *awssns.TopicProps `json:"topicProps"` // Properties to override default properties if deployVpc is true. VpcProps *awsec2.VpcProps `json:"vpcProps"` }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.