Documentation
¶
Overview ¶
Package acm requests and reads ACM certificates with DNS validation.
Index ¶
Constants ¶
const ServiceName = "acm"
ServiceName is the key used in the guard ServicesEnabled map.
Variables ¶
var ErrRefused = errors.New("acm: create refused")
ErrRefused wraps a guard refusal.
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 (*Client) DescribeCertificate ¶
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 ¶
ListCertificates pages through every certificate in the region.
func (*Client) RequestCertificate ¶
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.