mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
DashDeploy: Allow API Gateway deployment descriptions
This commit is contained in:
parent
2c95c6736e
commit
c0ed521b27
@ -14,6 +14,7 @@
|
||||
* - aliasFunction: (String) Custom Lambda alias.
|
||||
* - functions: (Array) Array of function JSONs from fun.sl.json
|
||||
* - deployed: (Object) Contains regions and the code functions that have been uploaded to the S3 bucket in that region
|
||||
* - description: (String) Provide custom description string for API Gateway stage deployment description.
|
||||
*/
|
||||
|
||||
module.exports = function(SPlugin, serverlessPath) {
|
||||
@ -78,6 +79,10 @@ module.exports = function(SPlugin, serverlessPath) {
|
||||
option: 'aliasRestApi', // TODO: Implement
|
||||
shortcut: 'a',
|
||||
description: 'Optional - Provide a custom Api Gateway Stage Variable for your REST API'
|
||||
}, {
|
||||
option: 'description',
|
||||
shortcut: 'd',
|
||||
description: 'Optional - Provide custom description string for API Gateway stage deployment description'
|
||||
}
|
||||
]
|
||||
});
|
||||
@ -266,9 +271,10 @@ module.exports = function(SPlugin, serverlessPath) {
|
||||
|
||||
return _this.S.actions.endpointDeploy({
|
||||
options: {
|
||||
stage: _this.evt.options.stage,
|
||||
region: _this.evt.options.region,
|
||||
paths: _this.evt.options.endpointPaths
|
||||
stage: _this.evt.options.stage,
|
||||
region: _this.evt.options.region,
|
||||
paths: _this.evt.options.endpointPaths,
|
||||
description: _this.evt.options.description
|
||||
}
|
||||
})
|
||||
.then(function(evt) {
|
||||
|
||||
@ -14,6 +14,7 @@
|
||||
* - paths: (Array) Array of endpoint paths to deploy. Format: ['users/show@users/show~GET']
|
||||
* - aliasEndpoint: (String) The Lambda Alias the endpoint should point to.
|
||||
* - all: (Boolean) Indicates whether all Functions in the project should be deployed.
|
||||
* - description: (String) Provide custom description string for API Gateway stage deployment description.
|
||||
*/
|
||||
|
||||
module.exports = function(SPlugin, serverlessPath) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user