awsamplify

package
v0.4.25 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CERTIFICATE_SOURCE_ACM = "ACM"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DeployResult

type DeployResult = core.DeployerDeployResult

type Deployer

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

func NewDeployer

func NewDeployer(config *DeployerConfig) (*Deployer, error)

func (*Deployer) Deploy

func (d *Deployer) Deploy(ctx context.Context, certPEM, privkeyPEM string) (*DeployResult, error)

func (*Deployer) SetLogger

func (d *Deployer) SetLogger(logger *slog.Logger)

type DeployerConfig

type DeployerConfig struct {
	// AWS AccessKeyId。
	AccessKeyId string `json:"accessKeyId"`
	// AWS SecretAccessKey。
	SecretAccessKey string `json:"secretAccessKey"`
	// AWS 区域。
	Region string `json:"region"`
	// AWS Amplify 应用程序 ID。
	AppId string `json:"appId"`
	// AWS Amplify 自定义域名(不支持泛域名)。
	Domain string `json:"domain"`
	// AWS Amplify 证书来源。
	// 可取值 "ACM"。
	CertificateSource string `json:"certificateSource"`
}

type Provider

type Provider = core.Deployer

Jump to

Keyboard shortcuts

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