Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Paws::Lambda::AddPermiUsernContributed Perl DocuPaws::Lambda::AddPermission(3)

NAME
       Paws::Lambda::AddPermission - Arguments for method AddPermission	on
       Paws::Lambda

DESCRIPTION
       This class represents the parameters used for calling the method
       AddPermission on	the AWS	Lambda service.	Use the	attributes of this
       class as	arguments to method AddPermission.

       You shouln't make instances of this class. Each attribute should	be
       used as a named argument	in the call to AddPermission.

       As an example:

	 $service_obj->AddPermission(Att1 => $value1, Att2 => $value2, ...);

       Values for attributes that are native types (Int, String, Float,	etc)
       can passed as-is	(scalar	values). Values	for complex Types (objects)
       can be passed as	a HashRef. The keys and	values of the hashref will be
       used to instance	the underlying object.

ATTRIBUTES
   REQUIRED Action => Str
       The AWS Lambda action you want to allow in this statement. Each Lambda
       action is a string starting with	"lambda:" followed by the API name
       (see Operations). For example, "lambda:CreateFunction". You can use
       wildcard	("lambda:*") to	grant permission for all AWS Lambda actions.

   REQUIRED FunctionName => Str
       Name of the Lambda function whose access	policy you are updating	by
       adding a	new permission.

       You can specify an unqualified function name (for example, "Thumbnail")
       or you can specify Amazon Resource Name (ARN) of	the function (for
       example,	"arn:aws:lambda:us-west-2:account-id:function:ThumbNail"). AWS
       Lambda also allows you to specify only the account ID qualifier (for
       example,	"account-id:Thumbnail"). Note that the length constraint
       applies only to the ARN.	If you specify only the	function name, it is
       limited to 64 character in length.

   REQUIRED Principal => Str
       The principal who is getting this permission. It	can be Amazon S3
       service Principal ("s3.amazonaws.com") if you want Amazon S3 to invoke
       the function, an	AWS account ID if you are granting cross-account
       permission, or any valid	AWS service principal such as
       "sns.amazonaws.com". For	example, you might want	to allow a custom
       application in another AWS account to push events to AWS	Lambda by
       invoking	your function.

   SourceAccount => Str
       The AWS account ID (without a hyphen) of	the source owner. For example,
       if the "SourceArn" identifies a bucket, then this is the	bucket owner's
       account ID. You can use this additional condition to ensure the bucket
       you specify is owned by a specific account (it is possible the bucket
       owner deleted the bucket	and some other AWS account created the
       bucket).	You can	also use this condition	to specify all sources (that
       is, you don't specify the "SourceArn") owned by a specific account.

   SourceArn =>	Str
       This is optional; however, when granting	Amazon S3 permission to	invoke
       your function, you should specify this field with the bucket Amazon
       Resource	Name (ARN) as its value. This ensures that only	events
       generated from the specified bucket can invoke the function.

       If you add a permission for the Amazon S3 principal without providing
       the source ARN, any AWS account that creates a mapping to your function
       ARN can send events to invoke your Lambda function from Amazon S3.

   REQUIRED StatementId	=> Str
       A unique	statement identifier.

SEE ALSO
       This class forms	part of	Paws, documenting arguments for	method
       AddPermission in	Paws::Lambda

BUGS and CONTRIBUTIONS
       The source code is located here:	https://github.com/pplu/aws-sdk-perl

       Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues

perl v5.24.1			  2015-08-06	Paws::Lambda::AddPermission(3)

NAME | DESCRIPTION | ATTRIBUTES | SEE ALSO | BUGS and CONTRIBUTIONS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Paws::Lambda::AddPermission&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help