mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
moved the newly introduced parameter to end of the kwarg list.
This commit is contained in:
parent
dfd5b73fa7
commit
6f4e0c8715
@ -73,9 +73,9 @@ def __virtual__():
|
||||
|
||||
|
||||
def present(name, api_name, swagger_file, stage_name, api_key_required,
|
||||
lambda_integration_role, lambda_funcname_format='{stage}_{api}_{resource}_{method}',
|
||||
lambda_region=None, stage_variables=None,
|
||||
region=None, key=None, keyid=None, profile=None):
|
||||
lambda_integration_role, lambda_region=None, stage_variables=None,
|
||||
region=None, key=None, keyid=None, profile=None,
|
||||
lambda_funcname_format='{stage}_{api}_{resource}_{method}'):
|
||||
'''
|
||||
Ensure the spcified api_name with the corresponding swaggerfile is deployed to the
|
||||
given stage_name in AWS ApiGateway.
|
||||
@ -165,11 +165,6 @@ def present(name, api_name, swagger_file, stage_name, api_key_required,
|
||||
The name or ARN of the IAM role that the AWS ApiGateway assumes when it
|
||||
executes your lambda function to handle incoming requests
|
||||
|
||||
lambda_funcname_format
|
||||
Please review the earlier example for the usage. The only substituable keys in the funcname
|
||||
format are {stage}, {api}, {resource}, {method}.
|
||||
Any other keys or positional subsitution parameters will be flagged as an invalid input.
|
||||
|
||||
lambda_region
|
||||
The region where we expect to find the lambda functions. This is used to
|
||||
determine the region where we should look for the Lambda Function for
|
||||
@ -200,6 +195,11 @@ def present(name, api_name, swagger_file, stage_name, api_key_required,
|
||||
profile
|
||||
A dict with region, key and keyid, or a pillar key (string) that
|
||||
contains a dict with region, key and keyid.
|
||||
|
||||
lambda_funcname_format
|
||||
Please review the earlier example for the usage. The only substituable keys in the funcname
|
||||
format are {stage}, {api}, {resource}, {method}.
|
||||
Any other keys or positional subsitution parameters will be flagged as an invalid input.
|
||||
'''
|
||||
ret = {'name': name,
|
||||
'result': True,
|
||||
|
Loading…
Reference in New Issue
Block a user