aws

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clients

type Clients struct {
	Log     logr.Logger
	Config  aws.Config
	Route53 *route53.Client
}

Clients wrapper for AWS

func (Clients) Acm

func (c Clients) Acm(region string) *acm.Client

func (Clients) DeleteRoute53HostedZone

func (c Clients) DeleteRoute53HostedZone(ctx context.Context, hostedZone route53types.HostedZone, force bool) error

DeleteRoute53HostedZone deletes a Route53 HostedZone by ID

func (Clients) DeleteRoute53ResourceRecordSet

func (c Clients) DeleteRoute53ResourceRecordSet(ctx context.Context, hostedZoneId string, recordSet route53types.ResourceRecordSet, description string) error

DeleteRoute53ResourceRecordSet deletes a resource recordset in the specified hosted zone

func (Clients) FindAcmCertificatesByDomainName

func (c Clients) FindAcmCertificatesByDomainName(ctx context.Context, region string, domainName string) ([]acmtypes.CertificateSummary, error)

FindAcmCertificatesByDomainName returns the first matching ACM Certificate by domain name

func (Clients) FindOneAcmCertificateByDomainName

func (c Clients) FindOneAcmCertificateByDomainName(ctx context.Context, region string, domainName string) (*acmtypes.CertificateSummary, error)

FindOneAcmCertificateByDomainName returns the first matching ACM Certificate by domain name

func (Clients) FindOneRoute53HostedZoneByName

func (c Clients) FindOneRoute53HostedZoneByName(ctx context.Context, name string) (*route53types.HostedZone, error)

FindOneRoute53HostedZoneByName returns the first matching Route53 HostedZone by name

func (Clients) FindRoute53HostedZonesByName

func (c Clients) FindRoute53HostedZonesByName(ctx context.Context, name string) ([]route53types.HostedZone, error)

FindRoute53HostedZonesByName returns the matching Route53 HostedZones by name

func (Clients) GetAcmCertificateDetailsByArn

func (c Clients) GetAcmCertificateDetailsByArn(ctx context.Context, region string, arn string) (acmtypes.CertificateDetail, error)

GetAcmCertificateDetailsByArn returns ACM Certificate details by ARN

func (Clients) GetRoute53HostedZoneById

func (c Clients) GetRoute53HostedZoneById(ctx context.Context, id string) (route53types.HostedZone, error)

GetRoute53HostedZoneById returns Route53 HostedZone by ID

func (Clients) ListAcmCertificateTagsByArn

func (c Clients) ListAcmCertificateTagsByArn(ctx context.Context, region string, arn string) (tags map[string]string, err error)

ListAcmCertificateTagsByArn lists tags for the ACM Certificate by ARN

func (Clients) ListAcmCertificates

func (c Clients) ListAcmCertificates(ctx context.Context, region string) ([]acmtypes.CertificateSummary, error)

ListAcmCertificates returns all ACM Certificates

func (Clients) ListRoute53HostedZoneTagsById

func (c Clients) ListRoute53HostedZoneTagsById(ctx context.Context, id string) (tags map[string]string, err error)

ListRoute53HostedZoneTagsById lists tags for the Route53 HostedZone by Id

func (Clients) ListRoute53HostedZones

func (c Clients) ListRoute53HostedZones(ctx context.Context) ([]route53types.HostedZone, error)

ListRoute53HostedZones returns all Route53 HostedZones

func (Clients) ListRoute53ResourceRecordSets

func (c Clients) ListRoute53ResourceRecordSets(ctx context.Context, hostedZoneID string) ([]route53types.ResourceRecordSet, error)

ListRoute53ResourceRecordSets returns all Route53 record sets for a HostedZone

func (Clients) Region

func (c Clients) Region(region string) string

func (Clients) SetAcmCertificateTagsByArn

func (c Clients) SetAcmCertificateTagsByArn(ctx context.Context, region string, arn string, tags map[string]string) error

SetAcmCertificateTagsByArn adds, removes and updates tags for the ACM Certificate by ARN

func (Clients) SetRoute53HostedZoneTagsById

func (c Clients) SetRoute53HostedZoneTagsById(ctx context.Context, id string, tags map[string]string) error

SetRoute53HostedZoneTagsById adds, removes and updates tags for the Route53 HostedZone by Id

func (Clients) UpsertRoute53ResourceRecordSet

func (c Clients) UpsertRoute53ResourceRecordSet(ctx context.Context, hostedZoneId string, recordSet route53types.ResourceRecordSet, description string) error

UpsertRoute53ResourceRecordSet creates or updates a resource recordset in the specified hosted zone

func (Clients) WaitForRoute53Change

func (c Clients) WaitForRoute53Change(ctx context.Context, change *route53types.ChangeInfo)

type UniqueConstraintException

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

func (*UniqueConstraintException) Error

func (e *UniqueConstraintException) Error() string

Jump to

Keyboard shortcuts

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