apigateway

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func (*Client) AddIntegrationHTTP

func (client *Client) AddIntegrationHTTP(apiID, resourceID, method, statusCode, uri string) error

func (*Client) AddIntegrationLambda

func (client *Client) AddIntegrationLambda(apiID, resourceID, method, statusCode, arn string) error

func (*Client) AddMethod

func (client *Client) AddMethod(apiID, resourceID, method string, statusCode int, authType string) error

func (*Client) CreateAPI

func (client *Client) CreateAPI(name string) (*apigateway.RestApi, error)

func (*Client) CreateDeployment

func (client *Client) CreateDeployment(apiID, stageName, stageDescription, description string) (*apigateway.Deployment, error)

func (*Client) CreateResource

func (client *Client) CreateResource(apiID, parentID, pathPart string) (*apigateway.Resource, error)

func (*Client) DeleteAPI

func (client *Client) DeleteAPI(apiID string) error

func (*Client) DeleteResource

func (client *Client) DeleteResource(apiID, resourceID string) error

func (*Client) GetDeployment

func (client *Client) GetDeployment(apiID, deploymentID string) (string, error)

func (*Client) GetResources

func (client *Client) GetResources(apiID string) (*apigateway.GetResourcesOutput, error)

func (*Client) IntegrationFactory

func (client *Client) IntegrationFactory(integrationType, apiID, resourceID, method, statusCode, uri string) error

func (*Client) PurgeDeployment

func (client *Client) PurgeDeployment(apiID, deploymentID, stageName string) error

func (*Client) PurgeIntegration

func (client *Client) PurgeIntegration(apiID, resourceID, method string, statusCode int) error

func (*Client) PurgeMethod

func (client *Client) PurgeMethod(apiID, resourceID, method string, statusCode int) error

type IClient

type IClient interface {
	CreateAPI(name string) (*apigateway.RestApi, error)
	DeleteAPI(apiID string) error
	CreateDeployment(apiID, stageName, stageDescription, description string) (*apigateway.Deployment, error)
	PurgeDeployment(apiID, deploymentID, stageName string) error
	GetDeployment(apiID, deploymentID string) (string, error)
	CreateResource(apiID, parentID, pathPart string) (*apigateway.Resource, error)
	DeleteResource(apiID, resourceID string) error
	GetResources(apiID string) (*apigateway.GetResourcesOutput, error)
	AddMethod(apiID, resourceID, method string, statusCode int, authType string) error
	PurgeMethod(apiID, resourceID, method string, statusCode int) error
	AddIntegrationHTTP(apiID, resourceID, method, statusCode, uri string) error
	AddIntegrationLambda(apiID, resourceID, method, statusCode, arn string) error
	PurgeIntegration(apiID, resourceID, method string, statusCode int) error
}

func New

func New(config *config.AWS) (IClient, error)

Jump to

Keyboard shortcuts

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