aws

package
v0.0.0-...-f3eac6d Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const CreateHostedZoneComment = "Created by defang cli"

Variables

View Source
var (
	ErrZoneNotFound         = errors.New("the Route53 hosted zone was not found")
	ErrNoRecordFound        = errors.New("no Route53 record found in the hosted zone")
	ErrNoDelegationSetFound = errors.New("no Route53 delegation set found")
)

Functions

func CreateDelegationSet

func CreateDelegationSet(ctx context.Context, zoneId *string, r53 *route53.Client) (*types.DelegationSet, error)

func CreateHostedZone deprecated

func CreateHostedZone(ctx context.Context, domain string, r53 *route53.Client) (*types.HostedZone, error)

Deprecated: let Pulumi create the hosted zone

func GetAccountID

func GetAccountID(arn string) string

func GetDelegationSet

func GetDelegationSet(ctx context.Context, r53 *route53.Client) (*types.DelegationSet, error)

func GetHostedZoneByName

func GetHostedZoneByName(ctx context.Context, domain string, r53 *route53.Client) (*types.HostedZone, error)

func IsParameterNotFoundError

func IsParameterNotFoundError(err error) bool

func IsS3NoSuchKeyError

func IsS3NoSuchKeyError(err error) bool

func ListResourceRecords

func ListResourceRecords(ctx context.Context, zoneId, recordName string, recordType types.RRType, r53 *route53.Client) ([]string, error)

func LoadDefaultConfig

func LoadDefaultConfig(ctx context.Context, region Region) (aws.Config, error)

Types

type Aws

type Aws struct {
	Region Region
}

func (*Aws) DeleteSecrets

func (a *Aws) DeleteSecrets(ctx context.Context, names ...string) error

func (*Aws) IsValidSecret

func (a *Aws) IsValidSecret(ctx context.Context, name string) (bool, error)

func (*Aws) ListSecrets

func (a *Aws) ListSecrets(ctx context.Context) ([]string, error)

func (*Aws) ListSecretsByPrefix

func (a *Aws) ListSecretsByPrefix(ctx context.Context, prefix string) ([]string, error)

func (*Aws) LoadConfig

func (a *Aws) LoadConfig(ctx context.Context) (aws.Config, error)

func (*Aws) PutSecret

func (a *Aws) PutSecret(ctx context.Context, name, value string) error

type Region

type Region string

func (Region) String

func (r Region) String() string

Directories

Path Synopsis
ecs
cfn

Jump to

Keyboard shortcuts

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