NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Class LambdaClient

Client to interact with AWS Lambda

  Guzzle\Common\AbstractHasDispatcher implements Guzzle\Common\HasDispatcherInterface
  Guzzle\Http\Client implements Guzzle\Http\ClientInterface
  Guzzle\Service\Client implements Guzzle\Service\ClientInterface
  Aws\Common\Client\AbstractClient implements Aws\Common\Client\AwsClientInterface
  Aws\Lambda\LambdaClient

Namespace: Aws\Lambda
Link: User guide
Link: API docs
Located at Aws/Lambda/LambdaClient.php

## Methods summary

- `public static` `factory ( array|Collection $config = array() )`

  Factory method to create a new AWS Lambda client using an array of configuration options.

- `public` `addPermission ( array $args = array() )`

  Executes the AddPermission operation.

- `public` `createAlias ( array $args = array() )`

  Executes the CreateAlias operation.

- `public` `createEventSourceMapping ( array $args = array() )`

  Executes the CreateEventSourceMapping operation.

- `public` `createFunction ( array $args = array() )`

  Executes the CreateFunction operation.

- `public` `deleteAlias ( array $args = array() )`

  Executes the DeleteAlias operation.

- `public` `deleteEventSourceMapping ( array $args = array() )`

  Executes the DeleteEventSourceMapping operation.

- `public` `deleteFunction ( array $args = array() )`

  Executes the DeleteFunction operation.

- `public` `getAlias ( array $args = array() )`

  Executes the GetAlias operation.

- `public` `getEventSourceMapping ( array $args = array() )`

  Executes the GetEventSourceMapping operation.

- `public` `getFunction ( array $args = array() )`

  Executes the GetFunction operation.

- `public` `getFunctionConfiguration ( array $args = array() )`

  Executes the GetFunctionConfiguration operation.

- `public` `getPolicy ( array $args = array() )`

  Executes the GetPolicy operation.

- `public` `invoke ( array $args = array() )`

  Executes the Invoke operation.

- `public` `invokeAsync ( array $args = array() )`

  Executes the InvokeAsync operation.

- `public` `listAliases ( array $args = array() )`

  Executes the ListAliases operation.

- `public` `listEventSourceMappings ( array $args = array() )`

  Executes the ListEventSourceMappings operation.

- `public` `listFunctions ( array $args = array() )`

  Executes the ListFunctions operation.

- `public` `listVersionsByFunction ( array $args = array() )`

  Executes the ListVersionsByFunction operation.

- `public` `publishVersion ( array $args = array() )`

  Executes the PublishVersion operation.

- `public` `removePermission ( array $args = array() )`

  Executes the RemovePermission operation.

- `public` `updateAlias ( array $args = array() )`

  Executes the UpdateAlias operation.

- `public` `updateEventSourceMapping ( array $args = array() )`

  Executes the UpdateEventSourceMapping operation.

- `public` `updateFunctionCode ( array $args = array() )`

  Executes the UpdateFunctionCode operation.

- `public` `updateFunctionConfiguration ( array $args = array() )`

  Executes the UpdateFunctionConfiguration operation.

- `public` `getListEventSourceMappingsIterator ( array $args = array() )`

  The input array uses the parameters of the ListEventSourceMappings operation

- `public` `getListFunctionsIterator ( array $args = array() )`

  The input array uses the parameters of the ListFunctions operation

## Methods detail

# `public static `Aws\Lambda\LambdaClient``
`factory( array|`Guzzle\Common\Collection` $config = array() )`

Factory method to create a new AWS Lambda client using an array of configuration options.

See http://docs.aws.amazon.com/aws-sdk-php/v2/guide/configuration.html#client-configuration-options

#### Parameters

$config
  `array|`Guzzle\Common\Collection``
  $config Client configuration data

#### Returns

``Aws\Lambda\LambdaClient``

#### Link

http://docs.aws.amazon.com/aws-sdk-php/v2/guide/configuration.html#client-configuration-options

#### Overrides

`Guzzle\Service\Client::factory`
# `public `Guzzle\Service\Resource\Model``
`addPermission( array $args = array() )`

Executes the AddPermission operation.

Adds a permission to the resource policy associated with the specified AWS Lambda function. You use resource policies to grant permissions to event sources that use "push" model. In "push" model, event sources (such as Amazon S3 and custom applications) invoke your Lambda function. Each permission you add to the resource policy allows an event source, permission to invoke the Lambda function.

For information about the push model, see AWS Lambda: How it Works.

If you are using versioning feature (see AWS Lambda Function Versioning and Aliases), a Lambda function can have multiple ARNs that can be used to invoke the function. Note that, each permission you add to resource policy using this API is specific to an ARN, specified using the Qualifier parameter

This operation requires permission for the lambda:AddPermission action.

#### Examples

- Basic formatting example

      $result = $client->addPermission(array(
          // FunctionName is required
          'FunctionName' => 'string',
          // StatementId is required
          'StatementId' => 'string',
          // Action is required
          'Action' => 'string',
          // Principal is required
          'Principal' => 'string',
          'SourceArn' => 'string',
          'SourceAccount' => 'string',
          'Qualifier' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - FunctionName => (string)

    Name of the Lambda function whose resource 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.

  - StatementId => (string)

    A unique statement identifier.

  - Action => (string)

    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.

  - Principal => (string)

    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.

  - SourceArn => (string)

    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.
  - SourceAccount => (string)

    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.

  - Qualifier => (string)

    You can specify this optional query parameter to specify function version or alias name. The permission will then apply to the specific qualified ARN. For example, if you specify function version 2 as the qualifier, then permission applies only when request is made using qualified function ARN:

    arn:aws:lambda:aws-region:acct-id:function:function-name:2

    If you specify alias name, for example "PROD", then the permission is valid only for requests made using the alias ARN:

    arn:aws:lambda:aws-region:acct-id:function:function-name:PROD

    If the qualifier is not specified, the permission is valid only when requests is made using unqualified function ARN.

    arn:aws:lambda:aws-region:acct-id:function:function-name

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- Statement => (string)

  The permission statement you specified in the request. The response returns the same as a string using "\" as an escape character in the JSON.

# `public `Guzzle\Service\Resource\Model``
`createAlias( array $args = array() )`

Executes the CreateAlias operation.

Creates an alias to the specified Lambda function version. For more information, see Introduction to AWS Lambda Aliases

This requires permission for the lambda:CreateAlias action.

#### Examples

- Basic formatting example

      $result = $client->createAlias(array(
          // FunctionName is required
          'FunctionName' => 'string',
          // Name is required
          'Name' => 'string',
          // FunctionVersion is required
          'FunctionVersion' => 'string',
          'Description' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - FunctionName => (string)

    Name of the Lambda function for which you want to create an alias.

  - Name => (string)

    Name for the alias your creating.

  - FunctionVersion => (string)

    Lambda function version for which you are creating the alias.

  - Description => (string)

    Description of the alias.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- AliasArn => (string)

  Lambda function ARN that is qualified using alias name as the suffix. For example, if you create an alias "BETA" pointing to a helloworld function version, the ARN is arn:aws:lambda:aws-regions:acct-id:function:helloworld:BETA.

- Name => (string)

  Alias name.

- FunctionVersion => (string)

  Function version to which the alias points.

- Description => (string)

  Alias description.

# `public `Guzzle\Service\Resource\Model``
`createEventSourceMapping( array $args = array() )`

Executes the CreateEventSourceMapping operation.

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.

#### Examples

- Basic formatting example

      $result = $client->createEventSourceMapping(array(
          // EventSourceArn is required
          'EventSourceArn' => 'string',
          // FunctionName is required
          'FunctionName' => 'string',
          'Enabled' => true || false,
          'BatchSize' => integer,
          // StartingPosition is required
          'StartingPosition' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - EventSourceArn => (string)

    The Amazon Resource Name (ARN) of the Amazon Kinesis or the Amazon DynamoDB stream that is the event source. Any record added to this stream could cause AWS Lambda to invoke your Lambda function, it depends on the BatchSize. AWS Lambda POSTs the Amazon Kinesis event, containing records, to your Lambda function as JSON.

  - FunctionName => (string)

    The Lambda function to invoke when AWS Lambda detects an event on the stream.

    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.

  - Enabled => (bool)

    Indicates whether AWS Lambda should begin polling the event source. By default, Enabled is true.

  - BatchSize => (int)

    The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function. Your function receives an event with all the retrieved records. The default is 100 records.

  - StartingPosition => (string: TRIM_HORIZON | LATEST )

    The position in the stream where AWS Lambda should start reading. For more information, go to ShardIteratorType in the Amazon Kinesis API Reference.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- UUID => (string)

  The AWS Lambda assigned opaque identifier for the mapping.

- BatchSize => (int)

  The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function. Your function receives an event with all the retrieved records.

- EventSourceArn => (string)

  The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is the source of events.

- FunctionArn => (string)

  The Lambda function to invoke when AWS Lambda detects an event on the stream.

- LastModified => (string)

  The UTC time string indicating the last time the event mapping was updated.

- LastProcessingResult => (string)

  The result of the last AWS Lambda invocation of your Lambda function.

- State => (string)

  The state of the event source mapping. It can be "Creating", "Enabled", "Disabled", "Enabling", "Disabling", "Updating", or "Deleting".

- StateTransitionReason => (string)

  The reason the event source mapping is in its current state. It is either user-requested or an AWS Lambda-initiated state transition.

# `public `Guzzle\Service\Resource\Model``
`createFunction( array $args = array() )`

Executes the CreateFunction operation.

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.

#### Examples

- Basic formatting example

      $result = $client->createFunction(array(
          // FunctionName is required
          'FunctionName' => 'string',
          // Runtime is required
          'Runtime' => 'string',
          // Role is required
          'Role' => 'string',
          // Handler is required
          'Handler' => 'string',
          // Code is required
          'Code' => array(
              'ZipFile' => '',
              'S3Bucket' => 'string',
              'S3Key' => 'string',
              'S3ObjectVersion' => 'string',
          ),
          'Description' => 'string',
          'Timeout' => integer,
          'MemorySize' => integer,
          'Publish' => true || false,
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - FunctionName => (string)

    The name you want to assign to the function you are uploading. 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. The function names appear in the console and are returned in the ListFunctions API. Function names are used to specify functions to other AWS Lambda APIs, such as Invoke.

  - Runtime => (string: nodejs | java8 | python2.7 )

    The runtime environment for the Lambda function you are uploading. Currently, Lambda supports "java" and "nodejs" as the runtime.

  - Role => (string)

    The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services (AWS) resources. For more information, see AWS Lambda: How it Works

  - Handler => (string)

    The function within your code that Lambda calls to begin execution. For Node.js, it is the module-name.export value in your function. For Java, it can be package.class-name::handler or package.class-name. For more information, see Lambda Function Handler (Java).

  - Code => (associative-array)

    The code for the Lambda function.

    - ZipFile => ()

      A base64-encoded .zip file containing your deployment package. For more information about creating a .zip file, go to Execution Permissions in the AWS Lambda Developer Guide.

    - S3Bucket => (string)

      Amazon S3 bucket name where the .zip file containing your deployment package is stored. This bucket must reside in the same AWS region where you are creating the Lambda function.

    - S3Key => (string)

      The Amazon S3 object (the deployment package) key name you want to upload.

    - S3ObjectVersion => (string)

      The Amazon S3 object (the deployment package) version you want to upload.

  - Description => (string)

    A short, user-defined function description. Lambda does not use this value. Assign a meaningful description as you see fit.

  - Timeout => (int)

    The function execution time at which Lambda should terminate the function. Because the execution time has cost implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.

  - MemorySize => (int)

    The amount of memory, in MB, your Lambda function is given. Lambda uses this memory size to infer the amount of CPU and memory allocated to your function. Your function use-case determines your CPU and memory requirements. For example, a database operation might need less memory compared to an image processing function. The default value is 128 MB. The value must be a multiple of 64 MB.

  - Publish => (bool)

    This boolean parameter can be used to request AWS Lambda to create the Lambda function and publish a version as an atomic operation.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- FunctionName => (string)

  The name of the function.

- FunctionArn => (string)

  The Amazon Resource Name (ARN) assigned to the function.

- Runtime => (string)

  The runtime environment for the Lambda function.

- Role => (string)

  The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services (AWS) resources.

- Handler => (string)

  The function Lambda calls to begin executing your function.

- CodeSize => (int)

  The size, in bytes, of the function .zip file you uploaded.

- Description => (string)

  The user-provided description.

- Timeout => (int)

  The function execution time at which Lambda should terminate the function. Because the execution time has cost implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.

- MemorySize => (int)

  The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.

- LastModified => (string)

  The timestamp of the last time you updated the function.

- CodeSha256 => (string)

  It is the SHA256 hash of your function deployment package.

- Version => (string)

  The version of the Lambda function.

# `public `Guzzle\Service\Resource\Model``
`deleteAlias( array $args = array() )`

Executes the DeleteAlias operation.

Deletes specified Lambda function alias. For more information, see Introduction to AWS Lambda Aliases

This requires permission for the lambda:DeleteAlias action.

#### Examples

- Basic formatting example

      $result = $client->deleteAlias(array(
          // FunctionName is required
          'FunctionName' => 'string',
          // Name is required
          'Name' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - FunctionName => (string)

    The Lambda function name for which the alias is created.

  - Name => (string)

    Name of the alias to delete.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

# `public `Guzzle\Service\Resource\Model``
`deleteEventSourceMapping( array $args = array() )`

Executes the DeleteEventSourceMapping operation.

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.

#### Examples

- Basic formatting example

      $result = $client->deleteEventSourceMapping(array(
          // UUID is required
          'UUID' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - UUID => (string)

    The event source mapping ID.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- UUID => (string)

  The AWS Lambda assigned opaque identifier for the mapping.

- BatchSize => (int)

  The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function. Your function receives an event with all the retrieved records.

- EventSourceArn => (string)

  The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is the source of events.

- FunctionArn => (string)

  The Lambda function to invoke when AWS Lambda detects an event on the stream.

- LastModified => (string)

  The UTC time string indicating the last time the event mapping was updated.

- LastProcessingResult => (string)

  The result of the last AWS Lambda invocation of your Lambda function.

- State => (string)

  The state of the event source mapping. It can be "Creating", "Enabled", "Disabled", "Enabling", "Disabling", "Updating", or "Deleting".

- StateTransitionReason => (string)

  The reason the event source mapping is in its current state. It is either user-requested or an AWS Lambda-initiated state transition.

# `public `Guzzle\Service\Resource\Model``
`deleteFunction( array $args = array() )`

Executes the DeleteFunction operation.

Deletes the specified Lambda function code and configuration.

If you don't specify a function version, AWS Lambda will delete the function, including all its versions, and any aliases pointing to the function versions.

When you delete a function the associated resource policy is also deleted. You will need to delete the event source mappings explicitly.

For information about function versioning, see AWS Lambda Function Versioning and Aliases.

This operation requires permission for the lambda:DeleteFunction action.

#### Examples

- Basic formatting example

      $result = $client->deleteFunction(array(
          // FunctionName is required
          'FunctionName' => 'string',
          'Qualifier' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - FunctionName => (string)

    The Lambda function to delete.

    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.

  - Qualifier => (string)

    Using this optional parameter you can specify a function version (but not the $LATEST version) to direct AWS Lambda to delete a specific function version. If the function version has one or more aliases pointing to it, you will get an error because you cannot have aliases pointing to it. You can delete any function version but not the $LATEST, that is, you cannot specify $LATEST as the value of this parameter. The $LATEST version can be deleted only when you want to delete all the function versions and aliases.

    You can only specify a function version and not alias name using this parameter. You cannot delete a function version using its alias.

    If you don't specify this parameter, AWS Lambda will delete the function, including all its versions and aliases.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

# `public `Guzzle\Service\Resource\Model``
`getAlias( array $args = array() )`

Executes the GetAlias operation.

Returns the specified alias information such as the alias ARN, description, and function version it is pointing to. For more information, see Introduction to AWS Lambda Aliases

This requires permission for the lambda:GetAlias action.

#### Examples

- Basic formatting example

      $result = $client->getAlias(array(
          // FunctionName is required
          'FunctionName' => 'string',
          // Name is required
          'Name' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - FunctionName => (string)

    Function name for which the alias is created. An alias is a subresource that exists only in the context of an existing Lambda function. So you must specify the function name.

  - Name => (string)

    Name of the alias for which you want to retrieve information.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- AliasArn => (string)

  Lambda function ARN that is qualified using alias name as the suffix. For example, if you create an alias "BETA" pointing to a helloworld function version, the ARN is arn:aws:lambda:aws-regions:acct-id:function:helloworld:BETA.

- Name => (string)

  Alias name.

- FunctionVersion => (string)

  Function version to which the alias points.

- Description => (string)

  Alias description.

# `public `Guzzle\Service\Resource\Model``
`getEventSourceMapping( array $args = array() )`

Executes the GetEventSourceMapping operation.

Returns configuration information for the specified event source mapping (see CreateEventSourceMapping).

This operation requires permission for the lambda:GetEventSourceMapping action.

#### Examples

- Basic formatting example

      $result = $client->getEventSourceMapping(array(
          // UUID is required
          'UUID' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - UUID => (string)

    The AWS Lambda assigned ID of the event source mapping.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- UUID => (string)

  The AWS Lambda assigned opaque identifier for the mapping.

- BatchSize => (int)

  The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function. Your function receives an event with all the retrieved records.

- EventSourceArn => (string)

  The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is the source of events.

- FunctionArn => (string)

  The Lambda function to invoke when AWS Lambda detects an event on the stream.

- LastModified => (string)

  The UTC time string indicating the last time the event mapping was updated.

- LastProcessingResult => (string)

  The result of the last AWS Lambda invocation of your Lambda function.

- State => (string)

  The state of the event source mapping. It can be "Creating", "Enabled", "Disabled", "Enabling", "Disabling", "Updating", or "Deleting".

- StateTransitionReason => (string)

  The reason the event source mapping is in its current state. It is either user-requested or an AWS Lambda-initiated state transition.

# `public `Guzzle\Service\Resource\Model``
`getFunction( array $args = array() )`

Executes the GetFunction operation.

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.

Using the optional Qualifier parameter, you can specify a specific function version for which you want this information. If you don't specify this parameter, the API uses unqualified function ARN which return information about the $LATEST version of the Lambda function. For more information, see AWS Lambda Function Versioning and Aliases.

This operation requires permission for the lambda:GetFunction action.

#### Examples

- Basic formatting example

      $result = $client->getFunction(array(
          // FunctionName is required
          'FunctionName' => 'string',
          'Qualifier' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - FunctionName => (string)

    The Lambda function name.

    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.

  - Qualifier => (string)

    Using this optional parameter to specify a function version or alias name. If you specify function version, the API uses qualified function ARN for the request and returns information about the specific Lambda function version. If you specify alias name, the API uses alias ARN and returns information about the function version to which the alias points. If you don't provide this parameter, the API uses unqualified function ARN and returns information about the $LATEST version of the Lambda function.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- Configuration => (associative-array)

  A complex type that describes function metadata.

  - FunctionName => (string)

    The name of the function.

  - FunctionArn => (string)

    The Amazon Resource Name (ARN) assigned to the function.

  - Runtime => (string)

    The runtime environment for the Lambda function.

  - Role => (string)

    The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services (AWS) resources.

  - Handler => (string)

    The function Lambda calls to begin executing your function.

  - CodeSize => (int)

    The size, in bytes, of the function .zip file you uploaded.

  - Description => (string)

    The user-provided description.

  - Timeout => (int)

    The function execution time at which Lambda should terminate the function. Because the execution time has cost implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.

  - MemorySize => (int)

    The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.

  - LastModified => (string)

    The timestamp of the last time you updated the function.

  - CodeSha256 => (string)

    It is the SHA256 hash of your function deployment package.

  - Version => (string)

    The version of the Lambda function.

- Code => (associative-array)

  The object for the Lambda function location.

  - RepositoryType => (string)

    The repository from which you can download the function.

  - Location => (string)

    The presigned URL you can use to download the function's .zip file that you previously uploaded. The URL is valid for up to 10 minutes.

# `public `Guzzle\Service\Resource\Model``
`getFunctionConfiguration( array $args = array() )`

Executes the GetFunctionConfiguration operation.

Returns the configuration information of the Lambda function. This the same information you provided as parameters when uploading the function by using CreateFunction.

You can use the optional Qualifier parameter to retrieve configuration information for a specific Lambda function version. If you don't provide it, the API returns information about the $LATEST version of the function. For more information about versioning, see AWS Lambda Function Versioning and Aliases.

This operation requires permission for the lambda:GetFunctionConfiguration operation.

#### Examples

- Basic formatting example

      $result = $client->getFunctionConfiguration(array(
          // FunctionName is required
          'FunctionName' => 'string',
          'Qualifier' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - FunctionName => (string)

    The name of the Lambda function for which you want to retrieve the configuration information.

    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.

  - Qualifier => (string)

    Using this optional parameter you can specify function version or alias name. If you specify function version, the API uses qualified function ARN and returns information about the specific function version. if you specify alias name, the API uses alias ARN and returns information about the function version to which the alias points.

    If you don't specify this parameter, the API uses unqualified function ARN, and returns information about the $LATEST function version.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- FunctionName => (string)

  The name of the function.

- FunctionArn => (string)

  The Amazon Resource Name (ARN) assigned to the function.

- Runtime => (string)

  The runtime environment for the Lambda function.

- Role => (string)

  The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services (AWS) resources.

- Handler => (string)

  The function Lambda calls to begin executing your function.

- CodeSize => (int)

  The size, in bytes, of the function .zip file you uploaded.

- Description => (string)

  The user-provided description.

- Timeout => (int)

  The function execution time at which Lambda should terminate the function. Because the execution time has cost implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.

- MemorySize => (int)

  The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.

- LastModified => (string)

  The timestamp of the last time you updated the function.

- CodeSha256 => (string)

  It is the SHA256 hash of your function deployment package.

- Version => (string)

  The version of the Lambda function.

# `public `Guzzle\Service\Resource\Model``
`getPolicy( array $args = array() )`

Executes the GetPolicy operation.

Returns the resource policy, containing a list of permissions that apply to a specific to an ARN that you specify via the Qualifier paramter.

For informration about adding permissions, see AddPermission.

You need permission for the lambda:GetPolicy action.

#### Examples

- Basic formatting example

      $result = $client->getPolicy(array(
          // FunctionName is required
          'FunctionName' => 'string',
          'Qualifier' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - FunctionName => (string)

    Function name whose resource policy you want to retrieve.

    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.

  - Qualifier => (string)

    You can specify this optional query parameter to specify function version or alias name in which case this API will return all permissions associated with the specific ARN. If you don't provide this parameter, the API will return permissions that apply to the unqualified function ARN.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- Policy => (string)

  The resource policy associated with the specified function. The response returns the same as a string using "\" as an escape character in the JSON.

# `public `Guzzle\Service\Resource\Model``
`invoke( array $args = array() )`

Executes the Invoke operation.

Invokes a specific Lambda function version.

If you don't provide the Qualifier parameter, it uses the unqualified function ARN which results in invocation of the $LATEST version of the Lambda function (when you create a Lambda function, the $LATEST is the version). The AWS Lambda versioning and aliases feature allows you to publish multiple versions of a Lambda function and also create aliases for each function version. So each your Lambda function version can be invoked using multiple ARNs. For more information, see AWS Lambda Function Versioning and Aliases. Using the Qualifier parameter, you can specify a function version or alias name to invoke specific function version. If you specify function version, the API uses the qualified function ARN to invoke a specific function version. If you specify alias name, the API uses the alias ARN to invoke the function version to which the alias points.

This operation requires permission for the lambda:InvokeFunction action.

#### Examples

- Basic formatting example

      $result = $client->invoke(array(
          // FunctionName is required
          'FunctionName' => 'string',
          'InvocationType' => 'string',
          'LogType' => 'string',
          'ClientContext' => 'string',
          'Payload' => 'mixed type: string|resource|\Guzzle\Http\EntityBodyInterface',
          'Qualifier' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - FunctionName => (string)

    The Lambda function name.

    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.

  - InvocationType => (string: Event | RequestResponse | DryRun )

    By default, the Invoke API assumes "RequestResponse" invocation type. You can optionally request asynchronous execution by specifying "Event" as the InvocationType. You can also use this parameter to request AWS Lambda to not execute the function but do some verification, such as if the caller is authorized to invoke the function and if the inputs are valid. You request this by specifying "DryRun" as the InvocationType. This is useful in a cross-account scenario when you want to verify access to a function without running it.

  - LogType => (string: None | Tail )

    You can set this optional parameter to "Tail" in the request only if you specify the InvocationType parameter with value "RequestResponse". In this case, AWS Lambda returns the base64-encoded last 4 KB of log data produced by your Lambda function in the x-amz-log-results header.

  - ClientContext => (string)

    Using the ClientContext you can pass client-specific information to the Lambda function you are invoking. You can then process the client information in your Lambda function as you choose through the context variable. For an example of a ClientContext JSON, go to PutEvents in the Amazon Mobile Analytics API Reference and User Guide.

    The ClientContext JSON must be base64-encoded.

  - Payload => ()

    JSON that you want to provide to your Lambda function as input.

  - Qualifier => (string)

    You can use this optional paramter to specify a Lambda function version or alias name. If you specify function version, the API uses qualified function ARN to invoke a specific Lambda function. If you specify alias name, the API uses the alias ARN to invoke the Lambda function version to which the alias points.

    If you don't provide this parameter, then the API uses unqualified function ARN which results in invocation of the $LATEST version.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- StatusCode => (int)

  The HTTP status code will be in the 200 range for successful request. For the "RequestResonse" invocation type this status code will be 200. For the "Event" invocation type this status code will be 202. For the "DryRun" invocation type the status code will be 204.

- FunctionError => (string)

  Indicates whether an error occurred while executing the Lambda function. If an error occurred this field will have one of two values; Handled or Unhandled. Handled errors are errors that are reported by the function while the Unhandled errors are those detected and reported by AWS Lambda. Unhandled errors include out of memory errors and function timeouts. For information about how to report an Handled error, see Programming Model.

- LogResult => (string)

  It is the base64-encoded logs for the Lambda function invocation. This is present only if the invocation type is "RequestResponse" and the logs were requested.

- Payload => ()

  It is the JSON representation of the object returned by the Lambda function. In This is present only if the invocation type is "RequestResponse".

  In the event of a function error this field contains a message describing the error. For the Handled errors the Lambda function will report this message. For Unhandled errors AWS Lambda reports the message.

# `public `Guzzle\Service\Resource\Model``
`invokeAsync( array $args = array() )`

Executes the InvokeAsync operation.

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.

#### Examples

- Basic formatting example

      $result = $client->invokeAsync(array(
          // FunctionName is required
          'FunctionName' => 'string',
          // InvokeArgs is required
          'InvokeArgs' => 'mixed type: string|resource|\Guzzle\Http\EntityBodyInterface',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - FunctionName => (string)

    The Lambda function name.

  - InvokeArgs => (string|resource|\Guzzle\Http\EntityBodyInterface)

    JSON that you want to provide to your Lambda function as input.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- Status => (int)

  It will be 202 upon success.

# `public `Guzzle\Service\Resource\Model``
`listAliases( array $args = array() )`

Executes the ListAliases operation.

Returns list of aliases created for a Lambda function. For each alias, the response includes information such as the alias ARN, description, alias name, and the function version to which it points. For more information, see Introduction to AWS Lambda Aliases

This requires permission for the lambda:ListAliases action.

#### Examples

- Basic formatting example

      $result = $client->listAliases(array(
          // FunctionName is required
          'FunctionName' => 'string',
          'FunctionVersion' => 'string',
          'Marker' => 'string',
          'MaxItems' => integer,
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - FunctionName => (string)

    Lambda function name for which the alias is created.

  - FunctionVersion => (string)

    If you specify this optional parameter, the API returns only the aliases pointing to the specific Lambda function version, otherwise returns all aliases created for the Lambda function.

  - Marker => (string)

    Optional string. An opaque pagination token returned from a previous ListAliases operation. If present, indicates where to continue the listing.

  - MaxItems => (int)

    Optional integer. Specifies the maximum number of aliases to return in response. This parameter value must be greater than 0.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- NextMarker => (string)

  A string, present if there are more aliases.

- Aliases => (array<associative-array>)

  An list of alises.

  - (associative-array)

    Provides configuration information about a Lambda function version alias.

    - AliasArn => (string)

      Lambda function ARN that is qualified using alias name as the suffix. For example, if you create an alias "BETA" pointing to a helloworld function version, the ARN is arn:aws:lambda:aws-regions:acct-id:function:helloworld:BETA.

    - Name => (string)

      Alias name.

    - FunctionVersion => (string)

      Function version to which the alias points.

    - Description => (string)

      Alias description.

# `public `Guzzle\Service\Resource\Model``
`listEventSourceMappings( array $args = array() )`

Executes the ListEventSourceMappings operation.

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.

#### Examples

- Basic formatting example

      $result = $client->listEventSourceMappings(array(
          'EventSourceArn' => 'string',
          'FunctionName' => 'string',
          'Marker' => 'string',
          'MaxItems' => integer,
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - EventSourceArn => (string)

    The Amazon Resource Name (ARN) of the Amazon Kinesis stream.

  - FunctionName => (string)

    The name of the Lambda function.

    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.

  - Marker => (string)

    Optional string. An opaque pagination token returned from a previous ListEventSourceMappings operation. If present, specifies to continue the list from where the returning call left off.

  - MaxItems => (int)

    Optional integer. Specifies the maximum number of event sources to return in response. This value must be greater than 0.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- NextMarker => (string)

  A string, present if there are more event source mappings.

- EventSourceMappings => (array<associative-array>)

  An array of EventSourceMappingConfiguration objects.

  - (associative-array)

    Describes mapping between an Amazon Kinesis stream and a Lambda function.

    - UUID => (string)

      The AWS Lambda assigned opaque identifier for the mapping.

    - BatchSize => (int)

      The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function. Your function receives an event with all the retrieved records.

    - EventSourceArn => (string)

      The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is the source of events.

    - FunctionArn => (string)

      The Lambda function to invoke when AWS Lambda detects an event on the stream.

    - LastModified => (string)

      The UTC time string indicating the last time the event mapping was updated.

    - LastProcessingResult => (string)

      The result of the last AWS Lambda invocation of your Lambda function.

    - State => (string)

      The state of the event source mapping. It can be "Creating", "Enabled", "Disabled", "Enabling", "Disabling", "Updating", or "Deleting".

    - StateTransitionReason => (string)

      The reason the event source mapping is in its current state. It is either user-requested or an AWS Lambda-initiated state transition.

# `public `Guzzle\Service\Resource\Model``
`listFunctions( array $args = array() )`

Executes the ListFunctions operation.

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.

#### Examples

- Basic formatting example

      $result = $client->listFunctions(array(
          'Marker' => 'string',
          'MaxItems' => integer,
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - Marker => (string)

    Optional string. An opaque pagination token returned from a previous ListFunctions operation. If present, indicates where to continue the listing.

  - MaxItems => (int)

    Optional integer. Specifies the maximum number of AWS Lambda functions to return in response. This parameter value must be greater than 0.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- NextMarker => (string)

  A string, present if there are more functions.

- Functions => (array<associative-array>)

  A list of Lambda functions.

  - (associative-array)

    A complex type that describes function metadata.

    - FunctionName => (string)

      The name of the function.

    - FunctionArn => (string)

      The Amazon Resource Name (ARN) assigned to the function.

    - Runtime => (string)

      The runtime environment for the Lambda function.

    - Role => (string)

      The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services (AWS) resources.

    - Handler => (string)

      The function Lambda calls to begin executing your function.

    - CodeSize => (int)

      The size, in bytes, of the function .zip file you uploaded.

    - Description => (string)

      The user-provided description.

    - Timeout => (int)

      The function execution time at which Lambda should terminate the function. Because the execution time has cost implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.

    - MemorySize => (int)

      The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.

    - LastModified => (string)

      The timestamp of the last time you updated the function.

    - CodeSha256 => (string)

      It is the SHA256 hash of your function deployment package.

    - Version => (string)

      The version of the Lambda function.

# `public `Guzzle\Service\Resource\Model``
`listVersionsByFunction( array $args = array() )`

Executes the ListVersionsByFunction operation.

List all versions of a function.

#### Examples

- Basic formatting example

      $result = $client->listVersionsByFunction(array(
          // FunctionName is required
          'FunctionName' => 'string',
          'Marker' => 'string',
          'MaxItems' => integer,
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - FunctionName => (string)

    Function name whose versions to list. 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.

  - Marker => (string)

    Optional string. An opaque pagination token returned from a previous ListVersionsByFunction operation. If present, indicates where to continue the listing.

  - MaxItems => (int)

    Optional integer. Specifies the maximum number of AWS Lambda function versions to return in response. This parameter value must be greater than 0.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- NextMarker => (string)

  A string, present if there are more function versions.

- Versions => (array<associative-array>)

  A list of Lambda function versions.

  - (associative-array)

    A complex type that describes function metadata.

    - FunctionName => (string)

      The name of the function.

    - FunctionArn => (string)

      The Amazon Resource Name (ARN) assigned to the function.

    - Runtime => (string)

      The runtime environment for the Lambda function.

    - Role => (string)

      The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services (AWS) resources.

    - Handler => (string)

      The function Lambda calls to begin executing your function.

    - CodeSize => (int)

      The size, in bytes, of the function .zip file you uploaded.

    - Description => (string)

      The user-provided description.

    - Timeout => (int)

      The function execution time at which Lambda should terminate the function. Because the execution time has cost implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.

    - MemorySize => (int)

      The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.

    - LastModified => (string)

      The timestamp of the last time you updated the function.

    - CodeSha256 => (string)

      It is the SHA256 hash of your function deployment package.

    - Version => (string)

      The version of the Lambda function.

# `public `Guzzle\Service\Resource\Model``
`publishVersion( array $args = array() )`

Executes the PublishVersion operation.

Publishes a version of your function from the current snapshot of HEAD. That is, AWS Lambda takes a snapshot of the function code and configuration information from HEAD and publishes a new version. The code and handler of this specific Lambda function version cannot be modified after publication, but you can modify the configuration information.

#### Examples

- Basic formatting example

      $result = $client->publishVersion(array(
          // FunctionName is required
          'FunctionName' => 'string',
          'CodeSha256' => 'string',
          'Description' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - FunctionName => (string)

    The Lambda function name. 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.

  - CodeSha256 => (string)

    The SHA256 hash of the deployment package you want to publish. This provides validation on the code you are publishing. If you provide this parameter value must match the SHA256 of the HEAD version for the publication to succeed.

  - Description => (string)

    The description for the version you are publishing. If not provided, AWS Lambda copies the description from the HEAD version.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- FunctionName => (string)

  The name of the function.

- FunctionArn => (string)

  The Amazon Resource Name (ARN) assigned to the function.

- Runtime => (string)

  The runtime environment for the Lambda function.

- Role => (string)

  The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services (AWS) resources.

- Handler => (string)

  The function Lambda calls to begin executing your function.

- CodeSize => (int)

  The size, in bytes, of the function .zip file you uploaded.

- Description => (string)

  The user-provided description.

- Timeout => (int)

  The function execution time at which Lambda should terminate the function. Because the execution time has cost implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.

- MemorySize => (int)

  The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.

- LastModified => (string)

  The timestamp of the last time you updated the function.

- CodeSha256 => (string)

  It is the SHA256 hash of your function deployment package.

- Version => (string)

  The version of the Lambda function.

# `public `Guzzle\Service\Resource\Model``
`removePermission( array $args = array() )`

Executes the RemovePermission operation.

You can remove individual permissions from an resource policy associated with a Lambda function by providing a statement ID that you provided when you addded the permission. The API removes corresponding permission that is associated with the specific ARN identified by the Qualifier parameter.

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.

#### Examples

- Basic formatting example

      $result = $client->removePermission(array(
          // FunctionName is required
          'FunctionName' => 'string',
          // StatementId is required
          'StatementId' => 'string',
          'Qualifier' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - FunctionName => (string)

    Lambda function whose resource policy you want to remove a permission from.

    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.

  - StatementId => (string)

    Statement ID of the permission to remove.

  - Qualifier => (string)

    You can specify this optional parameter to remove permission associated with a specific function version or function alias. The value of this paramter is the function version or alias name. If you don't specify this parameter, the API removes permission associated with the unqualified function ARN.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

# `public `Guzzle\Service\Resource\Model``
`updateAlias( array $args = array() )`

Executes the UpdateAlias operation.

Using this API you can update function version to which the alias points to and alias description. For more information, see Introduction to AWS Lambda Aliases

This requires permission for the lambda:UpdateAlias action.

#### Examples

- Basic formatting example

      $result = $client->updateAlias(array(
          // FunctionName is required
          'FunctionName' => 'string',
          // Name is required
          'Name' => 'string',
          'FunctionVersion' => 'string',
          'Description' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - FunctionName => (string)

    The function name for which the alias is created.

  - Name => (string)

    The alias name.

  - FunctionVersion => (string)

    Using this parameter you can optionally change the Lambda function version to which the alias to points to.

  - Description => (string)

    You can optionally change the description of the alias using this parameter.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- AliasArn => (string)

  Lambda function ARN that is qualified using alias name as the suffix. For example, if you create an alias "BETA" pointing to a helloworld function version, the ARN is arn:aws:lambda:aws-regions:acct-id:function:helloworld:BETA.

- Name => (string)

  Alias name.

- FunctionVersion => (string)

  Function version to which the alias points.

- Description => (string)

  Alias description.

# `public `Guzzle\Service\Resource\Model``
`updateEventSourceMapping( array $args = array() )`

Executes the UpdateEventSourceMapping operation.

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.

#### Examples

- Basic formatting example

      $result = $client->updateEventSourceMapping(array(
          // UUID is required
          'UUID' => 'string',
          'FunctionName' => 'string',
          'Enabled' => true || false,
          'BatchSize' => integer,
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - UUID => (string)

    The event source mapping identifier.

  - FunctionName => (string)

    The Lambda function to which you want the stream records sent.

    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.

  - Enabled => (bool)

    Specifies whether AWS Lambda should actively poll the stream or not. If disabled, AWS Lambda will not poll the stream.

  - BatchSize => (int)

    The maximum number of stream records that can be sent to your Lambda function for a single invocation.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- UUID => (string)

  The AWS Lambda assigned opaque identifier for the mapping.

- BatchSize => (int)

  The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function. Your function receives an event with all the retrieved records.

- EventSourceArn => (string)

  The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is the source of events.

- FunctionArn => (string)

  The Lambda function to invoke when AWS Lambda detects an event on the stream.

- LastModified => (string)

  The UTC time string indicating the last time the event mapping was updated.

- LastProcessingResult => (string)

  The result of the last AWS Lambda invocation of your Lambda function.

- State => (string)

  The state of the event source mapping. It can be "Creating", "Enabled", "Disabled", "Enabling", "Disabling", "Updating", or "Deleting".

- StateTransitionReason => (string)

  The reason the event source mapping is in its current state. It is either user-requested or an AWS Lambda-initiated state transition.

# `public `Guzzle\Service\Resource\Model``
`updateFunctionCode( array $args = array() )`

Executes the UpdateFunctionCode operation.

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.

#### Examples

- Basic formatting example

      $result = $client->updateFunctionCode(array(
          // FunctionName is required
          'FunctionName' => 'string',
          'ZipFile' => '',
          'S3Bucket' => 'string',
          'S3Key' => 'string',
          'S3ObjectVersion' => 'string',
          'Publish' => true || false,
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - FunctionName => (string)

    The existing Lambda function name whose code you want to replace.

    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.

  - ZipFile => ()

    Based64-encoded .zip file containing your packaged source code.

  - S3Bucket => (string)

    Amazon S3 bucket name where the .zip file containing your deployment package is stored. This bucket must reside in the same AWS region where you are creating the Lambda function.

  - S3Key => (string)

    The Amazon S3 object (the deployment package) key name you want to upload.

  - S3ObjectVersion => (string)

    The Amazon S3 object (the deployment package) version you want to upload.

  - Publish => (bool)

    This boolean parameter can be used to request AWS Lambda to update the Lambda function and publish a version as an atomic operation.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- FunctionName => (string)

  The name of the function.

- FunctionArn => (string)

  The Amazon Resource Name (ARN) assigned to the function.

- Runtime => (string)

  The runtime environment for the Lambda function.

- Role => (string)

  The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services (AWS) resources.

- Handler => (string)

  The function Lambda calls to begin executing your function.

- CodeSize => (int)

  The size, in bytes, of the function .zip file you uploaded.

- Description => (string)

  The user-provided description.

- Timeout => (int)

  The function execution time at which Lambda should terminate the function. Because the execution time has cost implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.

- MemorySize => (int)

  The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.

- LastModified => (string)

  The timestamp of the last time you updated the function.

- CodeSha256 => (string)

  It is the SHA256 hash of your function deployment package.

- Version => (string)

  The version of the Lambda function.

# `public `Guzzle\Service\Resource\Model``
`updateFunctionConfiguration( array $args = array() )`

Executes the UpdateFunctionConfiguration operation.

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.

#### Examples

- Basic formatting example

      $result = $client->updateFunctionConfiguration(array(
          // FunctionName is required
          'FunctionName' => 'string',
          'Role' => 'string',
          'Handler' => 'string',
          'Description' => 'string',
          'Timeout' => integer,
          'MemorySize' => integer,
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - FunctionName => (string)

    The name of the Lambda function.

    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.

  - Role => (string)

    The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.

  - Handler => (string)

    The function that Lambda calls to begin executing your function. For Node.js, it is the module-name.export value in your function.

  - Description => (string)

    A short user-defined function description. AWS Lambda does not use this value. Assign a meaningful description as you see fit.

  - Timeout => (int)

    The function execution time at which AWS Lambda should terminate the function. Because the execution time has cost implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.

  - MemorySize => (int)

    The amount of memory, in MB, your Lambda function is given. AWS Lambda uses this memory size to infer the amount of CPU allocated to your function. Your function use-case determines your CPU and memory requirements. For example, a database operation might need less memory compared to an image processing function. The default value is 128 MB. The value must be a multiple of 64 MB.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- FunctionName => (string)

  The name of the function.

- FunctionArn => (string)

  The Amazon Resource Name (ARN) assigned to the function.

- Runtime => (string)

  The runtime environment for the Lambda function.

- Role => (string)

  The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services (AWS) resources.

- Handler => (string)

  The function Lambda calls to begin executing your function.

- CodeSize => (int)

  The size, in bytes, of the function .zip file you uploaded.

- Description => (string)

  The user-provided description.

- Timeout => (int)

  The function execution time at which Lambda should terminate the function. Because the execution time has cost implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.

- MemorySize => (int)

  The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.

- LastModified => (string)

  The timestamp of the last time you updated the function.

- CodeSha256 => (string)

  It is the SHA256 hash of your function deployment package.

- Version => (string)

  The version of the Lambda function.

# `public `Guzzle\Service\Resource\ResourceIteratorInterface``
`getListEventSourceMappingsIterator( array $args = array() )`

The input array uses the parameters of the ListEventSourceMappings operation

#### Parameters

$args
  `array`
  $args

#### Returns

``Guzzle\Service\Resource\ResourceIteratorInterface``
# `public `Guzzle\Service\Resource\ResourceIteratorInterface``
`getListFunctionsIterator( array $args = array() )`

The input array uses the parameters of the ListFunctions operation

#### Parameters

$args
  `array`
  $args

#### Returns

``Guzzle\Service\Resource\ResourceIteratorInterface``

### Methods inherited from Aws\Common\Client\AbstractClient

`__call()`, `__construct()`, `createRequest()`, `getAllEvents()`, `getApiVersion()`, `getCredentials()`, `getRegion()`, `getRegions()`, `getSignature()`, `getWaiter()`, `getWaiterFactory()`, `send()`, `setCredentials()`, `setRegion()`, `setWaiterFactory()`, `waitUntil()`

### Methods inherited from Guzzle\Service\Client

`execute()`, `executeMultiple()`, `getCommand()`, `getCommandFactory()`, `getDescription()`, `getInflector()`, `getIterator()`, `getResourceIteratorFactory()`, `prepareCommand()`, `setCommandFactory()`, `setDescription()`, `setInflector()`, `setResourceIteratorFactory()`

### Methods inherited from Guzzle\Http\Client

`delete()`, `expandTemplate()`, `extractPharCacert()`, `get()`, `getBaseUrl()`, `getConfig()`, `getCurlMulti()`, `getDefaultOption()`, `getDefaultUserAgent()`, `getUriTemplate()`, `head()`, `initSsl()`, `options()`, `patch()`, `post()`, `prepareRequest()`, `put()`, `sendMultiple()`, `setBaseUrl()`, `setConfig()`, `setCurlMulti()`, `setDefaultOption()`, `setRequestFactory()`, `setSslVerification()`, `setUriTemplate()`, `setUserAgent()`

### Methods inherited from Guzzle\Common\AbstractHasDispatcher

`addSubscriber()`, `dispatch()`, `getEventDispatcher()`, `setEventDispatcher()`

### Magic methods summary

## Constants summary

`string` | `LATEST_API_VERSION` | `'2015-03-31'` | #

### Constants inherited from Guzzle\Service\Client

`COMMAND_PARAMS`

### Constants inherited from Guzzle\Http\Client

`CURL_OPTIONS`, `DEFAULT_SELECT_TIMEOUT`, `DISABLE_REDIRECTS`, `MAX_HANDLES`, `REQUEST_OPTIONS`, `SSL_CERT_AUTHORITY`

### Constants inherited from Guzzle\Http\ClientInterface

`CREATE_REQUEST`, `HTTP_DATE`

## Properties summary

### Properties inherited from Aws\Common\Client\AbstractClient

`$aggregator`, `$credentials`, `$signature`, `$waiterFactory`

### Properties inherited from Guzzle\Service\Client

`$commandFactory`, `$inflector`, `$resourceIteratorFactory`, `$serviceDescription`

### Properties inherited from Guzzle\Http\Client

`$defaultHeaders`, `$requestFactory`, `$userAgent`

### Properties inherited from Guzzle\Common\AbstractHasDispatcher

`$eventDispatcher`