apigw

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AssumeRole = "ASSUME_ROLE"
	Region     = "AWS_REGION"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type APIGatewayClient

type APIGatewayClient struct {
	// contains filtered or unexported fields
}

func NewAPIGatewayClient

func NewAPIGatewayClient() APIGatewayClient

SDK Client Initial credentials loaded from SDK's default credential chain. Such as the environment, shared credentials (~/.aws/credentials), or EC2 Instance The assume role is used when run locally against the dev environment

func (APIGatewayClient) CreateDeployment

func (cl APIGatewayClient) CreateDeployment(stage string, apigwId string) (*apigateway.Deployment, error)

CreateDeployment for the recent upload

func (APIGatewayClient) ImportSwagger

func (cl APIGatewayClient) ImportSwagger(swaggerDoc []byte, apigwId string) (*apigateway.RestApi, error)

ImportSwagger imports the swagger doc into API Gateway

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL