@pulumi/aws-apigateway 0.0.14 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +54 -55
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -1,57 +1,56 @@
1
+ [![Actions Status](https://github.com/pulumi/pulumi-aws-apigateway/workflows/release/badge.svg)](https://github.com/pulumi/pulumi-aws-apigateway/actions)
2
+ [![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com)
3
+ [![NPM version](https://badge.fury.io/js/%40pulumi%2Faws-apigateway.svg)](https://www.npmjs.com/package/@pulumi/aws-apigateway)
4
+ [![Python version](https://badge.fury.io/py/pulumi-aws-apigateway.svg)](https://pypi.org/project/pulumi-aws-apigateway)
5
+ [![NuGet version](https://badge.fury.io/nu/pulumi.awsapigateway.svg)](https://badge.fury.io/nu/pulumi.awsapigateway)
6
+ [![PkgGoDev](https://pkg.go.dev/badge/github.com/pulumi/pulumi-aws-apigateway/sdk/go)](https://pkg.go.dev/github.com/pulumi/pulumi-aws-apigateway/sdk/go)
7
+ [![License](https://img.shields.io/github/license/pulumi/pulumi-aws-apigateway)](https://github.com/pulumi/pulumi-aws-apigateway/blob/master/LICENSE)
8
+
1
9
  # Pulumi AWS API Gateway Component
2
10
 
3
- Easily create AWS API Gateway REST APIs using Pulumi. This component exposes the Crosswalk for AWS functionality documented in the [Pulumi AWS API Gateway guide](https://www.pulumi.com/docs/guides/crosswalk/aws/api-gateway/) as a package available in all Pulumi languages.
4
-
5
- Python:
6
-
7
- ```py
8
- api = apigateway.RestAPI('api', routes=[
9
- apigateway.RouteArgs(path="/", method="GET", event_handler=f),
10
- apigateway.RouteArgs(path="/www", method="GET", local_path="www", index=False),
11
- apigateway.RouteArgs(path="/integration", target=apigateway.TargetArgs(uri="https://www.google.com", type="http_proxy"))
12
- ])
13
-
14
- pulumi.export('url', api.url)
15
- ```
16
-
17
- Go:
18
-
19
- ```go
20
- getMethod := apigateway.MethodGET
21
- restAPI, err := apigateway.NewRestAPI(ctx, "api", &apigateway.RestAPIArgs{
22
- Routes: []apigateway.RouteArgs{
23
- apigateway.RouteArgs{
24
- Path: "/",
25
- Method: &getMethod,
26
- EventHandler: f,
27
- },
28
- },
29
- })
30
- ```
31
-
32
- TypeScript:
33
-
34
- ```ts
35
- import * as apigateway from "@pulumi/aws-apigateway";
36
- import * as aws from "@pulumi/aws";
37
-
38
- const f = new aws.lambda.CallbackFunction("f", {
39
- callback: async (ev, ctx) => {
40
- console.log(JSON.stringify(ev));
41
- return {
42
- statusCode: 200,
43
- body: "goodbye",
44
- };
45
- },
46
- });
47
-
48
- const api = new apigateway.RestAPI("api", {
49
- routes: [{
50
- path: "/",
51
- method: "GET",
52
- eventHandler: f,
53
- }],
54
- });
55
-
56
- export const url = api.url;
57
- ```
11
+ The Pulumi AWS API Gateway library provides a Pulumi component that easily creates AWS API Gateway REST APIs. This component exposes the Crosswalk for AWS functionality documented in the [Pulumi AWS API Gateway guide](https://www.pulumi.com/docs/guides/crosswalk/aws/api-gateway/) as a package available in all Pulumi languages.
12
+
13
+ <div>
14
+ <a href="https://www.pulumi.com/templates/serverless-application/aws/" title="Get Started">
15
+ <img src="https://www.pulumi.com/images/get-started.svg?" width="120">
16
+ </a>
17
+ </div>
18
+
19
+ ## Installing
20
+
21
+ This package is available in many languages in the standard packaging formats.
22
+
23
+ ### Node.js (JavaScript/TypeScript)
24
+
25
+ To use from JavaScript or TypeScript in Node.js, install using either `npm`:
26
+
27
+ npm install @pulumi/aws-apigateway
28
+
29
+ or `yarn`:
30
+
31
+ yarn add @pulumi/aws-apigateway
32
+
33
+ ### Python
34
+
35
+ To use from Python, install using `pip`:
36
+
37
+ pip install pulumi-aws-apigateway
38
+
39
+ ### Go
40
+
41
+ To use from Go, use `go get` to grab the latest version of the library
42
+
43
+ go get github.com/pulumi/pulumi-aws-apigateway/sdk
44
+
45
+ ### .NET
46
+
47
+ To use from .NET, install using `dotnet add package`:
48
+
49
+ dotnet add package Pulumi.AwsApiGateway
50
+
51
+ ## References
52
+
53
+ * [Tutorial](https://www.pulumi.com/templates/serverless-application/aws/)
54
+ * [API Reference Documentation](https://www.pulumi.com/registry/packages/aws-apigateway/api-docs/)
55
+ * [Examples](./examples)
56
+ * [Crosswalk for AWS - API Gateway Guide](https://www.pulumi.com/docs/guides/crosswalk/aws/api-gateway/)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/aws-apigateway",
3
- "version": "v0.0.14",
3
+ "version": "v1.0.1",
4
4
  "keywords": [
5
5
  "pulumi",
6
6
  "aws",
@@ -11,10 +11,10 @@
11
11
  "license": "Apache-2.0",
12
12
  "scripts": {
13
13
  "build": "tsc",
14
- "install": "node scripts/install-pulumi-plugin.js resource aws-apigateway v0.0.14"
14
+ "install": "node scripts/install-pulumi-plugin.js resource aws-apigateway v1.0.1"
15
15
  },
16
16
  "dependencies": {
17
- "@pulumi/aws": "^5.4.0",
17
+ "@pulumi/aws": "^5.16.2",
18
18
  "@pulumi/pulumi": "^3.42.0"
19
19
  },
20
20
  "devDependencies": {