cloudfront

package
v0.27.6 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diff added in v0.9.0

type Diff struct {
	ETag            *string
	Existing        *cloudfront.Distribution
	NeedsUpdate     bool
	NeedsCreate     bool
	TagsToBeAdded   map[string]string
	TagsToBeRemoved []string
}

func (*Diff) IsUpToDate added in v0.9.0

func (d *Diff) IsUpToDate() bool

type Distribution

type Distribution struct {
	ARN                    string
	DistributionId         string
	Domain                 string
	OriginAccessIdentityId string
}

type DistributionConfig added in v0.9.0

type DistributionConfig struct {
	Aliases        []*string
	CertificateArn string
	CustomerTags   map[string]string
}

type DistributionNotDisabledError added in v0.19.0

type DistributionNotDisabledError struct {
}

func (*DistributionNotDisabledError) Error added in v0.19.0

func (*DistributionNotDisabledError) Is added in v0.19.0

func (e *DistributionNotDisabledError) Is(target error) bool

type Service

type Service struct {
	Client cloudfrontiface.CloudFrontAPI
	// contains filtered or unexported fields
}

Service holds a collection of interfaces.

func NewService

func NewService(clusterScope scope.IAMScope) *Service

NewService returns a new service given the Cloudfront api client.

func (*Service) CreateOriginAccessIdentity

func (s *Service) CreateOriginAccessIdentity() (string, error)

func (*Service) DeleteDistribution

func (s *Service) DeleteDistribution(distributionId string) error

func (*Service) DeleteOriginAccessIdentity

func (s *Service) DeleteOriginAccessIdentity(oaiId string) error

func (*Service) DisableDistribution

func (s *Service) DisableDistribution(distributionId string) error

func (*Service) EnsureDistribution added in v0.9.0

func (s *Service) EnsureDistribution(config DistributionConfig) (*Distribution, error)

func (*Service) GetOriginAccessIdentity

func (s *Service) GetOriginAccessIdentity(oaiId string) (*cloudfront.OriginAccessIdentity, *string, error)

Jump to

Keyboard shortcuts

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