types

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: Apache-2.0 Imports: 3 Imported by: 45

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessDenied

type AccessDenied struct {
	Message *string
}

Access denied.

func (*AccessDenied) Error

func (e *AccessDenied) Error() string

func (*AccessDenied) ErrorCode

func (e *AccessDenied) ErrorCode() string

func (*AccessDenied) ErrorFault

func (e *AccessDenied) ErrorFault() smithy.ErrorFault

func (*AccessDenied) ErrorMessage

func (e *AccessDenied) ErrorMessage() string

type ActiveTrustedKeyGroups added in v0.29.0

type ActiveTrustedKeyGroups struct {

	// This field is true if any of the key groups have public keys that CloudFront can
	// use to verify the signatures of signed URLs and signed cookies. If not, this
	// field is false.
	//
	// This member is required.
	Enabled *bool

	// The number of key groups in the list.
	//
	// This member is required.
	Quantity *int32

	// A list of key groups, including the identifiers of the public keys in each key
	// group that CloudFront can use to verify the signatures of signed URLs and signed
	// cookies.
	Items []KGKeyPairIds
}

A list of key groups, and the public keys in each key group, that CloudFront can use to verify the signatures of signed URLs and signed cookies.

type ActiveTrustedSigners

type ActiveTrustedSigners struct {

	// This field is true if any of the AWS accounts in the list have active CloudFront
	// key pairs that CloudFront can use to verify the signatures of signed URLs and
	// signed cookies. If not, this field is false.
	//
	// This member is required.
	Enabled *bool

	// The number of AWS accounts in the list.
	//
	// This member is required.
	Quantity *int32

	// A list of AWS accounts and the identifiers of active CloudFront key pairs in
	// each account that CloudFront can use to verify the signatures of signed URLs and
	// signed cookies.
	Items []Signer
}

A list of AWS accounts and the active CloudFront key pairs in each account that CloudFront can use to verify the signatures of signed URLs and signed cookies.

type AliasICPRecordal

type AliasICPRecordal struct {

	// A domain name associated with a distribution.
	CNAME *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 ICPRecordalStatus
}

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.

type Aliases

type Aliases struct {

	// The number of CNAME aliases, if any, that you want to associate with this
	// distribution.
	//
	// This member is required.
	Quantity *int32

	// A complex type that contains the CNAME aliases, if any, that you want to
	// associate with this distribution.
	Items []string
}

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

type AllowedMethods

type AllowedMethods struct {

	// A complex type that contains the HTTP methods that you want CloudFront to
	// process and forward to your origin.
	//
	// This member is required.
	Items []Method

	// 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).
	//
	// This member is required.
	Quantity *int32

	// 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
}

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.

type BatchTooLarge

type BatchTooLarge struct {
	Message *string
}

Invalidation batch specified is too large.

func (*BatchTooLarge) Error

func (e *BatchTooLarge) Error() string

func (*BatchTooLarge) ErrorCode

func (e *BatchTooLarge) ErrorCode() string

func (*BatchTooLarge) ErrorFault

func (e *BatchTooLarge) ErrorFault() smithy.ErrorFault

func (*BatchTooLarge) ErrorMessage

func (e *BatchTooLarge) ErrorMessage() string

type CNAMEAlreadyExists

type CNAMEAlreadyExists struct {
	Message *string
}

The CNAME specified is already defined for CloudFront.

func (*CNAMEAlreadyExists) Error

func (e *CNAMEAlreadyExists) Error() string

func (*CNAMEAlreadyExists) ErrorCode

func (e *CNAMEAlreadyExists) ErrorCode() string

func (*CNAMEAlreadyExists) ErrorFault

func (e *CNAMEAlreadyExists) ErrorFault() smithy.ErrorFault

func (*CNAMEAlreadyExists) ErrorMessage

func (e *CNAMEAlreadyExists) ErrorMessage() string

type CacheBehavior

type CacheBehavior struct {

	// The pattern (for example, images/*.jpg) that specifies which requests to apply
	// the behavior to. When CloudFront receives a viewer request, the requested path
	// is compared with path patterns in the order in which cache behaviors are listed
	// in the distribution. You can optionally include a slash (/) at the beginning of
	// the path pattern. For example, /images/*.jpg. CloudFront behavior is the same
	// with or without the leading /. The path pattern for the default cache behavior
	// is * and cannot be changed. If the request for an object does not match the path
	// pattern for any cache behaviors, CloudFront applies the behavior in the default
	// cache behavior. For more information, see Path Pattern
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesPathPattern)
	// in the Amazon CloudFront Developer Guide.
	//
	// This member is required.
	PathPattern *string

	// The value of ID for the origin that you want CloudFront to route requests to
	// when they match this cache behavior.
	//
	// This member is required.
	TargetOriginId *string

	// The protocol that viewers can use to access the files in the origin specified by
	// TargetOriginId when a request matches the path pattern in PathPattern. You can
	// specify the following options:
	//
	// * allow-all: Viewers can use HTTP or HTTPS.
	//
	// *
	// redirect-to-https: If a viewer submits an HTTP request, CloudFront returns an
	// HTTP status code of 301 (Moved Permanently) to the viewer along with the HTTPS
	// URL. The viewer then resubmits the request using the new URL.
	//
	// * https-only: If
	// a viewer sends an HTTP request, CloudFront returns an HTTP status code of 403
	// (Forbidden).
	//
	// For more information about requiring the HTTPS protocol, see
	// Requiring HTTPS Between Viewers and CloudFront
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-https-viewers-to-cloudfront.html)
	// in the Amazon CloudFront Developer Guide. The only way to guarantee that viewers
	// retrieve an object that was fetched from the origin using HTTPS is never to use
	// any other protocol to fetch the object. If you have recently changed from HTTP
	// to HTTPS, we recommend that you clear your objects’ cache because cached objects
	// are protocol agnostic. That means that an edge location will return an object
	// from the cache regardless of whether the current request protocol matches the
	// protocol used previously. For more information, see Managing Cache Expiration
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html)
	// in the Amazon CloudFront Developer Guide.
	//
	// This member is required.
	ViewerProtocolPolicy ViewerProtocolPolicy

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

	// The unique identifier of the cache policy that is attached to this cache
	// behavior. For more information, see Creating cache policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy)
	// or Using the managed cache policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html)
	// in the Amazon CloudFront Developer Guide.
	CachePolicyId *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

	// This field is deprecated. We recommend that you use the DefaultTTL field in a
	// cache policy instead of this field. For more information, see Creating cache
	// policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy)
	// or Using the managed cache policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html)
	// in the Amazon CloudFront Developer Guide. 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: This member has been deprecated.
	DefaultTTL *int64

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

	// This field is deprecated. We recommend that you use a cache policy or an origin
	// request policy instead of this field. For more information, see Working with
	// policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/working-with-policies.html)
	// in the Amazon CloudFront Developer Guide. If you want to include values in the
	// cache key, use a cache policy. For more information, see Creating cache policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy)
	// or Using the managed cache policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html)
	// in the Amazon CloudFront Developer Guide. If you want to send values to the
	// origin but not include them in the cache key, use an origin request policy. For
	// more information, see Creating origin request policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy)
	// or Using the managed origin request policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.html)
	// in the Amazon CloudFront Developer Guide. A complex type that specifies how
	// CloudFront handles query strings, cookies, and HTTP headers.
	//
	// Deprecated: This member has been deprecated.
	ForwardedValues *ForwardedValues

	// A complex type that contains zero or more Lambda function associations for a
	// cache behavior.
	LambdaFunctionAssociations *LambdaFunctionAssociations

	// This field is deprecated. We recommend that you use the MaxTTL field in a cache
	// policy instead of this field. For more information, see Creating cache policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy)
	// or Using the managed cache policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html)
	// in the Amazon CloudFront Developer Guide. 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)
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html)
	// in the Amazon CloudFront Developer Guide.
	//
	// Deprecated: This member has been deprecated.
	MaxTTL *int64

	// This field is deprecated. We recommend that you use the MinTTL field in a cache
	// policy instead of this field. For more information, see Creating cache policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy)
	// or Using the managed cache policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html)
	// in the Amazon CloudFront Developer Guide. The minimum 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. 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. You must specify 0 for MinTTL if you
	// configure CloudFront to forward all headers to your origin (under Headers, if
	// you specify 1 for Quantity and * for Name).
	//
	// Deprecated: This member has been deprecated.
	MinTTL *int64

	// The unique identifier of the origin request policy that is attached to this
	// cache behavior. For more information, see Creating origin request policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy)
	// or Using the managed origin request policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.html)
	// in the Amazon CloudFront Developer Guide.
	OriginRequestPolicyId *string

	// The Amazon Resource Name (ARN) of the real-time log configuration that is
	// attached to this cache behavior. For more information, see Real-time logs
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html)
	// in the Amazon CloudFront Developer Guide.
	RealtimeLogConfigArn *string

	// Indicates whether you want to distribute media files in the Microsoft Smooth
	// Streaming format using the origin that is associated with this cache behavior.
	// If so, specify true; if not, specify false. If you specify true for
	// SmoothStreaming, you can still distribute other content using this cache
	// behavior if the content matches the value of PathPattern.
	SmoothStreaming *bool

	// A list of key groups that CloudFront can use to validate signed URLs or signed
	// cookies. When a cache behavior contains trusted key groups, CloudFront requires
	// signed URLs or signed cookies for all requests that match the cache behavior.
	// The URLs or cookies must be signed with a private key whose corresponding public
	// key is in the key group. The signed URL or cookie contains information about
	// which public key CloudFront should use to verify the signature. For more
	// information, see Serving private content
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html)
	// in the Amazon CloudFront Developer Guide.
	TrustedKeyGroups *TrustedKeyGroups

	// We recommend using TrustedKeyGroups instead of TrustedSigners. A list of AWS
	// account IDs whose public keys CloudFront can use to validate signed URLs or
	// signed cookies. When a cache behavior contains trusted signers, CloudFront
	// requires signed URLs or signed cookies for all requests that match the cache
	// behavior. The URLs or cookies must be signed with the private key of a
	// CloudFront key pair in the trusted signer’s AWS account. The signed URL or
	// cookie contains information about which public key CloudFront should use to
	// verify the signature. For more information, see Serving private content
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html)
	// in the Amazon CloudFront Developer Guide.
	TrustedSigners *TrustedSigners
}

A complex type that describes how CloudFront processes requests. You must create at least as many cache behaviors (including the default cache behavior) as you have origins if you want CloudFront to serve objects from all of the origins. Each cache behavior specifies the one origin from which you want CloudFront to get objects. If you have two origins and only the default cache behavior, the default cache behavior will cause CloudFront to get objects from one of the origins, but the other origin is never used. For the current quota (formerly known as limit) on the number of cache behaviors that you can add to a distribution, see Quotas (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) in the Amazon CloudFront Developer Guide. If you don’t want to specify any cache behaviors, include only an empty CacheBehaviors element. Don’t include an empty CacheBehavior element because this is invalid. To delete all cache behaviors in an existing distribution, update the distribution configuration and include only an empty CacheBehaviors element. To add, change, or remove one or more cache behaviors, update the distribution configuration and specify all of the cache behaviors that you want to include in the updated distribution. For more information about cache behaviors, see Cache Behavior Settings (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesCacheBehavior) in the Amazon CloudFront Developer Guide.

type CacheBehaviors

type CacheBehaviors struct {

	// The number of cache behaviors for this distribution.
	//
	// This member is required.
	Quantity *int32

	// Optional: A complex type that contains cache behaviors for this distribution. If
	// Quantity is 0, you can omit Items.
	Items []CacheBehavior
}

A complex type that contains zero or more CacheBehavior elements.

type CachePolicy

type CachePolicy struct {

	// The cache policy configuration.
	//
	// This member is required.
	CachePolicyConfig *CachePolicyConfig

	// The unique identifier for the cache policy.
	//
	// This member is required.
	Id *string

	// The date and time when the cache policy was last modified.
	//
	// This member is required.
	LastModifiedTime *time.Time
}

A cache policy. When it’s attached to a cache behavior, the cache policy determines the following:

* The values that CloudFront includes in the cache key. These values can include HTTP headers, cookies, and URL query strings. CloudFront uses the cache key to find an object in its cache that it can return to the viewer.

* The default, minimum, and maximum time to live (TTL) values that you want objects to stay in the CloudFront cache.

The headers, cookies, and query strings that are included in the cache key are automatically included in requests that CloudFront sends to the origin. CloudFront sends a request when it can’t find a valid object in its cache that matches the request’s cache key. If you want to send values to the origin but not include them in the cache key, use OriginRequestPolicy.

type CachePolicyAlreadyExists

type CachePolicyAlreadyExists struct {
	Message *string
}

A cache policy with this name already exists. You must provide a unique name. To modify an existing cache policy, use UpdateCachePolicy.

func (*CachePolicyAlreadyExists) Error

func (e *CachePolicyAlreadyExists) Error() string

func (*CachePolicyAlreadyExists) ErrorCode

func (e *CachePolicyAlreadyExists) ErrorCode() string

func (*CachePolicyAlreadyExists) ErrorFault

func (e *CachePolicyAlreadyExists) ErrorFault() smithy.ErrorFault

func (*CachePolicyAlreadyExists) ErrorMessage

func (e *CachePolicyAlreadyExists) ErrorMessage() string

type CachePolicyConfig

type CachePolicyConfig struct {

	// The minimum amount of time, in seconds, that you want objects to stay in the
	// CloudFront cache before CloudFront sends another request to the origin to see if
	// the object has been updated. 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.
	//
	// This member is required.
	MinTTL *int64

	// A unique name to identify the cache policy.
	//
	// This member is required.
	Name *string

	// A comment to describe the cache policy.
	Comment *string

	// The default amount of time, in seconds, that you want objects to stay in the
	// CloudFront cache before CloudFront sends another request to the origin to see if
	// the object has been updated. CloudFront uses this value as the object’s time to
	// live (TTL) only when the origin does not send Cache-Control or Expires headers
	// with the object. 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. The default value for this field is
	// 86400 seconds (one day). If the value of MinTTL is more than 86400 seconds, then
	// the default value for this field is the same as the value of MinTTL.
	DefaultTTL *int64

	// The maximum amount of time, in seconds, that objects stay in the CloudFront
	// cache before CloudFront sends another request to the origin to see if the object
	// has been updated. CloudFront uses this value only when the origin sends
	// Cache-Control or Expires headers with the object. 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. The default value for this field is
	// 31536000 seconds (one year). If the value of MinTTL or DefaultTTL is more than
	// 31536000 seconds, then the default value for this field is the same as the value
	// of DefaultTTL.
	MaxTTL *int64

	// The HTTP headers, cookies, and URL query strings to include in the cache key.
	// The values included in the cache key are automatically included in requests that
	// CloudFront sends to the origin.
	ParametersInCacheKeyAndForwardedToOrigin *ParametersInCacheKeyAndForwardedToOrigin
}

A cache policy configuration. This configuration determines the following:

* The values that CloudFront includes in the cache key. These values can include HTTP headers, cookies, and URL query strings. CloudFront uses the cache key to find an object in its cache that it can return to the viewer.

* The default, minimum, and maximum time to live (TTL) values that you want objects to stay in the CloudFront cache.

The headers, cookies, and query strings that are included in the cache key are automatically included in requests that CloudFront sends to the origin. CloudFront sends a request when it can’t find a valid object in its cache that matches the request’s cache key. If you want to send values to the origin but not include them in the cache key, use OriginRequestPolicy.

type CachePolicyCookieBehavior

type CachePolicyCookieBehavior string
const (
	CachePolicyCookieBehaviorNone      CachePolicyCookieBehavior = "none"
	CachePolicyCookieBehaviorWhitelist CachePolicyCookieBehavior = "whitelist"
	CachePolicyCookieBehaviorAllExcept CachePolicyCookieBehavior = "allExcept"
	CachePolicyCookieBehaviorAll       CachePolicyCookieBehavior = "all"
)

Enum values for CachePolicyCookieBehavior

func (CachePolicyCookieBehavior) Values added in v0.29.0

Values returns all known values for CachePolicyCookieBehavior. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type CachePolicyCookiesConfig

type CachePolicyCookiesConfig struct {

	// Determines whether any cookies in viewer requests are included in the cache key
	// and automatically included in requests that CloudFront sends to the origin.
	// Valid values are:
	//
	// * none – Cookies in viewer requests are not included in the
	// cache key and are not automatically included in requests that CloudFront sends
	// to the origin. Even when this field is set to none, any cookies that are listed
	// in an OriginRequestPolicy are included in origin requests.
	//
	// * whitelist – The
	// cookies in viewer requests that are listed in the CookieNames type are included
	// in the cache key and automatically included in requests that CloudFront sends to
	// the origin.
	//
	// * allExcept – All cookies in viewer requests that are not listed in
	// the CookieNames type are included in the cache key and automatically included in
	// requests that CloudFront sends to the origin.
	//
	// * all – All cookies in viewer
	// requests are included in the cache key and are automatically included in
	// requests that CloudFront sends to the origin.
	//
	// This member is required.
	CookieBehavior CachePolicyCookieBehavior

	// Contains a list of cookie names.
	Cookies *CookieNames
}

An object that determines whether any cookies in viewer requests (and if so, which cookies) are included in the cache key and automatically included in requests that CloudFront sends to the origin.

type CachePolicyHeaderBehavior

type CachePolicyHeaderBehavior string
const (
	CachePolicyHeaderBehaviorNone      CachePolicyHeaderBehavior = "none"
	CachePolicyHeaderBehaviorWhitelist CachePolicyHeaderBehavior = "whitelist"
)

Enum values for CachePolicyHeaderBehavior

func (CachePolicyHeaderBehavior) Values added in v0.29.0

Values returns all known values for CachePolicyHeaderBehavior. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type CachePolicyHeadersConfig

type CachePolicyHeadersConfig struct {

	// Determines whether any HTTP headers are included in the cache key and
	// automatically included in requests that CloudFront sends to the origin. Valid
	// values are:
	//
	// * none – HTTP headers are not included in the cache key and are not
	// automatically included in requests that CloudFront sends to the origin. Even
	// when this field is set to none, any headers that are listed in an
	// OriginRequestPolicy are included in origin requests.
	//
	// * whitelist – The HTTP
	// headers that are listed in the Headers type are included in the cache key and
	// are automatically included in requests that CloudFront sends to the origin.
	//
	// This member is required.
	HeaderBehavior CachePolicyHeaderBehavior

	// Contains a list of HTTP header names.
	Headers *Headers
}

An object that determines whether any HTTP headers (and if so, which headers) are included in the cache key and automatically included in requests that CloudFront sends to the origin.

type CachePolicyInUse

type CachePolicyInUse struct {
	Message *string
}

Cannot delete the cache policy because it is attached to one or more cache behaviors.

func (*CachePolicyInUse) Error

func (e *CachePolicyInUse) Error() string

func (*CachePolicyInUse) ErrorCode

func (e *CachePolicyInUse) ErrorCode() string

func (*CachePolicyInUse) ErrorFault

func (e *CachePolicyInUse) ErrorFault() smithy.ErrorFault

func (*CachePolicyInUse) ErrorMessage

func (e *CachePolicyInUse) ErrorMessage() string

type CachePolicyList

type CachePolicyList struct {

	// The maximum number of cache policies requested.
	//
	// This member is required.
	MaxItems *int32

	// The total number of cache policies returned in the response.
	//
	// This member is required.
	Quantity *int32

	// Contains the cache policies in the list.
	Items []CachePolicySummary

	// If there are more items in the list than are in this response, this element is
	// present. It contains the value that you should use in the Marker field of a
	// subsequent request to continue listing cache policies where you left off.
	NextMarker *string
}

A list of cache policies.

type CachePolicyQueryStringBehavior

type CachePolicyQueryStringBehavior string
const (
	CachePolicyQueryStringBehaviorNone      CachePolicyQueryStringBehavior = "none"
	CachePolicyQueryStringBehaviorWhitelist CachePolicyQueryStringBehavior = "whitelist"
	CachePolicyQueryStringBehaviorAllExcept CachePolicyQueryStringBehavior = "allExcept"
	CachePolicyQueryStringBehaviorAll       CachePolicyQueryStringBehavior = "all"
)

Enum values for CachePolicyQueryStringBehavior

func (CachePolicyQueryStringBehavior) Values added in v0.29.0

Values returns all known values for CachePolicyQueryStringBehavior. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type CachePolicyQueryStringsConfig

type CachePolicyQueryStringsConfig struct {

	// Determines whether any URL query strings in viewer requests are included in the
	// cache key and automatically included in requests that CloudFront sends to the
	// origin. Valid values are:
	//
	// * none – Query strings in viewer requests are not
	// included in the cache key and are not automatically included in requests that
	// CloudFront sends to the origin. Even when this field is set to none, any query
	// strings that are listed in an OriginRequestPolicy are included in origin
	// requests.
	//
	// * whitelist – The query strings in viewer requests that are listed in
	// the QueryStringNames type are included in the cache key and automatically
	// included in requests that CloudFront sends to the origin.
	//
	// * allExcept – All
	// query strings in viewer requests that are not listed in the QueryStringNames
	// type are included in the cache key and automatically included in requests that
	// CloudFront sends to the origin.
	//
	// * all – All query strings in viewer requests
	// are included in the cache key and are automatically included in requests that
	// CloudFront sends to the origin.
	//
	// This member is required.
	QueryStringBehavior CachePolicyQueryStringBehavior

	// Contains the specific query strings in viewer requests that either are or are
	// not included in the cache key and automatically included in requests that
	// CloudFront sends to the origin. The behavior depends on whether the
	// QueryStringBehavior field in the CachePolicyQueryStringsConfig type is set to
	// whitelist (the listed query strings are included) or allExcept (the listed query
	// strings are not included, but all other query strings are).
	QueryStrings *QueryStringNames
}

An object that determines whether any URL query strings in viewer requests (and if so, which query strings) are included in the cache key and automatically included in requests that CloudFront sends to the origin.

type CachePolicySummary

type CachePolicySummary struct {

	// The cache policy.
	//
	// This member is required.
	CachePolicy *CachePolicy

	// The type of cache policy, either managed (created by AWS) or custom (created in
	// this AWS account).
	//
	// This member is required.
	Type CachePolicyType
}

Contains a cache policy.

type CachePolicyType

type CachePolicyType string
const (
	CachePolicyTypeManaged CachePolicyType = "managed"
	CachePolicyTypeCustom  CachePolicyType = "custom"
)

Enum values for CachePolicyType

func (CachePolicyType) Values added in v0.29.0

func (CachePolicyType) Values() []CachePolicyType

Values returns all known values for CachePolicyType. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type CachedMethods

type CachedMethods struct {

	// A complex type that contains the HTTP methods that you want CloudFront to cache
	// responses to.
	//
	// This member is required.
	Items []Method

	// The number of HTTP methods for which you want CloudFront to cache responses.
	// Valid values are 2 (for caching responses to GET and HEAD requests) and 3 (for
	// caching responses to GET, HEAD, and OPTIONS requests).
	//
	// This member is required.
	Quantity *int32
}

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.

type CannotChangeImmutablePublicKeyFields

type CannotChangeImmutablePublicKeyFields struct {
	Message *string
}

You can't change the value of a public key.

func (*CannotChangeImmutablePublicKeyFields) Error

func (*CannotChangeImmutablePublicKeyFields) ErrorCode

func (*CannotChangeImmutablePublicKeyFields) ErrorFault

func (*CannotChangeImmutablePublicKeyFields) ErrorMessage

func (e *CannotChangeImmutablePublicKeyFields) ErrorMessage() string

type CertificateSource

type CertificateSource string
const (
	CertificateSourceCloudfront CertificateSource = "cloudfront"
	CertificateSourceIam        CertificateSource = "iam"
	CertificateSourceAcm        CertificateSource = "acm"
)

Enum values for CertificateSource

func (CertificateSource) Values added in v0.29.0

Values returns all known values for CertificateSource. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type CloudFrontOriginAccessIdentity

type CloudFrontOriginAccessIdentity struct {

	// The ID for the origin access identity, for example, E74FTE3AJFJ256A.
	//
	// This member is required.
	Id *string

	// The Amazon S3 canonical user ID for the origin access identity, used when giving
	// the origin access identity read permission to an object in Amazon S3.
	//
	// This member is required.
	S3CanonicalUserId *string

	// The current configuration information for the identity.
	CloudFrontOriginAccessIdentityConfig *CloudFrontOriginAccessIdentityConfig
}

CloudFront origin access identity.

type CloudFrontOriginAccessIdentityAlreadyExists

type CloudFrontOriginAccessIdentityAlreadyExists struct {
	Message *string
}

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.

func (*CloudFrontOriginAccessIdentityAlreadyExists) Error

func (*CloudFrontOriginAccessIdentityAlreadyExists) ErrorCode

func (*CloudFrontOriginAccessIdentityAlreadyExists) ErrorFault

func (*CloudFrontOriginAccessIdentityAlreadyExists) ErrorMessage

type CloudFrontOriginAccessIdentityConfig

type CloudFrontOriginAccessIdentityConfig struct {

	// A unique value (for example, a date-time stamp) that ensures that the request
	// can't be replayed. If the value of CallerReference is new (regardless of the
	// content of the CloudFrontOriginAccessIdentityConfig object), a new origin access
	// identity is created. If the CallerReference is a value already sent in a
	// previous identity request, and the content of the
	// CloudFrontOriginAccessIdentityConfig is identical to the original request
	// (ignoring white space), the response includes the same information returned to
	// the original request. 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.
	//
	// This member is required.
	CallerReference *string

	// Any comments you want to include about the origin access identity.
	//
	// This member is required.
	Comment *string
}

Origin access identity configuration. Send a GET request to the /CloudFront API version/CloudFront/identity ID/config resource.

type CloudFrontOriginAccessIdentityInUse

type CloudFrontOriginAccessIdentityInUse struct {
	Message *string
}

The Origin Access Identity specified is already in use.

func (*CloudFrontOriginAccessIdentityInUse) Error

func (*CloudFrontOriginAccessIdentityInUse) ErrorCode

func (*CloudFrontOriginAccessIdentityInUse) ErrorFault

func (*CloudFrontOriginAccessIdentityInUse) ErrorMessage

func (e *CloudFrontOriginAccessIdentityInUse) ErrorMessage() string

type CloudFrontOriginAccessIdentityList

type CloudFrontOriginAccessIdentityList struct {

	// A flag that indicates whether more origin access identities remain to be listed.
	// If your results were truncated, you can make a follow-up pagination request
	// using the Marker request parameter to retrieve more items in the list.
	//
	// This member is required.
	IsTruncated *bool

	// Use this when paginating results to indicate where to begin in your list of
	// origin access identities. The results include identities in the list that occur
	// after the marker. To get the next page of results, set the Marker to the value
	// of the NextMarker from the current page's response (which is also the ID of the
	// last identity on that page).
	//
	// This member is required.
	Marker *string

	// The maximum number of origin access identities you want in the response body.
	//
	// This member is required.
	MaxItems *int32

	// The number of CloudFront origin access identities that were created by the
	// current AWS account.
	//
	// This member is required.
	Quantity *int32

	// A complex type that contains one CloudFrontOriginAccessIdentitySummary element
	// for each origin access identity that was created by the current AWS account.
	Items []CloudFrontOriginAccessIdentitySummary

	// If IsTruncated is true, this element is present and contains the value you can
	// use for the Marker request parameter to continue listing your origin access
	// identities where they left off.
	NextMarker *string
}

Lists the origin access identities for CloudFront.Send a GET request to the /CloudFront API version/origin-access-identity/cloudfront resource. The response includes a CloudFrontOriginAccessIdentityList element with zero or more CloudFrontOriginAccessIdentitySummary child elements. By default, your entire list of origin access identities is returned in one single page. If the list is long, you can paginate it using the MaxItems and Marker parameters.

type CloudFrontOriginAccessIdentitySummary

type CloudFrontOriginAccessIdentitySummary struct {

	// The comment for this origin access identity, as originally specified when
	// created.
	//
	// This member is required.
	Comment *string

	// The ID for the origin access identity. For example: E74FTE3AJFJ256A.
	//
	// This member is required.
	Id *string

	// The Amazon S3 canonical user ID for the origin access identity, which you use
	// when giving the origin access identity read permission to an object in Amazon
	// S3.
	//
	// This member is required.
	S3CanonicalUserId *string
}

Summary of the information about a CloudFront origin access identity.

type ContentTypeProfile

type ContentTypeProfile struct {

	// The content type for a field-level encryption content type-profile mapping.
	//
	// This member is required.
	ContentType *string

	// The format for a field-level encryption content type-profile mapping.
	//
	// This member is required.
	Format Format

	// The profile ID for a field-level encryption content type-profile mapping.
	ProfileId *string
}

A field-level encryption content type profile.

type ContentTypeProfileConfig

type ContentTypeProfileConfig struct {

	// The setting in a field-level encryption content type-profile mapping that
	// specifies what to do when an unknown content type is provided for the profile.
	// If true, content is forwarded without being encrypted when the content type is
	// unknown. If false (the default), an error is returned when the content type is
	// unknown.
	//
	// This member is required.
	ForwardWhenContentTypeIsUnknown *bool

	// The configuration for a field-level encryption content type-profile.
	ContentTypeProfiles *ContentTypeProfiles
}

The configuration for a field-level encryption content type-profile mapping.

type ContentTypeProfiles

type ContentTypeProfiles struct {

	// The number of field-level encryption content type-profile mappings.
	//
	// This member is required.
	Quantity *int32

	// Items in a field-level encryption content type-profile mapping.
	Items []ContentTypeProfile
}

Field-level encryption content type-profile.

type CookieNames

type CookieNames struct {

	// The number of cookie names in the Items list.
	//
	// This member is required.
	Quantity *int32

	// A list of cookie names.
	Items []string
}

Contains a list of cookie names.

type CookiePreference

type CookiePreference struct {

	// 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 cookies in the
	// cache key, use a cache policy. For more information, see Creating cache policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy)
	// in the Amazon CloudFront Developer Guide. If you want to send cookies to the
	// origin but not include them in the cache key, use origin request policy. For
	// more information, see Creating origin request policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy)
	// in the Amazon CloudFront Developer Guide. Specifies which cookies to forward to
	// the origin for this cache behavior: all, none, or the list of cookies specified
	// in the WhitelistedNames complex type. Amazon S3 doesn't process cookies. When
	// the cache behavior is forwarding requests to an Amazon S3 origin, specify none
	// for the Forward element.
	//
	// This member is required.
	Forward ItemSelection

	// 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 cookies in the
	// cache key, use a cache policy. For more information, see Creating cache policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy)
	// in the Amazon CloudFront Developer Guide. If you want to send cookies to the
	// origin but not include them in the cache key, use an origin request policy. For
	// more information, see Creating origin request policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy)
	// in the Amazon CloudFront Developer Guide. Required if you specify whitelist for
	// the value of Forward. A complex type that specifies how many different cookies
	// you want CloudFront to forward to the origin for this cache behavior and, if you
	// want to forward selected cookies, the names of those cookies. If you specify all
	// or none for the value of Forward, omit WhitelistedNames. If you change the value
	// of Forward from whitelist to all or none and you don't delete the
	// WhitelistedNames element and its child elements, CloudFront deletes them
	// automatically. For the current limit on the number of cookie names that you can
	// whitelist for each cache behavior, see  CloudFront Limits
	// (https://docs.aws.amazon.com/general/latest/gr/xrefaws_service_limits.html#limits_cloudfront)
	// in the AWS General Reference.
	WhitelistedNames *CookieNames
}

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 cookies in the cache key, use CookiesConfig in a cache policy. See CachePolicy. If you want to send cookies to the origin but not include them in the cache key, use CookiesConfig in an origin request policy. See OriginRequestPolicy. A complex type that specifies whether you want CloudFront to forward cookies to the origin and, if so, which ones. For more information about forwarding cookies to the origin, see Caching Content Based on Cookies (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Cookies.html) in the Amazon CloudFront Developer Guide.

type CustomErrorResponse

type CustomErrorResponse struct {

	// The HTTP status code for which you want to specify a custom error page and/or a
	// caching duration.
	//
	// This member is required.
	ErrorCode *int32

	// The minimum amount of time, in seconds, that you want CloudFront to cache the
	// HTTP status code specified in ErrorCode. When this time period has elapsed,
	// CloudFront queries your origin to see whether the problem that caused the error
	// has been resolved and the requested object is now available. For more
	// information, see Customizing Error Responses
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html)
	// in the Amazon CloudFront Developer Guide.
	ErrorCachingMinTTL *int64

	// The HTTP status code that you want CloudFront to return to the viewer along with
	// the custom error page. There are a variety of reasons that you might want
	// CloudFront to return a status code different from the status code that your
	// origin returned to CloudFront, for example:
	//
	// * Some Internet devices (some
	// firewalls and corporate proxies, for example) intercept HTTP 4xx and 5xx and
	// prevent the response from being returned to the viewer. If you substitute 200,
	// the response typically won't be intercepted.
	//
	// * If you don't care about
	// distinguishing among different client errors or server errors, you can specify
	// 400 or 500 as the ResponseCode for all 4xx or 5xx errors.
	//
	// * You might want to
	// return a 200 status code (OK) and static website so your customers don't know
	// that your website is down.
	//
	// If you specify a value for ResponseCode, you must
	// also specify a value for ResponsePagePath.
	ResponseCode *string

	// The path to the custom error page that you want CloudFront to return to a viewer
	// when your origin returns the HTTP status code specified by ErrorCode, for
	// example, /4xx-errors/403-forbidden.html. If you want to store your objects and
	// your custom error pages in different locations, your distribution must include a
	// cache behavior for which the following is true:
	//
	// * The value of PathPattern
	// matches the path to your custom error messages. For example, suppose you saved
	// custom error pages for 4xx errors in an Amazon S3 bucket in a directory named
	// /4xx-errors. Your distribution must include a cache behavior for which the path
	// pattern routes requests for your custom error pages to that location, for
	// example, /4xx-errors/*.
	//
	// * The value of TargetOriginId specifies the value of
	// the ID element for the origin that contains your custom error pages.
	//
	// If you
	// specify a value for ResponsePagePath, you must also specify a value for
	// ResponseCode. We recommend that you store custom error pages in an Amazon S3
	// bucket. If you store custom error pages on an HTTP server and the server starts
	// to return 5xx errors, CloudFront can't get the files that you want to return to
	// viewers because the origin server is unavailable.
	ResponsePagePath *string
}

A complex type that controls:

* Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range with custom error messages before returning the response to the viewer.

* How long CloudFront caches HTTP status codes in the 4xx and 5xx range.

For more information about custom error pages, see Customizing Error Responses (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html) in the Amazon CloudFront Developer Guide.

type CustomErrorResponses

type CustomErrorResponses struct {

	// The number of HTTP status codes for which you want to specify a custom error
	// page and/or a caching duration. If Quantity is 0, you can omit Items.
	//
	// This member is required.
	Quantity *int32

	// A complex type that contains a CustomErrorResponse element for each HTTP status
	// code for which you want to specify a custom error page and/or a caching
	// duration.
	Items []CustomErrorResponse
}

A complex type that controls:

* Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range with custom error messages before returning the response to the viewer.

* How long CloudFront caches HTTP status codes in the 4xx and 5xx range.

For more information about custom error pages, see Customizing Error Responses (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html) in the Amazon CloudFront Developer Guide.

type CustomHeaders

type CustomHeaders struct {

	// The number of custom headers, if any, for this distribution.
	//
	// This member is required.
	Quantity *int32

	// Optional: A list that contains one OriginCustomHeader element for each custom
	// header that you want CloudFront to forward to the origin. If Quantity is 0, omit
	// Items.
	Items []OriginCustomHeader
}

A complex type that contains the list of Custom Headers for each origin.

type CustomOriginConfig

type CustomOriginConfig struct {

	// The HTTP port that CloudFront uses to connect to the origin. Specify the HTTP
	// port that the origin listens on.
	//
	// This member is required.
	HTTPPort *int32

	// The HTTPS port that CloudFront uses to connect to the origin. Specify the HTTPS
	// port that the origin listens on.
	//
	// This member is required.
	HTTPSPort *int32

	// Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the
	// origin. Valid values are:
	//
	// * http-only – CloudFront always uses HTTP to connect
	// to the origin.
	//
	// * match-viewer – CloudFront connects to the origin using the
	// same protocol that the viewer used to connect to CloudFront.
	//
	// * https-only –
	// CloudFront always uses HTTPS to connect to the origin.
	//
	// This member is required.
	OriginProtocolPolicy OriginProtocolPolicy

	// Specifies how long, in seconds, CloudFront persists its connection to the
	// origin. The minimum timeout is 1 second, the maximum is 60 seconds, and the
	// default (if you don’t specify otherwise) is 5 seconds. For more information, see
	// Origin Keep-alive Timeout
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginKeepaliveTimeout)
	// in the Amazon CloudFront Developer Guide.
	OriginKeepaliveTimeout *int32

	// Specifies how long, in seconds, CloudFront waits for a response from the origin.
	// This is also known as the origin response timeout. The minimum timeout is 1
	// second, the maximum is 60 seconds, and the default (if you don’t specify
	// otherwise) is 30 seconds. For more information, see Origin Response Timeout
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginResponseTimeout)
	// in the Amazon CloudFront Developer Guide.
	OriginReadTimeout *int32

	// Specifies the minimum SSL/TLS protocol that CloudFront uses when connecting to
	// your origin over HTTPS. Valid values include SSLv3, TLSv1, TLSv1.1, and TLSv1.2.
	// For more information, see Minimum Origin SSL Protocol
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginSSLProtocols)
	// in the Amazon CloudFront Developer Guide.
	OriginSslProtocols *OriginSslProtocols
}

A custom origin. A custom origin is any origin that is not an Amazon S3 bucket, with one exception. An Amazon S3 bucket that is configured with static website hosting (https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html) is a custom origin.

type DefaultCacheBehavior

type DefaultCacheBehavior struct {

	// The value of ID for the origin that you want CloudFront to route requests to
	// when they use the default cache behavior.
	//
	// This member is required.
	TargetOriginId *string

	// The protocol that viewers can use to access the files in the origin specified by
	// TargetOriginId when a request matches the path pattern in PathPattern. You can
	// specify the following options:
	//
	// * allow-all: Viewers can use HTTP or HTTPS.
	//
	// *
	// redirect-to-https: If a viewer submits an HTTP request, CloudFront returns an
	// HTTP status code of 301 (Moved Permanently) to the viewer along with the HTTPS
	// URL. The viewer then resubmits the request using the new URL.
	//
	// * https-only: If
	// a viewer sends an HTTP request, CloudFront returns an HTTP status code of 403
	// (Forbidden).
	//
	// For more information about requiring the HTTPS protocol, see
	// Requiring HTTPS Between Viewers and CloudFront
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-https-viewers-to-cloudfront.html)
	// in the Amazon CloudFront Developer Guide. The only way to guarantee that viewers
	// retrieve an object that was fetched from the origin using HTTPS is never to use
	// any other protocol to fetch the object. If you have recently changed from HTTP
	// to HTTPS, we recommend that you clear your objects’ cache because cached objects
	// are protocol agnostic. That means that an edge location will return an object
	// from the cache regardless of whether the current request protocol matches the
	// protocol used previously. For more information, see Managing Cache Expiration
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html)
	// in the Amazon CloudFront Developer Guide.
	//
	// This member is required.
	ViewerProtocolPolicy ViewerProtocolPolicy

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

	// The unique identifier of the cache policy that is attached to the default cache
	// behavior. For more information, see Creating cache policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy)
	// or Using the managed cache policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html)
	// in the Amazon CloudFront Developer Guide.
	CachePolicyId *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

	// This field is deprecated. We recommend that you use the DefaultTTL field in a
	// cache policy instead of this field. For more information, see Creating cache
	// policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy)
	// or Using the managed cache policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html)
	// in the Amazon CloudFront Developer Guide. 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: This member has been deprecated.
	DefaultTTL *int64

	// The value of ID for the field-level encryption configuration that you want
	// CloudFront to use for encrypting specific fields of data for the default cache
	// behavior.
	FieldLevelEncryptionId *string

	// This field is deprecated. We recommend that you use a cache policy or an origin
	// request policy instead of this field. For more information, see Working with
	// policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/working-with-policies.html)
	// in the Amazon CloudFront Developer Guide. If you want to include values in the
	// cache key, use a cache policy. For more information, see Creating cache policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy)
	// or Using the managed cache policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html)
	// in the Amazon CloudFront Developer Guide. If you want to send values to the
	// origin but not include them in the cache key, use an origin request policy. For
	// more information, see Creating origin request policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy)
	// or Using the managed origin request policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.html)
	// in the Amazon CloudFront Developer Guide. A complex type that specifies how
	// CloudFront handles query strings, cookies, and HTTP headers.
	//
	// Deprecated: This member has been deprecated.
	ForwardedValues *ForwardedValues

	// A complex type that contains zero or more Lambda function associations for a
	// cache behavior.
	LambdaFunctionAssociations *LambdaFunctionAssociations

	// This field is deprecated. We recommend that you use the MaxTTL field in a cache
	// policy instead of this field. For more information, see Creating cache policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy)
	// or Using the managed cache policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html)
	// in the Amazon CloudFront Developer Guide. 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)
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html)
	// in the Amazon CloudFront Developer Guide.
	//
	// Deprecated: This member has been deprecated.
	MaxTTL *int64

	// This field is deprecated. We recommend that you use the MinTTL field in a cache
	// policy instead of this field. For more information, see Creating cache policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy)
	// or Using the managed cache policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html)
	// in the Amazon CloudFront Developer Guide. The minimum 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. 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. You must specify 0 for MinTTL if you
	// configure CloudFront to forward all headers to your origin (under Headers, if
	// you specify 1 for Quantity and * for Name).
	//
	// Deprecated: This member has been deprecated.
	MinTTL *int64

	// The unique identifier of the origin request policy that is attached to the
	// default cache behavior. For more information, see Creating origin request
	// policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy)
	// or Using the managed origin request policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.html)
	// in the Amazon CloudFront Developer Guide.
	OriginRequestPolicyId *string

	// The Amazon Resource Name (ARN) of the real-time log configuration that is
	// attached to this cache behavior. For more information, see Real-time logs
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html)
	// in the Amazon CloudFront Developer Guide.
	RealtimeLogConfigArn *string

	// Indicates whether you want to distribute media files in the Microsoft Smooth
	// Streaming format using the origin that is associated with this cache behavior.
	// If so, specify true; if not, specify false. If you specify true for
	// SmoothStreaming, you can still distribute other content using this cache
	// behavior if the content matches the value of PathPattern.
	SmoothStreaming *bool

	// A list of key groups that CloudFront can use to validate signed URLs or signed
	// cookies. When a cache behavior contains trusted key groups, CloudFront requires
	// signed URLs or signed cookies for all requests that match the cache behavior.
	// The URLs or cookies must be signed with a private key whose corresponding public
	// key is in the key group. The signed URL or cookie contains information about
	// which public key CloudFront should use to verify the signature. For more
	// information, see Serving private content
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html)
	// in the Amazon CloudFront Developer Guide.
	TrustedKeyGroups *TrustedKeyGroups

	// We recommend using TrustedKeyGroups instead of TrustedSigners. A list of AWS
	// account IDs whose public keys CloudFront can use to validate signed URLs or
	// signed cookies. When a cache behavior contains trusted signers, CloudFront
	// requires signed URLs or signed cookies for all requests that match the cache
	// behavior. The URLs or cookies must be signed with the private key of a
	// CloudFront key pair in a trusted signer’s AWS account. The signed URL or cookie
	// contains information about which public key CloudFront should use to verify the
	// signature. For more information, see Serving private content
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html)
	// in the Amazon CloudFront Developer Guide.
	TrustedSigners *TrustedSigners
}

A complex type that describes the default cache behavior if you don’t specify a CacheBehavior element or if request URLs don’t match any of the values of PathPattern in CacheBehavior elements. You must create exactly one default cache behavior.

type Distribution

type Distribution struct {

	// The ARN (Amazon Resource Name) for the distribution. For example:
	// arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where
	// 123456789012 is your AWS account ID.
	//
	// This member is required.
	ARN *string

	// The current configuration information for the distribution. Send a GET request
	// to the /CloudFront API version/distribution ID/config resource.
	//
	// This member is required.
	DistributionConfig *DistributionConfig

	// The domain name corresponding to the distribution, for example,
	// d111111abcdef8.cloudfront.net.
	//
	// This member is required.
	DomainName *string

	// The identifier for the distribution. For example: EDFDVBD632BHDS5.
	//
	// This member is required.
	Id *string

	// The number of invalidation batches currently in progress.
	//
	// This member is required.
	InProgressInvalidationBatches *int32

	// The date and time the distribution was last modified.
	//
	// This member is required.
	LastModifiedTime *time.Time

	// This response element indicates the current status of the distribution. When the
	// status is Deployed, the distribution's information is fully propagated to all
	// CloudFront edge locations.
	//
	// This member is required.
	Status *string

	// CloudFront automatically adds this field to the response if you’ve configured a
	// cache behavior in this distribution to serve private content using key groups.
	// This field contains a list of key groups and the public keys in each key group
	// that CloudFront can use to verify the signatures of signed URLs or signed
	// cookies.
	ActiveTrustedKeyGroups *ActiveTrustedKeyGroups

	// We recommend using TrustedKeyGroups instead of TrustedSigners. CloudFront
	// automatically adds this field to the response if you’ve configured a cache
	// behavior in this distribution to serve private content using trusted signers.
	// This field contains a list of AWS account IDs and the active CloudFront key
	// pairs in each account that CloudFront can use to verify the signatures of signed
	// URLs or signed cookies.
	ActiveTrustedSigners *ActiveTrustedSigners

	// 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. 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.
	AliasICPRecordals []AliasICPRecordal
}

A distribution tells CloudFront where you want content to be delivered from, and the details about how to track and manage content delivery.

type DistributionAlreadyExists

type DistributionAlreadyExists struct {
	Message *string
}

The caller reference you attempted to create the distribution with is associated with another distribution.

func (*DistributionAlreadyExists) Error

func (e *DistributionAlreadyExists) Error() string

func (*DistributionAlreadyExists) ErrorCode

func (e *DistributionAlreadyExists) ErrorCode() string

func (*DistributionAlreadyExists) ErrorFault

func (*DistributionAlreadyExists) ErrorMessage

func (e *DistributionAlreadyExists) ErrorMessage() string

type DistributionConfig

type DistributionConfig struct {

	// A unique value (for example, a date-time stamp) that ensures that the request
	// can't be replayed. If the value of CallerReference is new (regardless of the
	// content of the DistributionConfig object), CloudFront creates a new
	// distribution. If CallerReference is a value that you already sent in a previous
	// request to create a distribution, CloudFront returns a DistributionAlreadyExists
	// error.
	//
	// This member is required.
	CallerReference *string

	// Any comments you want to include about the distribution. If you don't want to
	// specify a comment, include an empty Comment element. To delete an existing
	// comment, update the distribution configuration and include an empty Comment
	// element. To add or change a comment, update the distribution configuration and
	// specify the new comment.
	//
	// This member is required.
	Comment *string

	// A complex type that describes the default cache behavior if you don't specify a
	// CacheBehavior element or if files don't match any of the values of PathPattern
	// in CacheBehavior elements. You must create exactly one default cache behavior.
	//
	// This member is required.
	DefaultCacheBehavior *DefaultCacheBehavior

	// From this field, you can enable or disable the selected distribution.
	//
	// This member is required.
	Enabled *bool

	// A complex type that contains information about origins for this distribution.
	//
	// This member is required.
	Origins *Origins

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

	// A complex type that contains zero or more CacheBehavior elements.
	CacheBehaviors *CacheBehaviors

	// A complex type that controls the following:
	//
	// * Whether CloudFront replaces HTTP
	// status codes in the 4xx and 5xx range with custom error messages before
	// returning the response to the viewer.
	//
	// * How long CloudFront caches HTTP status
	// codes in the 4xx and 5xx range.
	//
	// For more information about custom error pages,
	// see Customizing Error Responses
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html)
	// in the Amazon CloudFront Developer Guide.
	CustomErrorResponses *CustomErrorResponses

	// The object that you want CloudFront to request from your origin (for example,
	// index.html) when a viewer requests the root URL for your distribution
	// (http://www.example.com) instead of an object in your distribution
	// (http://www.example.com/product-description.html). Specifying a default root
	// object avoids exposing the contents of your distribution. Specify only the
	// object name, for example, index.html. Don't add a / before the object name. If
	// you don't want to specify a default root object when you create a distribution,
	// include an empty DefaultRootObject element. To delete the default root object
	// from an existing distribution, update the distribution configuration and include
	// an empty DefaultRootObject element. To replace the default root object, update
	// the distribution configuration and specify the new object. For more information
	// about the default root object, see Creating a Default Root Object
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DefaultRootObject.html)
	// in the Amazon CloudFront Developer Guide.
	DefaultRootObject *string

	// (Optional) Specify the maximum HTTP version that you want viewers to use to
	// communicate with CloudFront. The default value for new web distributions is
	// http2. Viewers that don't support HTTP/2 automatically use an earlier HTTP
	// version. For viewers and CloudFront to use HTTP/2, viewers must support TLS 1.2
	// or later, and must support Server Name Identification (SNI). In general,
	// configuring CloudFront to communicate with viewers using HTTP/2 reduces latency.
	// You can improve performance by optimizing for HTTP/2. For more information, do
	// an Internet search for "http/2 optimization."
	HttpVersion HttpVersion

	// If you want CloudFront to respond to IPv6 DNS requests with an IPv6 address for
	// your distribution, specify true. If you specify false, CloudFront responds to
	// IPv6 DNS requests with the DNS response code NOERROR and with no IP addresses.
	// This allows viewers to submit a second request, for an IPv4 address for your
	// distribution. In general, you should enable IPv6 if you have users on IPv6
	// networks who want to access your content. However, if you're using signed URLs
	// or signed cookies to restrict access to your content, and if you're using a
	// custom policy that includes the IpAddress parameter to restrict the IP addresses
	// that can access your content, don't enable IPv6. If you want to restrict access
	// to some content by IP address and not restrict access to other content (or
	// restrict access but not by IP address), you can create two distributions. For
	// more information, see Creating a Signed URL Using a Custom Policy
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-creating-signed-url-custom-policy.html)
	// in the Amazon CloudFront Developer Guide. If you're using an Amazon Route 53
	// alias resource record set to route traffic to your CloudFront distribution, you
	// need to create a second alias resource record set when both of the following are
	// true:
	//
	// * You enable IPv6 for the distribution
	//
	// * You're using alternate domain
	// names in the URLs for your objects
	//
	// For more information, see Routing Traffic to
	// an Amazon CloudFront Web Distribution by Using Your Domain Name
	// (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-to-cloudfront-distribution.html)
	// in the Amazon Route 53 Developer Guide. If you created a CNAME resource record
	// set, either with Amazon Route 53 or with another DNS service, you don't need to
	// make any changes. A CNAME record will route traffic to your distribution
	// regardless of the IP address format of the viewer request.
	IsIPV6Enabled *bool

	// A complex type that controls whether access logs are written for the
	// distribution. For more information about logging, see Access Logs
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/AccessLogs.html)
	// in the Amazon CloudFront Developer Guide.
	Logging *LoggingConfig

	// A complex type that contains information about origin groups for this
	// distribution.
	OriginGroups *OriginGroups

	// The price class that corresponds with the maximum price that you want to pay for
	// CloudFront service. If you specify PriceClass_All, CloudFront responds to
	// requests for your objects from all CloudFront edge locations. If you specify a
	// price class other than PriceClass_All, CloudFront serves your objects from the
	// CloudFront edge location that has the lowest latency among the edge locations in
	// your price class. Viewers who are in or near regions that are excluded from your
	// specified price class may encounter slower performance. For more information
	// about price classes, see Choosing the Price Class for a CloudFront Distribution
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PriceClass.html)
	// in the Amazon CloudFront Developer Guide. For information about CloudFront
	// pricing, including how price classes (such as Price Class 100) map to CloudFront
	// regions, see Amazon CloudFront Pricing
	// (http://aws.amazon.com/cloudfront/pricing/).
	PriceClass PriceClass

	// A complex type that identifies ways in which you want to restrict distribution
	// of your content.
	Restrictions *Restrictions

	// A complex type that determines the distribution’s SSL/TLS configuration for
	// communicating with viewers.
	ViewerCertificate *ViewerCertificate

	// A unique identifier that specifies the AWS WAF web ACL, if any, to associate
	// with this distribution. 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. AWS WAF is a web application firewall that
	// lets you monitor the HTTP and HTTPS requests that are forwarded to CloudFront,
	// and lets you control access to your content. Based on conditions that you
	// specify, such as the IP addresses that requests originate from or the values of
	// query strings, CloudFront responds to requests either with the requested content
	// or with an HTTP 403 status code (Forbidden). You can also configure CloudFront
	// to return a custom error page when a request is blocked. For more information
	// about AWS WAF, see the AWS WAF Developer Guide
	// (https://docs.aws.amazon.com/waf/latest/developerguide/what-is-aws-waf.html).
	WebACLId *string
}

A distribution configuration.

type DistributionConfigWithTags

type DistributionConfigWithTags struct {

	// A distribution configuration.
	//
	// This member is required.
	DistributionConfig *DistributionConfig

	// A complex type that contains zero or more Tag elements.
	//
	// This member is required.
	Tags *Tags
}

A distribution Configuration and a list of tags to be associated with the distribution.

type DistributionIdList

type DistributionIdList struct {

	// A flag that indicates whether more distribution IDs remain to be listed. If your
	// results were truncated, you can make a subsequent request using the Marker
	// request field to retrieve more distribution IDs in the list.
	//
	// This member is required.
	IsTruncated *bool

	// The value provided in the Marker request field.
	//
	// This member is required.
	Marker *string

	// The maximum number of distribution IDs requested.
	//
	// This member is required.
	MaxItems *int32

	// The total number of distribution IDs returned in the response.
	//
	// This member is required.
	Quantity *int32

	// Contains the distribution IDs in the list.
	Items []string

	// Contains the value that you should use in the Marker field of a subsequent
	// request to continue listing distribution IDs where you left off.
	NextMarker *string
}

A list of distribution IDs.

type DistributionList

type DistributionList struct {

	// A flag that indicates whether more distributions remain to be listed. If your
	// results were truncated, you can make a follow-up pagination request using the
	// Marker request parameter to retrieve more distributions in the list.
	//
	// This member is required.
	IsTruncated *bool

	// The value you provided for the Marker request parameter.
	//
	// This member is required.
	Marker *string

	// The value you provided for the MaxItems request parameter.
	//
	// This member is required.
	MaxItems *int32

	// The number of distributions that were created by the current AWS account.
	//
	// This member is required.
	Quantity *int32

	// A complex type that contains one DistributionSummary element for each
	// distribution that was created by the current AWS account.
	Items []DistributionSummary

	// If IsTruncated is true, this element is present and contains the value you can
	// use for the Marker request parameter to continue listing your distributions
	// where they left off.
	NextMarker *string
}

A distribution list.

type DistributionNotDisabled

type DistributionNotDisabled struct {
	Message *string
}

The specified CloudFront distribution is not disabled. You must disable the distribution before you can delete it.

func (*DistributionNotDisabled) Error

func (e *DistributionNotDisabled) Error() string

func (*DistributionNotDisabled) ErrorCode

func (e *DistributionNotDisabled) ErrorCode() string

func (*DistributionNotDisabled) ErrorFault

func (e *DistributionNotDisabled) ErrorFault() smithy.ErrorFault

func (*DistributionNotDisabled) ErrorMessage

func (e *DistributionNotDisabled) ErrorMessage() string

type DistributionSummary

type DistributionSummary struct {

	// The ARN (Amazon Resource Name) for the distribution. For example:
	// arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where
	// 123456789012 is your AWS account ID.
	//
	// This member is required.
	ARN *string

	// A complex type that contains information about CNAMEs (alternate domain names),
	// if any, for this distribution.
	//
	// This member is required.
	Aliases *Aliases

	// A complex type that contains zero or more CacheBehavior elements.
	//
	// This member is required.
	CacheBehaviors *CacheBehaviors

	// The comment originally specified when this distribution was created.
	//
	// This member is required.
	Comment *string

	// A complex type that contains zero or more CustomErrorResponses elements.
	//
	// This member is required.
	CustomErrorResponses *CustomErrorResponses

	// A complex type that describes the default cache behavior if you don't specify a
	// CacheBehavior element or if files don't match any of the values of PathPattern
	// in CacheBehavior elements. You must create exactly one default cache behavior.
	//
	// This member is required.
	DefaultCacheBehavior *DefaultCacheBehavior

	// The domain name that corresponds to the distribution, for example,
	// d111111abcdef8.cloudfront.net.
	//
	// This member is required.
	DomainName *string

	// Whether the distribution is enabled to accept user requests for content.
	//
	// This member is required.
	Enabled *bool

	// Specify the maximum HTTP version that you want viewers to use to communicate
	// with CloudFront. The default value for new web distributions is http2. Viewers
	// that don't support HTTP/2 will automatically use an earlier version.
	//
	// This member is required.
	HttpVersion HttpVersion

	// The identifier for the distribution. For example: EDFDVBD632BHDS5.
	//
	// This member is required.
	Id *string

	// Whether CloudFront responds to IPv6 DNS requests with an IPv6 address for your
	// distribution.
	//
	// This member is required.
	IsIPV6Enabled *bool

	// The date and time the distribution was last modified.
	//
	// This member is required.
	LastModifiedTime *time.Time

	// A complex type that contains information about origins for this distribution.
	//
	// This member is required.
	Origins *Origins

	// A complex type that contains information about price class for this streaming
	// distribution.
	//
	// This member is required.
	PriceClass PriceClass

	// A complex type that identifies ways in which you want to restrict distribution
	// of your content.
	//
	// This member is required.
	Restrictions *Restrictions

	// The current status of the distribution. When the status is Deployed, the
	// distribution's information is propagated to all CloudFront edge locations.
	//
	// This member is required.
	Status *string

	// A complex type that determines the distribution’s SSL/TLS configuration for
	// communicating with viewers.
	//
	// This member is required.
	ViewerCertificate *ViewerCertificate

	// The Web ACL Id (if any) associated with the distribution.
	//
	// This member is required.
	WebACLId *string

	// 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. 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.
	AliasICPRecordals []AliasICPRecordal

	// A complex type that contains information about origin groups for this
	// distribution.
	OriginGroups *OriginGroups
}

A summary of the information about a CloudFront distribution.

type EncryptionEntities

type EncryptionEntities struct {

	// Number of field pattern items in a field-level encryption content type-profile
	// mapping.
	//
	// This member is required.
	Quantity *int32

	// An array of field patterns in a field-level encryption content type-profile
	// mapping.
	Items []EncryptionEntity
}

Complex data type for field-level encryption profiles that includes all of the encryption entities.

type EncryptionEntity

type EncryptionEntity struct {

	// Field patterns in a field-level encryption content type profile specify the
	// fields that you want to be encrypted. You can provide the full field name, or
	// any beginning characters followed by a wildcard (*). You can't overlap field
	// patterns. For example, you can't have both ABC* and AB*. Note that field
	// patterns are case-sensitive.
	//
	// This member is required.
	FieldPatterns *FieldPatterns

	// The provider associated with the public key being used for encryption. This
	// value must also be provided with the private key for applications to be able to
	// decrypt data.
	//
	// This member is required.
	ProviderId *string

	// The public key associated with a set of field-level encryption patterns, to be
	// used when encrypting the fields that match the patterns.
	//
	// This member is required.
	PublicKeyId *string
}

Complex data type for field-level encryption profiles that includes the encryption key and field pattern specifications.

type EndPoint added in v0.29.0

type EndPoint struct {

	// The type of data stream where you are sending real-time log data. The only valid
	// value is Kinesis.
	//
	// This member is required.
	StreamType *string

	// Contains information about the Amazon Kinesis data stream where you are sending
	// real-time log data.
	KinesisStreamConfig *KinesisStreamConfig
}

Contains information about the Amazon Kinesis data stream where you are sending real-time log data in a real-time log configuration.

type EventType

type EventType string
const (
	EventTypeViewerRequest  EventType = "viewer-request"
	EventTypeViewerResponse EventType = "viewer-response"
	EventTypeOriginRequest  EventType = "origin-request"
	EventTypeOriginResponse EventType = "origin-response"
)

Enum values for EventType

func (EventType) Values added in v0.29.0

func (EventType) Values() []EventType

Values returns all known values for EventType. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type FieldLevelEncryption

type FieldLevelEncryption struct {

	// A complex data type that includes the profile configurations specified for
	// field-level encryption.
	//
	// This member is required.
	FieldLevelEncryptionConfig *FieldLevelEncryptionConfig

	// The configuration ID for a field-level encryption configuration which includes a
	// set of profiles that specify certain selected data fields to be encrypted by
	// specific public keys.
	//
	// This member is required.
	Id *string

	// The last time the field-level encryption configuration was changed.
	//
	// This member is required.
	LastModifiedTime *time.Time
}

A complex data type that includes the profile configurations and other options specified for field-level encryption.

type FieldLevelEncryptionConfig

type FieldLevelEncryptionConfig struct {

	// A unique number that ensures the request can't be replayed.
	//
	// This member is required.
	CallerReference *string

	// An optional comment about the configuration.
	Comment *string

	// A complex data type that specifies when to forward content if a content type
	// isn't recognized and profiles to use as by default in a request if a query
	// argument doesn't specify a profile to use.
	ContentTypeProfileConfig *ContentTypeProfileConfig

	// A complex data type that specifies when to forward content if a profile isn't
	// found and the profile that can be provided as a query argument in a request.
	QueryArgProfileConfig *QueryArgProfileConfig
}

A complex data type that includes the profile configurations specified for field-level encryption.

type FieldLevelEncryptionConfigAlreadyExists

type FieldLevelEncryptionConfigAlreadyExists struct {
	Message *string
}

The specified configuration for field-level encryption already exists.

func (*FieldLevelEncryptionConfigAlreadyExists) Error

func (*FieldLevelEncryptionConfigAlreadyExists) ErrorCode

func (*FieldLevelEncryptionConfigAlreadyExists) ErrorFault

func (*FieldLevelEncryptionConfigAlreadyExists) ErrorMessage

type FieldLevelEncryptionConfigInUse

type FieldLevelEncryptionConfigInUse struct {
	Message *string
}

The specified configuration for field-level encryption is in use.

func (*FieldLevelEncryptionConfigInUse) Error

func (*FieldLevelEncryptionConfigInUse) ErrorCode

func (e *FieldLevelEncryptionConfigInUse) ErrorCode() string

func (*FieldLevelEncryptionConfigInUse) ErrorFault

func (*FieldLevelEncryptionConfigInUse) ErrorMessage

func (e *FieldLevelEncryptionConfigInUse) ErrorMessage() string

type FieldLevelEncryptionList

type FieldLevelEncryptionList struct {

	// The maximum number of elements you want in the response body.
	//
	// This member is required.
	MaxItems *int32

	// The number of field-level encryption items.
	//
	// This member is required.
	Quantity *int32

	// An array of field-level encryption items.
	Items []FieldLevelEncryptionSummary

	// If there are more elements to be listed, this element is present and contains
	// the value that you can use for the Marker request parameter to continue listing
	// your configurations where you left off.
	NextMarker *string
}

List of field-level encrpytion configurations.

type FieldLevelEncryptionProfile

type FieldLevelEncryptionProfile struct {

	// A complex data type that includes the profile name and the encryption entities
	// for the field-level encryption profile.
	//
	// This member is required.
	FieldLevelEncryptionProfileConfig *FieldLevelEncryptionProfileConfig

	// The ID for a field-level encryption profile configuration which includes a set
	// of profiles that specify certain selected data fields to be encrypted by
	// specific public keys.
	//
	// This member is required.
	Id *string

	// The last time the field-level encryption profile was updated.
	//
	// This member is required.
	LastModifiedTime *time.Time
}

A complex data type for field-level encryption profiles.

type FieldLevelEncryptionProfileAlreadyExists

type FieldLevelEncryptionProfileAlreadyExists struct {
	Message *string
}

The specified profile for field-level encryption already exists.

func (*FieldLevelEncryptionProfileAlreadyExists) Error

func (*FieldLevelEncryptionProfileAlreadyExists) ErrorCode

func (*FieldLevelEncryptionProfileAlreadyExists) ErrorFault

func (*FieldLevelEncryptionProfileAlreadyExists) ErrorMessage

type FieldLevelEncryptionProfileConfig

type FieldLevelEncryptionProfileConfig struct {

	// A unique number that ensures that the request can't be replayed.
	//
	// This member is required.
	CallerReference *string

	// A complex data type of encryption entities for the field-level encryption
	// profile that include the public key ID, provider, and field patterns for
	// specifying which fields to encrypt with this key.
	//
	// This member is required.
	EncryptionEntities *EncryptionEntities

	// Profile name for the field-level encryption profile.
	//
	// This member is required.
	Name *string

	// An optional comment for the field-level encryption profile.
	Comment *string
}

A complex data type of profiles for the field-level encryption.

type FieldLevelEncryptionProfileInUse

type FieldLevelEncryptionProfileInUse struct {
	Message *string
}

The specified profile for field-level encryption is in use.

func (*FieldLevelEncryptionProfileInUse) Error

func (*FieldLevelEncryptionProfileInUse) ErrorCode

func (*FieldLevelEncryptionProfileInUse) ErrorFault

func (*FieldLevelEncryptionProfileInUse) ErrorMessage

func (e *FieldLevelEncryptionProfileInUse) ErrorMessage() string

type FieldLevelEncryptionProfileList

type FieldLevelEncryptionProfileList struct {

	// The maximum number of field-level encryption profiles you want in the response
	// body.
	//
	// This member is required.
	MaxItems *int32

	// The number of field-level encryption profiles.
	//
	// This member is required.
	Quantity *int32

	// The field-level encryption profile items.
	Items []FieldLevelEncryptionProfileSummary

	// If there are more elements to be listed, this element is present and contains
	// the value that you can use for the Marker request parameter to continue listing
	// your profiles where you left off.
	NextMarker *string
}

List of field-level encryption profiles.

type FieldLevelEncryptionProfileSizeExceeded

type FieldLevelEncryptionProfileSizeExceeded struct {
	Message *string
}

The maximum size of a profile for field-level encryption was exceeded.

func (*FieldLevelEncryptionProfileSizeExceeded) Error

func (*FieldLevelEncryptionProfileSizeExceeded) ErrorCode

func (*FieldLevelEncryptionProfileSizeExceeded) ErrorFault

func (*FieldLevelEncryptionProfileSizeExceeded) ErrorMessage

type FieldLevelEncryptionProfileSummary

type FieldLevelEncryptionProfileSummary struct {

	// A complex data type of encryption entities for the field-level encryption
	// profile that include the public key ID, provider, and field patterns for
	// specifying which fields to encrypt with this key.
	//
	// This member is required.
	EncryptionEntities *EncryptionEntities

	// ID for the field-level encryption profile summary.
	//
	// This member is required.
	Id *string

	// The time when the the field-level encryption profile summary was last updated.
	//
	// This member is required.
	LastModifiedTime *time.Time

	// Name for the field-level encryption profile summary.
	//
	// This member is required.
	Name *string

	// An optional comment for the field-level encryption profile summary.
	Comment *string
}

The field-level encryption profile summary.

type FieldLevelEncryptionSummary

type FieldLevelEncryptionSummary struct {

	// The unique ID of a field-level encryption item.
	//
	// This member is required.
	Id *string

	// The last time that the summary of field-level encryption items was modified.
	//
	// This member is required.
	LastModifiedTime *time.Time

	// An optional comment about the field-level encryption item.
	Comment *string

	// A summary of a content type-profile mapping.
	ContentTypeProfileConfig *ContentTypeProfileConfig

	// A summary of a query argument-profile mapping.
	QueryArgProfileConfig *QueryArgProfileConfig
}

A summary of a field-level encryption item.

type FieldPatterns

type FieldPatterns struct {

	// The number of field-level encryption field patterns.
	//
	// This member is required.
	Quantity *int32

	// An array of the field-level encryption field patterns.
	Items []string
}

A complex data type that includes the field patterns to match for field-level encryption.

type Format

type Format string
const (
	FormatURLEncoded Format = "URLEncoded"
)

Enum values for Format

func (Format) Values added in v0.29.0

func (Format) Values() []Format

Values returns all known values for Format. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type ForwardedValues

type ForwardedValues struct {

	// 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 cookies in the
	// cache key, use a cache policy. For more information, see Creating cache policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy)
	// in the Amazon CloudFront Developer Guide. If you want to send cookies to the
	// origin but not include them in the cache key, use an origin request policy. For
	// more information, see Creating origin request policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy)
	// in the Amazon CloudFront Developer Guide. A complex type that specifies whether
	// you want CloudFront to forward cookies to the origin and, if so, which ones. For
	// more information about forwarding cookies to the origin, see How CloudFront
	// Forwards, Caches, and Logs Cookies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Cookies.html)
	// in the Amazon CloudFront Developer Guide.
	//
	// This member is required.
	Cookies *CookiePreference

	// 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 query strings in
	// the cache key, use a cache policy. For more information, see Creating cache
	// policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy)
	// in the Amazon CloudFront Developer Guide. If you want to send query strings to
	// the origin but not include them in the cache key, use an origin request policy.
	// For more information, see Creating origin request policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy)
	// in the Amazon CloudFront Developer Guide. Indicates whether you want CloudFront
	// to forward query strings to the origin that is associated with this cache
	// behavior and cache based on the query string parameters. CloudFront behavior
	// depends on the value of QueryString and on the values that you specify for
	// QueryStringCacheKeys, if any: If you specify true for QueryString and you don't
	// specify any values for QueryStringCacheKeys, CloudFront forwards all query
	// string parameters to the origin and caches based on all query string parameters.
	// Depending on how many query string parameters and values you have, this can
	// adversely affect performance because CloudFront must forward more requests to
	// the origin. If you specify true for QueryString and you specify one or more
	// values for QueryStringCacheKeys, CloudFront forwards all query string parameters
	// to the origin, but it only caches based on the query string parameters that you
	// specify. If you specify false for QueryString, CloudFront doesn't forward any
	// query string parameters to the origin, and doesn't cache based on query string
	// parameters. For more information, see Configuring CloudFront to Cache Based on
	// Query String Parameters
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/QueryStringParameters.html)
	// in the Amazon CloudFront Developer Guide.
	//
	// This member is required.
	QueryString *bool

	// 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 headers in the
	// cache key, use a cache policy. For more information, see Creating cache policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy)
	// in the Amazon CloudFront Developer Guide. If you want to send headers to the
	// origin but not include them in the cache key, use an origin request policy. For
	// more information, see Creating origin request policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy)
	// in the Amazon CloudFront Developer Guide. A complex type that specifies the
	// Headers, if any, that you want CloudFront to forward to the origin for this
	// cache behavior (whitelisted headers). For the headers that you specify,
	// CloudFront also caches separate versions of a specified object that is based on
	// the header values in viewer requests. For more information, see  Caching Content
	// Based on Request Headers
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/header-caching.html)
	// in the Amazon CloudFront Developer Guide.
	Headers *Headers

	// 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 query strings in
	// the cache key, use a cache policy. For more information, see Creating cache
	// policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy)
	// in the Amazon CloudFront Developer Guide. If you want to send query strings to
	// the origin but not include them in the cache key, use an origin request policy.
	// For more information, see Creating origin request policies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy)
	// in the Amazon CloudFront Developer Guide. A complex type that contains
	// information about the query string parameters that you want CloudFront to use
	// for caching for this cache behavior.
	QueryStringCacheKeys *QueryStringCacheKeys
}

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 cache policy. For more information, see Creating cache policies (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) in the Amazon CloudFront Developer Guide. If you want to send values to the origin but not include them in the cache key, use an origin request policy. For more information, see Creating origin request policies (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) in the Amazon CloudFront Developer Guide. A complex type that specifies how CloudFront handles query strings, cookies, and HTTP headers.

type GeoRestriction

type GeoRestriction struct {

	// When geo restriction is enabled, this is the number of countries in your
	// whitelist or blacklist. Otherwise, when it is not enabled, Quantity is 0, and
	// you can omit Items.
	//
	// This member is required.
	Quantity *int32

	// The method that you want to use to restrict distribution of your content by
	// country:
	//
	// * none: No geo restriction is enabled, meaning access to content is
	// not restricted by client geo location.
	//
	// * blacklist: The Location elements
	// specify the countries in which you don't want CloudFront to distribute your
	// content.
	//
	// * whitelist: The Location elements specify the countries in which you
	// want CloudFront to distribute your content.
	//
	// This member is required.
	RestrictionType GeoRestrictionType

	// A complex type that contains a Location element for each country in which you
	// want CloudFront either to distribute your content (whitelist) or not distribute
	// your content (blacklist). The Location element is a two-letter, uppercase
	// country code for a country that you want to include in your blacklist or
	// whitelist. Include one Location element for each country. CloudFront and MaxMind
	// both use ISO 3166 country codes. For the current list of countries and the
	// corresponding codes, see ISO 3166-1-alpha-2 code on the International
	// Organization for Standardization website. You can also refer to the country list
	// on the CloudFront console, which includes both country names and codes.
	Items []string
}

A complex type that controls the countries in which your content is distributed. CloudFront determines the location of your users using MaxMind GeoIP databases.

type GeoRestrictionType

type GeoRestrictionType string
const (
	GeoRestrictionTypeBlacklist GeoRestrictionType = "blacklist"
	GeoRestrictionTypeWhitelist GeoRestrictionType = "whitelist"
	GeoRestrictionTypeNone      GeoRestrictionType = "none"
)

Enum values for GeoRestrictionType

func (GeoRestrictionType) Values added in v0.29.0

Values returns all known values for GeoRestrictionType. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type Headers

type Headers struct {

	// The number of header names in the Items list.
	//
	// This member is required.
	Quantity *int32

	// A list of HTTP header names.
	Items []string
}

Contains a list of HTTP header names.

type HttpVersion

type HttpVersion string
const (
	HttpVersionHttp11 HttpVersion = "http1.1"
	HttpVersionHttp2  HttpVersion = "http2"
)

Enum values for HttpVersion

func (HttpVersion) Values added in v0.29.0

func (HttpVersion) Values() []HttpVersion

Values returns all known values for HttpVersion. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type ICPRecordalStatus

type ICPRecordalStatus string
const (
	ICPRecordalStatusApproved  ICPRecordalStatus = "APPROVED"
	ICPRecordalStatusSuspended ICPRecordalStatus = "SUSPENDED"
	ICPRecordalStatusPending   ICPRecordalStatus = "PENDING"
)

Enum values for ICPRecordalStatus

func (ICPRecordalStatus) Values added in v0.29.0

Values returns all known values for ICPRecordalStatus. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type IllegalDelete

type IllegalDelete struct {
	Message *string
}

You cannot delete a managed policy.

func (*IllegalDelete) Error

func (e *IllegalDelete) Error() string

func (*IllegalDelete) ErrorCode

func (e *IllegalDelete) ErrorCode() string

func (*IllegalDelete) ErrorFault

func (e *IllegalDelete) ErrorFault() smithy.ErrorFault

func (*IllegalDelete) ErrorMessage

func (e *IllegalDelete) ErrorMessage() string

type IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior

type IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior struct {
	Message *string
}

The specified configuration for field-level encryption can't be associated with the specified cache behavior.

func (*IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior) Error

func (*IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior) ErrorCode

func (*IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior) ErrorFault

func (*IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior) ErrorMessage

type IllegalUpdate

type IllegalUpdate struct {
	Message *string
}

The update contains modifications that are not allowed.

func (*IllegalUpdate) Error

func (e *IllegalUpdate) Error() string

func (*IllegalUpdate) ErrorCode

func (e *IllegalUpdate) ErrorCode() string

func (*IllegalUpdate) ErrorFault

func (e *IllegalUpdate) ErrorFault() smithy.ErrorFault

func (*IllegalUpdate) ErrorMessage

func (e *IllegalUpdate) ErrorMessage() string

type InconsistentQuantities

type InconsistentQuantities struct {
	Message *string
}

The value of Quantity and the size of Items don't match.

func (*InconsistentQuantities) Error

func (e *InconsistentQuantities) Error() string

func (*InconsistentQuantities) ErrorCode

func (e *InconsistentQuantities) ErrorCode() string

func (*InconsistentQuantities) ErrorFault

func (e *InconsistentQuantities) ErrorFault() smithy.ErrorFault

func (*InconsistentQuantities) ErrorMessage

func (e *InconsistentQuantities) ErrorMessage() string

type InvalidArgument

type InvalidArgument struct {
	Message *string
}

An argument is invalid.

func (*InvalidArgument) Error

func (e *InvalidArgument) Error() string

func (*InvalidArgument) ErrorCode

func (e *InvalidArgument) ErrorCode() string

func (*InvalidArgument) ErrorFault

func (e *InvalidArgument) ErrorFault() smithy.ErrorFault

func (*InvalidArgument) ErrorMessage

func (e *InvalidArgument) ErrorMessage() string

type InvalidDefaultRootObject

type InvalidDefaultRootObject struct {
	Message *string
}

The default root object file name is too big or contains an invalid character.

func (*InvalidDefaultRootObject) Error

func (e *InvalidDefaultRootObject) Error() string

func (*InvalidDefaultRootObject) ErrorCode

func (e *InvalidDefaultRootObject) ErrorCode() string

func (*InvalidDefaultRootObject) ErrorFault

func (e *InvalidDefaultRootObject) ErrorFault() smithy.ErrorFault

func (*InvalidDefaultRootObject) ErrorMessage

func (e *InvalidDefaultRootObject) ErrorMessage() string

type InvalidErrorCode

type InvalidErrorCode struct {
	Message *string
}

An invalid error code was specified.

func (*InvalidErrorCode) Error

func (e *InvalidErrorCode) Error() string

func (*InvalidErrorCode) ErrorCode

func (e *InvalidErrorCode) ErrorCode() string

func (*InvalidErrorCode) ErrorFault

func (e *InvalidErrorCode) ErrorFault() smithy.ErrorFault

func (*InvalidErrorCode) ErrorMessage

func (e *InvalidErrorCode) ErrorMessage() string

type InvalidForwardCookies

type InvalidForwardCookies struct {
	Message *string
}

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.

func (*InvalidForwardCookies) Error

func (e *InvalidForwardCookies) Error() string

func (*InvalidForwardCookies) ErrorCode

func (e *InvalidForwardCookies) ErrorCode() string

func (*InvalidForwardCookies) ErrorFault

func (e *InvalidForwardCookies) ErrorFault() smithy.ErrorFault

func (*InvalidForwardCookies) ErrorMessage

func (e *InvalidForwardCookies) ErrorMessage() string

type InvalidGeoRestrictionParameter

type InvalidGeoRestrictionParameter struct {
	Message *string
}

The specified geo restriction parameter is not valid.

func (*InvalidGeoRestrictionParameter) Error

func (*InvalidGeoRestrictionParameter) ErrorCode

func (e *InvalidGeoRestrictionParameter) ErrorCode() string

func (*InvalidGeoRestrictionParameter) ErrorFault

func (*InvalidGeoRestrictionParameter) ErrorMessage

func (e *InvalidGeoRestrictionParameter) ErrorMessage() string

type InvalidHeadersForS3Origin

type InvalidHeadersForS3Origin struct {
	Message *string
}

The headers specified are not valid for an Amazon S3 origin.

func (*InvalidHeadersForS3Origin) Error

func (e *InvalidHeadersForS3Origin) Error() string

func (*InvalidHeadersForS3Origin) ErrorCode

func (e *InvalidHeadersForS3Origin) ErrorCode() string

func (*InvalidHeadersForS3Origin) ErrorFault

func (*InvalidHeadersForS3Origin) ErrorMessage

func (e *InvalidHeadersForS3Origin) ErrorMessage() string

type InvalidIfMatchVersion

type InvalidIfMatchVersion struct {
	Message *string
}

The If-Match version is missing or not valid.

func (*InvalidIfMatchVersion) Error

func (e *InvalidIfMatchVersion) Error() string

func (*InvalidIfMatchVersion) ErrorCode

func (e *InvalidIfMatchVersion) ErrorCode() string

func (*InvalidIfMatchVersion) ErrorFault

func (e *InvalidIfMatchVersion) ErrorFault() smithy.ErrorFault

func (*InvalidIfMatchVersion) ErrorMessage

func (e *InvalidIfMatchVersion) ErrorMessage() string

type InvalidLambdaFunctionAssociation

type InvalidLambdaFunctionAssociation struct {
	Message *string
}

The specified Lambda function association is invalid.

func (*InvalidLambdaFunctionAssociation) Error

func (*InvalidLambdaFunctionAssociation) ErrorCode

func (*InvalidLambdaFunctionAssociation) ErrorFault

func (*InvalidLambdaFunctionAssociation) ErrorMessage

func (e *InvalidLambdaFunctionAssociation) ErrorMessage() string

type InvalidLocationCode

type InvalidLocationCode struct {
	Message *string
}

The location code specified is not valid.

func (*InvalidLocationCode) Error

func (e *InvalidLocationCode) Error() string

func (*InvalidLocationCode) ErrorCode

func (e *InvalidLocationCode) ErrorCode() string

func (*InvalidLocationCode) ErrorFault

func (e *InvalidLocationCode) ErrorFault() smithy.ErrorFault

func (*InvalidLocationCode) ErrorMessage

func (e *InvalidLocationCode) ErrorMessage() string

type InvalidMinimumProtocolVersion

type InvalidMinimumProtocolVersion struct {
	Message *string
}

The minimum protocol version specified is not valid.

func (*InvalidMinimumProtocolVersion) Error

func (*InvalidMinimumProtocolVersion) ErrorCode

func (e *InvalidMinimumProtocolVersion) ErrorCode() string

func (*InvalidMinimumProtocolVersion) ErrorFault

func (*InvalidMinimumProtocolVersion) ErrorMessage

func (e *InvalidMinimumProtocolVersion) ErrorMessage() string

type InvalidOrigin

type InvalidOrigin struct {
	Message *string
}

The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket.

func (*InvalidOrigin) Error

func (e *InvalidOrigin) Error() string

func (*InvalidOrigin) ErrorCode

func (e *InvalidOrigin) ErrorCode() string

func (*InvalidOrigin) ErrorFault

func (e *InvalidOrigin) ErrorFault() smithy.ErrorFault

func (*InvalidOrigin) ErrorMessage

func (e *InvalidOrigin) ErrorMessage() string

type InvalidOriginAccessIdentity

type InvalidOriginAccessIdentity struct {
	Message *string
}

The origin access identity is not valid or doesn't exist.

func (*InvalidOriginAccessIdentity) Error

func (*InvalidOriginAccessIdentity) ErrorCode

func (e *InvalidOriginAccessIdentity) ErrorCode() string

func (*InvalidOriginAccessIdentity) ErrorFault

func (*InvalidOriginAccessIdentity) ErrorMessage

func (e *InvalidOriginAccessIdentity) ErrorMessage() string

type InvalidOriginKeepaliveTimeout

type InvalidOriginKeepaliveTimeout struct {
	Message *string
}

The keep alive timeout specified for the origin is not valid.

func (*InvalidOriginKeepaliveTimeout) Error

func (*InvalidOriginKeepaliveTimeout) ErrorCode

func (e *InvalidOriginKeepaliveTimeout) ErrorCode() string

func (*InvalidOriginKeepaliveTimeout) ErrorFault

func (*InvalidOriginKeepaliveTimeout) ErrorMessage

func (e *InvalidOriginKeepaliveTimeout) ErrorMessage() string

type InvalidOriginReadTimeout

type InvalidOriginReadTimeout struct {
	Message *string
}

The read timeout specified for the origin is not valid.

func (*InvalidOriginReadTimeout) Error

func (e *InvalidOriginReadTimeout) Error() string

func (*InvalidOriginReadTimeout) ErrorCode

func (e *InvalidOriginReadTimeout) ErrorCode() string

func (*InvalidOriginReadTimeout) ErrorFault

func (e *InvalidOriginReadTimeout) ErrorFault() smithy.ErrorFault

func (*InvalidOriginReadTimeout) ErrorMessage

func (e *InvalidOriginReadTimeout) ErrorMessage() string

type InvalidProtocolSettings

type InvalidProtocolSettings struct {
	Message *string
}

You cannot specify SSLv3 as the minimum protocol version if you only want to support only clients that support Server Name Indication (SNI).

func (*InvalidProtocolSettings) Error

func (e *InvalidProtocolSettings) Error() string

func (*InvalidProtocolSettings) ErrorCode

func (e *InvalidProtocolSettings) ErrorCode() string

func (*InvalidProtocolSettings) ErrorFault

func (e *InvalidProtocolSettings) ErrorFault() smithy.ErrorFault

func (*InvalidProtocolSettings) ErrorMessage

func (e *InvalidProtocolSettings) ErrorMessage() string

type InvalidQueryStringParameters

type InvalidQueryStringParameters struct {
	Message *string
}

The query string parameters specified are not valid.

func (*InvalidQueryStringParameters) Error

func (*InvalidQueryStringParameters) ErrorCode

func (e *InvalidQueryStringParameters) ErrorCode() string

func (*InvalidQueryStringParameters) ErrorFault

func (*InvalidQueryStringParameters) ErrorMessage

func (e *InvalidQueryStringParameters) ErrorMessage() string

type InvalidRelativePath

type InvalidRelativePath struct {
	Message *string
}

The relative path is too big, is not URL-encoded, or does not begin with a slash (/).

func (*InvalidRelativePath) Error

func (e *InvalidRelativePath) Error() string

func (*InvalidRelativePath) ErrorCode

func (e *InvalidRelativePath) ErrorCode() string

func (*InvalidRelativePath) ErrorFault

func (e *InvalidRelativePath) ErrorFault() smithy.ErrorFault

func (*InvalidRelativePath) ErrorMessage

func (e *InvalidRelativePath) ErrorMessage() string

type InvalidRequiredProtocol

type InvalidRequiredProtocol struct {
	Message *string
}

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.

func (*InvalidRequiredProtocol) Error

func (e *InvalidRequiredProtocol) Error() string

func (*InvalidRequiredProtocol) ErrorCode

func (e *InvalidRequiredProtocol) ErrorCode() string

func (*InvalidRequiredProtocol) ErrorFault

func (e *InvalidRequiredProtocol) ErrorFault() smithy.ErrorFault

func (*InvalidRequiredProtocol) ErrorMessage

func (e *InvalidRequiredProtocol) ErrorMessage() string

type InvalidResponseCode

type InvalidResponseCode struct {
	Message *string
}

A response code is not valid.

func (*InvalidResponseCode) Error

func (e *InvalidResponseCode) Error() string

func (*InvalidResponseCode) ErrorCode

func (e *InvalidResponseCode) ErrorCode() string

func (*InvalidResponseCode) ErrorFault

func (e *InvalidResponseCode) ErrorFault() smithy.ErrorFault

func (*InvalidResponseCode) ErrorMessage

func (e *InvalidResponseCode) ErrorMessage() string

type InvalidTTLOrder

type InvalidTTLOrder struct {
	Message *string
}

The TTL order specified is not valid.

func (*InvalidTTLOrder) Error

func (e *InvalidTTLOrder) Error() string

func (*InvalidTTLOrder) ErrorCode

func (e *InvalidTTLOrder) ErrorCode() string

func (*InvalidTTLOrder) ErrorFault

func (e *InvalidTTLOrder) ErrorFault() smithy.ErrorFault

func (*InvalidTTLOrder) ErrorMessage

func (e *InvalidTTLOrder) ErrorMessage() string

type InvalidTagging

type InvalidTagging struct {
	Message *string
}

The tagging specified is not valid.

func (*InvalidTagging) Error

func (e *InvalidTagging) Error() string

func (*InvalidTagging) ErrorCode

func (e *InvalidTagging) ErrorCode() string

func (*InvalidTagging) ErrorFault

func (e *InvalidTagging) ErrorFault() smithy.ErrorFault

func (*InvalidTagging) ErrorMessage

func (e *InvalidTagging) ErrorMessage() string

type InvalidViewerCertificate

type InvalidViewerCertificate struct {
	Message *string
}

A viewer certificate specified is not valid.

func (*InvalidViewerCertificate) Error

func (e *InvalidViewerCertificate) Error() string

func (*InvalidViewerCertificate) ErrorCode

func (e *InvalidViewerCertificate) ErrorCode() string

func (*InvalidViewerCertificate) ErrorFault

func (e *InvalidViewerCertificate) ErrorFault() smithy.ErrorFault

func (*InvalidViewerCertificate) ErrorMessage

func (e *InvalidViewerCertificate) ErrorMessage() string

type InvalidWebACLId

type InvalidWebACLId struct {
	Message *string
}

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.

func (*InvalidWebACLId) Error

func (e *InvalidWebACLId) Error() string

func (*InvalidWebACLId) ErrorCode

func (e *InvalidWebACLId) ErrorCode() string

func (*InvalidWebACLId) ErrorFault

func (e *InvalidWebACLId) ErrorFault() smithy.ErrorFault

func (*InvalidWebACLId) ErrorMessage

func (e *InvalidWebACLId) ErrorMessage() string

type Invalidation

type Invalidation struct {

	// The date and time the invalidation request was first made.
	//
	// This member is required.
	CreateTime *time.Time

	// The identifier for the invalidation request. For example: IDFDVBD632BHDS5.
	//
	// This member is required.
	Id *string

	// The current invalidation information for the batch request.
	//
	// This member is required.
	InvalidationBatch *InvalidationBatch

	// The status of the invalidation request. When the invalidation batch is finished,
	// the status is Completed.
	//
	// This member is required.
	Status *string
}

An invalidation.

type InvalidationBatch

type InvalidationBatch struct {

	// A value that you specify to uniquely identify an invalidation request.
	// CloudFront uses the value to prevent you from accidentally resubmitting an
	// identical request. Whenever you create a new invalidation request, you must
	// specify a new value for CallerReference and change other values in the request
	// as applicable. One way to ensure that the value of CallerReference is unique is
	// to use a timestamp, for example, 20120301090000. If you make a second
	// invalidation request with the same value for CallerReference, and if the rest of
	// the request is the same, CloudFront doesn't create a new invalidation request.
	// Instead, CloudFront returns information about the invalidation request that you
	// previously created with the same CallerReference. If CallerReference is a value
	// you already sent in a previous invalidation batch request but the content of any
	// Path is different from the original request, CloudFront returns an
	// InvalidationBatchAlreadyExists error.
	//
	// This member is required.
	CallerReference *string

	// A complex type that contains information about the objects that you want to
	// invalidate. For more information, see Specifying the Objects to Invalidate
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html#invalidation-specifying-objects)
	// in the Amazon CloudFront Developer Guide.
	//
	// This member is required.
	Paths *Paths
}

An invalidation batch.

type InvalidationList

type InvalidationList struct {

	// A flag that indicates whether more invalidation batch requests remain to be
	// listed. If your results were truncated, you can make a follow-up pagination
	// request using the Marker request parameter to retrieve more invalidation batches
	// in the list.
	//
	// This member is required.
	IsTruncated *bool

	// The value that you provided for the Marker request parameter.
	//
	// This member is required.
	Marker *string

	// The value that you provided for the MaxItems request parameter.
	//
	// This member is required.
	MaxItems *int32

	// The number of invalidation batches that were created by the current AWS account.
	//
	// This member is required.
	Quantity *int32

	// A complex type that contains one InvalidationSummary element for each
	// invalidation batch created by the current AWS account.
	Items []InvalidationSummary

	// If IsTruncated is true, this element is present and contains the value that you
	// can use for the Marker request parameter to continue listing your invalidation
	// batches where they left off.
	NextMarker *string
}

The InvalidationList complex type describes the list of invalidation objects. For more information about invalidation, see Invalidating Objects (Web Distributions Only) (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html) in the Amazon CloudFront Developer Guide.

type InvalidationSummary

type InvalidationSummary struct {

	// The time that an invalidation request was created.
	//
	// This member is required.
	CreateTime *time.Time

	// The unique ID for an invalidation request.
	//
	// This member is required.
	Id *string

	// The status of an invalidation request.
	//
	// This member is required.
	Status *string
}

A summary of an invalidation request.

type ItemSelection

type ItemSelection string
const (
	ItemSelectionNone      ItemSelection = "none"
	ItemSelectionWhitelist ItemSelection = "whitelist"
	ItemSelectionAll       ItemSelection = "all"
)

Enum values for ItemSelection

func (ItemSelection) Values added in v0.29.0

func (ItemSelection) Values() []ItemSelection

Values returns all known values for ItemSelection. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type KGKeyPairIds added in v0.29.0

type KGKeyPairIds struct {

	// The identifier of the key group that contains the public keys.
	KeyGroupId *string

	// A list of CloudFront key pair identifiers.
	KeyPairIds *KeyPairIds
}

A list of identifiers for the public keys that CloudFront can use to verify the signatures of signed URLs and signed cookies.

type KeyGroup added in v0.29.0

type KeyGroup struct {

	// The identifier for the key group.
	//
	// This member is required.
	Id *string

	// The key group configuration.
	//
	// This member is required.
	KeyGroupConfig *KeyGroupConfig

	// The date and time when the key group was last modified.
	//
	// This member is required.
	LastModifiedTime *time.Time
}

A key group. A key group contains a list of public keys that you can use with CloudFront signed URLs and signed cookies (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html).

type KeyGroupAlreadyExists added in v0.29.0

type KeyGroupAlreadyExists struct {
	Message *string
}

A key group with this name already exists. You must provide a unique name. To modify an existing key group, use UpdateKeyGroup.

func (*KeyGroupAlreadyExists) Error added in v0.29.0

func (e *KeyGroupAlreadyExists) Error() string

func (*KeyGroupAlreadyExists) ErrorCode added in v0.29.0

func (e *KeyGroupAlreadyExists) ErrorCode() string

func (*KeyGroupAlreadyExists) ErrorFault added in v0.29.0

func (e *KeyGroupAlreadyExists) ErrorFault() smithy.ErrorFault

func (*KeyGroupAlreadyExists) ErrorMessage added in v0.29.0

func (e *KeyGroupAlreadyExists) ErrorMessage() string

type KeyGroupConfig added in v0.29.0

type KeyGroupConfig struct {

	// A list of the identifiers of the public keys in the key group.
	//
	// This member is required.
	Items []string

	// A name to identify the key group.
	//
	// This member is required.
	Name *string

	// A comment to describe the key group.
	Comment *string
}

A key group configuration. A key group contains a list of public keys that you can use with CloudFront signed URLs and signed cookies (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html).

type KeyGroupList added in v0.29.0

type KeyGroupList struct {

	// The maximum number of key groups requested.
	//
	// This member is required.
	MaxItems *int32

	// The number of key groups returned in the response.
	//
	// This member is required.
	Quantity *int32

	// A list of key groups.
	Items []KeyGroupSummary

	// If there are more items in the list than are in this response, this element is
	// present. It contains the value that you should use in the Marker field of a
	// subsequent request to continue listing key groups.
	NextMarker *string
}

A list of key groups.

type KeyGroupSummary added in v0.29.0

type KeyGroupSummary struct {

	// A key group.
	//
	// This member is required.
	KeyGroup *KeyGroup
}

Contains information about a key group.

type KeyPairIds

type KeyPairIds struct {

	// The number of key pair identifiers in the list.
	//
	// This member is required.
	Quantity *int32

	// A list of CloudFront key pair identifiers.
	Items []string
}

A list of CloudFront key pair identifiers.

type KinesisStreamConfig added in v0.29.0

type KinesisStreamConfig struct {

	// The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM)
	// role that CloudFront can use to send real-time log data to your Kinesis data
	// stream. For more information the IAM role, see Real-time log configuration IAM
	// role
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html#understand-real-time-log-config-iam-role)
	// in the Amazon CloudFront Developer Guide.
	//
	// This member is required.
	RoleARN *string

	// The Amazon Resource Name (ARN) of the Kinesis data stream where you are sending
	// real-time log data.
	//
	// This member is required.
	StreamARN *string
}

Contains information about the Amazon Kinesis data stream where you are sending real-time log data.

type LambdaFunctionAssociation

type LambdaFunctionAssociation struct {

	// Specifies the event type that triggers a Lambda function invocation. You can
	// specify the following values:
	//
	// * viewer-request: The function executes when
	// CloudFront receives a request from a viewer and before it checks to see whether
	// the requested object is in the edge cache.
	//
	// * origin-request: The function
	// executes only when CloudFront sends a request to your origin. When the requested
	// object is in the edge cache, the function doesn't execute.
	//
	// * origin-response:
	// The function executes after CloudFront receives a response from the origin and
	// before it caches the object in the response. When the requested object is in the
	// edge cache, the function doesn't execute.
	//
	// * viewer-response: The function
	// executes before CloudFront returns the requested object to the viewer. The
	// function executes regardless of whether the object was already in the edge
	// cache. If the origin returns an HTTP status code other than HTTP 200 (OK), the
	// function doesn't execute.
	//
	// This member is required.
	EventType EventType

	// The ARN of the Lambda function. You must specify the ARN of a function version;
	// you can't specify a Lambda alias or $LATEST.
	//
	// This member is required.
	LambdaFunctionARN *string

	// A flag that allows a Lambda function to have read access to the body content.
	// For more information, see Accessing the Request Body by Choosing the Include
	// Body Option
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-include-body-access.html)
	// in the Amazon CloudFront Developer Guide.
	IncludeBody *bool
}

A complex type that contains a Lambda function association.

type LambdaFunctionAssociations

type LambdaFunctionAssociations struct {

	// The number of Lambda function associations for this cache behavior.
	//
	// This member is required.
	Quantity *int32

	// Optional: A complex type that contains LambdaFunctionAssociation items for this
	// cache behavior. If Quantity is 0, you can omit Items.
	Items []LambdaFunctionAssociation
}

A complex type that specifies a list of Lambda functions associations for a cache behavior. If you want to invoke one or more Lambda functions triggered by requests that match the PathPattern of the cache behavior, specify the applicable values for Quantity and Items. Note that there can be up to 4 LambdaFunctionAssociation items in this list (one for each possible value of EventType) and each EventType can be associated with the Lambda function only once. If you don't want to invoke any Lambda functions for the requests that match PathPattern, specify 0 for Quantity and omit Items.

type LoggingConfig

type LoggingConfig struct {

	// The Amazon S3 bucket to store the access logs in, for example,
	// myawslogbucket.s3.amazonaws.com.
	//
	// This member is required.
	Bucket *string

	// Specifies whether you want CloudFront to save access logs to an Amazon S3
	// bucket. If you don't want to enable logging when you create a distribution or if
	// you want to disable logging for an existing distribution, specify false for
	// Enabled, and specify empty Bucket and Prefix elements. If you specify false for
	// Enabled but you specify values for Bucket, prefix, and IncludeCookies, the
	// values are automatically deleted.
	//
	// This member is required.
	Enabled *bool

	// Specifies whether you want CloudFront to include cookies in access logs, specify
	// true for IncludeCookies. If you choose to include cookies in logs, CloudFront
	// logs all cookies regardless of how you configure the cache behaviors for this
	// distribution. If you don't want to include cookies when you create a
	// distribution or if you want to disable include cookies for an existing
	// distribution, specify false for IncludeCookies.
	//
	// This member is required.
	IncludeCookies *bool

	// An optional string that you want CloudFront to prefix to the access log
	// filenames for this distribution, for example, myprefix/. If you want to enable
	// logging, but you don't want to specify a prefix, you still must include an empty
	// Prefix element in the Logging element.
	//
	// This member is required.
	Prefix *string
}

A complex type that controls whether access logs are written for the distribution.

type Method

type Method string
const (
	MethodGet     Method = "GET"
	MethodHead    Method = "HEAD"
	MethodPost    Method = "POST"
	MethodPut     Method = "PUT"
	MethodPatch   Method = "PATCH"
	MethodOptions Method = "OPTIONS"
	MethodDelete  Method = "DELETE"
)

Enum values for Method

func (Method) Values added in v0.29.0

func (Method) Values() []Method

Values returns all known values for Method. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type MinimumProtocolVersion

type MinimumProtocolVersion string
const (
	MinimumProtocolVersionSSLv3      MinimumProtocolVersion = "SSLv3"
	MinimumProtocolVersionTLSv1      MinimumProtocolVersion = "TLSv1"
	MinimumProtocolVersionTLSv12016  MinimumProtocolVersion = "TLSv1_2016"
	MinimumProtocolVersionTLSv112016 MinimumProtocolVersion = "TLSv1.1_2016"
	MinimumProtocolVersionTLSv122018 MinimumProtocolVersion = "TLSv1.2_2018"
	MinimumProtocolVersionTLSv122019 MinimumProtocolVersion = "TLSv1.2_2019"
)

Enum values for MinimumProtocolVersion

func (MinimumProtocolVersion) Values added in v0.29.0

Values returns all known values for MinimumProtocolVersion. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type MissingBody

type MissingBody struct {
	Message *string
}

This operation requires a body. Ensure that the body is present and the Content-Type header is set.

func (*MissingBody) Error

func (e *MissingBody) Error() string

func (*MissingBody) ErrorCode

func (e *MissingBody) ErrorCode() string

func (*MissingBody) ErrorFault

func (e *MissingBody) ErrorFault() smithy.ErrorFault

func (*MissingBody) ErrorMessage

func (e *MissingBody) ErrorMessage() string

type MonitoringSubscription added in v0.29.0

type MonitoringSubscription struct {

	// A subscription configuration for additional CloudWatch metrics.
	RealtimeMetricsSubscriptionConfig *RealtimeMetricsSubscriptionConfig
}

A monitoring subscription. This structure contains information about whether additional CloudWatch metrics are enabled for a given CloudFront distribution.

type NoSuchCachePolicy

type NoSuchCachePolicy struct {
	Message *string
}

The cache policy does not exist.

func (*NoSuchCachePolicy) Error

func (e *NoSuchCachePolicy) Error() string

func (*NoSuchCachePolicy) ErrorCode

func (e *NoSuchCachePolicy) ErrorCode() string

func (*NoSuchCachePolicy) ErrorFault

func (e *NoSuchCachePolicy) ErrorFault() smithy.ErrorFault

func (*NoSuchCachePolicy) ErrorMessage

func (e *NoSuchCachePolicy) ErrorMessage() string

type NoSuchCloudFrontOriginAccessIdentity

type NoSuchCloudFrontOriginAccessIdentity struct {
	Message *string
}

The specified origin access identity does not exist.

func (*NoSuchCloudFrontOriginAccessIdentity) Error

func (*NoSuchCloudFrontOriginAccessIdentity) ErrorCode

func (*NoSuchCloudFrontOriginAccessIdentity) ErrorFault

func (*NoSuchCloudFrontOriginAccessIdentity) ErrorMessage

func (e *NoSuchCloudFrontOriginAccessIdentity) ErrorMessage() string

type NoSuchDistribution

type NoSuchDistribution struct {
	Message *string
}

The specified distribution does not exist.

func (*NoSuchDistribution) Error

func (e *NoSuchDistribution) Error() string

func (*NoSuchDistribution) ErrorCode

func (e *NoSuchDistribution) ErrorCode() string

func (*NoSuchDistribution) ErrorFault

func (e *NoSuchDistribution) ErrorFault() smithy.ErrorFault

func (*NoSuchDistribution) ErrorMessage

func (e *NoSuchDistribution) ErrorMessage() string

type NoSuchFieldLevelEncryptionConfig

type NoSuchFieldLevelEncryptionConfig struct {
	Message *string
}

The specified configuration for field-level encryption doesn't exist.

func (*NoSuchFieldLevelEncryptionConfig) Error

func (*NoSuchFieldLevelEncryptionConfig) ErrorCode

func (*NoSuchFieldLevelEncryptionConfig) ErrorFault

func (*NoSuchFieldLevelEncryptionConfig) ErrorMessage

func (e *NoSuchFieldLevelEncryptionConfig) ErrorMessage() string

type NoSuchFieldLevelEncryptionProfile

type NoSuchFieldLevelEncryptionProfile struct {
	Message *string
}

The specified profile for field-level encryption doesn't exist.

func (*NoSuchFieldLevelEncryptionProfile) Error

func (*NoSuchFieldLevelEncryptionProfile) ErrorCode

func (*NoSuchFieldLevelEncryptionProfile) ErrorFault

func (*NoSuchFieldLevelEncryptionProfile) ErrorMessage

func (e *NoSuchFieldLevelEncryptionProfile) ErrorMessage() string

type NoSuchInvalidation

type NoSuchInvalidation struct {
	Message *string
}

The specified invalidation does not exist.

func (*NoSuchInvalidation) Error

func (e *NoSuchInvalidation) Error() string

func (*NoSuchInvalidation) ErrorCode

func (e *NoSuchInvalidation) ErrorCode() string

func (*NoSuchInvalidation) ErrorFault

func (e *NoSuchInvalidation) ErrorFault() smithy.ErrorFault

func (*NoSuchInvalidation) ErrorMessage

func (e *NoSuchInvalidation) ErrorMessage() string

type NoSuchOrigin

type NoSuchOrigin struct {
	Message *string
}

No origin exists with the specified Origin Id.

func (*NoSuchOrigin) Error

func (e *NoSuchOrigin) Error() string

func (*NoSuchOrigin) ErrorCode

func (e *NoSuchOrigin) ErrorCode() string

func (*NoSuchOrigin) ErrorFault

func (e *NoSuchOrigin) ErrorFault() smithy.ErrorFault

func (*NoSuchOrigin) ErrorMessage

func (e *NoSuchOrigin) ErrorMessage() string

type NoSuchOriginRequestPolicy

type NoSuchOriginRequestPolicy struct {
	Message *string
}

The origin request policy does not exist.

func (*NoSuchOriginRequestPolicy) Error

func (e *NoSuchOriginRequestPolicy) Error() string

func (*NoSuchOriginRequestPolicy) ErrorCode

func (e *NoSuchOriginRequestPolicy) ErrorCode() string

func (*NoSuchOriginRequestPolicy) ErrorFault

func (*NoSuchOriginRequestPolicy) ErrorMessage

func (e *NoSuchOriginRequestPolicy) ErrorMessage() string

type NoSuchPublicKey

type NoSuchPublicKey struct {
	Message *string
}

The specified public key doesn't exist.

func (*NoSuchPublicKey) Error

func (e *NoSuchPublicKey) Error() string

func (*NoSuchPublicKey) ErrorCode

func (e *NoSuchPublicKey) ErrorCode() string

func (*NoSuchPublicKey) ErrorFault

func (e *NoSuchPublicKey) ErrorFault() smithy.ErrorFault

func (*NoSuchPublicKey) ErrorMessage

func (e *NoSuchPublicKey) ErrorMessage() string

type NoSuchRealtimeLogConfig added in v0.29.0

type NoSuchRealtimeLogConfig struct {
	Message *string
}

The real-time log configuration does not exist.

func (*NoSuchRealtimeLogConfig) Error added in v0.29.0

func (e *NoSuchRealtimeLogConfig) Error() string

func (*NoSuchRealtimeLogConfig) ErrorCode added in v0.29.0

func (e *NoSuchRealtimeLogConfig) ErrorCode() string

func (*NoSuchRealtimeLogConfig) ErrorFault added in v0.29.0

func (e *NoSuchRealtimeLogConfig) ErrorFault() smithy.ErrorFault

func (*NoSuchRealtimeLogConfig) ErrorMessage added in v0.29.0

func (e *NoSuchRealtimeLogConfig) ErrorMessage() string

type NoSuchResource

type NoSuchResource struct {
	Message *string
}

A resource that was specified is not valid.

func (*NoSuchResource) Error

func (e *NoSuchResource) Error() string

func (*NoSuchResource) ErrorCode

func (e *NoSuchResource) ErrorCode() string

func (*NoSuchResource) ErrorFault

func (e *NoSuchResource) ErrorFault() smithy.ErrorFault

func (*NoSuchResource) ErrorMessage

func (e *NoSuchResource) ErrorMessage() string

type NoSuchStreamingDistribution

type NoSuchStreamingDistribution struct {
	Message *string
}

The specified streaming distribution does not exist.

func (*NoSuchStreamingDistribution) Error

func (*NoSuchStreamingDistribution) ErrorCode

func (e *NoSuchStreamingDistribution) ErrorCode() string

func (*NoSuchStreamingDistribution) ErrorFault

func (*NoSuchStreamingDistribution) ErrorMessage

func (e *NoSuchStreamingDistribution) ErrorMessage() string

type Origin

type Origin struct {

	// The domain name for the origin. For more information, see Origin Domain Name
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesDomainName)
	// in the Amazon CloudFront Developer Guide.
	//
	// This member is required.
	DomainName *string

	// A unique identifier for the origin. This value must be unique within the
	// distribution. Use this value to specify the TargetOriginId in a CacheBehavior or
	// DefaultCacheBehavior.
	//
	// This member is required.
	Id *string

	// The number of times that CloudFront attempts to connect to the origin. The
	// minimum number is 1, the maximum is 3, and the default (if you don’t specify
	// otherwise) is 3. For a custom origin (including an Amazon S3 bucket that’s
	// configured with static website hosting), this value also specifies the number of
	// times that CloudFront attempts to get a response from the origin, in the case of
	// an Origin Response Timeout
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginResponseTimeout).
	// For more information, see Origin Connection Attempts
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#origin-connection-attempts)
	// in the Amazon CloudFront Developer Guide.
	ConnectionAttempts *int32

	// The number of seconds that CloudFront waits when trying to establish a
	// connection to the origin. The minimum timeout is 1 second, the maximum is 10
	// seconds, and the default (if you don’t specify otherwise) is 10 seconds. For
	// more information, see Origin Connection Timeout
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#origin-connection-timeout)
	// in the Amazon CloudFront Developer Guide.
	ConnectionTimeout *int32

	// A list of HTTP header names and values that CloudFront adds to the requests that
	// it sends to the origin. For more information, see Adding Custom Headers to
	// Origin Requests
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/add-origin-custom-headers.html)
	// in the Amazon CloudFront Developer Guide.
	CustomHeaders *CustomHeaders

	// Use this type to specify an origin that is not an Amazon S3 bucket, with one
	// exception. If the Amazon S3 bucket is configured with static website hosting,
	// use this type. If the Amazon S3 bucket is not configured with static website
	// hosting, use the S3OriginConfig type instead.
	CustomOriginConfig *CustomOriginConfig

	// An optional path that CloudFront appends to the origin domain name when
	// CloudFront requests content from the origin. For more information, see Origin
	// Path
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginPath)
	// in the Amazon CloudFront Developer Guide.
	OriginPath *string

	// CloudFront Origin Shield. Using Origin Shield can help reduce the load on your
	// origin. For more information, see Using Origin Shield
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html)
	// in the Amazon CloudFront Developer Guide.
	OriginShield *OriginShield

	// Use this type to specify an origin that is an Amazon S3 bucket that is not
	// configured with static website hosting. To specify any other type of origin,
	// including an Amazon S3 bucket that is configured with static website hosting,
	// use the CustomOriginConfig type instead.
	S3OriginConfig *S3OriginConfig
}

An origin. An origin is the location where content is stored, and from which CloudFront gets content to serve to viewers. To specify an origin:

* Use S3OriginConfig to specify an Amazon S3 bucket that is not configured with static website hosting.

* Use CustomOriginConfig to specify all other kinds of origins, including:

* An Amazon S3 bucket that is configured with static website hosting

* An Elastic Load Balancing load balancer

* An AWS Elemental MediaPackage endpoint

* An AWS Elemental MediaStore container

* Any other HTTP server, running on an Amazon EC2 instance or any other kind of host

For the current maximum number of origins that you can specify per distribution, see General Quotas on Web Distributions (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html#limits-web-distributions) in the Amazon CloudFront Developer Guide (quotas were formerly referred to as limits).

type OriginCustomHeader

type OriginCustomHeader struct {

	// The name of a header that you want CloudFront to send to your origin. For more
	// information, see Adding Custom Headers to Origin Requests
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/forward-custom-headers.html)
	// in the Amazon CloudFront Developer Guide.
	//
	// This member is required.
	HeaderName *string

	// The value for the header that you specified in the HeaderName field.
	//
	// This member is required.
	HeaderValue *string
}

A complex type that contains HeaderName and HeaderValue elements, if any, for this distribution.

type OriginGroup

type OriginGroup struct {

	// A complex type that contains information about the failover criteria for an
	// origin group.
	//
	// This member is required.
	FailoverCriteria *OriginGroupFailoverCriteria

	// The origin group's ID.
	//
	// This member is required.
	Id *string

	// A complex type that contains information about the origins in an origin group.
	//
	// This member is required.
	Members *OriginGroupMembers
}

An origin group includes two origins (a primary origin and a second origin to failover to) and a failover criteria that you specify. You create an origin group to support origin failover in CloudFront. When you create or update a distribution, you can specifiy the origin group instead of a single origin, and CloudFront will failover from the primary origin to the second origin under the failover conditions that you've chosen.

type OriginGroupFailoverCriteria

type OriginGroupFailoverCriteria struct {

	// The status codes that, when returned from the primary origin, will trigger
	// CloudFront to failover to the second origin.
	//
	// This member is required.
	StatusCodes *StatusCodes
}

A complex data type that includes information about the failover criteria for an origin group, including the status codes for which CloudFront will failover from the primary origin to the second origin.

type OriginGroupMember

type OriginGroupMember struct {

	// The ID for an origin in an origin group.
	//
	// This member is required.
	OriginId *string
}

An origin in an origin group.

type OriginGroupMembers

type OriginGroupMembers struct {

	// Items (origins) in an origin group.
	//
	// This member is required.
	Items []OriginGroupMember

	// The number of origins in an origin group.
	//
	// This member is required.
	Quantity *int32
}

A complex data type for the origins included in an origin group.

type OriginGroups

type OriginGroups struct {

	// The number of origin groups.
	//
	// This member is required.
	Quantity *int32

	// The items (origin groups) in a distribution.
	Items []OriginGroup
}

A complex data type for the origin groups specified for a distribution.

type OriginProtocolPolicy

type OriginProtocolPolicy string
const (
	OriginProtocolPolicyHttpOnly    OriginProtocolPolicy = "http-only"
	OriginProtocolPolicyMatchViewer OriginProtocolPolicy = "match-viewer"
	OriginProtocolPolicyHttpsOnly   OriginProtocolPolicy = "https-only"
)

Enum values for OriginProtocolPolicy

func (OriginProtocolPolicy) Values added in v0.29.0

Values returns all known values for OriginProtocolPolicy. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type OriginRequestPolicy

type OriginRequestPolicy struct {

	// The unique identifier for the origin request policy.
	//
	// This member is required.
	Id *string

	// The date and time when the origin request policy was last modified.
	//
	// This member is required.
	LastModifiedTime *time.Time

	// The origin request policy configuration.
	//
	// This member is required.
	OriginRequestPolicyConfig *OriginRequestPolicyConfig
}

An origin request policy. When it’s attached to a cache behavior, the origin request policy determines the values that CloudFront includes in requests that it sends to the origin. Each request that CloudFront sends to the origin includes the following:

* The request body and the URL path (without the domain name) from the viewer request.

* The headers that CloudFront automatically includes in every origin request, including Host, User-Agent, and X-Amz-Cf-Id.

* All HTTP headers, cookies, and URL query strings that are specified in the cache policy or the origin request policy. These can include items from the viewer request and, in the case of headers, additional ones that are added by CloudFront.

CloudFront sends a request when it can’t find an object in its cache that matches the request. If you want to send values to the origin and also include them in the cache key, use CachePolicy.

type OriginRequestPolicyAlreadyExists

type OriginRequestPolicyAlreadyExists struct {
	Message *string
}

An origin request policy with this name already exists. You must provide a unique name. To modify an existing origin request policy, use UpdateOriginRequestPolicy.

func (*OriginRequestPolicyAlreadyExists) Error

func (*OriginRequestPolicyAlreadyExists) ErrorCode

func (*OriginRequestPolicyAlreadyExists) ErrorFault

func (*OriginRequestPolicyAlreadyExists) ErrorMessage

func (e *OriginRequestPolicyAlreadyExists) ErrorMessage() string

type OriginRequestPolicyConfig

type OriginRequestPolicyConfig struct {

	// The cookies from viewer requests to include in origin requests.
	//
	// This member is required.
	CookiesConfig *OriginRequestPolicyCookiesConfig

	// The HTTP headers to include in origin requests. These can include headers from
	// viewer requests and additional headers added by CloudFront.
	//
	// This member is required.
	HeadersConfig *OriginRequestPolicyHeadersConfig

	// A unique name to identify the origin request policy.
	//
	// This member is required.
	Name *string

	// The URL query strings from viewer requests to include in origin requests.
	//
	// This member is required.
	QueryStringsConfig *OriginRequestPolicyQueryStringsConfig

	// A comment to describe the origin request policy.
	Comment *string
}

An origin request policy configuration. This configuration determines the values that CloudFront includes in requests that it sends to the origin. Each request that CloudFront sends to the origin includes the following:

* The request body and the URL path (without the domain name) from the viewer request.

* The headers that CloudFront automatically includes in every origin request, including Host, User-Agent, and X-Amz-Cf-Id.

* All HTTP headers, cookies, and URL query strings that are specified in the cache policy or the origin request policy. These can include items from the viewer request and, in the case of headers, additional ones that are added by CloudFront.

CloudFront sends a request when it can’t find an object in its cache that matches the request. If you want to send values to the origin and also include them in the cache key, use CachePolicy.

type OriginRequestPolicyCookieBehavior

type OriginRequestPolicyCookieBehavior string
const (
	OriginRequestPolicyCookieBehaviorNone      OriginRequestPolicyCookieBehavior = "none"
	OriginRequestPolicyCookieBehaviorWhitelist OriginRequestPolicyCookieBehavior = "whitelist"
	OriginRequestPolicyCookieBehaviorAll       OriginRequestPolicyCookieBehavior = "all"
)

Enum values for OriginRequestPolicyCookieBehavior

func (OriginRequestPolicyCookieBehavior) Values added in v0.29.0

Values returns all known values for OriginRequestPolicyCookieBehavior. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type OriginRequestPolicyCookiesConfig

type OriginRequestPolicyCookiesConfig struct {

	// Determines whether cookies in viewer requests are included in requests that
	// CloudFront sends to the origin. Valid values are:
	//
	// * none – Cookies in viewer
	// requests are not included in requests that CloudFront sends to the origin. Even
	// when this field is set to none, any cookies that are listed in a CachePolicy are
	// included in origin requests.
	//
	// * whitelist – The cookies in viewer requests that
	// are listed in the CookieNames type are included in requests that CloudFront
	// sends to the origin.
	//
	// * all – All cookies in viewer requests are included in
	// requests that CloudFront sends to the origin.
	//
	// This member is required.
	CookieBehavior OriginRequestPolicyCookieBehavior

	// Contains a list of cookie names.
	Cookies *CookieNames
}

An object that determines whether any cookies in viewer requests (and if so, which cookies) are included in requests that CloudFront sends to the origin.

type OriginRequestPolicyHeaderBehavior

type OriginRequestPolicyHeaderBehavior string
const (
	OriginRequestPolicyHeaderBehaviorNone                            OriginRequestPolicyHeaderBehavior = "none"
	OriginRequestPolicyHeaderBehaviorWhitelist                       OriginRequestPolicyHeaderBehavior = "whitelist"
	OriginRequestPolicyHeaderBehaviorAllViewer                       OriginRequestPolicyHeaderBehavior = "allViewer"
	OriginRequestPolicyHeaderBehaviorAllViewerAndWhitelistCloudFront OriginRequestPolicyHeaderBehavior = "allViewerAndWhitelistCloudFront"
)

Enum values for OriginRequestPolicyHeaderBehavior

func (OriginRequestPolicyHeaderBehavior) Values added in v0.29.0

Values returns all known values for OriginRequestPolicyHeaderBehavior. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type OriginRequestPolicyHeadersConfig

type OriginRequestPolicyHeadersConfig struct {

	// Determines whether any HTTP headers are included in requests that CloudFront
	// sends to the origin. Valid values are:
	//
	// * none – HTTP headers are not included
	// in requests that CloudFront sends to the origin. Even when this field is set to
	// none, any headers that are listed in a CachePolicy are included in origin
	// requests.
	//
	// * whitelist – The HTTP headers that are listed in the Headers type
	// are included in requests that CloudFront sends to the origin.
	//
	// * allViewer – All
	// HTTP headers in viewer requests are included in requests that CloudFront sends
	// to the origin.
	//
	// * allViewerAndWhitelistCloudFront – All HTTP headers in viewer
	// requests and the additional CloudFront headers that are listed in the Headers
	// type are included in requests that CloudFront sends to the origin. The
	// additional headers are added by CloudFront.
	//
	// This member is required.
	HeaderBehavior OriginRequestPolicyHeaderBehavior

	// Contains a list of HTTP header names.
	Headers *Headers
}

An object that determines whether any HTTP headers (and if so, which headers) are included in requests that CloudFront sends to the origin.

type OriginRequestPolicyInUse

type OriginRequestPolicyInUse struct {
	Message *string
}

Cannot delete the origin request policy because it is attached to one or more cache behaviors.

func (*OriginRequestPolicyInUse) Error

func (e *OriginRequestPolicyInUse) Error() string

func (*OriginRequestPolicyInUse) ErrorCode

func (e *OriginRequestPolicyInUse) ErrorCode() string

func (*OriginRequestPolicyInUse) ErrorFault

func (e *OriginRequestPolicyInUse) ErrorFault() smithy.ErrorFault

func (*OriginRequestPolicyInUse) ErrorMessage

func (e *OriginRequestPolicyInUse) ErrorMessage() string

type OriginRequestPolicyList

type OriginRequestPolicyList struct {

	// The maximum number of origin request policies requested.
	//
	// This member is required.
	MaxItems *int32

	// The total number of origin request policies returned in the response.
	//
	// This member is required.
	Quantity *int32

	// Contains the origin request policies in the list.
	Items []OriginRequestPolicySummary

	// If there are more items in the list than are in this response, this element is
	// present. It contains the value that you should use in the Marker field of a
	// subsequent request to continue listing origin request policies where you left
	// off.
	NextMarker *string
}

A list of origin request policies.

type OriginRequestPolicyQueryStringBehavior

type OriginRequestPolicyQueryStringBehavior string
const (
	OriginRequestPolicyQueryStringBehaviorNone      OriginRequestPolicyQueryStringBehavior = "none"
	OriginRequestPolicyQueryStringBehaviorWhitelist OriginRequestPolicyQueryStringBehavior = "whitelist"
	OriginRequestPolicyQueryStringBehaviorAll       OriginRequestPolicyQueryStringBehavior = "all"
)

Enum values for OriginRequestPolicyQueryStringBehavior

func (OriginRequestPolicyQueryStringBehavior) Values added in v0.29.0

Values returns all known values for OriginRequestPolicyQueryStringBehavior. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type OriginRequestPolicyQueryStringsConfig

type OriginRequestPolicyQueryStringsConfig struct {

	// Determines whether any URL query strings in viewer requests are included in
	// requests that CloudFront sends to the origin. Valid values are:
	//
	// * none – Query
	// strings in viewer requests are not included in requests that CloudFront sends to
	// the origin. Even when this field is set to none, any query strings that are
	// listed in a CachePolicy are included in origin requests.
	//
	// * whitelist – The
	// query strings in viewer requests that are listed in the QueryStringNames type
	// are included in requests that CloudFront sends to the origin.
	//
	// * all – All query
	// strings in viewer requests are included in requests that CloudFront sends to the
	// origin.
	//
	// This member is required.
	QueryStringBehavior OriginRequestPolicyQueryStringBehavior

	// Contains a list of the query strings in viewer requests that are included in
	// requests that CloudFront sends to the origin.
	QueryStrings *QueryStringNames
}

An object that determines whether any URL query strings in viewer requests (and if so, which query strings) are included in requests that CloudFront sends to the origin.

type OriginRequestPolicySummary

type OriginRequestPolicySummary struct {

	// The origin request policy.
	//
	// This member is required.
	OriginRequestPolicy *OriginRequestPolicy

	// The type of origin request policy, either managed (created by AWS) or custom
	// (created in this AWS account).
	//
	// This member is required.
	Type OriginRequestPolicyType
}

Contains an origin request policy.

type OriginRequestPolicyType

type OriginRequestPolicyType string
const (
	OriginRequestPolicyTypeManaged OriginRequestPolicyType = "managed"
	OriginRequestPolicyTypeCustom  OriginRequestPolicyType = "custom"
)

Enum values for OriginRequestPolicyType

func (OriginRequestPolicyType) Values added in v0.29.0

Values returns all known values for OriginRequestPolicyType. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type OriginShield added in v0.29.0

type OriginShield struct {

	// A flag that specifies whether Origin Shield is enabled. When it’s enabled,
	// CloudFront routes all requests through Origin Shield, which can help protect
	// your origin. When it’s disabled, CloudFront might send requests directly to your
	// origin from multiple edge locations or regional edge caches.
	//
	// This member is required.
	Enabled *bool

	// The AWS Region for Origin Shield. Specify the AWS Region that has the lowest
	// latency to your origin. To specify a region, use the region code, not the region
	// name. For example, specify the US East (Ohio) region as us-east-2. When you
	// enable CloudFront Origin Shield, you must specify the AWS Region for Origin
	// Shield. For the list of AWS Regions that you can specify, and for help choosing
	// the best Region for your origin, see Choosing the AWS Region for Origin Shield
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html#choose-origin-shield-region)
	// in the Amazon CloudFront Developer Guide.
	OriginShieldRegion *string
}

CloudFront Origin Shield. Using Origin Shield can help reduce the load on your origin. For more information, see Using Origin Shield (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide.

type OriginSslProtocols

type OriginSslProtocols struct {

	// A list that contains allowed SSL/TLS protocols for this distribution.
	//
	// This member is required.
	Items []SslProtocol

	// The number of SSL/TLS protocols that you want to allow CloudFront to use when
	// establishing an HTTPS connection with this origin.
	//
	// This member is required.
	Quantity *int32
}

A complex type that contains information about the SSL/TLS protocols that CloudFront can use when establishing an HTTPS connection with your origin.

type Origins

type Origins struct {

	// A list of origins.
	//
	// This member is required.
	Items []Origin

	// The number of origins for this distribution.
	//
	// This member is required.
	Quantity *int32
}

Contains information about the origins for this distribution.

type ParametersInCacheKeyAndForwardedToOrigin

type ParametersInCacheKeyAndForwardedToOrigin struct {

	// An object that determines whether any cookies in viewer requests (and if so,
	// which cookies) are included in the cache key and automatically included in
	// requests that CloudFront sends to the origin.
	//
	// This member is required.
	CookiesConfig *CachePolicyCookiesConfig

	// A flag that can affect whether the Accept-Encoding HTTP header is included in
	// the cache key and included in requests that CloudFront sends to the origin. This
	// field is related to the EnableAcceptEncodingBrotli field. If one or both of
	// these fields is true and the viewer request includes the Accept-Encoding header,
	// then CloudFront does the following:
	//
	// * Normalizes the value of the viewer’s
	// Accept-Encoding header
	//
	// * Includes the normalized header in the cache key
	//
	// *
	// Includes the normalized header in the request to the origin, if a request is
	// necessary
	//
	// For more information, see Compression support
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-policy-compressed-objects)
	// in the Amazon CloudFront Developer Guide. If you set this value to true, and
	// this cache behavior also has an origin request policy attached, do not include
	// the Accept-Encoding header in the origin request policy. CloudFront always
	// includes the Accept-Encoding header in origin requests when the value of this
	// field is true, so including this header in an origin request policy has no
	// effect. If both of these fields are false, then CloudFront treats the
	// Accept-Encoding header the same as any other HTTP header in the viewer request.
	// By default, it’s not included in the cache key and it’s not included in origin
	// requests. In this case, you can manually add Accept-Encoding to the headers
	// whitelist like any other HTTP header.
	//
	// This member is required.
	EnableAcceptEncodingGzip *bool

	// An object that determines whether any HTTP headers (and if so, which headers)
	// are included in the cache key and automatically included in requests that
	// CloudFront sends to the origin.
	//
	// This member is required.
	HeadersConfig *CachePolicyHeadersConfig

	// An object that determines whether any URL query strings in viewer requests (and
	// if so, which query strings) are included in the cache key and automatically
	// included in requests that CloudFront sends to the origin.
	//
	// This member is required.
	QueryStringsConfig *CachePolicyQueryStringsConfig

	// A flag that can affect whether the Accept-Encoding HTTP header is included in
	// the cache key and included in requests that CloudFront sends to the origin. This
	// field is related to the EnableAcceptEncodingGzip field. If one or both of these
	// fields is true and the viewer request includes the Accept-Encoding header, then
	// CloudFront does the following:
	//
	// * Normalizes the value of the viewer’s
	// Accept-Encoding header
	//
	// * Includes the normalized header in the cache key
	//
	// *
	// Includes the normalized header in the request to the origin, if a request is
	// necessary
	//
	// For more information, see Compression support
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-policy-compressed-objects)
	// in the Amazon CloudFront Developer Guide. If you set this value to true, and
	// this cache behavior also has an origin request policy attached, do not include
	// the Accept-Encoding header in the origin request policy. CloudFront always
	// includes the Accept-Encoding header in origin requests when the value of this
	// field is true, so including this header in an origin request policy has no
	// effect. If both of these fields are false, then CloudFront treats the
	// Accept-Encoding header the same as any other HTTP header in the viewer request.
	// By default, it’s not included in the cache key and it’s not included in origin
	// requests. In this case, you can manually add Accept-Encoding to the headers
	// whitelist like any other HTTP header.
	EnableAcceptEncodingBrotli *bool
}

This object determines the values that CloudFront includes in the cache key. These values can include HTTP headers, cookies, and URL query strings. CloudFront uses the cache key to find an object in its cache that it can return to the viewer. The headers, cookies, and query strings that are included in the cache key are automatically included in requests that CloudFront sends to the origin. CloudFront sends a request when it can’t find an object in its cache that matches the request’s cache key. If you want to send values to the origin but not include them in the cache key, use OriginRequestPolicy.

type Paths

type Paths struct {

	// The number of invalidation paths specified for the objects that you want to
	// invalidate.
	//
	// This member is required.
	Quantity *int32

	// A complex type that contains a list of the paths that you want to invalidate.
	Items []string
}

A complex type that contains information about the objects that you want to invalidate. For more information, see Specifying the Objects to Invalidate (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html#invalidation-specifying-objects) in the Amazon CloudFront Developer Guide.

type PreconditionFailed

type PreconditionFailed struct {
	Message *string
}

The precondition given in one or more of the request header fields evaluated to false.

func (*PreconditionFailed) Error

func (e *PreconditionFailed) Error() string

func (*PreconditionFailed) ErrorCode

func (e *PreconditionFailed) ErrorCode() string

func (*PreconditionFailed) ErrorFault

func (e *PreconditionFailed) ErrorFault() smithy.ErrorFault

func (*PreconditionFailed) ErrorMessage

func (e *PreconditionFailed) ErrorMessage() string

type PriceClass

type PriceClass string
const (
	PriceClassPriceClass100 PriceClass = "PriceClass_100"
	PriceClassPriceClass200 PriceClass = "PriceClass_200"
	PriceClassPriceClassAll PriceClass = "PriceClass_All"
)

Enum values for PriceClass

func (PriceClass) Values added in v0.29.0

func (PriceClass) Values() []PriceClass

Values returns all known values for PriceClass. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type PublicKey

type PublicKey struct {

	// The date and time when the public key was uploaded.
	//
	// This member is required.
	CreatedTime *time.Time

	// The identifier of the public key.
	//
	// This member is required.
	Id *string

	// Configuration information about a public key that you can use with signed URLs
	// and signed cookies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html),
	// or with field-level encryption
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/field-level-encryption.html).
	//
	// This member is required.
	PublicKeyConfig *PublicKeyConfig
}

A public key that you can use with signed URLs and signed cookies (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html), or with field-level encryption (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/field-level-encryption.html).

type PublicKeyAlreadyExists

type PublicKeyAlreadyExists struct {
	Message *string
}

The specified public key already exists.

func (*PublicKeyAlreadyExists) Error

func (e *PublicKeyAlreadyExists) Error() string

func (*PublicKeyAlreadyExists) ErrorCode

func (e *PublicKeyAlreadyExists) ErrorCode() string

func (*PublicKeyAlreadyExists) ErrorFault

func (e *PublicKeyAlreadyExists) ErrorFault() smithy.ErrorFault

func (*PublicKeyAlreadyExists) ErrorMessage

func (e *PublicKeyAlreadyExists) ErrorMessage() string

type PublicKeyConfig

type PublicKeyConfig struct {

	// A string included in the request to help make sure that the request can’t be
	// replayed.
	//
	// This member is required.
	CallerReference *string

	// The public key that you can use with signed URLs and signed cookies
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html),
	// or with field-level encryption
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/field-level-encryption.html).
	//
	// This member is required.
	EncodedKey *string

	// A name to help identify the public key.
	//
	// This member is required.
	Name *string

	// A comment to describe the public key.
	Comment *string
}

Configuration information about a public key that you can use with signed URLs and signed cookies (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html), or with field-level encryption (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/field-level-encryption.html).

type PublicKeyInUse

type PublicKeyInUse struct {
	Message *string
}

The specified public key is in use.

func (*PublicKeyInUse) Error

func (e *PublicKeyInUse) Error() string

func (*PublicKeyInUse) ErrorCode

func (e *PublicKeyInUse) ErrorCode() string

func (*PublicKeyInUse) ErrorFault

func (e *PublicKeyInUse) ErrorFault() smithy.ErrorFault

func (*PublicKeyInUse) ErrorMessage

func (e *PublicKeyInUse) ErrorMessage() string

type PublicKeyList

type PublicKeyList struct {

	// The maximum number of public keys you want in the response.
	//
	// This member is required.
	MaxItems *int32

	// The number of public keys in the list.
	//
	// This member is required.
	Quantity *int32

	// A list of public keys.
	Items []PublicKeySummary

	// If there are more elements to be listed, this element is present and contains
	// the value that you can use for the Marker request parameter to continue listing
	// your public keys where you left off.
	NextMarker *string
}

A list of public keys that you can use with signed URLs and signed cookies (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html), or with field-level encryption (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/field-level-encryption.html).

type PublicKeySummary

type PublicKeySummary struct {

	// The date and time when the public key was uploaded.
	//
	// This member is required.
	CreatedTime *time.Time

	// The public key.
	//
	// This member is required.
	EncodedKey *string

	// The identifier of the public key.
	//
	// This member is required.
	Id *string

	// A name to help identify the public key.
	//
	// This member is required.
	Name *string

	// A comment to describe the public key.
	Comment *string
}

Contains information about a public key.

type QueryArgProfile

type QueryArgProfile struct {

	// ID of profile to use for field-level encryption query argument-profile mapping
	//
	// This member is required.
	ProfileId *string

	// Query argument for field-level encryption query argument-profile mapping.
	//
	// This member is required.
	QueryArg *string
}

Query argument-profile mapping for field-level encryption.

type QueryArgProfileConfig

type QueryArgProfileConfig struct {

	// Flag to set if you want a request to be forwarded to the origin even if the
	// profile specified by the field-level encryption query argument, fle-profile, is
	// unknown.
	//
	// This member is required.
	ForwardWhenQueryArgProfileIsUnknown *bool

	// Profiles specified for query argument-profile mapping for field-level
	// encryption.
	QueryArgProfiles *QueryArgProfiles
}

Configuration for query argument-profile mapping for field-level encryption.

type QueryArgProfileEmpty

type QueryArgProfileEmpty struct {
	Message *string
}

No profile specified for the field-level encryption query argument.

func (*QueryArgProfileEmpty) Error

func (e *QueryArgProfileEmpty) Error() string

func (*QueryArgProfileEmpty) ErrorCode

func (e *QueryArgProfileEmpty) ErrorCode() string

func (*QueryArgProfileEmpty) ErrorFault

func (e *QueryArgProfileEmpty) ErrorFault() smithy.ErrorFault

func (*QueryArgProfileEmpty) ErrorMessage

func (e *QueryArgProfileEmpty) ErrorMessage() string

type QueryArgProfiles

type QueryArgProfiles struct {

	// Number of profiles for query argument-profile mapping for field-level
	// encryption.
	//
	// This member is required.
	Quantity *int32

	// Number of items for query argument-profile mapping for field-level encryption.
	Items []QueryArgProfile
}

Query argument-profile mapping for field-level encryption.

type QueryStringCacheKeys

type QueryStringCacheKeys struct {

	// The number of whitelisted query string parameters for a cache behavior.
	//
	// This member is required.
	Quantity *int32

	// A list that contains the query string parameters that you want CloudFront to use
	// as a basis for caching for a cache behavior. If Quantity is 0, you can omit
	// Items.
	Items []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 query strings in the cache key, use QueryStringsConfig in a cache policy. See CachePolicy. If you want to send query strings to the origin but not include them in the cache key, use QueryStringsConfig in an origin request policy. See OriginRequestPolicy. A complex type that contains information about the query string parameters that you want CloudFront to use for caching for a cache behavior.

type QueryStringNames

type QueryStringNames struct {

	// The number of query string names in the Items list.
	//
	// This member is required.
	Quantity *int32

	// A list of query string names.
	Items []string
}

Contains a list of query string names.

type RealtimeLogConfig added in v0.29.0

type RealtimeLogConfig struct {

	// The Amazon Resource Name (ARN) of this real-time log configuration.
	//
	// This member is required.
	ARN *string

	// Contains information about the Amazon Kinesis data stream where you are sending
	// real-time log data for this real-time log configuration.
	//
	// This member is required.
	EndPoints []EndPoint

	// A list of fields that are included in each real-time log record. In an API
	// response, the fields are provided in the same order in which they are sent to
	// the Amazon Kinesis data stream. For more information about fields, see Real-time
	// log configuration fields
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html#understand-real-time-log-config-fields)
	// in the Amazon CloudFront Developer Guide.
	//
	// This member is required.
	Fields []string

	// The unique name of this real-time log configuration.
	//
	// This member is required.
	Name *string

	// The sampling rate for this real-time log configuration. The sampling rate
	// determines the percentage of viewer requests that are represented in the
	// real-time log data. The sampling rate is an integer between 1 and 100,
	// inclusive.
	//
	// This member is required.
	SamplingRate *int64
}

A real-time log configuration.

type RealtimeLogConfigAlreadyExists added in v0.29.0

type RealtimeLogConfigAlreadyExists struct {
	Message *string
}

A real-time log configuration with this name already exists. You must provide a unique name. To modify an existing real-time log configuration, use UpdateRealtimeLogConfig.

func (*RealtimeLogConfigAlreadyExists) Error added in v0.29.0

func (*RealtimeLogConfigAlreadyExists) ErrorCode added in v0.29.0

func (e *RealtimeLogConfigAlreadyExists) ErrorCode() string

func (*RealtimeLogConfigAlreadyExists) ErrorFault added in v0.29.0

func (*RealtimeLogConfigAlreadyExists) ErrorMessage added in v0.29.0

func (e *RealtimeLogConfigAlreadyExists) ErrorMessage() string

type RealtimeLogConfigInUse added in v0.29.0

type RealtimeLogConfigInUse struct {
	Message *string
}

Cannot delete the real-time log configuration because it is attached to one or more cache behaviors.

func (*RealtimeLogConfigInUse) Error added in v0.29.0

func (e *RealtimeLogConfigInUse) Error() string

func (*RealtimeLogConfigInUse) ErrorCode added in v0.29.0

func (e *RealtimeLogConfigInUse) ErrorCode() string

func (*RealtimeLogConfigInUse) ErrorFault added in v0.29.0

func (e *RealtimeLogConfigInUse) ErrorFault() smithy.ErrorFault

func (*RealtimeLogConfigInUse) ErrorMessage added in v0.29.0

func (e *RealtimeLogConfigInUse) ErrorMessage() string

type RealtimeLogConfigs added in v0.29.0

type RealtimeLogConfigs struct {

	// A flag that indicates whether there are more real-time log configurations than
	// are contained in this list.
	//
	// This member is required.
	IsTruncated *bool

	// This parameter indicates where this list of real-time log configurations begins.
	// This list includes real-time log configurations that occur after the marker.
	//
	// This member is required.
	Marker *string

	// The maximum number of real-time log configurations requested.
	//
	// This member is required.
	MaxItems *int32

	// Contains the list of real-time log configurations.
	Items []RealtimeLogConfig

	// If there are more items in the list than are in this response, this element is
	// present. It contains the value that you should use in the Marker field of a
	// subsequent request to continue listing real-time log configurations where you
	// left off.
	NextMarker *string
}

A list of real-time log configurations.

type RealtimeMetricsSubscriptionConfig added in v0.29.0

type RealtimeMetricsSubscriptionConfig struct {

	// A flag that indicates whether additional CloudWatch metrics are enabled for a
	// given CloudFront distribution.
	//
	// This member is required.
	RealtimeMetricsSubscriptionStatus RealtimeMetricsSubscriptionStatus
}

A subscription configuration for additional CloudWatch metrics.

type RealtimeMetricsSubscriptionStatus added in v0.29.0

type RealtimeMetricsSubscriptionStatus string
const (
	RealtimeMetricsSubscriptionStatusEnabled  RealtimeMetricsSubscriptionStatus = "Enabled"
	RealtimeMetricsSubscriptionStatusDisabled RealtimeMetricsSubscriptionStatus = "Disabled"
)

Enum values for RealtimeMetricsSubscriptionStatus

func (RealtimeMetricsSubscriptionStatus) Values added in v0.29.0

Values returns all known values for RealtimeMetricsSubscriptionStatus. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type ResourceInUse added in v0.29.0

type ResourceInUse struct {
	Message *string
}

Cannot delete this resource because it is in use.

func (*ResourceInUse) Error added in v0.29.0

func (e *ResourceInUse) Error() string

func (*ResourceInUse) ErrorCode added in v0.29.0

func (e *ResourceInUse) ErrorCode() string

func (*ResourceInUse) ErrorFault added in v0.29.0

func (e *ResourceInUse) ErrorFault() smithy.ErrorFault

func (*ResourceInUse) ErrorMessage added in v0.29.0

func (e *ResourceInUse) ErrorMessage() string

type Restrictions

type Restrictions struct {

	// A complex type that controls the countries in which your content is distributed.
	// CloudFront determines the location of your users using MaxMind GeoIP databases.
	//
	// This member is required.
	GeoRestriction *GeoRestriction
}

A complex type that identifies ways in which you want to restrict distribution of your content.

type S3Origin

type S3Origin struct {

	// The DNS name of the Amazon S3 origin.
	//
	// This member is required.
	DomainName *string

	// The CloudFront origin access identity to associate with the distribution. Use an
	// origin access identity to configure the distribution so that end users can only
	// access objects in an Amazon S3 bucket through CloudFront. If you want end users
	// to be able to access objects using either the CloudFront URL or the Amazon S3
	// URL, specify an empty OriginAccessIdentity element. To delete the origin access
	// identity from an existing distribution, update the distribution configuration
	// and include an empty OriginAccessIdentity element. To replace the origin access
	// identity, update the distribution configuration and specify the new origin
	// access identity. For more information, see Using an Origin Access Identity to
	// Restrict Access to Your Amazon S3 Content
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html)
	// in the Amazon CloudFront Developer Guide.
	//
	// This member is required.
	OriginAccessIdentity *string
}

A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.

type S3OriginConfig

type S3OriginConfig struct {

	// The CloudFront origin access identity to associate with the origin. Use an
	// origin access identity to configure the origin so that viewers can only access
	// objects in an Amazon S3 bucket through CloudFront. The format of the value is:
	// origin-access-identity/cloudfront/ID-of-origin-access-identity where
	// ID-of-origin-access-identity  is the value that CloudFront returned in the ID
	// element when you created the origin access identity. If you want viewers to be
	// able to access objects using either the CloudFront URL or the Amazon S3 URL,
	// specify an empty OriginAccessIdentity element. To delete the origin access
	// identity from an existing distribution, update the distribution configuration
	// and include an empty OriginAccessIdentity element. To replace the origin access
	// identity, update the distribution configuration and specify the new origin
	// access identity. For more information about the origin access identity, see
	// Serving Private Content through CloudFront
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html)
	// in the Amazon CloudFront Developer Guide.
	//
	// This member is required.
	OriginAccessIdentity *string
}

A complex type that contains information about the Amazon S3 origin. If the origin is a custom origin or an S3 bucket that is configured as a website endpoint, use the CustomOriginConfig element instead.

type SSLSupportMethod

type SSLSupportMethod string
const (
	SSLSupportMethodSniOnly  SSLSupportMethod = "sni-only"
	SSLSupportMethodVip      SSLSupportMethod = "vip"
	SSLSupportMethodStaticIp SSLSupportMethod = "static-ip"
)

Enum values for SSLSupportMethod

func (SSLSupportMethod) Values added in v0.29.0

Values returns all known values for SSLSupportMethod. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type Signer

type Signer struct {

	// An AWS account number that contains active CloudFront key pairs that CloudFront
	// can use to verify the signatures of signed URLs and signed cookies. If the AWS
	// account that owns the key pairs is the same account that owns the CloudFront
	// distribution, the value of this field is self.
	AwsAccountNumber *string

	// A list of CloudFront key pair identifiers.
	KeyPairIds *KeyPairIds
}

A list of AWS accounts and the active CloudFront key pairs in each account that CloudFront can use to verify the signatures of signed URLs and signed cookies.

type SslProtocol

type SslProtocol string
const (
	SslProtocolSSLv3  SslProtocol = "SSLv3"
	SslProtocolTLSv1  SslProtocol = "TLSv1"
	SslProtocolTLSv11 SslProtocol = "TLSv1.1"
	SslProtocolTLSv12 SslProtocol = "TLSv1.2"
)

Enum values for SslProtocol

func (SslProtocol) Values added in v0.29.0

func (SslProtocol) Values() []SslProtocol

Values returns all known values for SslProtocol. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type StatusCodes

type StatusCodes struct {

	// The items (status codes) for an origin group.
	//
	// This member is required.
	Items []int32

	// The number of status codes.
	//
	// This member is required.
	Quantity *int32
}

A complex data type for the status codes that you specify that, when returned by a primary origin, trigger CloudFront to failover to a second origin.

type StreamingDistribution

type StreamingDistribution struct {

	// The ARN (Amazon Resource Name) for the distribution. For example:
	// arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where
	// 123456789012 is your AWS account ID.
	//
	// This member is required.
	ARN *string

	// 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.
	//
	// This member is required.
	ActiveTrustedSigners *ActiveTrustedSigners

	// The domain name that corresponds to the streaming distribution, for example,
	// s5c39gqb8ow64r.cloudfront.net.
	//
	// This member is required.
	DomainName *string

	// The identifier for the RTMP distribution. For example: EGTXBD79EXAMPLE.
	//
	// This member is required.
	Id *string

	// The current status of the RTMP distribution. When the status is Deployed, the
	// distribution's information is propagated to all CloudFront edge locations.
	//
	// This member is required.
	Status *string

	// The current configuration information for the RTMP distribution.
	//
	// This member is required.
	StreamingDistributionConfig *StreamingDistributionConfig

	// The date and time that the distribution was last modified.
	LastModifiedTime *time.Time
}

A streaming distribution tells CloudFront where you want RTMP content to be delivered from, and the details about how to track and manage content delivery.

type StreamingDistributionAlreadyExists

type StreamingDistributionAlreadyExists struct {
	Message *string
}

The caller reference you attempted to create the streaming distribution with is associated with another distribution

func (*StreamingDistributionAlreadyExists) Error

func (*StreamingDistributionAlreadyExists) ErrorCode

func (*StreamingDistributionAlreadyExists) ErrorFault

func (*StreamingDistributionAlreadyExists) ErrorMessage

func (e *StreamingDistributionAlreadyExists) ErrorMessage() string

type StreamingDistributionConfig

type StreamingDistributionConfig struct {

	// A unique value (for example, a date-time stamp) that ensures that the request
	// can't be replayed. If the value of CallerReference is new (regardless of the
	// content of the StreamingDistributionConfig object), CloudFront creates a new
	// distribution. If CallerReference is a value that you already sent in a previous
	// request to create a distribution, CloudFront returns a DistributionAlreadyExists
	// error.
	//
	// This member is required.
	CallerReference *string

	// Any comments you want to include about the streaming distribution.
	//
	// This member is required.
	Comment *string

	// Whether the streaming distribution is enabled to accept user requests for
	// content.
	//
	// This member is required.
	Enabled *bool

	// A complex type that contains information about the Amazon S3 bucket from which
	// you want CloudFront to get your media files for distribution.
	//
	// This member is required.
	S3Origin *S3Origin

	// A complex type that specifies any AWS accounts that you want to permit to create
	// signed URLs for private content. If you want the distribution to use signed
	// URLs, include this element; if you want the distribution to use public URLs,
	// remove this element. 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.
	//
	// This member is required.
	TrustedSigners *TrustedSigners

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

	// A complex type that controls whether access logs are written for the streaming
	// distribution.
	Logging *StreamingLoggingConfig

	// A complex type that contains information about price class for this streaming
	// distribution.
	PriceClass PriceClass
}

The RTMP distribution's configuration information.

type StreamingDistributionConfigWithTags

type StreamingDistributionConfigWithTags struct {

	// A streaming distribution Configuration.
	//
	// This member is required.
	StreamingDistributionConfig *StreamingDistributionConfig

	// A complex type that contains zero or more Tag elements.
	//
	// This member is required.
	Tags *Tags
}

A streaming distribution Configuration and a list of tags to be associated with the streaming distribution.

type StreamingDistributionList

type StreamingDistributionList struct {

	// A flag that indicates whether more streaming distributions remain to be listed.
	// If your results were truncated, you can make a follow-up pagination request
	// using the Marker request parameter to retrieve more distributions in the list.
	//
	// This member is required.
	IsTruncated *bool

	// The value you provided for the Marker request parameter.
	//
	// This member is required.
	Marker *string

	// The value you provided for the MaxItems request parameter.
	//
	// This member is required.
	MaxItems *int32

	// The number of streaming distributions that were created by the current AWS
	// account.
	//
	// This member is required.
	Quantity *int32

	// A complex type that contains one StreamingDistributionSummary element for each
	// distribution that was created by the current AWS account.
	Items []StreamingDistributionSummary

	// If IsTruncated is true, this element is present and contains the value you can
	// use for the Marker request parameter to continue listing your RTMP distributions
	// where they left off.
	NextMarker *string
}

A streaming distribution list.

type StreamingDistributionNotDisabled

type StreamingDistributionNotDisabled struct {
	Message *string
}

The specified CloudFront distribution is not disabled. You must disable the distribution before you can delete it.

func (*StreamingDistributionNotDisabled) Error

func (*StreamingDistributionNotDisabled) ErrorCode

func (*StreamingDistributionNotDisabled) ErrorFault

func (*StreamingDistributionNotDisabled) ErrorMessage

func (e *StreamingDistributionNotDisabled) ErrorMessage() string

type StreamingDistributionSummary

type StreamingDistributionSummary struct {

	// The ARN (Amazon Resource Name) for the streaming distribution. For example:
	// arn:aws:cloudfront::123456789012:streaming-distribution/EDFDVBD632BHDS5, where
	// 123456789012 is your AWS account ID.
	//
	// This member is required.
	ARN *string

	// A complex type that contains information about CNAMEs (alternate domain names),
	// if any, for this streaming distribution.
	//
	// This member is required.
	Aliases *Aliases

	// The comment originally specified when this distribution was created.
	//
	// This member is required.
	Comment *string

	// The domain name corresponding to the distribution, for example,
	// d111111abcdef8.cloudfront.net.
	//
	// This member is required.
	DomainName *string

	// Whether the distribution is enabled to accept end user requests for content.
	//
	// This member is required.
	Enabled *bool

	// The identifier for the distribution, for example, EDFDVBD632BHDS5.
	//
	// This member is required.
	Id *string

	// The date and time the distribution was last modified.
	//
	// This member is required.
	LastModifiedTime *time.Time

	// A complex type that contains information about price class for this streaming
	// distribution.
	//
	// This member is required.
	PriceClass PriceClass

	// A complex type that contains information about the Amazon S3 bucket from which
	// you want CloudFront to get your media files for distribution.
	//
	// This member is required.
	S3Origin *S3Origin

	// Indicates the current status of the distribution. When the status is Deployed,
	// the distribution's information is fully propagated throughout the Amazon
	// CloudFront system.
	//
	// This member is required.
	Status *string

	// A complex type that specifies the AWS accounts, if any, that you want to allow
	// to create signed URLs for private content. If you want to require signed URLs in
	// requests for objects in the target origin that match the PathPattern for this
	// cache behavior, specify true for Enabled, and specify the applicable values for
	// Quantity and Items.If you don't want to require signed URLs in requests for
	// objects that match PathPattern, specify false for Enabled and 0 for Quantity.
	// Omit Items. To add, change, or remove one or more trusted signers, change
	// Enabled to true (if it's currently false), change Quantity as applicable, and
	// specify all of the trusted signers that you want to include in the updated
	// distribution. 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.
	//
	// This member is required.
	TrustedSigners *TrustedSigners
}

A summary of the information for a CloudFront streaming distribution.

type StreamingLoggingConfig

type StreamingLoggingConfig struct {

	// The Amazon S3 bucket to store the access logs in, for example,
	// myawslogbucket.s3.amazonaws.com.
	//
	// This member is required.
	Bucket *string

	// Specifies whether you want CloudFront to save access logs to an Amazon S3
	// bucket. If you don't want to enable logging when you create a streaming
	// distribution or if you want to disable logging for an existing streaming
	// distribution, specify false for Enabled, and specify empty Bucket and Prefix
	// elements. If you specify false for Enabled but you specify values for Bucket and
	// Prefix, the values are automatically deleted.
	//
	// This member is required.
	Enabled *bool

	// An optional string that you want CloudFront to prefix to the access log
	// filenames for this streaming distribution, for example, myprefix/. If you want
	// to enable logging, but you don't want to specify a prefix, you still must
	// include an empty Prefix element in the Logging element.
	//
	// This member is required.
	Prefix *string
}

A complex type that controls whether access logs are written for this streaming distribution.

type Tag

type Tag struct {

	// A string that contains Tag key. The string length should be between 1 and 128
	// characters. Valid characters include a-z, A-Z, 0-9, space, and the special
	// characters _ - . : / = + @.
	//
	// This member is required.
	Key *string

	// A string that contains an optional Tag value. The string length should be
	// between 0 and 256 characters. Valid characters include a-z, A-Z, 0-9, space, and
	// the special characters _ - . : / = + @.
	Value *string
}

A complex type that contains Tag key and Tag value.

type TagKeys

type TagKeys struct {

	// A complex type that contains Tag key elements.
	Items []string
}

A complex type that contains zero or more Tag elements.

type Tags

type Tags struct {

	// A complex type that contains Tag elements.
	Items []Tag
}

A complex type that contains zero or more Tag elements.

type TooManyCacheBehaviors

type TooManyCacheBehaviors struct {
	Message *string
}

You cannot create more cache behaviors for the distribution.

func (*TooManyCacheBehaviors) Error

func (e *TooManyCacheBehaviors) Error() string

func (*TooManyCacheBehaviors) ErrorCode

func (e *TooManyCacheBehaviors) ErrorCode() string

func (*TooManyCacheBehaviors) ErrorFault

func (e *TooManyCacheBehaviors) ErrorFault() smithy.ErrorFault

func (*TooManyCacheBehaviors) ErrorMessage

func (e *TooManyCacheBehaviors) ErrorMessage() string

type TooManyCachePolicies

type TooManyCachePolicies struct {
	Message *string
}

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.

func (*TooManyCachePolicies) Error

func (e *TooManyCachePolicies) Error() string

func (*TooManyCachePolicies) ErrorCode

func (e *TooManyCachePolicies) ErrorCode() string

func (*TooManyCachePolicies) ErrorFault

func (e *TooManyCachePolicies) ErrorFault() smithy.ErrorFault

func (*TooManyCachePolicies) ErrorMessage

func (e *TooManyCachePolicies) ErrorMessage() string

type TooManyCertificates

type TooManyCertificates struct {
	Message *string
}

You cannot create anymore custom SSL/TLS certificates.

func (*TooManyCertificates) Error

func (e *TooManyCertificates) Error() string

func (*TooManyCertificates) ErrorCode

func (e *TooManyCertificates) ErrorCode() string

func (*TooManyCertificates) ErrorFault

func (e *TooManyCertificates) ErrorFault() smithy.ErrorFault

func (*TooManyCertificates) ErrorMessage

func (e *TooManyCertificates) ErrorMessage() string

type TooManyCloudFrontOriginAccessIdentities

type TooManyCloudFrontOriginAccessIdentities struct {
	Message *string
}

Processing your request would cause you to exceed the maximum number of origin access identities allowed.

func (*TooManyCloudFrontOriginAccessIdentities) Error

func (*TooManyCloudFrontOriginAccessIdentities) ErrorCode

func (*TooManyCloudFrontOriginAccessIdentities) ErrorFault

func (*TooManyCloudFrontOriginAccessIdentities) ErrorMessage

type TooManyCookieNamesInWhiteList

type TooManyCookieNamesInWhiteList struct {
	Message *string
}

Your request contains more cookie names in the whitelist than are allowed per cache behavior.

func (*TooManyCookieNamesInWhiteList) Error

func (*TooManyCookieNamesInWhiteList) ErrorCode

func (e *TooManyCookieNamesInWhiteList) ErrorCode() string

func (*TooManyCookieNamesInWhiteList) ErrorFault

func (*TooManyCookieNamesInWhiteList) ErrorMessage

func (e *TooManyCookieNamesInWhiteList) ErrorMessage() string

type TooManyCookiesInCachePolicy

type TooManyCookiesInCachePolicy struct {
	Message *string
}

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.

func (*TooManyCookiesInCachePolicy) Error

func (*TooManyCookiesInCachePolicy) ErrorCode

func (e *TooManyCookiesInCachePolicy) ErrorCode() string

func (*TooManyCookiesInCachePolicy) ErrorFault

func (*TooManyCookiesInCachePolicy) ErrorMessage

func (e *TooManyCookiesInCachePolicy) ErrorMessage() string

type TooManyCookiesInOriginRequestPolicy

type TooManyCookiesInOriginRequestPolicy struct {
	Message *string
}

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.

func (*TooManyCookiesInOriginRequestPolicy) Error

func (*TooManyCookiesInOriginRequestPolicy) ErrorCode

func (*TooManyCookiesInOriginRequestPolicy) ErrorFault

func (*TooManyCookiesInOriginRequestPolicy) ErrorMessage

func (e *TooManyCookiesInOriginRequestPolicy) ErrorMessage() string

type TooManyDistributionCNAMEs

type TooManyDistributionCNAMEs struct {
	Message *string
}

Your request contains more CNAMEs than are allowed per distribution.

func (*TooManyDistributionCNAMEs) Error

func (e *TooManyDistributionCNAMEs) Error() string

func (*TooManyDistributionCNAMEs) ErrorCode

func (e *TooManyDistributionCNAMEs) ErrorCode() string

func (*TooManyDistributionCNAMEs) ErrorFault

func (*TooManyDistributionCNAMEs) ErrorMessage

func (e *TooManyDistributionCNAMEs) ErrorMessage() string

type TooManyDistributions

type TooManyDistributions struct {
	Message *string
}

Processing your request would cause you to exceed the maximum number of distributions allowed.

func (*TooManyDistributions) Error

func (e *TooManyDistributions) Error() string

func (*TooManyDistributions) ErrorCode

func (e *TooManyDistributions) ErrorCode() string

func (*TooManyDistributions) ErrorFault

func (e *TooManyDistributions) ErrorFault() smithy.ErrorFault

func (*TooManyDistributions) ErrorMessage

func (e *TooManyDistributions) ErrorMessage() string

type TooManyDistributionsAssociatedToCachePolicy

type TooManyDistributionsAssociatedToCachePolicy struct {
	Message *string
}

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.

func (*TooManyDistributionsAssociatedToCachePolicy) Error

func (*TooManyDistributionsAssociatedToCachePolicy) ErrorCode

func (*TooManyDistributionsAssociatedToCachePolicy) ErrorFault

func (*TooManyDistributionsAssociatedToCachePolicy) ErrorMessage

type TooManyDistributionsAssociatedToFieldLevelEncryptionConfig

type TooManyDistributionsAssociatedToFieldLevelEncryptionConfig struct {
	Message *string
}

The maximum number of distributions have been associated with the specified configuration for field-level encryption.

func (*TooManyDistributionsAssociatedToFieldLevelEncryptionConfig) Error

func (*TooManyDistributionsAssociatedToFieldLevelEncryptionConfig) ErrorCode

func (*TooManyDistributionsAssociatedToFieldLevelEncryptionConfig) ErrorFault

func (*TooManyDistributionsAssociatedToFieldLevelEncryptionConfig) ErrorMessage

type TooManyDistributionsAssociatedToKeyGroup added in v0.29.0

type TooManyDistributionsAssociatedToKeyGroup struct {
	Message *string
}

The number of distributions that reference this key group is more than the maximum allowed. 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.

func (*TooManyDistributionsAssociatedToKeyGroup) Error added in v0.29.0

func (*TooManyDistributionsAssociatedToKeyGroup) ErrorCode added in v0.29.0

func (*TooManyDistributionsAssociatedToKeyGroup) ErrorFault added in v0.29.0

func (*TooManyDistributionsAssociatedToKeyGroup) ErrorMessage added in v0.29.0

type TooManyDistributionsAssociatedToOriginRequestPolicy

type TooManyDistributionsAssociatedToOriginRequestPolicy struct {
	Message *string
}

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.

func (*TooManyDistributionsAssociatedToOriginRequestPolicy) Error

func (*TooManyDistributionsAssociatedToOriginRequestPolicy) ErrorCode

func (*TooManyDistributionsAssociatedToOriginRequestPolicy) ErrorFault

func (*TooManyDistributionsAssociatedToOriginRequestPolicy) ErrorMessage

type TooManyDistributionsWithLambdaAssociations

type TooManyDistributionsWithLambdaAssociations struct {
	Message *string
}

Processing your request would cause the maximum number of distributions with Lambda function associations per owner to be exceeded.

func (*TooManyDistributionsWithLambdaAssociations) Error

func (*TooManyDistributionsWithLambdaAssociations) ErrorCode

func (*TooManyDistributionsWithLambdaAssociations) ErrorFault

func (*TooManyDistributionsWithLambdaAssociations) ErrorMessage

type TooManyDistributionsWithSingleFunctionARN

type TooManyDistributionsWithSingleFunctionARN struct {
	Message *string
}

The maximum number of distributions have been associated with the specified Lambda function.

func (*TooManyDistributionsWithSingleFunctionARN) Error

func (*TooManyDistributionsWithSingleFunctionARN) ErrorCode

func (*TooManyDistributionsWithSingleFunctionARN) ErrorFault

func (*TooManyDistributionsWithSingleFunctionARN) ErrorMessage

type TooManyFieldLevelEncryptionConfigs

type TooManyFieldLevelEncryptionConfigs struct {
	Message *string
}

The maximum number of configurations for field-level encryption have been created.

func (*TooManyFieldLevelEncryptionConfigs) Error

func (*TooManyFieldLevelEncryptionConfigs) ErrorCode

func (*TooManyFieldLevelEncryptionConfigs) ErrorFault

func (*TooManyFieldLevelEncryptionConfigs) ErrorMessage

func (e *TooManyFieldLevelEncryptionConfigs) ErrorMessage() string

type TooManyFieldLevelEncryptionContentTypeProfiles

type TooManyFieldLevelEncryptionContentTypeProfiles struct {
	Message *string
}

The maximum number of content type profiles for field-level encryption have been created.

func (*TooManyFieldLevelEncryptionContentTypeProfiles) Error

func (*TooManyFieldLevelEncryptionContentTypeProfiles) ErrorCode

func (*TooManyFieldLevelEncryptionContentTypeProfiles) ErrorFault

func (*TooManyFieldLevelEncryptionContentTypeProfiles) ErrorMessage

type TooManyFieldLevelEncryptionEncryptionEntities

type TooManyFieldLevelEncryptionEncryptionEntities struct {
	Message *string
}

The maximum number of encryption entities for field-level encryption have been created.

func (*TooManyFieldLevelEncryptionEncryptionEntities) Error

func (*TooManyFieldLevelEncryptionEncryptionEntities) ErrorCode

func (*TooManyFieldLevelEncryptionEncryptionEntities) ErrorFault

func (*TooManyFieldLevelEncryptionEncryptionEntities) ErrorMessage

type TooManyFieldLevelEncryptionFieldPatterns

type TooManyFieldLevelEncryptionFieldPatterns struct {
	Message *string
}

The maximum number of field patterns for field-level encryption have been created.

func (*TooManyFieldLevelEncryptionFieldPatterns) Error

func (*TooManyFieldLevelEncryptionFieldPatterns) ErrorCode

func (*TooManyFieldLevelEncryptionFieldPatterns) ErrorFault

func (*TooManyFieldLevelEncryptionFieldPatterns) ErrorMessage

type TooManyFieldLevelEncryptionProfiles

type TooManyFieldLevelEncryptionProfiles struct {
	Message *string
}

The maximum number of profiles for field-level encryption have been created.

func (*TooManyFieldLevelEncryptionProfiles) Error

func (*TooManyFieldLevelEncryptionProfiles) ErrorCode

func (*TooManyFieldLevelEncryptionProfiles) ErrorFault

func (*TooManyFieldLevelEncryptionProfiles) ErrorMessage

func (e *TooManyFieldLevelEncryptionProfiles) ErrorMessage() string

type TooManyFieldLevelEncryptionQueryArgProfiles

type TooManyFieldLevelEncryptionQueryArgProfiles struct {
	Message *string
}

The maximum number of query arg profiles for field-level encryption have been created.

func (*TooManyFieldLevelEncryptionQueryArgProfiles) Error

func (*TooManyFieldLevelEncryptionQueryArgProfiles) ErrorCode

func (*TooManyFieldLevelEncryptionQueryArgProfiles) ErrorFault

func (*TooManyFieldLevelEncryptionQueryArgProfiles) ErrorMessage

type TooManyHeadersInCachePolicy

type TooManyHeadersInCachePolicy struct {
	Message *string
}

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.

func (*TooManyHeadersInCachePolicy) Error

func (*TooManyHeadersInCachePolicy) ErrorCode

func (e *TooManyHeadersInCachePolicy) ErrorCode() string

func (*TooManyHeadersInCachePolicy) ErrorFault

func (*TooManyHeadersInCachePolicy) ErrorMessage

func (e *TooManyHeadersInCachePolicy) ErrorMessage() string

type TooManyHeadersInForwardedValues

type TooManyHeadersInForwardedValues struct {
	Message *string
}

Your request contains too many headers in forwarded values.

func (*TooManyHeadersInForwardedValues) Error

func (*TooManyHeadersInForwardedValues) ErrorCode

func (e *TooManyHeadersInForwardedValues) ErrorCode() string

func (*TooManyHeadersInForwardedValues) ErrorFault

func (*TooManyHeadersInForwardedValues) ErrorMessage

func (e *TooManyHeadersInForwardedValues) ErrorMessage() string

type TooManyHeadersInOriginRequestPolicy

type TooManyHeadersInOriginRequestPolicy struct {
	Message *string
}

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.

func (*TooManyHeadersInOriginRequestPolicy) Error

func (*TooManyHeadersInOriginRequestPolicy) ErrorCode

func (*TooManyHeadersInOriginRequestPolicy) ErrorFault

func (*TooManyHeadersInOriginRequestPolicy) ErrorMessage

func (e *TooManyHeadersInOriginRequestPolicy) ErrorMessage() string

type TooManyInvalidationsInProgress

type TooManyInvalidationsInProgress struct {
	Message *string
}

You have exceeded the maximum number of allowable InProgress invalidation batch requests, or invalidation objects.

func (*TooManyInvalidationsInProgress) Error

func (*TooManyInvalidationsInProgress) ErrorCode

func (e *TooManyInvalidationsInProgress) ErrorCode() string

func (*TooManyInvalidationsInProgress) ErrorFault

func (*TooManyInvalidationsInProgress) ErrorMessage

func (e *TooManyInvalidationsInProgress) ErrorMessage() string

type TooManyKeyGroups added in v0.29.0

type TooManyKeyGroups struct {
	Message *string
}

You have reached the maximum number of key groups 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.

func (*TooManyKeyGroups) Error added in v0.29.0

func (e *TooManyKeyGroups) Error() string

func (*TooManyKeyGroups) ErrorCode added in v0.29.0

func (e *TooManyKeyGroups) ErrorCode() string

func (*TooManyKeyGroups) ErrorFault added in v0.29.0

func (e *TooManyKeyGroups) ErrorFault() smithy.ErrorFault

func (*TooManyKeyGroups) ErrorMessage added in v0.29.0

func (e *TooManyKeyGroups) ErrorMessage() string

type TooManyKeyGroupsAssociatedToDistribution added in v0.29.0

type TooManyKeyGroupsAssociatedToDistribution struct {
	Message *string
}

The number of key groups referenced by this distribution is more than the maximum allowed. 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.

func (*TooManyKeyGroupsAssociatedToDistribution) Error added in v0.29.0

func (*TooManyKeyGroupsAssociatedToDistribution) ErrorCode added in v0.29.0

func (*TooManyKeyGroupsAssociatedToDistribution) ErrorFault added in v0.29.0

func (*TooManyKeyGroupsAssociatedToDistribution) ErrorMessage added in v0.29.0

type TooManyLambdaFunctionAssociations

type TooManyLambdaFunctionAssociations struct {
	Message *string
}

Your request contains more Lambda function associations than are allowed per distribution.

func (*TooManyLambdaFunctionAssociations) Error

func (*TooManyLambdaFunctionAssociations) ErrorCode

func (*TooManyLambdaFunctionAssociations) ErrorFault

func (*TooManyLambdaFunctionAssociations) ErrorMessage

func (e *TooManyLambdaFunctionAssociations) ErrorMessage() string

type TooManyOriginCustomHeaders

type TooManyOriginCustomHeaders struct {
	Message *string
}

Your request contains too many origin custom headers.

func (*TooManyOriginCustomHeaders) Error

func (*TooManyOriginCustomHeaders) ErrorCode

func (e *TooManyOriginCustomHeaders) ErrorCode() string

func (*TooManyOriginCustomHeaders) ErrorFault

func (*TooManyOriginCustomHeaders) ErrorMessage

func (e *TooManyOriginCustomHeaders) ErrorMessage() string

type TooManyOriginGroupsPerDistribution

type TooManyOriginGroupsPerDistribution struct {
	Message *string
}

Processing your request would cause you to exceed the maximum number of origin groups allowed.

func (*TooManyOriginGroupsPerDistribution) Error

func (*TooManyOriginGroupsPerDistribution) ErrorCode

func (*TooManyOriginGroupsPerDistribution) ErrorFault

func (*TooManyOriginGroupsPerDistribution) ErrorMessage

func (e *TooManyOriginGroupsPerDistribution) ErrorMessage() string

type TooManyOriginRequestPolicies

type TooManyOriginRequestPolicies struct {
	Message *string
}

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.

func (*TooManyOriginRequestPolicies) Error

func (*TooManyOriginRequestPolicies) ErrorCode

func (e *TooManyOriginRequestPolicies) ErrorCode() string

func (*TooManyOriginRequestPolicies) ErrorFault

func (*TooManyOriginRequestPolicies) ErrorMessage

func (e *TooManyOriginRequestPolicies) ErrorMessage() string

type TooManyOrigins

type TooManyOrigins struct {
	Message *string
}

You cannot create more origins for the distribution.

func (*TooManyOrigins) Error

func (e *TooManyOrigins) Error() string

func (*TooManyOrigins) ErrorCode

func (e *TooManyOrigins) ErrorCode() string

func (*TooManyOrigins) ErrorFault

func (e *TooManyOrigins) ErrorFault() smithy.ErrorFault

func (*TooManyOrigins) ErrorMessage

func (e *TooManyOrigins) ErrorMessage() string

type TooManyPublicKeys

type TooManyPublicKeys struct {
	Message *string
}

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.

func (*TooManyPublicKeys) Error

func (e *TooManyPublicKeys) Error() string

func (*TooManyPublicKeys) ErrorCode

func (e *TooManyPublicKeys) ErrorCode() string

func (*TooManyPublicKeys) ErrorFault

func (e *TooManyPublicKeys) ErrorFault() smithy.ErrorFault

func (*TooManyPublicKeys) ErrorMessage

func (e *TooManyPublicKeys) ErrorMessage() string

type TooManyPublicKeysInKeyGroup added in v0.29.0

type TooManyPublicKeysInKeyGroup struct {
	Message *string
}

The number of public keys in this key group is more than the maximum allowed. 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.

func (*TooManyPublicKeysInKeyGroup) Error added in v0.29.0

func (*TooManyPublicKeysInKeyGroup) ErrorCode added in v0.29.0

func (e *TooManyPublicKeysInKeyGroup) ErrorCode() string

func (*TooManyPublicKeysInKeyGroup) ErrorFault added in v0.29.0

func (*TooManyPublicKeysInKeyGroup) ErrorMessage added in v0.29.0

func (e *TooManyPublicKeysInKeyGroup) ErrorMessage() string

type TooManyQueryStringParameters

type TooManyQueryStringParameters struct {
	Message *string
}

Your request contains too many query string parameters.

func (*TooManyQueryStringParameters) Error

func (*TooManyQueryStringParameters) ErrorCode

func (e *TooManyQueryStringParameters) ErrorCode() string

func (*TooManyQueryStringParameters) ErrorFault

func (*TooManyQueryStringParameters) ErrorMessage

func (e *TooManyQueryStringParameters) ErrorMessage() string

type TooManyQueryStringsInCachePolicy

type TooManyQueryStringsInCachePolicy struct {
	Message *string
}

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.

func (*TooManyQueryStringsInCachePolicy) Error

func (*TooManyQueryStringsInCachePolicy) ErrorCode

func (*TooManyQueryStringsInCachePolicy) ErrorFault

func (*TooManyQueryStringsInCachePolicy) ErrorMessage

func (e *TooManyQueryStringsInCachePolicy) ErrorMessage() string

type TooManyQueryStringsInOriginRequestPolicy

type TooManyQueryStringsInOriginRequestPolicy struct {
	Message *string
}

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.

func (*TooManyQueryStringsInOriginRequestPolicy) Error

func (*TooManyQueryStringsInOriginRequestPolicy) ErrorCode

func (*TooManyQueryStringsInOriginRequestPolicy) ErrorFault

func (*TooManyQueryStringsInOriginRequestPolicy) ErrorMessage

type TooManyRealtimeLogConfigs added in v0.29.0

type TooManyRealtimeLogConfigs struct {
	Message *string
}

You have reached the maximum number of real-time log configurations 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.

func (*TooManyRealtimeLogConfigs) Error added in v0.29.0

func (e *TooManyRealtimeLogConfigs) Error() string

func (*TooManyRealtimeLogConfigs) ErrorCode added in v0.29.0

func (e *TooManyRealtimeLogConfigs) ErrorCode() string

func (*TooManyRealtimeLogConfigs) ErrorFault added in v0.29.0

func (*TooManyRealtimeLogConfigs) ErrorMessage added in v0.29.0

func (e *TooManyRealtimeLogConfigs) ErrorMessage() string

type TooManyStreamingDistributionCNAMEs

type TooManyStreamingDistributionCNAMEs struct {
	Message *string
}

Your request contains more CNAMEs than are allowed per distribution.

func (*TooManyStreamingDistributionCNAMEs) Error

func (*TooManyStreamingDistributionCNAMEs) ErrorCode

func (*TooManyStreamingDistributionCNAMEs) ErrorFault

func (*TooManyStreamingDistributionCNAMEs) ErrorMessage

func (e *TooManyStreamingDistributionCNAMEs) ErrorMessage() string

type TooManyStreamingDistributions

type TooManyStreamingDistributions struct {
	Message *string
}

Processing your request would cause you to exceed the maximum number of streaming distributions allowed.

func (*TooManyStreamingDistributions) Error

func (*TooManyStreamingDistributions) ErrorCode

func (e *TooManyStreamingDistributions) ErrorCode() string

func (*TooManyStreamingDistributions) ErrorFault

func (*TooManyStreamingDistributions) ErrorMessage

func (e *TooManyStreamingDistributions) ErrorMessage() string

type TooManyTrustedSigners

type TooManyTrustedSigners struct {
	Message *string
}

Your request contains more trusted signers than are allowed per distribution.

func (*TooManyTrustedSigners) Error

func (e *TooManyTrustedSigners) Error() string

func (*TooManyTrustedSigners) ErrorCode

func (e *TooManyTrustedSigners) ErrorCode() string

func (*TooManyTrustedSigners) ErrorFault

func (e *TooManyTrustedSigners) ErrorFault() smithy.ErrorFault

func (*TooManyTrustedSigners) ErrorMessage

func (e *TooManyTrustedSigners) ErrorMessage() string

type TrustedKeyGroupDoesNotExist added in v0.29.0

type TrustedKeyGroupDoesNotExist struct {
	Message *string
}

The specified key group does not exist.

func (*TrustedKeyGroupDoesNotExist) Error added in v0.29.0

func (*TrustedKeyGroupDoesNotExist) ErrorCode added in v0.29.0

func (e *TrustedKeyGroupDoesNotExist) ErrorCode() string

func (*TrustedKeyGroupDoesNotExist) ErrorFault added in v0.29.0

func (*TrustedKeyGroupDoesNotExist) ErrorMessage added in v0.29.0

func (e *TrustedKeyGroupDoesNotExist) ErrorMessage() string

type TrustedKeyGroups added in v0.29.0

type TrustedKeyGroups struct {

	// This field is true if any of the key groups in the list have public keys that
	// CloudFront can use to verify the signatures of signed URLs and signed cookies.
	// If not, this field is false.
	//
	// This member is required.
	Enabled *bool

	// The number of key groups in the list.
	//
	// This member is required.
	Quantity *int32

	// A list of key groups identifiers.
	Items []string
}

A list of key groups whose public keys CloudFront can use to verify the signatures of signed URLs and signed cookies.

type TrustedSignerDoesNotExist

type TrustedSignerDoesNotExist struct {
	Message *string
}

One or more of your trusted signers don't exist.

func (*TrustedSignerDoesNotExist) Error

func (e *TrustedSignerDoesNotExist) Error() string

func (*TrustedSignerDoesNotExist) ErrorCode

func (e *TrustedSignerDoesNotExist) ErrorCode() string

func (*TrustedSignerDoesNotExist) ErrorFault

func (*TrustedSignerDoesNotExist) ErrorMessage

func (e *TrustedSignerDoesNotExist) ErrorMessage() string

type TrustedSigners

type TrustedSigners struct {

	// This field is true if any of the AWS accounts have public keys that CloudFront
	// can use to verify the signatures of signed URLs and signed cookies. If not, this
	// field is false.
	//
	// This member is required.
	Enabled *bool

	// The number of AWS accounts in the list.
	//
	// This member is required.
	Quantity *int32

	// A list of AWS account identifiers.
	Items []string
}

A list of AWS accounts whose public keys CloudFront can use to verify the signatures of signed URLs and signed cookies.

type ViewerCertificate

type ViewerCertificate struct {

	// If the distribution uses Aliases (alternate domain names or CNAMEs) and the
	// SSL/TLS certificate is stored in AWS Certificate Manager (ACM)
	// (https://docs.aws.amazon.com/acm/latest/userguide/acm-overview.html), provide
	// the Amazon Resource Name (ARN) of the ACM certificate. CloudFront only supports
	// ACM certificates in the US East (N. Virginia) Region (us-east-1). If you specify
	// an ACM certificate ARN, you must also specify values for MinimumProtocolVerison
	// and SSLSupportMethod.
	ACMCertificateArn *string

	// This field is deprecated. Use one of the following fields instead:
	//
	// *
	// ACMCertificateArn
	//
	// * IAMCertificateId
	//
	// * CloudFrontDefaultCertificate
	//
	// Deprecated: This member has been deprecated.
	Certificate *string

	// This field is deprecated. Use one of the following fields instead:
	//
	// *
	// ACMCertificateArn
	//
	// * IAMCertificateId
	//
	// * CloudFrontDefaultCertificate
	//
	// Deprecated: This member has been deprecated.
	CertificateSource CertificateSource

	// If the distribution uses the CloudFront domain name such as
	// d111111abcdef8.cloudfront.net, set this field to true. If the distribution uses
	// Aliases (alternate domain names or CNAMEs), set this field to false and specify
	// values for the following fields:
	//
	// * ACMCertificateArn or IAMCertificateId
	// (specify a value for one, not both)
	//
	// * MinimumProtocolVersion
	//
	// *
	// SSLSupportMethod
	CloudFrontDefaultCertificate *bool

	// If the distribution uses Aliases (alternate domain names or CNAMEs) and the
	// SSL/TLS certificate is stored in AWS Identity and Access Management (AWS IAM)
	// (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html),
	// provide the ID of the IAM certificate. If you specify an IAM certificate ID, you
	// must also specify values for MinimumProtocolVerison and SSLSupportMethod.
	IAMCertificateId *string

	// If the distribution uses Aliases (alternate domain names or CNAMEs), specify the
	// security policy that you want CloudFront to use for HTTPS connections with
	// viewers. The security policy determines two settings:
	//
	// * The minimum SSL/TLS
	// protocol that CloudFront can use to communicate with viewers.
	//
	// * The ciphers
	// that CloudFront can use to encrypt the content that it returns to viewers.
	//
	// For
	// more information, see Security Policy
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValues-security-policy)
	// and Supported Protocols and Ciphers Between Viewers and CloudFront
	// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/secure-connections-supported-viewer-protocols-ciphers.html#secure-connections-supported-ciphers)
	// in the Amazon CloudFront Developer Guide. On the CloudFront console, this
	// setting is called Security Policy. When you’re using SNI only (you set
	// SSLSupportMethod to sni-only), you must specify TLSv1 or higher. If the
	// distribution uses the CloudFront domain name such as
	// d111111abcdef8.cloudfront.net (you set CloudFrontDefaultCertificate to true),
	// CloudFront automatically sets the security policy to TLSv1 regardless of the
	// value that you set here.
	MinimumProtocolVersion MinimumProtocolVersion

	// If the distribution uses Aliases (alternate domain names or CNAMEs), specify
	// which viewers the distribution accepts HTTPS connections from.
	//
	// * sni-only – The
	// distribution accepts HTTPS connections from only viewers that support server
	// name indication (SNI) (https://en.wikipedia.org/wiki/Server_Name_Indication).
	// This is recommended. Most browsers and clients support SNI.
	//
	// * vip – The
	// distribution accepts HTTPS connections from all viewers including those that
	// don’t support SNI. This is not recommended, and results in additional monthly
	// charges from CloudFront.
	//
	// * static-ip - Do not specify this value unless your
	// distribution has been enabled for this feature by the CloudFront team. If you
	// have a use case that requires static IP addresses for a distribution, contact
	// CloudFront through the AWS Support Center
	// (https://console.aws.amazon.com/support/home).
	//
	// If the distribution uses the
	// CloudFront domain name such as d111111abcdef8.cloudfront.net, don’t set a value
	// for this field.
	SSLSupportMethod SSLSupportMethod
}

A complex type that determines the distribution’s SSL/TLS configuration for communicating with viewers. If the distribution doesn’t use Aliases (also known as alternate domain names or CNAMEs)—that is, if the distribution uses the CloudFront domain name such as d111111abcdef8.cloudfront.net—set CloudFrontDefaultCertificate to true and leave all other fields empty. If the distribution uses Aliases (alternate domain names or CNAMEs), use the fields in this type to specify the following settings:

* Which viewers the distribution accepts HTTPS connections from: only viewers that support server name indication (SNI) (https://en.wikipedia.org/wiki/Server_Name_Indication) (recommended), or all viewers including those that don’t support SNI.

* To accept HTTPS connections from only viewers that support SNI, set SSLSupportMethod to sni-only. This is recommended. Most browsers and clients support SNI.

* To accept HTTPS connections from all viewers, including those that don’t support SNI, set SSLSupportMethod to vip. This is not recommended, and results in additional monthly charges from CloudFront.

* The minimum SSL/TLS protocol version that the distribution can use to communicate with viewers. To specify a minimum version, choose a value for MinimumProtocolVersion. For more information, see Security Policy (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValues-security-policy) in the Amazon CloudFront Developer Guide.

* The location of the SSL/TLS certificate, AWS Certificate Manager (ACM) (https://docs.aws.amazon.com/acm/latest/userguide/acm-overview.html) (recommended) or AWS Identity and Access Management (AWS IAM) (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html). You specify the location by setting a value in one of the following fields (not both):

* ACMCertificateArn

* IAMCertificateId

All distributions support HTTPS connections from viewers. To require viewers to use HTTPS only, or to redirect them from HTTP to HTTPS, use ViewerProtocolPolicy in the CacheBehavior or DefaultCacheBehavior. To specify how CloudFront should use SSL/TLS to communicate with your custom origin, use CustomOriginConfig. For more information, see Using HTTPS with CloudFront (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-https.html) and Using Alternate Domain Names and HTTPS (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-https-alternate-domain-names.html) in the Amazon CloudFront Developer Guide.

type ViewerProtocolPolicy

type ViewerProtocolPolicy string
const (
	ViewerProtocolPolicyAllowAll        ViewerProtocolPolicy = "allow-all"
	ViewerProtocolPolicyHttpsOnly       ViewerProtocolPolicy = "https-only"
	ViewerProtocolPolicyRedirectToHttps ViewerProtocolPolicy = "redirect-to-https"
)

Enum values for ViewerProtocolPolicy

func (ViewerProtocolPolicy) Values added in v0.29.0

Values returns all known values for ViewerProtocolPolicy. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

Jump to

Keyboard shortcuts

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