Skip to content

Commit

Permalink
Improve docstrings for AwsLambdaInvokeFunctionOperator (#28233)
Browse files Browse the repository at this point in the history
  • Loading branch information
eladkal authored Dec 8, 2022
1 parent 3f06efa commit 1eaedc8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion airflow/providers/amazon/aws/hooks/lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,13 @@ class LambdaHook(AwsBaseHook):
:class:`~airflow.providers.amazon.aws.hooks.base_aws.AwsBaseHook`
:param function_name: AWS Lambda Function Name
:param invocation_type: AWS Lambda Invocation Type (RequestResponse, Event etc)
:param log_type: Tail Invocation Request
:param client_context: Up to 3,583 bytes of base64-encoded data about the invoking client
to pass to the function in the context object.
:param payload: The JSON that you want to provide to your Lambda function as input.
:param qualifier: AWS Lambda Function Version or Alias Name
:param invocation_type: AWS Lambda Invocation Type (RequestResponse, Event etc)
"""

def __init__(
Expand Down
5 changes: 4 additions & 1 deletion airflow/providers/amazon/aws/operators/lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,12 @@ class AwsLambdaInvokeFunctionOperator(BaseOperator):
review the boto3 Lambda invoke docs.
:param function_name: The name of the AWS Lambda function, version, or alias.
:param payload: The JSON string that you want to provide to your Lambda function as input.
:param log_type: Set to Tail to include the execution log in the response. Otherwise, set to "None".
:param qualifier: Specify a version or alias to invoke a published version of the function.
:param invocation_type: One of RequestResponse / Event / DryRun
:param client_context: Up to 3,583 bytes of base64-encoded data about the invoking client
to pass to the function in the context object.
:param payload: The JSON string that you want to provide to your Lambda function as input.
:param aws_conn_id: The AWS connection ID to use
.. seealso::
Expand Down

0 comments on commit 1eaedc8

Please sign in to comment.