aws

package
v0.0.0-...-57149b2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 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 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 *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 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 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