CfnPermissionProps

class aws_cdk.aws_lambda.CfnPermissionProps(*, action, function_name, principal, event_source_token=None, source_account=None, source_arn=None)

Bases: object

__init__(*, action, function_name, principal, event_source_token=None, source_account=None, source_arn=None)

Properties for defining a AWS::Lambda::Permission.

Parameters
  • action (str) – AWS::Lambda::Permission.Action.

  • function_name (str) – AWS::Lambda::Permission.FunctionName.

  • principal (str) – AWS::Lambda::Permission.Principal.

  • event_source_token (Optional[str]) – AWS::Lambda::Permission.EventSourceToken.

  • source_account (Optional[str]) – AWS::Lambda::Permission.SourceAccount.

  • source_arn (Optional[str]) – AWS::Lambda::Permission.SourceArn.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html

Return type

None

Attributes

action

AWS::Lambda::Permission.Action.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-action

Return type

str

event_source_token

AWS::Lambda::Permission.EventSourceToken.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-eventsourcetoken

Return type

Optional[str]

function_name

AWS::Lambda::Permission.FunctionName.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-functionname

Return type

str

principal

AWS::Lambda::Permission.Principal.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-principal

Return type

str

source_account

AWS::Lambda::Permission.SourceAccount.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-sourceaccount

Return type

Optional[str]

source_arn

AWS::Lambda::Permission.SourceArn.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-sourcearn

Return type

Optional[str]