cloudfront

package
v0.0.0-...-3ec3467 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListCloudfrontDistributions

func ListCloudfrontDistributions(cfg aws.Config) []types.DistributionSummary

Types

type AwsMapping

type AwsMapping struct {
	CloudFrontOrigins []CloudFrontOrigin
	TargetDomain      TargetAttributes
}

type CloudFrontOrigin

type CloudFrontOrigin struct {
	OriginType      string
	OriginName      string
	OriginUrl       string
	OriginPath      string
	OriginIndexETag string

	OriginBucketPolicy         iam.PolicyDocument
	OriginBucketPolicyIsPublic bool
	OriginResourceExists       bool
	OriginIsWebsite            bool
	OriginUrlResponse          traffic.UrlResponse
	// contains filtered or unexported fields
}

func GetAwsCloudfrontOrigins

func GetAwsCloudfrontOrigins(cfg aws.Config, distribution types.DistributionSummary, indexFilePath string) []CloudFrontOrigin

func GetTargetAwsCloudfrontDistribution

func GetTargetAwsCloudfrontDistribution(cfg aws.Config, distributions []types.DistributionSummary, domainName string, indexFilePath string) (types.DistributionSummary, []CloudFrontOrigin)

func SetAwsCloudFrontOrigins

func SetAwsCloudFrontOrigins(cfg aws.Config, targetOrigins []CloudFrontOrigin) []CloudFrontOrigin

type TargetAttributes

type TargetAttributes struct {
	DomainName      string
	RegisteredName  string
	TargetIpAddress string
	TargetService   string
	UrlResponse     traffic.UrlResponse
	EtagResponse    string
	Route53Record   string
	WafId           string
	NsLookup        []string
}

Jump to

Keyboard shortcuts

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