PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` package Paws::Lambda::AddPermission; use Moose; has Action => (is => 'ro', isa => 'Str', required => 1); has EventSourceToken => (is => 'ro', isa => 'Str'); has FunctionName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'FunctionName', required => 1); has Principal => (is => 'ro', isa => 'Str', required => 1); has Qualifier => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'Qualifier'); has RevisionId => (is => 'ro', isa => 'Str'); has SourceAccount => (is => 'ro', isa => 'Str'); has SourceArn => (is => 'ro', isa => 'Str'); has StatementId => (is => 'ro', isa => 'Str', required => 1); use MooseX::ClassAttribute; class_has _api_call => (isa => 'Str', is => 'ro', default => 'AddPermission'); class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2015-03-31/functions/{FunctionName}/policy'); class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST'); class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Lambda::AddPermissionResponse'); 1; ### main pod documentation begin ### =head1 NAME Paws::Lambda::AddPermission - Arguments for method AddPermission on L =head1 DESCRIPTION This class represents the parameters used for calling the method AddPermission on the L service. Use the attributes of this class as arguments to method AddPermission. You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to AddPermission. =head1 SYNOPSIS my $lambda = Paws->service('Lambda'); # To grant Amazon S3 permission to invoke a function # The following example adds permission for Amazon S3 to invoke a Lambda # function named my-function for notifications from a bucket named # my-bucket-1xpuxmplzrlbh in account 123456789012. my $AddPermissionResponse = $lambda->AddPermission( 'Action' => 'lambda:InvokeFunction', 'FunctionName' => 'my-function', 'Principal' => 's3.amazonaws.com', 'SourceAccount' => 123456789012, 'SourceArn' => 'arn:aws:s3:::my-bucket-1xpuxmplzrlbh/*', 'StatementId' => 's3' ); # Results: my $Statement = $AddPermissionResponse->Statement; # Returns a L object. # To grant another account permission to invoke a function # The following example adds permission for account 223456789012 invoke a Lambda # function named my-function. my $AddPermissionResponse = $lambda->AddPermission( 'Action' => 'lambda:InvokeFunction', 'FunctionName' => 'my-function', 'Principal' => 223456789012, 'StatementId' => 'xaccount' ); # Results: my $Statement = $AddPermissionResponse->Statement; # Returns a L object. 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. For the AWS API documentation, see L =head1 ATTRIBUTES =head2 B Action => Str The action that the principal can use on the function. For example, C or C. =head2 EventSourceToken => Str For Alexa Smart Home functions, a token that must be supplied by the invoker. =head2 B FunctionName => Str The name of the Lambda function, version, or alias. B =over =item * B - C (name-only), C (with alias). =item * B - C. =item * B - C<123456789012:function:my-function>. =back You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length. =head2 B Principal => Str The Amazon Web Services service or account that invokes the function. If you specify a service, use C or C to limit who can invoke the function through that service. =head2 Qualifier => Str Specify a version or alias to add permissions to a published version of the function. =head2 RevisionId => Str Only update the policy if the revision ID matches the ID that's specified. Use this option to avoid modifying a policy that has changed since you last read it. =head2 SourceAccount => Str For Amazon S3, the ID of the account that owns the resource. Use this together with C to ensure that the resource is owned by the specified account. It is possible for an Amazon S3 bucket to be deleted by its owner and recreated by another account. =head2 SourceArn => Str For Amazon Web Services services, the ARN of the Amazon Web Services resource that invokes the function. For example, an Amazon S3 bucket or Amazon SNS topic. =head2 B StatementId => Str A statement identifier that differentiates the statement from others in the same policy. =head1 SEE ALSO This class forms part of L, documenting arguments for method AddPermission in L =head1 BUGS and CONTRIBUTIONS The source code is located here: L Please report bugs to: L =cut