Skip to content

Commit f190453

Browse files
committed
update this plugin property name
1 parent af73152 commit f190453

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![serverless](http://public.serverless.com/badges/v3.svg)
22

3-
# Serverless ApiGateway Service Proxy(BETA)
3+
# Serverless APIGateway Service Proxy(BETA)
44
This Serverless Framewrok plugin supports the AWS service proxy integration feature of API Gateway. You can directly connect API Gateway to AWS services without Lambda.
55

66
## Install
@@ -24,13 +24,13 @@ Please pull request if you are intersted in it.
2424
- SQS
2525
2626
## How to use
27-
Define settings of the AWS services you want to integrate under `custom > apiGatewayServiceProxy` and run `serverless deploy`.
27+
Define settings of the AWS services you want to integrate under `custom > apiGatewayServiceProxies` and run `serverless deploy`.
2828

2929
### Kinesis
3030
Sample syntax for Kinesis proxy in serverless.yml.
3131
```yaml
3232
custom:
33-
apiGatewayServiceProxy:
33+
apiGatewayServiceProxies:
3434
- kinesis:
3535
path: /kinesis
3636
method: post
@@ -55,7 +55,7 @@ curl -XPOST https://xxxxxxx.execute-api.us-east-1.amazonaws.com/dev/kinesis -d '
5555
Sample syntax for SQS proxy in serverless.yml.
5656
```yaml
5757
custom:
58-
apiGatewayServiceProxy:
58+
apiGatewayServiceProxies:
5959
- sqs:
6060
path: /sqs
6161
method: post

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class ServerlessApigatewayServiceProxy {
100100
let serviceProxyMessages = ''
101101

102102
const endpointInfo = this.gatheredData.info.endpoint
103-
message += `${chalk.yellow.underline('Serverless Apigateway Service proxy OutPuts')}\n`
103+
message += `${chalk.yellow.underline('Serverless APIGateway Service Proxy OutPuts')}\n`
104104
message += `${chalk.yellow('endpoints:')}`
105105

106106
await BbPromise.all(

lib/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
module.exports = {
44
getAllServiceProxies() {
5-
if (this.serverless.service.custom && this.serverless.service.custom.apiGatewayServiceProxy) {
6-
return this.serverless.service.custom.apiGatewayServiceProxy
5+
if (this.serverless.service.custom && this.serverless.service.custom.apiGatewayServiceProxies) {
6+
return this.serverless.service.custom.apiGatewayServiceProxies
77
}
88
return []
99
}

0 commit comments

Comments
 (0)