cloudfront

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Distribution

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

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) CreateDistribution

func (s *Service) CreateDistribution(accountID string, customerTags map[string]string) (*Distribution, error)

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) 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