route53

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package route53 provides logic and data structures necessary to enumerate and integrate AWS Route 53 resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSResourceReport

type AWSResourceReport struct {
	AccountID string       `json:"account_id" yaml:"account_id"`
	Resources AWSResources `json:"resources" yaml:"resources"`
	Errors    []string     `json:"errors" yaml:"errors"`
}

AWSResourceReport contains the account ID that the Route 53 hosted zones were discovered in, the resources themselves, and any non-fatal errors that occurred during the execution of the `methodaws route53 enumerate` subcommand.

func EnumerateRoute53

func EnumerateRoute53(ctx context.Context, cfg aws.Config) (*AWSResourceReport, error)

EnumerateRoute53 retrieves all Route 53 hosted zones available to the caller and returns an AWSResourceReport struct

type AWSResources

type AWSResources struct {
	HostedZones []EnrichedHostedZone `json:"hosted_zones" yaml:"hosted_zones"`
}

AWSResources contains the Route 53 hosted zones that were enumerated.

type EnrichedHostedZone

type EnrichedHostedZone struct {
	ZoneDetails        types.HostedZone          `json:"zone_details" yaml:"zone_details"`
	ResourceRecordSets []types.ResourceRecordSet `json:"resource_record_sets" yaml:"resource_record_sets"`
}

EnrichedHostedZone wraps the AWS representations of a hosted zone and its associated resource record sets.

Jump to

Keyboard shortcuts

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