|
NAMEPaws::Lambda - Perl Interface to AWS AWS LambdaSYNOPSISuse Paws; my $obj = Paws->service('Lambda')->new; my $res = $obj->Method( Arg1 => $val1, Arg2 => [ 'V1', 'V2' ], # if Arg3 is an object, the HashRef will be used as arguments to the constructor # of the arguments type Arg3 => { Att1 => 'Val1' }, # if Arg4 is an array of objects, the HashRefs will be passed as arguments to # the constructor of the arguments type Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ], ); DESCRIPTIONAWS LambdaOverview This is the AWS Lambda API Reference. The AWS Lambda Developer Guide provides additional information. For the service overview, go to What is AWS Lambda, and for information about how the service works, go to AWS Lambda: How it Works in the AWS Lambda Developer Guide. METHODSAddPermission(Action => Str, FunctionName => Str, Principal => Str, StatementId => Str, [SourceAccount => Str, SourceArn => Str])Each argument is described in detail in: Paws::Lambda::AddPermissionReturns: a Paws::Lambda::AddPermissionResponse instance Adds a permission to the access policy associated with the specified AWS Lambda function. In a "push event" model, the access policy attached to the Lambda function grants Amazon S3 or a user application permission for the Lambda "lambda:Invoke" action. For information about the push model, see AWS Lambda: How it Works. Each Lambda function has one access policy associated with it. You can use the "AddPermission" API to add a permission to the policy. You have one access policy but it can have multiple permission statements. This operation requires permission for the "lambda:AddPermission" action. CreateEventSourceMapping(EventSourceArn => Str, FunctionName => Str, StartingPosition => Str, [BatchSize => Int, Enabled => Bool])Each argument is described in detail in: Paws::Lambda::CreateEventSourceMappingReturns: a Paws::Lambda::EventSourceMappingConfiguration instance Identifies a stream as an event source for a Lambda function. It can be either an Amazon Kinesis stream or an Amazon DynamoDB stream. AWS Lambda invokes the specified function when records are posted to the stream. This is the pull model, where AWS Lambda invokes the function. For more information, go to AWS Lambda: How it Works in the AWS Lambda Developer Guide. This association between an Amazon Kinesis stream and a Lambda function is called the event source mapping. You provide the configuration information (for example, which stream to read from and which Lambda function to invoke) for the event source mapping in the request body. Each event source, such as an Amazon Kinesis or a DynamoDB stream, can be associated with multiple AWS Lambda function. A given Lambda function can be associated with multiple AWS event sources. This operation requires permission for the "lambda:CreateEventSourceMapping" action. CreateFunction(Code => Paws::Lambda::FunctionCode, FunctionName => Str, Handler => Str, Role => Str, Runtime => Str, [Description => Str, MemorySize => Int, Timeout => Int])Each argument is described in detail in: Paws::Lambda::CreateFunctionReturns: a Paws::Lambda::FunctionConfiguration instance Creates a new Lambda function. The function metadata is created from the request parameters, and the code for the function is provided by a .zip file in the request body. If the function name already exists, the operation will fail. Note that the function name is case-sensitive. This operation requires permission for the "lambda:CreateFunction" action. DeleteEventSourceMapping(UUID => Str)Each argument is described in detail in: Paws::Lambda::DeleteEventSourceMappingReturns: a Paws::Lambda::EventSourceMappingConfiguration instance Removes an event source mapping. This means AWS Lambda will no longer invoke the function for events in the associated source. This operation requires permission for the "lambda:DeleteEventSourceMapping" action. DeleteFunction(FunctionName => Str)Each argument is described in detail in: Paws::Lambda::DeleteFunctionReturns: nothing Deletes the specified Lambda function code and configuration. When you delete a function the associated access policy is also deleted. You will need to delete the event source mappings explicitly. This operation requires permission for the "lambda:DeleteFunction" action. GetEventSourceMapping(UUID => Str)Each argument is described in detail in: Paws::Lambda::GetEventSourceMappingReturns: a Paws::Lambda::EventSourceMappingConfiguration instance Returns configuration information for the specified event source mapping (see CreateEventSourceMapping). This operation requires permission for the "lambda:GetEventSourceMapping" action. GetFunction(FunctionName => Str)Each argument is described in detail in: Paws::Lambda::GetFunctionReturns: a Paws::Lambda::GetFunctionResponse instance Returns the configuration information of the Lambda function and a presigned URL link to the .zip file you uploaded with CreateFunction so you can download the .zip file. Note that the URL is valid for up to 10 minutes. The configuration information is the same information you provided as parameters when uploading the function. This operation requires permission for the "lambda:GetFunction" action. GetFunctionConfiguration(FunctionName => Str)Each argument is described in detail in: Paws::Lambda::GetFunctionConfigurationReturns: a Paws::Lambda::FunctionConfiguration instance Returns the configuration information of the Lambda function. This the same information you provided as parameters when uploading the function by using CreateFunction. This operation requires permission for the "lambda:GetFunctionConfiguration" operation. GetPolicy(FunctionName => Str)Each argument is described in detail in: Paws::Lambda::GetPolicyReturns: a Paws::Lambda::GetPolicyResponse instance Returns the access policy, containing a list of permissions granted via the "AddPermission" API, associated with the specified bucket. You need permission for the "lambda:GetPolicy action." Invoke(FunctionName => Str, [ClientContext => Str, InvocationType => Str, LogType => Str, Payload => Str])Each argument is described in detail in: Paws::Lambda::InvokeReturns: a Paws::Lambda::InvocationResponse instance Invokes a specified Lambda function. This operation requires permission for the "lambda:InvokeFunction" action. InvokeAsync(FunctionName => Str, InvokeArgs => Str)Each argument is described in detail in: Paws::Lambda::InvokeAsyncReturns: a Paws::Lambda::InvokeAsyncResponse instance This API is deprecated. We recommend you use "Invoke" API (see Invoke). Submits an invocation request to AWS Lambda. Upon receiving the request, Lambda executes the specified function asynchronously. To see the logs generated by the Lambda function execution, see the CloudWatch logs console. This operation requires permission for the "lambda:InvokeFunction" action. ListEventSourceMappings([EventSourceArn => Str, FunctionName => Str, Marker => Str, MaxItems => Int])Each argument is described in detail in: Paws::Lambda::ListEventSourceMappingsReturns: a Paws::Lambda::ListEventSourceMappingsResponse instance Returns a list of event source mappings you created using the "CreateEventSourceMapping" (see CreateEventSourceMapping), where you identify a stream as an event source. This list does not include Amazon S3 event sources. For each mapping, the API returns configuration information. You can optionally specify filters to retrieve specific event source mappings. This operation requires permission for the "lambda:ListEventSourceMappings" action. ListFunctions([Marker => Str, MaxItems => Int])Each argument is described in detail in: Paws::Lambda::ListFunctionsReturns: a Paws::Lambda::ListFunctionsResponse instance Returns a list of your Lambda functions. For each function, the response includes the function configuration information. You must use GetFunction to retrieve the code for your function. This operation requires permission for the "lambda:ListFunctions" action. RemovePermission(FunctionName => Str, StatementId => Str)Each argument is described in detail in: Paws::Lambda::RemovePermissionReturns: nothing You can remove individual permissions from an access policy associated with a Lambda function by providing a Statement ID. Note that removal of a permission will cause an active event source to lose permission to the function. You need permission for the "lambda:RemovePermission" action. UpdateEventSourceMapping(UUID => Str, [BatchSize => Int, Enabled => Bool, FunctionName => Str])Each argument is described in detail in: Paws::Lambda::UpdateEventSourceMappingReturns: a Paws::Lambda::EventSourceMappingConfiguration instance You can update an event source mapping. This is useful if you want to change the parameters of the existing mapping without losing your position in the stream. You can change which function will receive the stream records, but to change the stream itself, you must create a new mapping. This operation requires permission for the "lambda:UpdateEventSourceMapping" action. UpdateFunctionCode(FunctionName => Str, [S3Bucket => Str, S3Key => Str, S3ObjectVersion => Str, ZipFile => Str])Each argument is described in detail in: Paws::Lambda::UpdateFunctionCodeReturns: a Paws::Lambda::FunctionConfiguration instance Updates the code for the specified Lambda function. This operation must only be used on an existing Lambda function and cannot be used to update the function configuration. This operation requires permission for the "lambda:UpdateFunctionCode" action. UpdateFunctionConfiguration(FunctionName => Str, [Description => Str, Handler => Str, MemorySize => Int, Role => Str, Timeout => Int])Each argument is described in detail in: Paws::Lambda::UpdateFunctionConfigurationReturns: a Paws::Lambda::FunctionConfiguration instance Updates the configuration parameters for the specified Lambda function by using the values provided in the request. You provide only the parameters you want to change. This operation must only be used on an existing Lambda function and cannot be used to update the function's code. This operation requires permission for the "lambda:UpdateFunctionConfiguration" action. SEE ALSOThis service class forms part of PawsBUGS and CONTRIBUTIONSThe source code is located here: https://github.com/pplu/aws-sdk-perlPlease report bugs to: https://github.com/pplu/aws-sdk-perl/issues
Visit the GSP FreeBSD Man Page Interface. |