aws

package
v0.18.5 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const TYPE_CODE = "aws-route53"

Variables

View Source
var Factory = provider.NewDNSHandlerFactory(TYPE_CODE, NewHandler).
	SetGenericFactoryOptionDefaults(provider.GenericFactoryOptionDefaults.
		SetRateLimiterOptions(rateLimiterDefaults).SetAdvancedOptions(advancedDefaults))

Functions

func MapTargets added in v0.17.0

func MapTargets(targets []provider.Target) []provider.Target

MapTargets maps CNAME records to A/AAAA records for hosted zones used for AWS load balancers.

Types

type AWSConfig

type AWSConfig struct {
	BatchSize int `json:"batchSize"`
}

type Change

type Change struct {
	*route53.Change
	Done        provider.DoneHandler
	UpdateGroup string
}

type Execution

type Execution struct {
	logger.LogContext
	// contains filtered or unexported fields
}

func NewExecution

func NewExecution(logger logger.LogContext, h *Handler, zone provider.DNSHostedZone) *Execution

type Handler

type Handler struct {
	provider.DefaultDNSHandler
	// contains filtered or unexported fields
}

func (*Handler) AssociateVPCWithHostedZone

func (h *Handler) AssociateVPCWithHostedZone(vpcId string, vpcRegion string, hostedZoneId string) (*route53.AssociateVPCWithHostedZoneOutput, error)

AssociateVPCWithHostedZone associates a VPC with a private hosted zone in use by external controller

func (*Handler) CreateOrUpdateRecordSet added in v0.11.0

func (h *Handler) CreateOrUpdateRecordSet(logger logger.LogContext, zone provider.DNSHostedZone, _, new provider.DedicatedRecordSet) error

func (*Handler) CreateVPCAssociationAuthorization

func (h *Handler) CreateVPCAssociationAuthorization(hostedZoneId string, vpcId string, vpcRegion string) (*route53.CreateVPCAssociationAuthorizationOutput, error)

CreateVPCAssociationAuthorization authorizes the AWS account that created a specified VPC to submit an AssociateVPCWithHostedZone request to associate the VPC with a specified hosted zone that was created by a different account

func (*Handler) DeleteRecordSet added in v0.11.0

func (h *Handler) DeleteRecordSet(logger logger.LogContext, zone provider.DNSHostedZone, rs provider.DedicatedRecordSet) error

func (*Handler) DeleteVPCAssociationAuthorization

func (h *Handler) DeleteVPCAssociationAuthorization(hostedZoneId string, vpcId string, vpcRegion string) (*route53.DeleteVPCAssociationAuthorizationOutput, error)

DeleteVPCAssociationAuthorization removes authorization to submit an AssociateVPCWithHostedZone request to associate a specified VPC with a hosted zone that was created by a different account.

func (*Handler) DisassociateVPCFromHostedZone

func (h *Handler) DisassociateVPCFromHostedZone(vpcId string, vpcRegion string, hostedZoneId string) (*route53.DisassociateVPCFromHostedZoneOutput, error)

DisassociateVPCFromHostedZone disassociates a VPC from a private hosted zone in use by external controller

func (*Handler) ExecuteRequests

func (h *Handler) ExecuteRequests(logger logger.LogContext, zone provider.DNSHostedZone, state provider.DNSZoneState, reqs []*provider.ChangeRequest) error

func (*Handler) GetRecordSet added in v0.11.0

func (h *Handler) GetRecordSet(zone provider.DNSHostedZone, setName dns.DNSSetName, recordType string) (provider.DedicatedRecordSet, error)

func (*Handler) GetZoneByName

func (h *Handler) GetZoneByName(hostedZoneId string) (*route53.GetHostedZoneOutput, error)

GetZoneByName returns detailed information about a zone in use by external controller

func (*Handler) GetZoneState

func (h *Handler) GetZoneState(zone provider.DNSHostedZone) (provider.DNSZoneState, error)

func (*Handler) GetZones

func (h *Handler) GetZones() (provider.DNSHostedZones, error)

func (*Handler) MapTargets added in v0.17.0

func (h *Handler) MapTargets(_ string, targets []provider.Target) []provider.Target

func (*Handler) Release

func (h *Handler) Release()

func (*Handler) ReportZoneStateConflict

func (h *Handler) ReportZoneStateConflict(zone provider.DNSHostedZone, err error) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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