awslambda¶
- class cottonformation.core.helpers.awslambda.LambdaRuntime[source]¶
Aws Lambda related constant helpers.
This data is based on https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html
- cottonformation.core.helpers.awslambda.create_permission_for_s3_event(logic_id: str, func: Union[str, cottonformation.res.awslambda.Function], bucket: Union[str, cottonformation.res.s3.Bucket]) cottonformation.res.awslambda.Permission [source]¶
Note
The s3 bucket has to be in the same region of lambda function.
Note
The source arn has to be a bucket without any prefix, otherwise it won’t pass the validation.
Ref:
- cottonformation.core.helpers.awslambda.create_permission_for_kinesis_data_stream(logic_id: str, func: Union[str, cottonformation.res.awslambda.Function], data_stream: Union[str, cottonformation.res.kinesis.Stream])[source]¶
Ref:
- cottonformation.core.helpers.awslambda.create_permission_for_firehose_delivery_stream(logic_id: str, func: Union[str, cottonformation.res.awslambda.Function], delivery_stream: Union[str, cottonformation.res.kinesisfirehose.DeliveryStream])[source]¶
Ref:
- cottonformation.core.helpers.awslambda.create_permission_for_sns(logic_id: str, func: Union[str, cottonformation.res.awslambda.Function], topic: Union[str, cottonformation.res.sns.Topic])[source]¶
Ref:
- cottonformation.core.helpers.awslambda.create_permission_for_sqs(logic_id: str, func: Union[str, cottonformation.res.awslambda.Function], queue: Union[str, cottonformation.res.sqs.Queue])[source]¶
Ref:
- cottonformation.core.helpers.awslambda.create_permission_for_dynamodb(logic_id: str, func: Union[str, cottonformation.res.awslambda.Function], table: Union[str, cottonformation.res.dynamodb.Table])[source]¶
Ref:
- cottonformation.core.helpers.awslambda.create_permission_for_code_commit(logic_id: str, func: Union[str, cottonformation.res.awslambda.Function], repo: Union[str, cottonformation.res.codecommit.Repository])[source]¶
Ref:
- cottonformation.core.helpers.awslambda.create_permission_for_cloudwatch_event(logic_id: str, func: Union[str, cottonformation.res.awslambda.Function], rule: Union[str, cottonformation.res.events.Rule])[source]¶
Ref: