Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
proc
/
thread-self
/
root
/
usr
/
lib
/
python2.7
/
site-packages
/
boto
/
awslambda
/
File Content:
layer1.pyo
� ��Wc @ sv d d l Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z d e f d � � YZ d S( i����N( t json( t JSONResponseError( t AWSAuthConnection( t RegionInfo( t exceptionst AWSLambdaConnectionc B s e Z d Z d Z d Z d Z e Z i e j d 6e j d 6e j d 6e j d 6Z d � Z d � Z d d d � Z d � Z d � Z d � Z d � Z d � Z d d d d d � Z d d d � Z d � Z d d d d d d � Z d d d d � Z d d d d d � Z RS( sM AWS Lambda **Overview** 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 LambdaL How it Works`_ in the AWS Lambda Developer Guide. s 2014-11-11s us-east-1s lambda.us-east-1.amazonaws.comt InvalidRequestContentExceptiont ResourceNotFoundExceptiont InvalidParameterValueExceptiont ServiceExceptionc K sg | j d � } | s0 t | | j | j � } n | d =| j | d <t t | � j | � | | _ d S( Nt regiont host( t getR t DefaultRegionNamet DefaultRegionEndpointt endpointt superR t __init__R ( t selft kwargsR ( ( s9 /usr/lib/python2.7/site-packages/boto/awslambda/layer1.pyR 7 s c C s d g S( Ns hmac-v4( ( R ( ( s9 /usr/lib/python2.7/site-packages/boto/awslambda/layer1.pyt _required_auth_capabilityB s c C s� d } i | d 6| d 6| d 6} i } i } | d k rF | | d <n | d k r_ | | d <n | j d | d d d t j | � d | d | �S( s� Identifies an Amazon Kinesis stream as the event source for an AWS Lambda function. 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 LambdaL How it Works`_ in the AWS Lambda Developer Guide. This association between an Amazon Kinesis stream and an AWS Lambda function is called the event source mapping. You provide the configuration information (for example, which stream to read from and which AWS Lambda function to invoke) for the event source mapping in the request body. This operation requires permission for the `iam:PassRole` action for the IAM role. It also requires permission for the `lambda:AddEventSource` action. :type event_source: string :param event_source: The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is the event source. Any record added to this stream causes AWS Lambda to invoke your Lambda function. AWS Lambda POSTs the Amazon Kinesis event, containing records, to your Lambda function as JSON. :type function_name: string :param function_name: The Lambda function to invoke when AWS Lambda detects an event on the stream. :type role: string :param role: The ARN of the IAM role (invocation role) that AWS Lambda can assume to read from the stream and invoke the function. :type batch_size: integer :param batch_size: The largest number of records that AWS Lambda will give to your function in a single event. The default is 100 records. :type parameters: map :param parameters: A map (key-value pairs) defining the configuration for AWS Lambda to use when reading the event source. Currently, AWS Lambda supports only the `InitialPositionInStream` key. The valid values are: "TRIM_HORIZON" and "LATEST". The default value is "TRIM_HORIZON". For more information, go to `ShardIteratorType`_ in the Amazon Kinesis Service API Reference. s"