acm

package
v1.5.8 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package acm requests and reads ACM certificates with DNS validation.

Index

Constants

View Source
const ServiceName = "acm"

ServiceName is the key used in the guard ServicesEnabled map.

Variables

View Source
var ErrRefused = errors.New("acm: create refused")

ErrRefused wraps a guard refusal.

View Source
var Service = awsx.Service{Name: "acm", Prefix: "acm", SigningName: "acm", TargetPrefix: "CertificateManager"}

Service is the ACM API (target prefix checked against the botocore model).

Functions

This section is empty.

Types

type Certificate

type Certificate struct {
	ARN, Domain, Status string
	NotAfter            time.Time
	Records             []ValidationRecord
}

Certificate is the read view of one certificate.

type Client

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

Client is the lazy ACM module.

func New

func New(c *awsx.Client, g Guard) *Client

New wraps a shared client and guard.

func (*Client) DescribeCertificate

func (c *Client) DescribeCertificate(ctx context.Context, region, arn string) (Certificate, error)

DescribeCertificate returns the status and the DNS validation records. The records appear a few seconds after the request, so callers may need to poll.

func (*Client) ListCertificates

func (c *Client) ListCertificates(ctx context.Context, region string) ([]Summary, error)

ListCertificates pages through every certificate in the region.

func (*Client) RequestCertificate

func (c *Client) RequestCertificate(ctx context.Context, in RequestInput) (string, error)

RequestCertificate asks for a public certificate validated by DNS. Public ACM certificates are free, so the estimate is zero.

type Guard

type Guard interface {
	Check(ctx context.Context, r cloudguard.CreateRequest) cloudguard.Decision
	Tags(m cloudguard.TagMeta) map[string]string
}

Guard is the create gate and tag source.

type RequestInput

type RequestInput struct {
	Account, Region, Domain string
	AltNames                []string
	// Token makes the request idempotent for a short window; letters and digits only.
	Token string
	Meta  cloudguard.TagMeta
}

RequestInput describes one public certificate request.

type Summary

type Summary struct {
	ARN, Domain, Status string
}

Summary is one row of ListCertificates.

type ValidationRecord

type ValidationRecord struct {
	Domain, Name, Type, Value, Status string
}

ValidationRecord is the CNAME to publish so ACM can validate a domain.

Jump to

Keyboard shortcuts

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