mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix RETURN section document in lambda.py (#28333)
* Fix RETURN section document in lambda.py * Fix typo
This commit is contained in:
parent
bdbe5337c6
commit
a6c8978b74
1 changed files with 31 additions and 19 deletions
|
@ -165,30 +165,42 @@ tasks:
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
output:
|
code:
|
||||||
description: the data returned by get_function in boto3
|
description: the lambda function location returned by get_function in boto3
|
||||||
returned: success
|
returned: success
|
||||||
type: dict
|
type: dict
|
||||||
sample:
|
sample:
|
||||||
'code':
|
|
||||||
{
|
{
|
||||||
'location': 'an S3 URL',
|
'location': 'a presigned S3 URL',
|
||||||
'repository_type': 'S3',
|
'repository_type': 'S3',
|
||||||
}
|
}
|
||||||
'configuration':
|
configuration:
|
||||||
|
description: the lambda function metadata returned by get_function in boto3
|
||||||
|
returned: success
|
||||||
|
type: dict
|
||||||
|
sample:
|
||||||
{
|
{
|
||||||
'function_name': 'string',
|
'code_sha256': 'SHA256 hash',
|
||||||
'function_arn': 'string',
|
|
||||||
'runtime': 'nodejs',
|
|
||||||
'role': 'string',
|
|
||||||
'handler': 'string',
|
|
||||||
'code_size': 123,
|
'code_size': 123,
|
||||||
'description': 'string',
|
'description': 'My function',
|
||||||
'timeout': 123,
|
'environment': {
|
||||||
'memory_size': 123,
|
'variables': {
|
||||||
'last_modified': 'string',
|
'key': 'value'
|
||||||
'code_sha256': 'string',
|
}
|
||||||
'version': 'string',
|
},
|
||||||
|
'function_arn': 'arn:aws:lambda:us-east-1:123456789012:function:myFunction:1',
|
||||||
|
'function_name': 'myFunction',
|
||||||
|
'handler': 'index.handler',
|
||||||
|
'last_modified': '2017-08-01T00:00:00.000+0000',
|
||||||
|
'memory_size': 128,
|
||||||
|
'role': 'arn:aws:iam::123456789012:role/lambda_basic_execution',
|
||||||
|
'runtime': 'nodejs6.10',
|
||||||
|
'timeout': 3,
|
||||||
|
'version': '1',
|
||||||
|
'vpc_config': {
|
||||||
|
'security_group_ids': [],
|
||||||
|
'subnet_ids': []
|
||||||
|
}
|
||||||
}
|
}
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue