aws

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: MIT Imports: 5 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
}

Client wraps the AWS Lambda client.

func NewClient

func NewClient(ctx context.Context, region string) (*Client, error)

NewClient creates a new AWS client using the default credential chain.

func (*Client) DeleteLayerVersion

func (c *Client) DeleteLayerVersion(ctx context.Context, layerName string, version int64) error

DeleteLayerVersion deletes a specific version of a Lambda Layer.

func (*Client) ListAllLayerVersions

func (c *Client) ListAllLayerVersions(ctx context.Context) ([]LayerVersion, error)

ListAllLayerVersions returns all versions for every Lambda Layer in the account/region.

func (*Client) ListFunctionLayerARNs

func (c *Client) ListFunctionLayerARNs(ctx context.Context) (map[string]struct{}, error)

ListFunctionLayerARNs returns the set of Layer Version ARNs currently attached to any function.

type LayerVersion

type LayerVersion struct {
	LayerName     string   `json:"layerName"`
	Version       int64    `json:"version"`
	Description   string   `json:"description,omitempty"`
	CreatedDate   string   `json:"createdDate"`
	ARN           string   `json:"arn"`
	Runtimes      []string `json:"runtimes,omitempty"`
	Architectures []string `json:"architectures,omitempty"`
}

LayerVersion represents a single version of a Lambda Layer.

Jump to

Keyboard shortcuts

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