Documentation

Overview

Package cloudfront provides the client and types for making API requests to Amazon CloudFront.

This is the Amazon CloudFront API Reference. This guide is for developers who need detailed information about CloudFront API actions, data types, and errors. For detailed information about CloudFront features, see the Amazon CloudFront Developer Guide.

See https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31 for more information on this service.

See cloudfront package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/cloudfront/

Using the Client

To contact Amazon CloudFront with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.

See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/

See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config

See the Amazon CloudFront client CloudFront for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/cloudfront/#New

Index

Examples

Constants

View Source
const (
	// CachePolicyCookieBehaviorNone is a CachePolicyCookieBehavior enum value
	CachePolicyCookieBehaviorNone = "none"

	// CachePolicyCookieBehaviorWhitelist is a CachePolicyCookieBehavior enum value
	CachePolicyCookieBehaviorWhitelist = "whitelist"

	// CachePolicyCookieBehaviorAllExcept is a CachePolicyCookieBehavior enum value
	CachePolicyCookieBehaviorAllExcept = "allExcept"

	// CachePolicyCookieBehaviorAll is a CachePolicyCookieBehavior enum value
	CachePolicyCookieBehaviorAll = "all"
)
View Source
const (
	// CachePolicyHeaderBehaviorNone is a CachePolicyHeaderBehavior enum value
	CachePolicyHeaderBehaviorNone = "none"

	// CachePolicyHeaderBehaviorWhitelist is a CachePolicyHeaderBehavior enum value
	CachePolicyHeaderBehaviorWhitelist = "whitelist"
)
View Source
const (
	// CachePolicyQueryStringBehaviorNone is a CachePolicyQueryStringBehavior enum value
	CachePolicyQueryStringBehaviorNone = "none"

	// CachePolicyQueryStringBehaviorWhitelist is a CachePolicyQueryStringBehavior enum value
	CachePolicyQueryStringBehaviorWhitelist = "whitelist"

	// CachePolicyQueryStringBehaviorAllExcept is a CachePolicyQueryStringBehavior enum value
	CachePolicyQueryStringBehaviorAllExcept = "allExcept"

	// CachePolicyQueryStringBehaviorAll is a CachePolicyQueryStringBehavior enum value
	CachePolicyQueryStringBehaviorAll = "all"
)
View Source
const (
	// CachePolicyTypeManaged is a CachePolicyType enum value
	CachePolicyTypeManaged = "managed"

	// CachePolicyTypeCustom is a CachePolicyType enum value
	CachePolicyTypeCustom = "custom"
)
View Source
const (
	// CertificateSourceCloudfront is a CertificateSource enum value
	CertificateSourceCloudfront = "cloudfront"

	// CertificateSourceIam is a CertificateSource enum value
	CertificateSourceIam = "iam"

	// CertificateSourceAcm is a CertificateSource enum value
	CertificateSourceAcm = "acm"
)
View Source
const (
	// EventTypeViewerRequest is a EventType enum value
	EventTypeViewerRequest = "viewer-request"

	// EventTypeViewerResponse is a EventType enum value
	EventTypeViewerResponse = "viewer-response"

	// EventTypeOriginRequest is a EventType enum value
	EventTypeOriginRequest = "origin-request"

	// EventTypeOriginResponse is a EventType enum value
	EventTypeOriginResponse = "origin-response"
)
View Source
const (
	// GeoRestrictionTypeBlacklist is a GeoRestrictionType enum value
	GeoRestrictionTypeBlacklist = "blacklist"

	// GeoRestrictionTypeWhitelist is a GeoRestrictionType enum value
	GeoRestrictionTypeWhitelist = "whitelist"

	// GeoRestrictionTypeNone is a GeoRestrictionType enum value
	GeoRestrictionTypeNone = "none"
)
View Source
const (
	// HttpVersionHttp11 is a HttpVersion enum value
	HttpVersionHttp11 = "http1.1"

	// HttpVersionHttp2 is a HttpVersion enum value
	HttpVersionHttp2 = "http2"
)
View Source
const (
	// ICPRecordalStatusApproved is a ICPRecordalStatus enum value
	ICPRecordalStatusApproved = "APPROVED"

	// ICPRecordalStatusSuspended is a ICPRecordalStatus enum value
	ICPRecordalStatusSuspended = "SUSPENDED"

	// ICPRecordalStatusPending is a ICPRecordalStatus enum value
	ICPRecordalStatusPending = "PENDING"
)
View Source
const (
	// ItemSelectionNone is a ItemSelection enum value
	ItemSelectionNone = "none"

	// ItemSelectionWhitelist is a ItemSelection enum value
	ItemSelectionWhitelist = "whitelist"

	// ItemSelectionAll is a ItemSelection enum value
	ItemSelectionAll = "all"
)
View Source
const (
	// MethodGet is a Method enum value
	MethodGet = "GET"

	// MethodHead is a Method enum value
	MethodHead = "HEAD"

	// MethodPost is a Method enum value
	MethodPost = "POST"

	// MethodPut is a Method enum value
	MethodPut = "PUT"

	// MethodPatch is a Method enum value
	MethodPatch = "PATCH"

	// MethodOptions is a Method enum value
	MethodOptions = "OPTIONS"

	// MethodDelete is a Method enum value
	MethodDelete = "DELETE"
)
View Source
const (
	// MinimumProtocolVersionSslv3 is a MinimumProtocolVersion enum value
	MinimumProtocolVersionSslv3 = "SSLv3"

	// MinimumProtocolVersionTlsv1 is a MinimumProtocolVersion enum value
	MinimumProtocolVersionTlsv1 = "TLSv1"

	// MinimumProtocolVersionTlsv12016 is a MinimumProtocolVersion enum value
	MinimumProtocolVersionTlsv12016 = "TLSv1_2016"

	// MinimumProtocolVersionTlsv112016 is a MinimumProtocolVersion enum value
	MinimumProtocolVersionTlsv112016 = "TLSv1.1_2016"

	// MinimumProtocolVersionTlsv122018 is a MinimumProtocolVersion enum value
	MinimumProtocolVersionTlsv122018 = "TLSv1.2_2018"

	// MinimumProtocolVersionTlsv122019 is a MinimumProtocolVersion enum value
	MinimumProtocolVersionTlsv122019 = "TLSv1.2_2019"
)
View Source
const (
	// OriginProtocolPolicyHttpOnly is a OriginProtocolPolicy enum value
	OriginProtocolPolicyHttpOnly = "http-only"

	// OriginProtocolPolicyMatchViewer is a OriginProtocolPolicy enum value
	OriginProtocolPolicyMatchViewer = "match-viewer"

	// OriginProtocolPolicyHttpsOnly is a OriginProtocolPolicy enum value
	OriginProtocolPolicyHttpsOnly = "https-only"
)
View Source
const (
	// OriginRequestPolicyCookieBehaviorNone is a OriginRequestPolicyCookieBehavior enum value
	OriginRequestPolicyCookieBehaviorNone = "none"

	// OriginRequestPolicyCookieBehaviorWhitelist is a OriginRequestPolicyCookieBehavior enum value
	OriginRequestPolicyCookieBehaviorWhitelist = "whitelist"

	// OriginRequestPolicyCookieBehaviorAll is a OriginRequestPolicyCookieBehavior enum value
	OriginRequestPolicyCookieBehaviorAll = "all"
)
View Source
const (
	// OriginRequestPolicyHeaderBehaviorNone is a OriginRequestPolicyHeaderBehavior enum value
	OriginRequestPolicyHeaderBehaviorNone = "none"

	// OriginRequestPolicyHeaderBehaviorWhitelist is a OriginRequestPolicyHeaderBehavior enum value
	OriginRequestPolicyHeaderBehaviorWhitelist = "whitelist"

	// OriginRequestPolicyHeaderBehaviorAllViewer is a OriginRequestPolicyHeaderBehavior enum value
	OriginRequestPolicyHeaderBehaviorAllViewer = "allViewer"

	// OriginRequestPolicyHeaderBehaviorAllViewerAndWhitelistCloudFront is a OriginRequestPolicyHeaderBehavior enum value
	OriginRequestPolicyHeaderBehaviorAllViewerAndWhitelistCloudFront = "allViewerAndWhitelistCloudFront"
)
View Source
const (
	// OriginRequestPolicyQueryStringBehaviorNone is a OriginRequestPolicyQueryStringBehavior enum value
	OriginRequestPolicyQueryStringBehaviorNone = "none"

	// OriginRequestPolicyQueryStringBehaviorWhitelist is a OriginRequestPolicyQueryStringBehavior enum value
	OriginRequestPolicyQueryStringBehaviorWhitelist = "whitelist"

	// OriginRequestPolicyQueryStringBehaviorAll is a OriginRequestPolicyQueryStringBehavior enum value
	OriginRequestPolicyQueryStringBehaviorAll = "all"
)
View Source
const (
	// OriginRequestPolicyTypeManaged is a OriginRequestPolicyType enum value
	OriginRequestPolicyTypeManaged = "managed"

	// OriginRequestPolicyTypeCustom is a OriginRequestPolicyType enum value
	OriginRequestPolicyTypeCustom = "custom"
)
View Source
const (
	// PriceClassPriceClass100 is a PriceClass enum value
	PriceClassPriceClass100 = "PriceClass_100"

	// PriceClassPriceClass200 is a PriceClass enum value
	PriceClassPriceClass200 = "PriceClass_200"

	// PriceClassPriceClassAll is a PriceClass enum value
	PriceClassPriceClassAll = "PriceClass_All"
)
View Source
const (
	// SSLSupportMethodSniOnly is a SSLSupportMethod enum value
	SSLSupportMethodSniOnly = "sni-only"

	// SSLSupportMethodVip is a SSLSupportMethod enum value
	SSLSupportMethodVip = "vip"
)
View Source
const (
	// SslProtocolSslv3 is a SslProtocol enum value
	SslProtocolSslv3 = "SSLv3"

	// SslProtocolTlsv1 is a SslProtocol enum value
	SslProtocolTlsv1 = "TLSv1"

	// SslProtocolTlsv11 is a SslProtocol enum value
	SslProtocolTlsv11 = "TLSv1.1"

	// SslProtocolTlsv12 is a SslProtocol enum value
	SslProtocolTlsv12 = "TLSv1.2"
)
View Source
const (
	// ViewerProtocolPolicyAllowAll is a ViewerProtocolPolicy enum value
	ViewerProtocolPolicyAllowAll = "allow-all"

	// ViewerProtocolPolicyHttpsOnly is a ViewerProtocolPolicy enum value
	ViewerProtocolPolicyHttpsOnly = "https-only"

	// ViewerProtocolPolicyRedirectToHttps is a ViewerProtocolPolicy enum value
	ViewerProtocolPolicyRedirectToHttps = "redirect-to-https"
)
View Source
const (

	// ErrCodeAccessDenied for service response error code
	// "AccessDenied".
	//
	// Access denied.
	ErrCodeAccessDenied = "AccessDenied"

	// ErrCodeBatchTooLarge for service response error code
	// "BatchTooLarge".
	//
	// Invalidation batch specified is too large.
	ErrCodeBatchTooLarge = "BatchTooLarge"

	// ErrCodeCNAMEAlreadyExists for service response error code
	// "CNAMEAlreadyExists".
	//
	// The CNAME specified is already defined for CloudFront.
	ErrCodeCNAMEAlreadyExists = "CNAMEAlreadyExists"

	// ErrCodeCachePolicyAlreadyExists for service response error code
	// "CachePolicyAlreadyExists".
	//
	// A cache policy with this name already exists. You must provide a unique name.
	// To modify an existing cache policy, use UpdateCachePolicy.
	ErrCodeCachePolicyAlreadyExists = "CachePolicyAlreadyExists"

	// ErrCodeCachePolicyInUse for service response error code
	// "CachePolicyInUse".
	//
	// Cannot delete the cache policy because it is attached to one or more cache
	// behaviors.
	ErrCodeCachePolicyInUse = "CachePolicyInUse"

	// ErrCodeCannotChangeImmutablePublicKeyFields for service response error code
	// "CannotChangeImmutablePublicKeyFields".
	//
	// You can't change the value of a public key.
	ErrCodeCannotChangeImmutablePublicKeyFields = "CannotChangeImmutablePublicKeyFields"

	// ErrCodeDistributionAlreadyExists for service response error code
	// "DistributionAlreadyExists".
	//
	// The caller reference you attempted to create the distribution with is associated
	// with another distribution.
	ErrCodeDistributionAlreadyExists = "DistributionAlreadyExists"

	// ErrCodeDistributionNotDisabled for service response error code
	// "DistributionNotDisabled".
	//
	// The specified CloudFront distribution is not disabled. You must disable the
	// distribution before you can delete it.
	ErrCodeDistributionNotDisabled = "DistributionNotDisabled"

	// ErrCodeFieldLevelEncryptionConfigAlreadyExists for service response error code
	// "FieldLevelEncryptionConfigAlreadyExists".
	//
	// The specified configuration for field-level encryption already exists.
	ErrCodeFieldLevelEncryptionConfigAlreadyExists = "FieldLevelEncryptionConfigAlreadyExists"

	// ErrCodeFieldLevelEncryptionConfigInUse for service response error code
	// "FieldLevelEncryptionConfigInUse".
	//
	// The specified configuration for field-level encryption is in use.
	ErrCodeFieldLevelEncryptionConfigInUse = "FieldLevelEncryptionConfigInUse"

	// ErrCodeFieldLevelEncryptionProfileAlreadyExists for service response error code
	// "FieldLevelEncryptionProfileAlreadyExists".
	//
	// The specified profile for field-level encryption already exists.
	ErrCodeFieldLevelEncryptionProfileAlreadyExists = "FieldLevelEncryptionProfileAlreadyExists"

	// ErrCodeFieldLevelEncryptionProfileInUse for service response error code
	// "FieldLevelEncryptionProfileInUse".
	//
	// The specified profile for field-level encryption is in use.
	ErrCodeFieldLevelEncryptionProfileInUse = "FieldLevelEncryptionProfileInUse"

	// ErrCodeFieldLevelEncryptionProfileSizeExceeded for service response error code
	// "FieldLevelEncryptionProfileSizeExceeded".
	//
	// The maximum size of a profile for field-level encryption was exceeded.
	ErrCodeFieldLevelEncryptionProfileSizeExceeded = "FieldLevelEncryptionProfileSizeExceeded"

	// ErrCodeIllegalDelete for service response error code
	// "IllegalDelete".
	//
	// You cannot delete a managed policy.
	ErrCodeIllegalDelete = "IllegalDelete"

	// ErrCodeIllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior for service response error code
	// "IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior".
	//
	// The specified configuration for field-level encryption can't be associated
	// with the specified cache behavior.
	ErrCodeIllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior = "IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior"

	// ErrCodeIllegalUpdate for service response error code
	// "IllegalUpdate".
	//
	// The update contains modifications that are not allowed.
	ErrCodeIllegalUpdate = "IllegalUpdate"

	// ErrCodeInconsistentQuantities for service response error code
	// "InconsistentQuantities".
	//
	// The value of Quantity and the size of Items don't match.
	ErrCodeInconsistentQuantities = "InconsistentQuantities"

	// ErrCodeInvalidArgument for service response error code
	// "InvalidArgument".
	//
	// An argument is invalid.
	ErrCodeInvalidArgument = "InvalidArgument"

	// ErrCodeInvalidDefaultRootObject for service response error code
	// "InvalidDefaultRootObject".
	//
	// The default root object file name is too big or contains an invalid character.
	ErrCodeInvalidDefaultRootObject = "InvalidDefaultRootObject"

	// ErrCodeInvalidErrorCode for service response error code
	// "InvalidErrorCode".
	//
	// An invalid error code was specified.
	ErrCodeInvalidErrorCode = "InvalidErrorCode"

	// ErrCodeInvalidForwardCookies for service response error code
	// "InvalidForwardCookies".
	//
	// Your request contains forward cookies option which doesn't match with the
	// expectation for the whitelisted list of cookie names. Either list of cookie
	// names has been specified when not allowed or list of cookie names is missing
	// when expected.
	ErrCodeInvalidForwardCookies = "InvalidForwardCookies"

	// ErrCodeInvalidGeoRestrictionParameter for service response error code
	// "InvalidGeoRestrictionParameter".
	//
	// The specified geo restriction parameter is not valid.
	ErrCodeInvalidGeoRestrictionParameter = "InvalidGeoRestrictionParameter"

	// ErrCodeInvalidHeadersForS3Origin for service response error code
	// "InvalidHeadersForS3Origin".
	//
	// The headers specified are not valid for an Amazon S3 origin.
	ErrCodeInvalidHeadersForS3Origin = "InvalidHeadersForS3Origin"

	// ErrCodeInvalidIfMatchVersion for service response error code
	// "InvalidIfMatchVersion".
	//
	// The If-Match version is missing or not valid.
	ErrCodeInvalidIfMatchVersion = "InvalidIfMatchVersion"

	// ErrCodeInvalidLambdaFunctionAssociation for service response error code
	// "InvalidLambdaFunctionAssociation".
	//
	// The specified Lambda function association is invalid.
	ErrCodeInvalidLambdaFunctionAssociation = "InvalidLambdaFunctionAssociation"

	// ErrCodeInvalidLocationCode for service response error code
	// "InvalidLocationCode".
	//
	// The location code specified is not valid.
	ErrCodeInvalidLocationCode = "InvalidLocationCode"

	// ErrCodeInvalidMinimumProtocolVersion for service response error code
	// "InvalidMinimumProtocolVersion".
	//
	// The minimum protocol version specified is not valid.
	ErrCodeInvalidMinimumProtocolVersion = "InvalidMinimumProtocolVersion"

	// ErrCodeInvalidOrigin for service response error code
	// "InvalidOrigin".
	//
	// The Amazon S3 origin server specified does not refer to a valid Amazon S3
	// bucket.
	ErrCodeInvalidOrigin = "InvalidOrigin"

	// ErrCodeInvalidOriginAccessIdentity for service response error code
	// "InvalidOriginAccessIdentity".
	//
	// The origin access identity is not valid or doesn't exist.
	ErrCodeInvalidOriginAccessIdentity = "InvalidOriginAccessIdentity"

	// ErrCodeInvalidOriginKeepaliveTimeout for service response error code
	// "InvalidOriginKeepaliveTimeout".
	//
	// The keep alive timeout specified for the origin is not valid.
	ErrCodeInvalidOriginKeepaliveTimeout = "InvalidOriginKeepaliveTimeout"

	// ErrCodeInvalidOriginReadTimeout for service response error code
	// "InvalidOriginReadTimeout".
	//
	// The read timeout specified for the origin is not valid.
	ErrCodeInvalidOriginReadTimeout = "InvalidOriginReadTimeout"

	// ErrCodeInvalidProtocolSettings for service response error code
	// "InvalidProtocolSettings".
	//
	// You cannot specify SSLv3 as the minimum protocol version if you only want
	// to support only clients that support Server Name Indication (SNI).
	ErrCodeInvalidProtocolSettings = "InvalidProtocolSettings"

	// ErrCodeInvalidQueryStringParameters for service response error code
	// "InvalidQueryStringParameters".
	//
	// The query string parameters specified are not valid.
	ErrCodeInvalidQueryStringParameters = "InvalidQueryStringParameters"

	// ErrCodeInvalidRelativePath for service response error code
	// "InvalidRelativePath".
	//
	// The relative path is too big, is not URL-encoded, or does not begin with
	// a slash (/).
	ErrCodeInvalidRelativePath = "InvalidRelativePath"

	// ErrCodeInvalidRequiredProtocol for service response error code
	// "InvalidRequiredProtocol".
	//
	// This operation requires the HTTPS protocol. Ensure that you specify the HTTPS
	// protocol in your request, or omit the RequiredProtocols element from your
	// distribution configuration.
	ErrCodeInvalidRequiredProtocol = "InvalidRequiredProtocol"

	// ErrCodeInvalidResponseCode for service response error code
	// "InvalidResponseCode".
	//
	// A response code is not valid.
	ErrCodeInvalidResponseCode = "InvalidResponseCode"

	// ErrCodeInvalidTTLOrder for service response error code
	// "InvalidTTLOrder".
	//
	// The TTL order specified is not valid.
	ErrCodeInvalidTTLOrder = "InvalidTTLOrder"

	// ErrCodeInvalidTagging for service response error code
	// "InvalidTagging".
	//
	// The tagging specified is not valid.
	ErrCodeInvalidTagging = "InvalidTagging"

	// ErrCodeInvalidViewerCertificate for service response error code
	// "InvalidViewerCertificate".
	//
	// A viewer certificate specified is not valid.
	ErrCodeInvalidViewerCertificate = "InvalidViewerCertificate"

	// ErrCodeInvalidWebACLId for service response error code
	// "InvalidWebACLId".
	//
	// A web ACL ID specified is not valid. To specify a web ACL created using the
	// latest version of AWS WAF, use the ACL ARN, for example arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a.
	// To specify a web ACL created using AWS WAF Classic, use the ACL ID, for example
	// 473e64fd-f30b-4765-81a0-62ad96dd167a.
	ErrCodeInvalidWebACLId = "InvalidWebACLId"

	// ErrCodeMissingBody for service response error code
	// "MissingBody".
	//
	// This operation requires a body. Ensure that the body is present and the Content-Type
	// header is set.
	ErrCodeMissingBody = "MissingBody"

	// ErrCodeNoSuchCachePolicy for service response error code
	// "NoSuchCachePolicy".
	//
	// The cache policy does not exist.
	ErrCodeNoSuchCachePolicy = "NoSuchCachePolicy"

	// ErrCodeNoSuchCloudFrontOriginAccessIdentity for service response error code
	// "NoSuchCloudFrontOriginAccessIdentity".
	//
	// The specified origin access identity does not exist.
	ErrCodeNoSuchCloudFrontOriginAccessIdentity = "NoSuchCloudFrontOriginAccessIdentity"

	// ErrCodeNoSuchDistribution for service response error code
	// "NoSuchDistribution".
	//
	// The specified distribution does not exist.
	ErrCodeNoSuchDistribution = "NoSuchDistribution"

	// ErrCodeNoSuchFieldLevelEncryptionConfig for service response error code
	// "NoSuchFieldLevelEncryptionConfig".
	//
	// The specified configuration for field-level encryption doesn't exist.
	ErrCodeNoSuchFieldLevelEncryptionConfig = "NoSuchFieldLevelEncryptionConfig"

	// ErrCodeNoSuchFieldLevelEncryptionProfile for service response error code
	// "NoSuchFieldLevelEncryptionProfile".
	//
	// The specified profile for field-level encryption doesn't exist.
	ErrCodeNoSuchFieldLevelEncryptionProfile = "NoSuchFieldLevelEncryptionProfile"

	// ErrCodeNoSuchInvalidation for service response error code
	// "NoSuchInvalidation".
	//
	// The specified invalidation does not exist.
	ErrCodeNoSuchInvalidation = "NoSuchInvalidation"

	// ErrCodeNoSuchOrigin for service response error code
	// "NoSuchOrigin".
	//
	// No origin exists with the specified Origin Id.
	ErrCodeNoSuchOrigin = "NoSuchOrigin"

	// ErrCodeNoSuchOriginRequestPolicy for service response error code
	// "NoSuchOriginRequestPolicy".
	//
	// The origin request policy does not exist.
	ErrCodeNoSuchOriginRequestPolicy = "NoSuchOriginRequestPolicy"

	// ErrCodeNoSuchPublicKey for service response error code
	// "NoSuchPublicKey".
	//
	// The specified public key doesn't exist.
	ErrCodeNoSuchPublicKey = "NoSuchPublicKey"

	// ErrCodeNoSuchResource for service response error code
	// "NoSuchResource".
	//
	// A resource that was specified is not valid.
	ErrCodeNoSuchResource = "NoSuchResource"

	// ErrCodeNoSuchStreamingDistribution for service response error code
	// "NoSuchStreamingDistribution".
	//
	// The specified streaming distribution does not exist.
	ErrCodeNoSuchStreamingDistribution = "NoSuchStreamingDistribution"

	// ErrCodeOriginAccessIdentityAlreadyExists for service response error code
	// "CloudFrontOriginAccessIdentityAlreadyExists".
	//
	// If the CallerReference is a value you already sent in a previous request
	// to create an identity but the content of the CloudFrontOriginAccessIdentityConfig
	// is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists
	// error.
	ErrCodeOriginAccessIdentityAlreadyExists = "CloudFrontOriginAccessIdentityAlreadyExists"

	// ErrCodeOriginAccessIdentityInUse for service response error code
	// "CloudFrontOriginAccessIdentityInUse".
	//
	// The Origin Access Identity specified is already in use.
	ErrCodeOriginAccessIdentityInUse = "CloudFrontOriginAccessIdentityInUse"

	// ErrCodeOriginRequestPolicyAlreadyExists for service response error code
	// "OriginRequestPolicyAlreadyExists".
	//
	// An origin request policy with this name already exists. You must provide
	// a unique name. To modify an existing origin request policy, use UpdateOriginRequestPolicy.
	ErrCodeOriginRequestPolicyAlreadyExists = "OriginRequestPolicyAlreadyExists"

	// ErrCodeOriginRequestPolicyInUse for service response error code
	// "OriginRequestPolicyInUse".
	//
	// Cannot delete the origin request policy because it is attached to one or
	// more cache behaviors.
	ErrCodeOriginRequestPolicyInUse = "OriginRequestPolicyInUse"

	// ErrCodePreconditionFailed for service response error code
	// "PreconditionFailed".
	//
	// The precondition given in one or more of the request header fields evaluated
	// to false.
	ErrCodePreconditionFailed = "PreconditionFailed"

	// ErrCodePublicKeyAlreadyExists for service response error code
	// "PublicKeyAlreadyExists".
	//
	// The specified public key already exists.
	ErrCodePublicKeyAlreadyExists = "PublicKeyAlreadyExists"

	// ErrCodePublicKeyInUse for service response error code
	// "PublicKeyInUse".
	//
	// The specified public key is in use.
	ErrCodePublicKeyInUse = "PublicKeyInUse"

	// ErrCodeQueryArgProfileEmpty for service response error code
	// "QueryArgProfileEmpty".
	//
	// No profile specified for the field-level encryption query argument.
	ErrCodeQueryArgProfileEmpty = "QueryArgProfileEmpty"

	// ErrCodeStreamingDistributionAlreadyExists for service response error code
	// "StreamingDistributionAlreadyExists".
	//
	// The caller reference you attempted to create the streaming distribution with
	// is associated with another distribution
	ErrCodeStreamingDistributionAlreadyExists = "StreamingDistributionAlreadyExists"

	// ErrCodeStreamingDistributionNotDisabled for service response error code
	// "StreamingDistributionNotDisabled".
	//
	// The specified CloudFront distribution is not disabled. You must disable the
	// distribution before you can delete it.
	ErrCodeStreamingDistributionNotDisabled = "StreamingDistributionNotDisabled"

	// ErrCodeTooManyCacheBehaviors for service response error code
	// "TooManyCacheBehaviors".
	//
	// You cannot create more cache behaviors for the distribution.
	ErrCodeTooManyCacheBehaviors = "TooManyCacheBehaviors"

	// ErrCodeTooManyCachePolicies for service response error code
	// "TooManyCachePolicies".
	//
	// You have reached the maximum number of cache policies for this AWS account.
	// For more information, see Quotas (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html)
	// (formerly known as limits) in the Amazon CloudFront Developer Guide.
	ErrCodeTooManyCachePolicies = "TooManyCachePolicies"

	// ErrCodeTooManyCertificates for service response error code
	// "TooManyCertificates".
	//
	// You cannot create anymore custom SSL/TLS certificates.
	ErrCodeTooManyCertificates = "TooManyCertificates"

	// ErrCodeTooManyCloudFrontOriginAccessIdentities for service response error code
	// "TooManyCloudFrontOriginAccessIdentities".
	//
	// Processing your request would cause you to exceed the maximum number of origin
	// access identities allowed.
	ErrCodeTooManyCloudFrontOriginAccessIdentities = "TooManyCloudFrontOriginAccessIdentities"

	// ErrCodeTooManyCookieNamesInWhiteList for service response error code
	// "TooManyCookieNamesInWhiteList".
	//
	// Your request contains more cookie names in the whitelist than are allowed
	// per cache behavior.
	ErrCodeTooManyCookieNamesInWhiteList = "TooManyCookieNamesInWhiteList"

	// ErrCodeTooManyCookiesInCachePolicy for service response error code
	// "TooManyCookiesInCachePolicy".
	//
	// The number of cookies in the cache policy exceeds the maximum. For more information,
	// see Quotas (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html)
	// (formerly known as limits) in the Amazon CloudFront Developer Guide.
	ErrCodeTooManyCookiesInCachePolicy = "TooManyCookiesInCachePolicy"

	// ErrCodeTooManyCookiesInOriginRequestPolicy for service response error code
	// "TooManyCookiesInOriginRequestPolicy".
	//
	// The number of cookies in the origin request policy exceeds the maximum. For
	// more information, see Quotas (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html)
	// (formerly known as limits) in the Amazon CloudFront Developer Guide.
	ErrCodeTooManyCookiesInOriginRequestPolicy = "TooManyCookiesInOriginRequestPolicy"

	// ErrCodeTooManyDistributionCNAMEs for service response error code
	// "TooManyDistributionCNAMEs".
	//
	// Your request contains more CNAMEs than are allowed per distribution.
	ErrCodeTooManyDistributionCNAMEs = "TooManyDistributionCNAMEs"

	// ErrCodeTooManyDistributions for service response error code
	// "TooManyDistributions".
	//
	// Processing your request would cause you to exceed the maximum number of distributions
	// allowed.
	ErrCodeTooManyDistributions = "TooManyDistributions"

	// ErrCodeTooManyDistributionsAssociatedToCachePolicy for service response error code
	// "TooManyDistributionsAssociatedToCachePolicy".
	//
	// The maximum number of distributions have been associated with the specified
	// cache policy. For more information, see Quotas (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html)
	// (formerly known as limits) in the Amazon CloudFront Developer Guide.
	ErrCodeTooManyDistributionsAssociatedToCachePolicy = "TooManyDistributionsAssociatedToCachePolicy"

	// ErrCodeTooManyDistributionsAssociatedToFieldLevelEncryptionConfig for service response error code
	// "TooManyDistributionsAssociatedToFieldLevelEncryptionConfig".
	//
	// The maximum number of distributions have been associated with the specified
	// configuration for field-level encryption.
	ErrCodeTooManyDistributionsAssociatedToFieldLevelEncryptionConfig = "TooManyDistributionsAssociatedToFieldLevelEncryptionConfig"

	// ErrCodeTooManyDistributionsAssociatedToOriginRequestPolicy for service response error code
	// "TooManyDistributionsAssociatedToOriginRequestPolicy".
	//
	// The maximum number of distributions have been associated with the specified
	// origin request policy. For more information, see Quotas (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html)
	// (formerly known as limits) in the Amazon CloudFront Developer Guide.
	ErrCodeTooManyDistributionsAssociatedToOriginRequestPolicy = "TooManyDistributionsAssociatedToOriginRequestPolicy"

	// ErrCodeTooManyDistributionsWithLambdaAssociations for service response error code
	// "TooManyDistributionsWithLambdaAssociations".
	//
	// Processing your request would cause the maximum number of distributions with
	// Lambda function associations per owner to be exceeded.
	ErrCodeTooManyDistributionsWithLambdaAssociations = "TooManyDistributionsWithLambdaAssociations"

	// ErrCodeTooManyDistributionsWithSingleFunctionARN for service response error code
	// "TooManyDistributionsWithSingleFunctionARN".
	//
	// The maximum number of distributions have been associated with the specified
	// Lambda function.
	ErrCodeTooManyDistributionsWithSingleFunctionARN = "TooManyDistributionsWithSingleFunctionARN"

	// ErrCodeTooManyFieldLevelEncryptionConfigs for service response error code
	// "TooManyFieldLevelEncryptionConfigs".
	//
	// The maximum number of configurations for field-level encryption have been
	// created.
	ErrCodeTooManyFieldLevelEncryptionConfigs = "TooManyFieldLevelEncryptionConfigs"

	// ErrCodeTooManyFieldLevelEncryptionContentTypeProfiles for service response error code
	// "TooManyFieldLevelEncryptionContentTypeProfiles".
	//
	// The maximum number of content type profiles for field-level encryption have
	// been created.
	ErrCodeTooManyFieldLevelEncryptionContentTypeProfiles = "TooManyFieldLevelEncryptionContentTypeProfiles"

	// ErrCodeTooManyFieldLevelEncryptionEncryptionEntities for service response error code
	// "TooManyFieldLevelEncryptionEncryptionEntities".
	//
	// The maximum number of encryption entities for field-level encryption have
	// been created.
	ErrCodeTooManyFieldLevelEncryptionEncryptionEntities = "TooManyFieldLevelEncryptionEncryptionEntities"

	// ErrCodeTooManyFieldLevelEncryptionFieldPatterns for service response error code
	// "TooManyFieldLevelEncryptionFieldPatterns".
	//
	// The maximum number of field patterns for field-level encryption have been
	// created.
	ErrCodeTooManyFieldLevelEncryptionFieldPatterns = "TooManyFieldLevelEncryptionFieldPatterns"

	// ErrCodeTooManyFieldLevelEncryptionProfiles for service response error code
	// "TooManyFieldLevelEncryptionProfiles".
	//
	// The maximum number of profiles for field-level encryption have been created.
	ErrCodeTooManyFieldLevelEncryptionProfiles = "TooManyFieldLevelEncryptionProfiles"

	// ErrCodeTooManyFieldLevelEncryptionQueryArgProfiles for service response error code
	// "TooManyFieldLevelEncryptionQueryArgProfiles".
	//
	// The maximum number of query arg profiles for field-level encryption have
	// been created.
	ErrCodeTooManyFieldLevelEncryptionQueryArgProfiles = "TooManyFieldLevelEncryptionQueryArgProfiles"

	// ErrCodeTooManyHeadersInCachePolicy for service response error code
	// "TooManyHeadersInCachePolicy".
	//
	// The number of headers in the cache policy exceeds the maximum. For more information,
	// see Quotas (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html)
	// (formerly known as limits) in the Amazon CloudFront Developer Guide.
	ErrCodeTooManyHeadersInCachePolicy = "TooManyHeadersInCachePolicy"

	// ErrCodeTooManyHeadersInForwardedValues for service response error code
	// "TooManyHeadersInForwardedValues".
	//
	// Your request contains too many headers in forwarded values.
	ErrCodeTooManyHeadersInForwardedValues = "TooManyHeadersInForwardedValues"

	// ErrCodeTooManyHeadersInOriginRequestPolicy for service response error code
	// "TooManyHeadersInOriginRequestPolicy".
	//
	// The number of headers in the origin request policy exceeds the maximum. For
	// more information, see Quotas (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html)
	// (formerly known as limits) in the Amazon CloudFront Developer Guide.
	ErrCodeTooManyHeadersInOriginRequestPolicy = "TooManyHeadersInOriginRequestPolicy"

	// ErrCodeTooManyInvalidationsInProgress for service response error code
	// "TooManyInvalidationsInProgress".
	//
	// You have exceeded the maximum number of allowable InProgress invalidation
	// batch requests, or invalidation objects.
	ErrCodeTooManyInvalidationsInProgress = "TooManyInvalidationsInProgress"

	// ErrCodeTooManyLambdaFunctionAssociations for service response error code
	// "TooManyLambdaFunctionAssociations".
	//
	// Your request contains more Lambda function associations than are allowed
	// per distribution.
	ErrCodeTooManyLambdaFunctionAssociations = "TooManyLambdaFunctionAssociations"

	// ErrCodeTooManyOriginCustomHeaders for service response error code
	// "TooManyOriginCustomHeaders".
	//
	// Your request contains too many origin custom headers.
	ErrCodeTooManyOriginCustomHeaders = "TooManyOriginCustomHeaders"

	// ErrCodeTooManyOriginGroupsPerDistribution for service response error code
	// "TooManyOriginGroupsPerDistribution".
	//
	// Processing your request would cause you to exceed the maximum number of origin
	// groups allowed.
	ErrCodeTooManyOriginGroupsPerDistribution = "TooManyOriginGroupsPerDistribution"

	// ErrCodeTooManyOriginRequestPolicies for service response error code
	// "TooManyOriginRequestPolicies".
	//
	// You have reached the maximum number of origin request policies for this AWS
	// account. For more information, see Quotas (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html)
	// (formerly known as limits) in the Amazon CloudFront Developer Guide.
	ErrCodeTooManyOriginRequestPolicies = "TooManyOriginRequestPolicies"

	// ErrCodeTooManyOrigins for service response error code
	// "TooManyOrigins".
	//
	// You cannot create more origins for the distribution.
	ErrCodeTooManyOrigins = "TooManyOrigins"

	// ErrCodeTooManyPublicKeys for service response error code
	// "TooManyPublicKeys".
	//
	// The maximum number of public keys for field-level encryption have been created.
	// To create a new public key, delete one of the existing keys.
	ErrCodeTooManyPublicKeys = "TooManyPublicKeys"

	// ErrCodeTooManyQueryStringParameters for service response error code
	// "TooManyQueryStringParameters".
	//
	// Your request contains too many query string parameters.
	ErrCodeTooManyQueryStringParameters = "TooManyQueryStringParameters"

	// ErrCodeTooManyQueryStringsInCachePolicy for service response error code
	// "TooManyQueryStringsInCachePolicy".
	//
	// The number of query strings in the cache policy exceeds the maximum. For
	// more information, see Quotas (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html)
	// (formerly known as limits) in the Amazon CloudFront Developer Guide.
	ErrCodeTooManyQueryStringsInCachePolicy = "TooManyQueryStringsInCachePolicy"

	// ErrCodeTooManyQueryStringsInOriginRequestPolicy for service response error code
	// "TooManyQueryStringsInOriginRequestPolicy".
	//
	// The number of query strings in the origin request policy exceeds the maximum.
	// For more information, see Quotas (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html)
	// (formerly known as limits) in the Amazon CloudFront Developer Guide.
	ErrCodeTooManyQueryStringsInOriginRequestPolicy = "TooManyQueryStringsInOriginRequestPolicy"

	// ErrCodeTooManyStreamingDistributionCNAMEs for service response error code
	// "TooManyStreamingDistributionCNAMEs".
	//
	// Your request contains more CNAMEs than are allowed per distribution.
	ErrCodeTooManyStreamingDistributionCNAMEs = "TooManyStreamingDistributionCNAMEs"

	// ErrCodeTooManyStreamingDistributions for service response error code
	// "TooManyStreamingDistributions".
	//
	// Processing your request would cause you to exceed the maximum number of streaming
	// distributions allowed.
	ErrCodeTooManyStreamingDistributions = "TooManyStreamingDistributions"

	// ErrCodeTooManyTrustedSigners for service response error code
	// "TooManyTrustedSigners".
	//
	// Your request contains more trusted signers than are allowed per distribution.
	ErrCodeTooManyTrustedSigners = "TooManyTrustedSigners"

	// ErrCodeTrustedSignerDoesNotExist for service response error code
	// "TrustedSignerDoesNotExist".
	//
	// One or more of your trusted signers don't exist.
	ErrCodeTrustedSignerDoesNotExist = "TrustedSignerDoesNotExist"
)
View Source
const (
	ServiceName = "cloudfront" // Name of service.
	EndpointsID = ServiceName  // ID to lookup a service endpoint with.
	ServiceID   = "CloudFront" // ServiceID is a unique identifier of a specific service.
)

    Service information constants

    View Source
    const (
    	// FormatUrlencoded is a Format enum value
    	FormatUrlencoded = "URLEncoded"
    )

    Variables

    This section is empty.

    Functions

    This section is empty.

    Types

    type ActiveTrustedSigners

    type ActiveTrustedSigners struct {
    
    	// Enabled is true if any of the AWS accounts listed in the TrustedSigners complex
    	// type for this distribution have active CloudFront key pairs. If not, Enabled
    	// is false.
    	//
    	// Enabled is a required field
    	Enabled *bool `type:"boolean" required:"true"`
    
    	// A complex type that contains one Signer complex type for each trusted signer
    	// that is specified in the TrustedSigners complex type.
    	Items []*Signer `locationNameList:"Signer" type:"list"`
    
    	// The number of trusted signers specified in the TrustedSigners complex type.
    	//
    	// Quantity is a required field
    	Quantity *int64 `type:"integer" required:"true"`
    	// contains filtered or unexported fields
    }

      A complex type that lists the AWS accounts, if any, that you included in the TrustedSigners complex type for this distribution. These are the accounts that you want to allow to create signed URLs for private content.

      The Signer complex type lists the AWS account number of the trusted signer or self if the signer is the AWS account that created the distribution. The Signer element also includes the IDs of any active CloudFront key pairs that are associated with the trusted signer's AWS account. If no KeyPairId element appears for a Signer, that signer can't create signed URLs.

      For more information, see Serving Private Content through CloudFront (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) in the Amazon CloudFront Developer Guide.

      func (ActiveTrustedSigners) GoString

      func (s ActiveTrustedSigners) GoString() string

        GoString returns the string representation

        func (*ActiveTrustedSigners) SetEnabled

          SetEnabled sets the Enabled field's value.

          func (*ActiveTrustedSigners) SetItems

            SetItems sets the Items field's value.

            func (*ActiveTrustedSigners) SetQuantity

            func (s *ActiveTrustedSigners) SetQuantity(v int64) *ActiveTrustedSigners

              SetQuantity sets the Quantity field's value.

              func (ActiveTrustedSigners) String

              func (s ActiveTrustedSigners) String() string

                String returns the string representation

                type AliasICPRecordal

                type AliasICPRecordal struct {
                
                	// A domain name associated with a distribution.
                	CNAME *string `type:"string"`
                
                	// The Internet Content Provider (ICP) recordal status for a CNAME. The ICPRecordalStatus
                	// is set to APPROVED for all CNAMEs (aliases) in regions outside of China.
                	//
                	// The status values returned are the following:
                	//
                	//    * APPROVED indicates that the associated CNAME has a valid ICP recordal
                	//    number. Multiple CNAMEs can be associated with a distribution, and CNAMEs
                	//    can correspond to different ICP recordals. To be marked as APPROVED, that
                	//    is, valid to use with China region, a CNAME must have one ICP recordal
                	//    number associated with it.
                	//
                	//    * SUSPENDED indicates that the associated CNAME does not have a valid
                	//    ICP recordal number.
                	//
                	//    * PENDING indicates that CloudFront can't determine the ICP recordal status
                	//    of the CNAME associated with the distribution because there was an error
                	//    in trying to determine the status. You can try again to see if the error
                	//    is resolved in which case CloudFront returns an APPROVED or SUSPENDED
                	//    status.
                	ICPRecordalStatus *string `type:"string" enum:"ICPRecordalStatus"`
                	// contains filtered or unexported fields
                }

                  AWS services in China customers must file for an Internet Content Provider (ICP) recordal if they want to serve content publicly on an alternate domain name, also known as a CNAME, that they've added to CloudFront. AliasICPRecordal provides the ICP recordal status for CNAMEs associated with distributions. The status is returned in the CloudFront response; you can't configure it yourself.

                  For more information about ICP recordals, see Signup, Accounts, and Credentials (https://docs.amazonaws.cn/en_us/aws/latest/userguide/accounts-and-credentials.html) in Getting Started with AWS services in China.

                  func (AliasICPRecordal) GoString

                  func (s AliasICPRecordal) GoString() string

                    GoString returns the string representation

                    func (*AliasICPRecordal) SetCNAME

                    func (s *AliasICPRecordal) SetCNAME(v string) *AliasICPRecordal

                      SetCNAME sets the CNAME field's value.

                      func (*AliasICPRecordal) SetICPRecordalStatus

                      func (s *AliasICPRecordal) SetICPRecordalStatus(v string) *AliasICPRecordal

                        SetICPRecordalStatus sets the ICPRecordalStatus field's value.

                        func (AliasICPRecordal) String

                        func (s AliasICPRecordal) String() string

                          String returns the string representation

                          type Aliases

                          type Aliases struct {
                          
                          	// A complex type that contains the CNAME aliases, if any, that you want to
                          	// associate with this distribution.
                          	Items []*string `locationNameList:"CNAME" type:"list"`
                          
                          	// The number of CNAME aliases, if any, that you want to associate with this
                          	// distribution.
                          	//
                          	// Quantity is a required field
                          	Quantity *int64 `type:"integer" required:"true"`
                          	// contains filtered or unexported fields
                          }

                            A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.

                            func (Aliases) GoString

                            func (s Aliases) GoString() string

                              GoString returns the string representation

                              func (*Aliases) SetItems

                              func (s *Aliases) SetItems(v []*string) *Aliases

                                SetItems sets the Items field's value.

                                func (*Aliases) SetQuantity

                                func (s *Aliases) SetQuantity(v int64) *Aliases

                                  SetQuantity sets the Quantity field's value.

                                  func (Aliases) String

                                  func (s Aliases) String() string

                                    String returns the string representation

                                    func (*Aliases) Validate

                                    func (s *Aliases) Validate() error

                                      Validate inspects the fields of the type to determine if they are valid.

                                      type AllowedMethods

                                      type AllowedMethods struct {
                                      
                                      	// A complex type that controls whether CloudFront caches the response to requests
                                      	// using the specified HTTP methods. There are two choices:
                                      	//
                                      	//    * CloudFront caches responses to GET and HEAD requests.
                                      	//
                                      	//    * CloudFront caches responses to GET, HEAD, and OPTIONS requests.
                                      	//
                                      	// If you pick the second choice for your Amazon S3 Origin, you may need to
                                      	// forward Access-Control-Request-Method, Access-Control-Request-Headers, and
                                      	// Origin headers for the responses to be cached correctly.
                                      	CachedMethods *CachedMethods `type:"structure"`
                                      
                                      	// A complex type that contains the HTTP methods that you want CloudFront to
                                      	// process and forward to your origin.
                                      	//
                                      	// Items is a required field
                                      	Items []*string `locationNameList:"Method" type:"list" required:"true"`
                                      
                                      	// The number of HTTP methods that you want CloudFront to forward to your origin.
                                      	// Valid values are 2 (for GET and HEAD requests), 3 (for GET, HEAD, and OPTIONS
                                      	// requests) and 7 (for GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE requests).
                                      	//
                                      	// Quantity is a required field
                                      	Quantity *int64 `type:"integer" required:"true"`
                                      	// contains filtered or unexported fields
                                      }

                                        A complex type that controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin. There are three choices:

                                        * CloudFront forwards only GET and HEAD requests.
                                        
                                        * CloudFront forwards only GET, HEAD, and OPTIONS requests.
                                        
                                        * CloudFront forwards GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE
                                        requests.
                                        

                                        If you pick the third choice, you may need to restrict access to your Amazon S3 bucket or to your custom origin so users can't perform operations that you don't want them to. For example, you might not want users to have permissions to delete objects from your origin.

                                        func (AllowedMethods) GoString

                                        func (s AllowedMethods) GoString() string

                                          GoString returns the string representation

                                          func (*AllowedMethods) SetCachedMethods

                                          func (s *AllowedMethods) SetCachedMethods(v *CachedMethods) *AllowedMethods

                                            SetCachedMethods sets the CachedMethods field's value.

                                            func (*AllowedMethods) SetItems

                                            func (s *AllowedMethods) SetItems(v []*string) *AllowedMethods

                                              SetItems sets the Items field's value.

                                              func (*AllowedMethods) SetQuantity

                                              func (s *AllowedMethods) SetQuantity(v int64) *AllowedMethods

                                                SetQuantity sets the Quantity field's value.

                                                func (AllowedMethods) String

                                                func (s AllowedMethods) String() string

                                                  String returns the string representation

                                                  func (*AllowedMethods) Validate

                                                  func (s *AllowedMethods) Validate() error

                                                    Validate inspects the fields of the type to determine if they are valid.

                                                    type CacheBehavior

                                                    type CacheBehavior struct {
                                                    
                                                    	// A complex type that controls which HTTP methods CloudFront processes and
                                                    	// forwards to your Amazon S3 bucket or your custom origin. There are three
                                                    	// choices:
                                                    	//
                                                    	//    * CloudFront forwards only GET and HEAD requests.
                                                    	//
                                                    	//    * CloudFront forwards only GET, HEAD, and OPTIONS requests.
                                                    	//
                                                    	//    * CloudFront forwards GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE
                                                    	//    requests.
                                                    	//
                                                    	// If you pick the third choice, you may need to restrict access to your Amazon
                                                    	// S3 bucket or to your custom origin so users can't perform operations that
                                                    	// you don't want them to. For example, you might not want users to have permissions
                                                    	// to delete objects from your origin.
                                                    	AllowedMethods *AllowedMethods `type:"structure"`
                                                    
                                                    	// The unique identifier of the cache policy that is attached to this cache
                                                    	// behavior. For more information, see CreateCachePolicy.
                                                    	CachePolicyId *string `type:"string"`
                                                    
                                                    	// Whether you want CloudFront to automatically compress certain files for this
                                                    	// cache behavior. If so, specify true; if not, specify false. For more information,
                                                    	// see Serving Compressed Files (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html)
                                                    	// in the Amazon CloudFront Developer Guide.
                                                    	Compress *bool `type:"boolean"`
                                                    
                                                    	// This field is deprecated. We recommend that you use the DefaultTTL field
                                                    	// in CachePolicyConfig instead of this field.
                                                    	//
                                                    	// The default amount of time that you want objects to stay in CloudFront caches
                                                    	// before CloudFront forwards another request to your origin to determine whether
                                                    	// the object has been updated. The value that you specify applies only when
                                                    	// your origin does not add HTTP headers such as Cache-Control max-age, Cache-Control
                                                    	// s-maxage, and Expires to objects. For more information, see Managing How
                                                    	// Long Content Stays in an Edge Cache (Expiration) (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html)
                                                    	// in the Amazon CloudFront Developer Guide.
                                                    	//
                                                    	// Deprecated: DefaultTTL has been deprecated
                                                    	DefaultTTL *int64 `deprecated:"true" type:"long"`
                                                    
                                                    	// The value of ID for the field-level encryption configuration that you want
                                                    	// CloudFront to use for encrypting specific fields of data for this cache behavior.
                                                    	FieldLevelEncryptionId *string `type:"string"`
                                                    
                                                    	// This field is deprecated. We recommend that you use a cache policy or an
                                                    	// origin request policy instead of this field.
                                                    	//
                                                    	// If you want to include values in the cache key, use a CachePolicy. See CreateCachePolicy.
                                                    	//
                                                    	// If you want to send values to the origin but not include them in the cache
                                                    	// key, use an OriginRequestPolicy. See CreateOriginRequestPolicy.
                                                    	//
                                                    	// A complex type that specifies how CloudFront handles query strings, cookies,
                                                    	// and HTTP headers.
                                                    	//
                                                    	// Deprecated: ForwardedValues has been deprecated
                                                    	ForwardedValues *ForwardedValues `deprecated:"true" type:"structure"`
                                                    
                                                    	// A complex type that contains zero or more Lambda function associations for
                                                    	// a cache behavior.
                                                    	LambdaFunctionAssociations *LambdaFunctionAssociations `type:"structure"`
                                                    
                                                    	// This field is deprecated. We recommend that you use the MaxTTL field in CachePolicyConfig
                                                    	// instead of this field.
                                                    	//
                                                    	// The maximum amount of time that you want objects to stay in CloudFront caches
                                                    	// before CloudFront forwards another request to your origin to determine whether
                                                    	// the object has been updated. The value that you specify applies only when
                                                    	// your origin adds HTTP headers such as Cache-Control max-age, Cache-Control
                                                    	// s-maxage, and Expires to objects. For more information, see Managing How
                                                    	// Long Content Stays in an Edge Cache (Expiration) (