aws

package
v0.0.0-...-2f5527b Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const CreateHostedZoneCommentLegacy = "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 Route53API) (*types.DelegationSet, error)

func CreateHostedZone deprecated

func CreateHostedZone(ctx context.Context, domain string, r53 Route53API) (*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 Route53API) (*types.DelegationSet, error)

func GetDelegationSetByZone

func GetDelegationSetByZone(ctx context.Context, zoneId *string, r53 Route53API) (*types.DelegationSet, error)

func GetHostedZoneByName

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

func IsParameterNotFoundError deprecated

func IsParameterNotFoundError(err error) bool

Deprecated: use ErrParameterNotFound directly

func IsS3NoSuchKeyError deprecated

func IsS3NoSuchKeyError(err error) bool

Deprecated: use ErrNoSuchKey directly

func ListResourceRecords

func ListResourceRecords(ctx context.Context, zoneId, recordName string, recordType types.RRType, r53 Route53API) ([]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 ErrNoSuchKey

type ErrNoSuchKey = types.NoSuchKey

type ErrParameterNotFound

type ErrParameterNotFound = types.ParameterNotFound

type Region

type Region string

func (Region) String

func (r Region) String() string

type Route53API

type Route53API interface {
	CreateHostedZone(ctx context.Context, params *route53.CreateHostedZoneInput, optFns ...func(*route53.Options)) (*route53.CreateHostedZoneOutput, error)
	CreateReusableDelegationSet(ctx context.Context, params *route53.CreateReusableDelegationSetInput, optFns ...func(*route53.Options)) (*route53.CreateReusableDelegationSetOutput, error)
	GetHostedZone(ctx context.Context, params *route53.GetHostedZoneInput, optFns ...func(*route53.Options)) (*route53.GetHostedZoneOutput, error)
	ListReusableDelegationSets(ctx context.Context, params *route53.ListReusableDelegationSetsInput, optFns ...func(*route53.Options)) (*route53.ListReusableDelegationSetsOutput, error)
	ListHostedZonesByName(ctx context.Context, params *route53.ListHostedZonesByNameInput, optFns ...func(*route53.Options)) (*route53.ListHostedZonesByNameOutput, error)
	ListResourceRecordSets(ctx context.Context, params *route53.ListResourceRecordSetsInput, optFns ...func(*route53.Options)) (*route53.ListResourceRecordSetsOutput, error)
}

type SsmParametersAPI

type SsmParametersAPI interface {
	DescribeParameters(ctx context.Context, params *ssm.DescribeParametersInput, optFns ...func(*ssm.Options)) (*ssm.DescribeParametersOutput, error)
	PutParameter(ctx context.Context, params *ssm.PutParameterInput, optFns ...func(*ssm.Options)) (*ssm.PutParameterOutput, error)
	DeleteParameters(ctx context.Context, params *ssm.DeleteParametersInput, optFns ...func(*ssm.Options)) (*ssm.DeleteParametersOutput, error)
	GetParameters(ctx context.Context, params *ssm.GetParametersInput, optFns ...func(*ssm.Options)) (*ssm.GetParametersOutput, error)
	GetParametersByPath(ctx context.Context, params *ssm.GetParametersByPathInput, optFns ...func(*ssm.Options)) (*ssm.GetParametersByPathOutput, error)
}
var SsmClientOverride SsmParametersAPI

Directories

Path Synopsis
ecs
cfn

Jump to

Keyboard shortcuts

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