Documentation ¶
Index ¶
- type AccessDenied
- type ActiveTrustedKeyGroups
- type ActiveTrustedSigners
- type AliasICPRecordal
- type Aliases
- type AllowedMethods
- type AnycastIpList
- type AnycastIpListCollection
- type AnycastIpListSummary
- type BatchTooLarge
- type CNAMEAlreadyExists
- type CacheBehavior
- type CacheBehaviors
- type CachePolicy
- type CachePolicyAlreadyExists
- type CachePolicyConfig
- type CachePolicyCookieBehavior
- type CachePolicyCookiesConfig
- type CachePolicyHeaderBehavior
- type CachePolicyHeadersConfig
- type CachePolicyInUse
- type CachePolicyList
- type CachePolicyQueryStringBehavior
- type CachePolicyQueryStringsConfig
- type CachePolicySummary
- type CachePolicyType
- type CachedMethods
- type CannotChangeImmutablePublicKeyFields
- type CannotDeleteEntityWhileInUse
- type CannotUpdateEntityWhileInUse
- type CertificateSource
- type CloudFrontOriginAccessIdentity
- type CloudFrontOriginAccessIdentityAlreadyExists
- func (e *CloudFrontOriginAccessIdentityAlreadyExists) Error() string
- func (e *CloudFrontOriginAccessIdentityAlreadyExists) ErrorCode() string
- func (e *CloudFrontOriginAccessIdentityAlreadyExists) ErrorFault() smithy.ErrorFault
- func (e *CloudFrontOriginAccessIdentityAlreadyExists) ErrorMessage() string
- type CloudFrontOriginAccessIdentityConfig
- type CloudFrontOriginAccessIdentityInUse
- type CloudFrontOriginAccessIdentityList
- type CloudFrontOriginAccessIdentitySummary
- type ConflictingAlias
- type ConflictingAliasesList
- type ContentTypeProfile
- type ContentTypeProfileConfig
- type ContentTypeProfiles
- type ContinuousDeploymentPolicy
- type ContinuousDeploymentPolicyAlreadyExists
- type ContinuousDeploymentPolicyConfig
- type ContinuousDeploymentPolicyInUse
- type ContinuousDeploymentPolicyList
- type ContinuousDeploymentPolicySummary
- type ContinuousDeploymentPolicyType
- type ContinuousDeploymentSingleHeaderConfig
- type ContinuousDeploymentSingleWeightConfig
- type CookieNames
- type CookiePreference
- type CustomErrorResponse
- type CustomErrorResponses
- type CustomHeaders
- type CustomOriginConfig
- type DefaultCacheBehavior
- type Distribution
- type DistributionAlreadyExists
- type DistributionConfig
- type DistributionConfigWithTags
- type DistributionIdList
- type DistributionList
- type DistributionNotDisabled
- type DistributionSummary
- type EncryptionEntities
- type EncryptionEntity
- type EndPoint
- type EntityAlreadyExists
- type EntityLimitExceeded
- type EntityNotFound
- type EntitySizeLimitExceeded
- type EventType
- type FieldLevelEncryption
- type FieldLevelEncryptionConfig
- type FieldLevelEncryptionConfigAlreadyExists
- type FieldLevelEncryptionConfigInUse
- type FieldLevelEncryptionList
- type FieldLevelEncryptionProfile
- type FieldLevelEncryptionProfileAlreadyExists
- type FieldLevelEncryptionProfileConfig
- type FieldLevelEncryptionProfileInUse
- type FieldLevelEncryptionProfileList
- type FieldLevelEncryptionProfileSizeExceeded
- type FieldLevelEncryptionProfileSummary
- type FieldLevelEncryptionSummary
- type FieldPatterns
- type Format
- type ForwardedValues
- type FrameOptionsList
- type FunctionAlreadyExists
- type FunctionAssociation
- type FunctionAssociations
- type FunctionConfig
- type FunctionInUse
- type FunctionList
- type FunctionMetadata
- type FunctionRuntime
- type FunctionSizeLimitExceeded
- type FunctionStage
- type FunctionSummary
- type GeoRestriction
- type GeoRestrictionType
- type GrpcConfig
- type Headers
- type HttpVersion
- type ICPRecordalStatus
- type IllegalDelete
- type IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior
- func (e *IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior) Error() string
- func (e *IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior) ErrorCode() string
- func (e *IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior) ErrorFault() smithy.ErrorFault
- func (e *IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior) ErrorMessage() string
- type IllegalOriginAccessConfiguration
- type IllegalUpdate
- type ImportSource
- type ImportSourceType
- type InconsistentQuantities
- type InvalidArgument
- type InvalidDefaultRootObject
- type InvalidDomainNameForOriginAccessControl
- type InvalidErrorCode
- type InvalidForwardCookies
- type InvalidFunctionAssociation
- type InvalidGeoRestrictionParameter
- type InvalidHeadersForS3Origin
- type InvalidIfMatchVersion
- type InvalidLambdaFunctionAssociation
- type InvalidLocationCode
- type InvalidMinimumProtocolVersion
- type InvalidOrigin
- type InvalidOriginAccessControl
- type InvalidOriginAccessIdentity
- type InvalidOriginKeepaliveTimeout
- type InvalidOriginReadTimeout
- type InvalidProtocolSettings
- type InvalidQueryStringParameters
- type InvalidRelativePath
- type InvalidRequiredProtocol
- type InvalidResponseCode
- type InvalidTTLOrder
- type InvalidTagging
- type InvalidViewerCertificate
- type InvalidWebACLId
- type Invalidation
- type InvalidationBatch
- type InvalidationList
- type InvalidationSummary
- type ItemSelection
- type KGKeyPairIds
- type KeyGroup
- type KeyGroupAlreadyExists
- type KeyGroupConfig
- type KeyGroupList
- type KeyGroupSummary
- type KeyPairIds
- type KeyValueStore
- type KeyValueStoreAssociation
- type KeyValueStoreAssociations
- type KeyValueStoreList
- type KinesisStreamConfig
- type LambdaFunctionAssociation
- type LambdaFunctionAssociations
- type LoggingConfig
- type Method
- type MinimumProtocolVersion
- type MissingBody
- type MonitoringSubscription
- type MonitoringSubscriptionAlreadyExists
- type NoSuchCachePolicy
- type NoSuchCloudFrontOriginAccessIdentity
- type NoSuchContinuousDeploymentPolicy
- type NoSuchDistribution
- type NoSuchFieldLevelEncryptionConfig
- type NoSuchFieldLevelEncryptionProfile
- type NoSuchFunctionExists
- type NoSuchInvalidation
- type NoSuchMonitoringSubscription
- type NoSuchOrigin
- type NoSuchOriginAccessControl
- type NoSuchOriginRequestPolicy
- type NoSuchPublicKey
- type NoSuchRealtimeLogConfig
- type NoSuchResource
- type NoSuchResponseHeadersPolicy
- type NoSuchStreamingDistribution
- type Origin
- type OriginAccessControl
- type OriginAccessControlAlreadyExists
- type OriginAccessControlConfig
- type OriginAccessControlInUse
- type OriginAccessControlList
- type OriginAccessControlOriginTypes
- type OriginAccessControlSigningBehaviors
- type OriginAccessControlSigningProtocols
- type OriginAccessControlSummary
- type OriginCustomHeader
- type OriginGroup
- type OriginGroupFailoverCriteria
- type OriginGroupMember
- type OriginGroupMembers
- type OriginGroupSelectionCriteria
- type OriginGroups
- type OriginProtocolPolicy
- type OriginRequestPolicy
- type OriginRequestPolicyAlreadyExists
- type OriginRequestPolicyConfig
- type OriginRequestPolicyCookieBehavior
- type OriginRequestPolicyCookiesConfig
- type OriginRequestPolicyHeaderBehavior
- type OriginRequestPolicyHeadersConfig
- type OriginRequestPolicyInUse
- type OriginRequestPolicyList
- type OriginRequestPolicyQueryStringBehavior
- type OriginRequestPolicyQueryStringsConfig
- type OriginRequestPolicySummary
- type OriginRequestPolicyType
- type OriginShield
- type OriginSslProtocols
- type Origins
- type ParametersInCacheKeyAndForwardedToOrigin
- type Paths
- type PreconditionFailed
- type PriceClass
- type PublicKey
- type PublicKeyAlreadyExists
- type PublicKeyConfig
- type PublicKeyInUse
- type PublicKeyList
- type PublicKeySummary
- type QueryArgProfile
- type QueryArgProfileConfig
- type QueryArgProfileEmpty
- type QueryArgProfiles
- type QueryStringCacheKeys
- type QueryStringNames
- type RealtimeLogConfig
- type RealtimeLogConfigAlreadyExists
- type RealtimeLogConfigInUse
- type RealtimeLogConfigOwnerMismatch
- type RealtimeLogConfigs
- type RealtimeMetricsSubscriptionConfig
- type RealtimeMetricsSubscriptionStatus
- type ReferrerPolicyList
- type ResourceInUse
- type ResponseHeadersPolicy
- type ResponseHeadersPolicyAccessControlAllowHeaders
- type ResponseHeadersPolicyAccessControlAllowMethods
- type ResponseHeadersPolicyAccessControlAllowMethodsValues
- type ResponseHeadersPolicyAccessControlAllowOrigins
- type ResponseHeadersPolicyAccessControlExposeHeaders
- type ResponseHeadersPolicyAlreadyExists
- type ResponseHeadersPolicyConfig
- type ResponseHeadersPolicyContentSecurityPolicy
- type ResponseHeadersPolicyContentTypeOptions
- type ResponseHeadersPolicyCorsConfig
- type ResponseHeadersPolicyCustomHeader
- type ResponseHeadersPolicyCustomHeadersConfig
- type ResponseHeadersPolicyFrameOptions
- type ResponseHeadersPolicyInUse
- type ResponseHeadersPolicyList
- type ResponseHeadersPolicyReferrerPolicy
- type ResponseHeadersPolicyRemoveHeader
- type ResponseHeadersPolicyRemoveHeadersConfig
- type ResponseHeadersPolicySecurityHeadersConfig
- type ResponseHeadersPolicyServerTimingHeadersConfig
- type ResponseHeadersPolicyStrictTransportSecurity
- type ResponseHeadersPolicySummary
- type ResponseHeadersPolicyType
- type ResponseHeadersPolicyXSSProtection
- type Restrictions
- type S3Origin
- type S3OriginConfig
- type SSLSupportMethod
- type SessionStickinessConfig
- type Signer
- type SslProtocol
- type StagingDistributionDnsNames
- type StagingDistributionInUse
- type StatusCodes
- type StreamingDistribution
- type StreamingDistributionAlreadyExists
- type StreamingDistributionConfig
- type StreamingDistributionConfigWithTags
- type StreamingDistributionList
- type StreamingDistributionNotDisabled
- type StreamingDistributionSummary
- type StreamingLoggingConfig
- type Tag
- type TagKeys
- type Tags
- type TestFunctionFailed
- type TestResult
- type TooLongCSPInResponseHeadersPolicy
- type TooManyCacheBehaviors
- type TooManyCachePolicies
- type TooManyCertificates
- type TooManyCloudFrontOriginAccessIdentities
- type TooManyContinuousDeploymentPolicies
- type TooManyCookieNamesInWhiteList
- type TooManyCookiesInCachePolicy
- type TooManyCookiesInOriginRequestPolicy
- type TooManyCustomHeadersInResponseHeadersPolicy
- func (e *TooManyCustomHeadersInResponseHeadersPolicy) Error() string
- func (e *TooManyCustomHeadersInResponseHeadersPolicy) ErrorCode() string
- func (e *TooManyCustomHeadersInResponseHeadersPolicy) ErrorFault() smithy.ErrorFault
- func (e *TooManyCustomHeadersInResponseHeadersPolicy) ErrorMessage() string
- type TooManyDistributionCNAMEs
- type TooManyDistributions
- type TooManyDistributionsAssociatedToCachePolicy
- func (e *TooManyDistributionsAssociatedToCachePolicy) Error() string
- func (e *TooManyDistributionsAssociatedToCachePolicy) ErrorCode() string
- func (e *TooManyDistributionsAssociatedToCachePolicy) ErrorFault() smithy.ErrorFault
- func (e *TooManyDistributionsAssociatedToCachePolicy) ErrorMessage() string
- type TooManyDistributionsAssociatedToFieldLevelEncryptionConfig
- func (e *TooManyDistributionsAssociatedToFieldLevelEncryptionConfig) Error() string
- func (e *TooManyDistributionsAssociatedToFieldLevelEncryptionConfig) ErrorCode() string
- func (e *TooManyDistributionsAssociatedToFieldLevelEncryptionConfig) ErrorFault() smithy.ErrorFault
- func (e *TooManyDistributionsAssociatedToFieldLevelEncryptionConfig) ErrorMessage() string
- type TooManyDistributionsAssociatedToKeyGroup
- type TooManyDistributionsAssociatedToOriginAccessControl
- func (e *TooManyDistributionsAssociatedToOriginAccessControl) Error() string
- func (e *TooManyDistributionsAssociatedToOriginAccessControl) ErrorCode() string
- func (e *TooManyDistributionsAssociatedToOriginAccessControl) ErrorFault() smithy.ErrorFault
- func (e *TooManyDistributionsAssociatedToOriginAccessControl) ErrorMessage() string
- type TooManyDistributionsAssociatedToOriginRequestPolicy
- func (e *TooManyDistributionsAssociatedToOriginRequestPolicy) Error() string
- func (e *TooManyDistributionsAssociatedToOriginRequestPolicy) ErrorCode() string
- func (e *TooManyDistributionsAssociatedToOriginRequestPolicy) ErrorFault() smithy.ErrorFault
- func (e *TooManyDistributionsAssociatedToOriginRequestPolicy) ErrorMessage() string
- type TooManyDistributionsAssociatedToResponseHeadersPolicy
- func (e *TooManyDistributionsAssociatedToResponseHeadersPolicy) Error() string
- func (e *TooManyDistributionsAssociatedToResponseHeadersPolicy) ErrorCode() string
- func (e *TooManyDistributionsAssociatedToResponseHeadersPolicy) ErrorFault() smithy.ErrorFault
- func (e *TooManyDistributionsAssociatedToResponseHeadersPolicy) ErrorMessage() string
- type TooManyDistributionsWithFunctionAssociations
- func (e *TooManyDistributionsWithFunctionAssociations) Error() string
- func (e *TooManyDistributionsWithFunctionAssociations) ErrorCode() string
- func (e *TooManyDistributionsWithFunctionAssociations) ErrorFault() smithy.ErrorFault
- func (e *TooManyDistributionsWithFunctionAssociations) ErrorMessage() string
- type TooManyDistributionsWithLambdaAssociations
- type TooManyDistributionsWithSingleFunctionARN
- type TooManyFieldLevelEncryptionConfigs
- type TooManyFieldLevelEncryptionContentTypeProfiles
- func (e *TooManyFieldLevelEncryptionContentTypeProfiles) Error() string
- func (e *TooManyFieldLevelEncryptionContentTypeProfiles) ErrorCode() string
- func (e *TooManyFieldLevelEncryptionContentTypeProfiles) ErrorFault() smithy.ErrorFault
- func (e *TooManyFieldLevelEncryptionContentTypeProfiles) ErrorMessage() string
- type TooManyFieldLevelEncryptionEncryptionEntities
- func (e *TooManyFieldLevelEncryptionEncryptionEntities) Error() string
- func (e *TooManyFieldLevelEncryptionEncryptionEntities) ErrorCode() string
- func (e *TooManyFieldLevelEncryptionEncryptionEntities) ErrorFault() smithy.ErrorFault
- func (e *TooManyFieldLevelEncryptionEncryptionEntities) ErrorMessage() string
- type TooManyFieldLevelEncryptionFieldPatterns
- type TooManyFieldLevelEncryptionProfiles
- type TooManyFieldLevelEncryptionQueryArgProfiles
- func (e *TooManyFieldLevelEncryptionQueryArgProfiles) Error() string
- func (e *TooManyFieldLevelEncryptionQueryArgProfiles) ErrorCode() string
- func (e *TooManyFieldLevelEncryptionQueryArgProfiles) ErrorFault() smithy.ErrorFault
- func (e *TooManyFieldLevelEncryptionQueryArgProfiles) ErrorMessage() string
- type TooManyFunctionAssociations
- type TooManyFunctions
- type TooManyHeadersInCachePolicy
- type TooManyHeadersInForwardedValues
- type TooManyHeadersInOriginRequestPolicy
- type TooManyInvalidationsInProgress
- type TooManyKeyGroups
- type TooManyKeyGroupsAssociatedToDistribution
- type TooManyLambdaFunctionAssociations
- type TooManyOriginAccessControls
- type TooManyOriginCustomHeaders
- type TooManyOriginGroupsPerDistribution
- type TooManyOriginRequestPolicies
- type TooManyOrigins
- type TooManyPublicKeys
- type TooManyPublicKeysInKeyGroup
- type TooManyQueryStringParameters
- type TooManyQueryStringsInCachePolicy
- type TooManyQueryStringsInOriginRequestPolicy
- type TooManyRealtimeLogConfigs
- type TooManyRemoveHeadersInResponseHeadersPolicy
- func (e *TooManyRemoveHeadersInResponseHeadersPolicy) Error() string
- func (e *TooManyRemoveHeadersInResponseHeadersPolicy) ErrorCode() string
- func (e *TooManyRemoveHeadersInResponseHeadersPolicy) ErrorFault() smithy.ErrorFault
- func (e *TooManyRemoveHeadersInResponseHeadersPolicy) ErrorMessage() string
- type TooManyResponseHeadersPolicies
- type TooManyStreamingDistributionCNAMEs
- type TooManyStreamingDistributions
- type TooManyTrustedSigners
- type TrafficConfig
- type TrustedKeyGroupDoesNotExist
- type TrustedKeyGroups
- type TrustedSignerDoesNotExist
- type TrustedSigners
- type UnsupportedOperation
- type ViewerCertificate
- type ViewerProtocolPolicy
- type VpcOrigin
- type VpcOriginConfig
- type VpcOriginEndpointConfig
- type VpcOriginList
- type VpcOriginSummary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessDenied ¶
type AccessDenied struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
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 Amazon Web Services accounts in the list are // configured as trusted signers. If not, this field is false . // // This member is required. Enabled *bool // The number of Amazon Web Services accounts in the list. // // This member is required. Quantity *int32 // A list of Amazon Web Services 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 // contains filtered or unexported fields }
A list of Amazon Web Services 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 // contains filtered or unexported fields }
Amazon Web Services 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 in Getting Started with Amazon Web Services 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 // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
A complex type that controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin. There are three choices:
CloudFront forwards only GET and HEAD requests.
CloudFront forwards only GET , HEAD , and OPTIONS requests.
CloudFront forwards GET, HEAD, OPTIONS, PUT, PATCH, POST , and DELETE requests.
If you pick the third choice, you may need to restrict access to your Amazon S3 bucket or to your custom origin so users can't perform operations that you don't want them to. For example, you might not want users to have permissions to delete objects from your origin.
type AnycastIpList ¶ added in v1.42.0
type AnycastIpList struct { // The static IP addresses that are allocated to the Anycast static IP list. // // This member is required. AnycastIps []string // The Amazon Resource Name (ARN) of the Anycast static IP list. // // This member is required. Arn *string // The ID of the Anycast static IP list. // // This member is required. Id *string // The number of IP addresses in the Anycast static IP list. // // This member is required. IpCount *int32 // The last time the Anycast static IP list was modified. // // This member is required. LastModifiedTime *time.Time // The name of the Anycast static IP list. // // This member is required. Name *string // The status of the Anycast static IP list. Valid values: Deployed , Deploying , // or Failed . // // This member is required. Status *string // contains filtered or unexported fields }
An Anycast static IP list.
type AnycastIpListCollection ¶ added in v1.42.0
type AnycastIpListCollection struct { // If there are more items in the list collection than are in this response, this // value is true . // // This member is required. IsTruncated *bool // Use this field when paginating results to indicate where to begin in your list. // The response includes items in the list that occur after the marker. To get the // next page of the list, set this field's value to the value of NextMarker from // the current page's response. // // This member is required. Marker *string // The maximum number of Anycast static IP list collections that you want returned // in the response. // // This member is required. MaxItems *int32 // The quantity of Anycast static IP lists in the collection. // // This member is required. Quantity *int32 // Items in the Anycast static IP list collection. Each item is of the AnycastIpListSummary structure // type. Items []AnycastIpListSummary // Indicates the next page of the Anycast static IP list collection. To get the // next page of the list, use this value in the Marker field of your request. NextMarker *string // contains filtered or unexported fields }
The Anycast static IP list collection.
type AnycastIpListSummary ¶ added in v1.42.0
type AnycastIpListSummary struct { // The Amazon Resource Name (ARN) of the Anycast static IP list. // // This member is required. Arn *string // The ID of the Anycast static IP list. // // This member is required. Id *string // The number of IP addresses in the Anycast static IP list. // // This member is required. IpCount *int32 // The last time the Anycast static IP list was modified. // // This member is required. LastModifiedTime *time.Time // The name of the Anycast static IP list. // // This member is required. Name *string // The deployment status of the Anycast static IP list. Valid values: Deployed, // Deploying, or Failed. // // This member is required. Status *string // contains filtered or unexported fields }
An abbreviated version of the AnycastIpList structure. Omits the allocated static IP addresses (AnycastIpList$AnycastIps ).
type BatchTooLarge ¶
type BatchTooLarge struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
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 ErrorCodeOverride *string // contains filtered or unexported fields }
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] in the Amazon CloudFront Developer Guide. // // [Path Pattern]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesPathPattern // // 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] 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]in the Amazon CloudFront Developer Guide. // // [Requiring HTTPS Between Viewers and CloudFront]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-https-viewers-to-cloudfront.html // [Managing Cache Expiration]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html // // 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]or [Using the managed cache policies] in the Amazon CloudFront Developer // Guide. // // A CacheBehavior must include either a CachePolicyId or ForwardedValues . We // recommend that you use a CachePolicyId . // // [Creating cache policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy // [Using the managed cache policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html 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]in the Amazon CloudFront Developer Guide. // // [Serving Compressed Files]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html 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]or [Using the managed cache policies] 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)] in the Amazon // CloudFront Developer Guide. // // [Creating cache policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy // [Using the managed cache policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html // [Managing How Long Content Stays in an Edge Cache (Expiration)]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html // // 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]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]or [Using the managed cache policies] 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]or [Using the managed origin request policies] in the Amazon // CloudFront Developer Guide. // // A CacheBehavior must include either a CachePolicyId or ForwardedValues . We // recommend that you use a CachePolicyId . // // A complex type that specifies how CloudFront handles query strings, cookies, // and HTTP headers. // // [Working with policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/working-with-policies.html // [Using the managed origin request policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.html // [Creating origin request policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy // [Creating cache policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy // [Using the managed cache policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html // // Deprecated: This member has been deprecated. ForwardedValues *ForwardedValues // A list of CloudFront functions that are associated with this cache behavior. // CloudFront functions must be published to the LIVE stage to associate them with // a cache behavior. FunctionAssociations *FunctionAssociations // The gRPC configuration for your cache behavior. GrpcConfig *GrpcConfig // A complex type that contains zero or more Lambda@Edge 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]or [Using the managed cache policies] 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)] in the Amazon CloudFront // Developer Guide. // // [Creating cache policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy // [Using the managed cache policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html // [Managing How Long Content Stays in an Edge Cache (Expiration)]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html // // 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]or [Using the managed cache policies] 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)]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 ). // // [Creating cache policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy // [Using the managed cache policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html // [Managing How Long Content Stays in an Edge Cache (Expiration)]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html // // 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]or [Using the managed origin request policies] in the Amazon CloudFront // Developer Guide. // // [Using the managed origin request policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.html // [Creating origin request policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy 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]in the Amazon // CloudFront Developer Guide. // // [Real-time logs]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html RealtimeLogConfigArn *string // The identifier for a response headers policy. ResponseHeadersPolicyId *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]in the Amazon CloudFront Developer Guide. // // [Serving private content]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html TrustedKeyGroups *TrustedKeyGroups // We recommend using TrustedKeyGroups instead of TrustedSigners . // // A list of Amazon Web Services 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 Amazon Web Services 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]in the Amazon CloudFront Developer Guide. // // [Serving private content]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html TrustedSigners *TrustedSigners // contains filtered or unexported fields }
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 Quotasin the Amazon CloudFront Developer Guide.
If you don't want to specify any cache behaviors, include only an empty CacheBehaviors element. Don't specify an empty individual CacheBehavior element, because this is invalid. For more information, see CacheBehaviors.
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 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 // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
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 also 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 ErrorCodeOverride *string // contains filtered or unexported fields }
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)]in the Amazon CloudFront // Developer Guide. // // [Managing How Long Content Stays in an Edge Cache (Expiration)]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html // // 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. The comment cannot be longer than 128 // characters. 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)]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 . // // [Managing How Long Content Stays in an Edge Cache (Expiration)]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html 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)] 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 . // // [Managing How Long Content Stays in an Edge Cache (Expiration)]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html MaxTTL *int64 // The HTTP headers, cookies, and URL query strings to include in the cache key. // The values included in the cache key are also included in requests that // CloudFront sends to the origin. ParametersInCacheKeyAndForwardedToOrigin *ParametersInCacheKeyAndForwardedToOrigin // contains filtered or unexported fields }
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 also 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
func (CachePolicyCookieBehavior) Values() []CachePolicyCookieBehavior
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 in requests that CloudFront sends to the origin. Valid values are: // // - none – No cookies in viewer requests are included in the cache key or 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 – Only the cookies in viewer requests that are listed in the // CookieNames type are included in the cache key and in requests that CloudFront // sends to the origin. // // - allExcept – All cookies in viewer requests are included in the cache key and // in requests that CloudFront sends to the origin, except for those that are // listed in the CookieNames type, which are not included. // // - all – All cookies in viewer requests are included in the cache key and in // requests that CloudFront sends to the origin. // // This member is required. CookieBehavior CachePolicyCookieBehavior // Contains a list of cookie names. Cookies *CookieNames // contains filtered or unexported fields }
An object that determines whether any cookies in viewer requests (and if so, which cookies) are included in the cache key and 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
func (CachePolicyHeaderBehavior) Values() []CachePolicyHeaderBehavior
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 in // requests that CloudFront sends to the origin. Valid values are: // // - none – No HTTP headers are included in the cache key or 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 – Only the HTTP headers that are listed in the Headers type are // included in the cache key and in requests that CloudFront sends to the origin. // // This member is required. HeaderBehavior CachePolicyHeaderBehavior // Contains a list of HTTP header names. Headers *Headers // contains filtered or unexported fields }
An object that determines whether any HTTP headers (and if so, which headers) are included in the cache key and in requests that CloudFront sends to the origin.
type CachePolicyInUse ¶
type CachePolicyInUse struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
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
func (CachePolicyQueryStringBehavior) Values() []CachePolicyQueryStringBehavior
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 in requests that CloudFront sends to the origin. Valid values are: // // - none – No query strings in viewer requests are included in the cache key or // 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 – Only the query strings in viewer requests that are listed in the // QueryStringNames type are included in the cache key and in requests that // CloudFront sends to the origin. // // - allExcept – All query strings in viewer requests are included in the cache // key and in requests that CloudFront sends to the origin, except those that are // listed in the QueryStringNames type, which are not included. // // - all – All query strings in viewer requests are included in the cache key and // 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 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 // contains filtered or unexported fields }
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 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 Amazon Web Services) or // custom (created in this Amazon Web Services account). // // This member is required. Type CachePolicyType // contains filtered or unexported fields }
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. Valid values for CachedMethods include GET , HEAD , and OPTIONS , // depending on which caching option you choose. For more information, see the // preceding section. // // 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 // contains filtered or unexported fields }
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 ErrorCodeOverride *string // contains filtered or unexported fields }
You can't change the value of a public key.
func (*CannotChangeImmutablePublicKeyFields) Error ¶
func (e *CannotChangeImmutablePublicKeyFields) Error() string
func (*CannotChangeImmutablePublicKeyFields) ErrorCode ¶
func (e *CannotChangeImmutablePublicKeyFields) ErrorCode() string
func (*CannotChangeImmutablePublicKeyFields) ErrorFault ¶
func (e *CannotChangeImmutablePublicKeyFields) ErrorFault() smithy.ErrorFault
func (*CannotChangeImmutablePublicKeyFields) ErrorMessage ¶
func (e *CannotChangeImmutablePublicKeyFields) ErrorMessage() string
type CannotDeleteEntityWhileInUse ¶ added in v1.31.0
type CannotDeleteEntityWhileInUse struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The entity cannot be deleted while it is in use.
func (*CannotDeleteEntityWhileInUse) Error ¶ added in v1.31.0
func (e *CannotDeleteEntityWhileInUse) Error() string
func (*CannotDeleteEntityWhileInUse) ErrorCode ¶ added in v1.31.0
func (e *CannotDeleteEntityWhileInUse) ErrorCode() string
func (*CannotDeleteEntityWhileInUse) ErrorFault ¶ added in v1.31.0
func (e *CannotDeleteEntityWhileInUse) ErrorFault() smithy.ErrorFault
func (*CannotDeleteEntityWhileInUse) ErrorMessage ¶ added in v1.31.0
func (e *CannotDeleteEntityWhileInUse) ErrorMessage() string
type CannotUpdateEntityWhileInUse ¶ added in v1.42.0
type CannotUpdateEntityWhileInUse struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The entity cannot be updated while it is in use.
func (*CannotUpdateEntityWhileInUse) Error ¶ added in v1.42.0
func (e *CannotUpdateEntityWhileInUse) Error() string
func (*CannotUpdateEntityWhileInUse) ErrorCode ¶ added in v1.42.0
func (e *CannotUpdateEntityWhileInUse) ErrorCode() string
func (*CannotUpdateEntityWhileInUse) ErrorFault ¶ added in v1.42.0
func (e *CannotUpdateEntityWhileInUse) ErrorFault() smithy.ErrorFault
func (*CannotUpdateEntityWhileInUse) ErrorMessage ¶ added in v1.42.0
func (e *CannotUpdateEntityWhileInUse) 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
func (CertificateSource) Values() []CertificateSource
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 // contains filtered or unexported fields }
CloudFront origin access identity.
type CloudFrontOriginAccessIdentityAlreadyExists ¶
type CloudFrontOriginAccessIdentityAlreadyExists struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
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 (e *CloudFrontOriginAccessIdentityAlreadyExists) Error() string
func (*CloudFrontOriginAccessIdentityAlreadyExists) ErrorCode ¶
func (e *CloudFrontOriginAccessIdentityAlreadyExists) ErrorCode() string
func (*CloudFrontOriginAccessIdentityAlreadyExists) ErrorFault ¶
func (e *CloudFrontOriginAccessIdentityAlreadyExists) ErrorFault() smithy.ErrorFault
func (*CloudFrontOriginAccessIdentityAlreadyExists) ErrorMessage ¶
func (e *CloudFrontOriginAccessIdentityAlreadyExists) ErrorMessage() string
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 // A comment to describe the origin access identity. The comment cannot be longer // than 128 characters. // // This member is required. Comment *string // contains filtered or unexported fields }
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 ErrorCodeOverride *string // contains filtered or unexported fields }
The Origin Access Identity specified is already in use.
func (*CloudFrontOriginAccessIdentityInUse) Error ¶
func (e *CloudFrontOriginAccessIdentityInUse) Error() string
func (*CloudFrontOriginAccessIdentityInUse) ErrorCode ¶
func (e *CloudFrontOriginAccessIdentityInUse) ErrorCode() string
func (*CloudFrontOriginAccessIdentityInUse) ErrorFault ¶
func (e *CloudFrontOriginAccessIdentityInUse) ErrorFault() smithy.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 Amazon Web Services 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 Amazon Web // Services 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 // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
Summary of the information about a CloudFront origin access identity.
type ConflictingAlias ¶ added in v1.7.0
type ConflictingAlias struct { // The (partially hidden) ID of the Amazon Web Services account that owns the // distribution that's associated with the alias. AccountId *string // An alias (also called a CNAME). Alias *string // The (partially hidden) ID of the CloudFront distribution associated with the // alias. DistributionId *string // contains filtered or unexported fields }
An alias (also called a CNAME) and the CloudFront distribution and Amazon Web Services account ID that it's associated with. The distribution and account IDs are partially hidden, which allows you to identify the distributions and accounts that you own, but helps to protect the information of ones that you don't own.
type ConflictingAliasesList ¶ added in v1.7.0
type ConflictingAliasesList struct { // Contains the conflicting aliases in the list. Items []ConflictingAlias // The maximum number of conflicting aliases requested. MaxItems *int32 // 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 conflicting aliases where you left off. NextMarker *string // The number of conflicting aliases returned in the response. Quantity *int32 // contains filtered or unexported fields }
A list of aliases (also called CNAMEs) and the CloudFront distributions and Amazon Web Services accounts that they are associated with. In the list, the distribution and account IDs are partially hidden, which allows you to identify the distributions and accounts that you own, but helps to protect the information of ones that you don't own.
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 // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
Field-level encryption content type-profile.
type ContinuousDeploymentPolicy ¶ added in v1.21.0
type ContinuousDeploymentPolicy struct { // Contains the configuration for a continuous deployment policy. // // This member is required. ContinuousDeploymentPolicyConfig *ContinuousDeploymentPolicyConfig // The identifier of the continuous deployment policy. // // This member is required. Id *string // The date and time the continuous deployment policy was last modified. // // This member is required. LastModifiedTime *time.Time // contains filtered or unexported fields }
A continuous deployment policy.
type ContinuousDeploymentPolicyAlreadyExists ¶ added in v1.22.0
type ContinuousDeploymentPolicyAlreadyExists struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
A continuous deployment policy with this configuration already exists.
func (*ContinuousDeploymentPolicyAlreadyExists) Error ¶ added in v1.22.0
func (e *ContinuousDeploymentPolicyAlreadyExists) Error() string
func (*ContinuousDeploymentPolicyAlreadyExists) ErrorCode ¶ added in v1.22.0
func (e *ContinuousDeploymentPolicyAlreadyExists) ErrorCode() string
func (*ContinuousDeploymentPolicyAlreadyExists) ErrorFault ¶ added in v1.22.0
func (e *ContinuousDeploymentPolicyAlreadyExists) ErrorFault() smithy.ErrorFault
func (*ContinuousDeploymentPolicyAlreadyExists) ErrorMessage ¶ added in v1.22.0
func (e *ContinuousDeploymentPolicyAlreadyExists) ErrorMessage() string
type ContinuousDeploymentPolicyConfig ¶ added in v1.21.0
type ContinuousDeploymentPolicyConfig struct { // A Boolean that indicates whether this continuous deployment policy is enabled // (in effect). When this value is true , this policy is enabled and in effect. // When this value is false , this policy is not enabled and has no effect. // // This member is required. Enabled *bool // The CloudFront domain name of the staging distribution. For example: // d111111abcdef8.cloudfront.net . // // This member is required. StagingDistributionDnsNames *StagingDistributionDnsNames // Contains the parameters for routing production traffic from your primary to // staging distributions. TrafficConfig *TrafficConfig // contains filtered or unexported fields }
Contains the configuration for a continuous deployment policy.
type ContinuousDeploymentPolicyInUse ¶ added in v1.22.0
type ContinuousDeploymentPolicyInUse struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
You cannot delete a continuous deployment policy that is associated with a primary distribution.
func (*ContinuousDeploymentPolicyInUse) Error ¶ added in v1.22.0
func (e *ContinuousDeploymentPolicyInUse) Error() string
func (*ContinuousDeploymentPolicyInUse) ErrorCode ¶ added in v1.22.0
func (e *ContinuousDeploymentPolicyInUse) ErrorCode() string
func (*ContinuousDeploymentPolicyInUse) ErrorFault ¶ added in v1.22.0
func (e *ContinuousDeploymentPolicyInUse) ErrorFault() smithy.ErrorFault
func (*ContinuousDeploymentPolicyInUse) ErrorMessage ¶ added in v1.22.0
func (e *ContinuousDeploymentPolicyInUse) ErrorMessage() string
type ContinuousDeploymentPolicyList ¶ added in v1.21.0
type ContinuousDeploymentPolicyList struct { // The maximum number of continuous deployment policies that were specified in // your request. // // This member is required. MaxItems *int32 // The total number of continuous deployment policies in your Amazon Web Services // account, regardless of the MaxItems value. // // This member is required. Quantity *int32 // A list of continuous deployment policy items. Items []ContinuousDeploymentPolicySummary // Indicates the next page of continuous deployment policies. To get the next page // of the list, use this value in the Marker field of your request. NextMarker *string // contains filtered or unexported fields }
Contains a list of continuous deployment policies.
type ContinuousDeploymentPolicySummary ¶ added in v1.21.0
type ContinuousDeploymentPolicySummary struct { // The continuous deployment policy. // // This member is required. ContinuousDeploymentPolicy *ContinuousDeploymentPolicy // contains filtered or unexported fields }
A summary of the information about your continuous deployment policies.
type ContinuousDeploymentPolicyType ¶ added in v1.21.0
type ContinuousDeploymentPolicyType string
const ( ContinuousDeploymentPolicyTypeSingleWeight ContinuousDeploymentPolicyType = "SingleWeight" ContinuousDeploymentPolicyTypeSingleHeader ContinuousDeploymentPolicyType = "SingleHeader" )
Enum values for ContinuousDeploymentPolicyType
func (ContinuousDeploymentPolicyType) Values ¶ added in v1.21.0
func (ContinuousDeploymentPolicyType) Values() []ContinuousDeploymentPolicyType
Values returns all known values for ContinuousDeploymentPolicyType. 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 ContinuousDeploymentSingleHeaderConfig ¶ added in v1.21.0
type ContinuousDeploymentSingleHeaderConfig struct { // The request header name that you want CloudFront to send to your staging // distribution. The header must contain the prefix aws-cf-cd- . // // This member is required. Header *string // The request header value. // // This member is required. Value *string // contains filtered or unexported fields }
This configuration determines which HTTP requests are sent to the staging distribution. If the HTTP request contains a header and value that matches what you specify here, the request is sent to the staging distribution. Otherwise the request is sent to the primary distribution.
type ContinuousDeploymentSingleWeightConfig ¶ added in v1.21.0
type ContinuousDeploymentSingleWeightConfig struct { // The percentage of traffic to send to a staging distribution, expressed as a // decimal number between 0 and 0.15. For example, a value of 0.10 means 10% of // traffic is sent to the staging distribution. // // This member is required. Weight *float32 // Session stickiness provides the ability to define multiple requests from a // single viewer as a single session. This prevents the potentially inconsistent // experience of sending some of a given user's requests to your staging // distribution, while others are sent to your primary distribution. Define the // session duration using TTL values. SessionStickinessConfig *SessionStickinessConfig // contains filtered or unexported fields }
Contains the percentage of traffic to send to a staging distribution.
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 filtered or unexported fields }
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]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]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. // // [Creating origin request policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy // [Creating cache policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy // // 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]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]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]in the Amazon Web Services General Reference. // // [CloudFront Limits]: https://docs.aws.amazon.com/general/latest/gr/xrefaws_service_limits.html#limits_cloudfront // [Creating origin request policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy // [Creating cache policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy WhitelistedNames *CookieNames // contains filtered or unexported fields }
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 Cookiesin 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] in the Amazon CloudFront Developer Guide. // // [Customizing Error Responses]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html 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 // contains filtered or unexported fields }
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 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 // contains filtered or unexported fields }
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 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 // contains filtered or unexported fields }
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 [Keep-alive timeout (custom origins only)] in the Amazon CloudFront Developer Guide. // // [Keep-alive timeout (custom origins only)]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginKeepaliveTimeout 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 [Response timeout (custom origins only)] in the Amazon CloudFront Developer Guide. // // [Response timeout (custom origins only)]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginResponseTimeout 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] in the Amazon CloudFront Developer Guide. // // [Minimum Origin SSL Protocol]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginSSLProtocols OriginSslProtocols *OriginSslProtocols // contains filtered or unexported fields }
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 hostingis 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] 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]in the Amazon CloudFront Developer Guide. // // [Requiring HTTPS Between Viewers and CloudFront]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-https-viewers-to-cloudfront.html // [Managing Cache Expiration]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html // // 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]or [Using the managed cache policies] in the Amazon CloudFront Developer // Guide. // // A DefaultCacheBehavior must include either a CachePolicyId or ForwardedValues . // We recommend that you use a CachePolicyId . // // [Creating cache policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy // [Using the managed cache policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html 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]in the Amazon CloudFront Developer Guide. // // [Serving Compressed Files]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html 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]or [Using the managed cache policies] 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)] in the Amazon // CloudFront Developer Guide. // // [Creating cache policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy // [Using the managed cache policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html // [Managing How Long Content Stays in an Edge Cache (Expiration)]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html // // 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]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]or [Using the managed cache policies] 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]or [Using the managed origin request policies] in the Amazon // CloudFront Developer Guide. // // A DefaultCacheBehavior must include either a CachePolicyId or ForwardedValues . // We recommend that you use a CachePolicyId . // // A complex type that specifies how CloudFront handles query strings, cookies, // and HTTP headers. // // [Working with policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/working-with-policies.html // [Using the managed origin request policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.html // [Creating origin request policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy // [Creating cache policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy // [Using the managed cache policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html // // Deprecated: This member has been deprecated. ForwardedValues *ForwardedValues // A list of CloudFront functions that are associated with this cache behavior. // Your functions must be published to the LIVE stage to associate them with a // cache behavior. FunctionAssociations *FunctionAssociations // The gRPC configuration for your cache behavior. GrpcConfig *GrpcConfig // A complex type that contains zero or more Lambda@Edge 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]or [Using the managed cache policies] 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)] in the Amazon CloudFront // Developer Guide. // // [Creating cache policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy // [Using the managed cache policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html // [Managing How Long Content Stays in an Edge Cache (Expiration)]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html // // 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]or [Using the managed cache policies] 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)]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 ). // // [Creating cache policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy // [Using the managed cache policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html // [Managing How Long Content Stays in an Edge Cache (Expiration)]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html // // 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]or [Using the managed origin request policies] in the Amazon CloudFront // Developer Guide. // // [Using the managed origin request policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.html // [Creating origin request policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy 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]in the Amazon // CloudFront Developer Guide. // // [Real-time logs]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html RealtimeLogConfigArn *string // The identifier for a response headers policy. ResponseHeadersPolicyId *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]in the Amazon CloudFront Developer Guide. // // [Serving private content]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html TrustedKeyGroups *TrustedKeyGroups // We recommend using TrustedKeyGroups instead of TrustedSigners . // // A list of Amazon Web Services 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 Amazon Web Services 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]in the Amazon CloudFront Developer Guide. // // [Serving private content]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html TrustedSigners *TrustedSigners // contains filtered or unexported fields }
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 distribution's Amazon Resource Name (ARN). // // This member is required. ARN *string // The distribution's configuration. // // This member is required. DistributionConfig *DistributionConfig // The distribution's CloudFront domain name. For example: // d111111abcdef8.cloudfront.net . // // This member is required. DomainName *string // The distribution's identifier. For example: E1U5RQF7T870K0 . // // This member is required. Id *string // The number of invalidation batches currently in progress. // // This member is required. InProgressInvalidationBatches *int32 // The date and time when the distribution was last modified. // // This member is required. LastModifiedTime *time.Time // The distribution's status. When the status is Deployed , the distribution's // information is fully propagated to all CloudFront edge locations. // // This member is required. Status *string // 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 . // // This field contains a list of Amazon Web Services 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 // Amazon Web Services 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] in Getting Started with Amazon // Web Services services in China. // // [Signup, Accounts, and Credentials]: https://docs.amazonaws.cn/en_us/aws/latest/userguide/accounts-and-credentials.html AliasICPRecordals []AliasICPRecordal // contains filtered or unexported fields }
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 ErrorCodeOverride *string // contains filtered or unexported fields }
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 (e *DistributionAlreadyExists) ErrorFault() smithy.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 // A comment to describe the distribution. The comment cannot be longer than 128 // characters. // // 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 // ID of the Anycast static IP list that is associated with the distribution. AnycastIpListId *string // A complex type that contains zero or more CacheBehavior elements. CacheBehaviors *CacheBehaviors // The identifier of a continuous deployment policy. For more information, see // CreateContinuousDeploymentPolicy . ContinuousDeploymentPolicyId *string // 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] in the Amazon CloudFront // Developer Guide. // // [Customizing Error Responses]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html CustomErrorResponses *CustomErrorResponses // When a viewer requests the root URL for your distribution, the default root // object is the object that you want CloudFront to request from your origin. For // example, if your root URL is https://www.example.com , you can specify // CloudFront to return the index.html file as the default root object. You can // specify a default root object so that viewers see a specific file or object, // instead of another object in your distribution (for example, // https://www.example.com/product-description.html ). A default root object avoids // exposing the contents of your distribution. // // You can specify the object name or a path to the object name (for example, // index.html or exampleFolderName/index.html ). Your string can't begin with a // forward slash ( / ). Only specify the object name or the path to the object. // // 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 [Specify a default root object] in the Amazon // CloudFront Developer Guide. // // [Specify a default root object]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DefaultRootObject.html DefaultRootObject *string // (Optional) Specify the HTTP version(s) 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 TLSv1.2 or // later, and must support Server Name Indication (SNI). // // For viewers and CloudFront to use HTTP/3, viewers must support TLSv1.3 and // Server Name Indication (SNI). CloudFront supports HTTP/3 connection migration to // allow the viewer to switch networks without losing connection. For more // information about connection migration, see [Connection Migration]at RFC 9000. For more information // about supported TLSv1.3 ciphers, see [Supported protocols and ciphers between viewers and CloudFront]. // // [Connection Migration]: https://www.rfc-editor.org/rfc/rfc9000.html#name-connection-migration // [Supported protocols and ciphers between viewers and CloudFront]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/secure-connections-supported-viewer-protocols-ciphers.html 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] // in the Amazon CloudFront Developer Guide. // // If you're using an Route 53 Amazon Web Services Integration 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] in the Route 53 Amazon Web Services Integration // Developer Guide. // // If you created a CNAME resource record set, either with Route 53 Amazon Web // Services Integration 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. // // [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 // [Creating a Signed URL Using a Custom Policy]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-creating-signed-url-custom-policy.html IsIPV6Enabled *bool // A complex type that controls whether access logs are written for the // distribution. // // For more information about logging, see [Access Logs] in the Amazon CloudFront Developer // Guide. // // [Access Logs]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/AccessLogs.html 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] 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]. // // [Choosing the Price Class for a CloudFront Distribution]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PriceClass.html // [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 Boolean that indicates whether this is a staging distribution. When this // value is true , this is a staging distribution. When this value is false , this // is not a staging distribution. Staging *bool // A complex type that determines the distribution's SSL/TLS configuration for // communicating with viewers. ViewerCertificate *ViewerCertificate // A unique identifier that specifies the WAF web ACL, if any, to associate with // this distribution. To specify a web ACL created using the latest version of WAF, // use the ACL ARN, for example // arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111 // . To specify a web ACL created using WAF Classic, use the ACL ID, for example // a1b2c3d4-5678-90ab-cdef-EXAMPLE11111 . // // 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 WAF, see the [WAF Developer Guide]. // // [WAF Developer Guide]: https://docs.aws.amazon.com/waf/latest/developerguide/what-is-aws-waf.html WebACLId *string // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
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 Amazon Web // Services account. // // This member is required. Quantity *int32 // A complex type that contains one DistributionSummary element for each // distribution that was created by the current Amazon Web Services 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 // contains filtered or unexported fields }
A distribution list.
type DistributionNotDisabled ¶
type DistributionNotDisabled struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
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 Amazon Web Services 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 // A Boolean that indicates whether this is a staging distribution. When this // value is true , this is a staging distribution. When this value is false , this // is not a staging distribution. // // This member is required. Staging *bool // 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 // Amazon Web Services 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] in Getting Started with Amazon // Web Services services in China. // // [Signup, Accounts, and Credentials]: https://docs.amazonaws.cn/en_us/aws/latest/userguide/accounts-and-credentials.html AliasICPRecordals []AliasICPRecordal // ID of the Anycast static IP list that is associated with the distribution. AnycastIpListId *string // A complex type that contains information about origin groups for this // distribution. OriginGroups *OriginGroups // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
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 filtered or unexported fields }
Contains information about the Amazon Kinesis data stream where you are sending real-time log data in a real-time log configuration.
type EntityAlreadyExists ¶ added in v1.31.0
type EntityAlreadyExists struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The entity already exists. You must provide a unique entity.
func (*EntityAlreadyExists) Error ¶ added in v1.31.0
func (e *EntityAlreadyExists) Error() string
func (*EntityAlreadyExists) ErrorCode ¶ added in v1.31.0
func (e *EntityAlreadyExists) ErrorCode() string
func (*EntityAlreadyExists) ErrorFault ¶ added in v1.31.0
func (e *EntityAlreadyExists) ErrorFault() smithy.ErrorFault
func (*EntityAlreadyExists) ErrorMessage ¶ added in v1.31.0
func (e *EntityAlreadyExists) ErrorMessage() string
type EntityLimitExceeded ¶ added in v1.31.0
type EntityLimitExceeded struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The entity limit has been exceeded.
func (*EntityLimitExceeded) Error ¶ added in v1.31.0
func (e *EntityLimitExceeded) Error() string
func (*EntityLimitExceeded) ErrorCode ¶ added in v1.31.0
func (e *EntityLimitExceeded) ErrorCode() string
func (*EntityLimitExceeded) ErrorFault ¶ added in v1.31.0
func (e *EntityLimitExceeded) ErrorFault() smithy.ErrorFault
func (*EntityLimitExceeded) ErrorMessage ¶ added in v1.31.0
func (e *EntityLimitExceeded) ErrorMessage() string
type EntityNotFound ¶ added in v1.31.0
type EntityNotFound struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The entity was not found.
func (*EntityNotFound) Error ¶ added in v1.31.0
func (e *EntityNotFound) Error() string
func (*EntityNotFound) ErrorCode ¶ added in v1.31.0
func (e *EntityNotFound) ErrorCode() string
func (*EntityNotFound) ErrorFault ¶ added in v1.31.0
func (e *EntityNotFound) ErrorFault() smithy.ErrorFault
func (*EntityNotFound) ErrorMessage ¶ added in v1.31.0
func (e *EntityNotFound) ErrorMessage() string
type EntitySizeLimitExceeded ¶ added in v1.31.0
type EntitySizeLimitExceeded struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The entity size limit was exceeded.
func (*EntitySizeLimitExceeded) Error ¶ added in v1.31.0
func (e *EntitySizeLimitExceeded) Error() string
func (*EntitySizeLimitExceeded) ErrorCode ¶ added in v1.31.0
func (e *EntitySizeLimitExceeded) ErrorCode() string
func (*EntitySizeLimitExceeded) ErrorFault ¶ added in v1.31.0
func (e *EntitySizeLimitExceeded) ErrorFault() smithy.ErrorFault
func (*EntitySizeLimitExceeded) ErrorMessage ¶ added in v1.31.0
func (e *EntitySizeLimitExceeded) ErrorMessage() string
type EventType ¶
type EventType string
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 // contains filtered or unexported fields }
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. The comment cannot be longer than // 128 characters. 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 // contains filtered or unexported fields }
A complex data type that includes the profile configurations specified for field-level encryption.
type FieldLevelEncryptionConfigAlreadyExists ¶
type FieldLevelEncryptionConfigAlreadyExists struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The specified configuration for field-level encryption already exists.
func (*FieldLevelEncryptionConfigAlreadyExists) Error ¶
func (e *FieldLevelEncryptionConfigAlreadyExists) Error() string
func (*FieldLevelEncryptionConfigAlreadyExists) ErrorCode ¶
func (e *FieldLevelEncryptionConfigAlreadyExists) ErrorCode() string
func (*FieldLevelEncryptionConfigAlreadyExists) ErrorFault ¶
func (e *FieldLevelEncryptionConfigAlreadyExists) ErrorFault() smithy.ErrorFault
func (*FieldLevelEncryptionConfigAlreadyExists) ErrorMessage ¶
func (e *FieldLevelEncryptionConfigAlreadyExists) ErrorMessage() string
type FieldLevelEncryptionConfigInUse ¶
type FieldLevelEncryptionConfigInUse struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The specified configuration for field-level encryption is in use.
func (*FieldLevelEncryptionConfigInUse) Error ¶
func (e *FieldLevelEncryptionConfigInUse) Error() string
func (*FieldLevelEncryptionConfigInUse) ErrorCode ¶
func (e *FieldLevelEncryptionConfigInUse) ErrorCode() string
func (*FieldLevelEncryptionConfigInUse) ErrorFault ¶
func (e *FieldLevelEncryptionConfigInUse) ErrorFault() smithy.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 // contains filtered or unexported fields }
List of field-level encryption 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 // contains filtered or unexported fields }
A complex data type for field-level encryption profiles.
type FieldLevelEncryptionProfileAlreadyExists ¶
type FieldLevelEncryptionProfileAlreadyExists struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The specified profile for field-level encryption already exists.
func (*FieldLevelEncryptionProfileAlreadyExists) Error ¶
func (e *FieldLevelEncryptionProfileAlreadyExists) Error() string
func (*FieldLevelEncryptionProfileAlreadyExists) ErrorCode ¶
func (e *FieldLevelEncryptionProfileAlreadyExists) ErrorCode() string
func (*FieldLevelEncryptionProfileAlreadyExists) ErrorFault ¶
func (e *FieldLevelEncryptionProfileAlreadyExists) ErrorFault() smithy.ErrorFault
func (*FieldLevelEncryptionProfileAlreadyExists) ErrorMessage ¶
func (e *FieldLevelEncryptionProfileAlreadyExists) ErrorMessage() string
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. The comment cannot // be longer than 128 characters. Comment *string // contains filtered or unexported fields }
A complex data type of profiles for the field-level encryption.
type FieldLevelEncryptionProfileInUse ¶
type FieldLevelEncryptionProfileInUse struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The specified profile for field-level encryption is in use.
func (*FieldLevelEncryptionProfileInUse) Error ¶
func (e *FieldLevelEncryptionProfileInUse) Error() string
func (*FieldLevelEncryptionProfileInUse) ErrorCode ¶
func (e *FieldLevelEncryptionProfileInUse) ErrorCode() string
func (*FieldLevelEncryptionProfileInUse) ErrorFault ¶
func (e *FieldLevelEncryptionProfileInUse) ErrorFault() smithy.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 // contains filtered or unexported fields }
List of field-level encryption profiles.
type FieldLevelEncryptionProfileSizeExceeded ¶
type FieldLevelEncryptionProfileSizeExceeded struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The maximum size of a profile for field-level encryption was exceeded.
func (*FieldLevelEncryptionProfileSizeExceeded) Error ¶
func (e *FieldLevelEncryptionProfileSizeExceeded) Error() string
func (*FieldLevelEncryptionProfileSizeExceeded) ErrorCode ¶
func (e *FieldLevelEncryptionProfileSizeExceeded) ErrorCode() string
func (*FieldLevelEncryptionProfileSizeExceeded) ErrorFault ¶
func (e *FieldLevelEncryptionProfileSizeExceeded) ErrorFault() smithy.ErrorFault
func (*FieldLevelEncryptionProfileSizeExceeded) ErrorMessage ¶
func (e *FieldLevelEncryptionProfileSizeExceeded) ErrorMessage() string
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 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. The comment // cannot be longer than 128 characters. Comment *string // contains filtered or unexported fields }
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. The comment cannot // be longer than 128 characters. Comment *string // A summary of a content type-profile mapping. ContentTypeProfileConfig *ContentTypeProfileConfig // A summary of a query argument-profile mapping. QueryArgProfileConfig *QueryArgProfileConfig // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
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
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]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]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]in the Amazon CloudFront Developer Guide. // // [Creating origin request policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy // [Creating cache policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy // [How CloudFront Forwards, Caches, and Logs Cookies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Cookies.html // // 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]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]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] in the Amazon CloudFront Developer Guide. // // [Creating origin request policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy // [Creating cache policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy // [Configuring CloudFront to Cache Based on Query String Parameters]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/QueryStringParameters.html // // 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]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]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] in the Amazon CloudFront Developer Guide. // // [Creating origin request policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy // [Creating cache policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy // [Caching Content Based on Request Headers]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/header-caching.html 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]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]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. // // [Creating origin request policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy // [Creating cache policies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy QueryStringCacheKeys *QueryStringCacheKeys // contains filtered or unexported fields }
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 policiesin 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 policiesin the Amazon CloudFront Developer Guide.
A complex type that specifies how CloudFront handles query strings, cookies, and HTTP headers.
type FrameOptionsList ¶ added in v1.10.0
type FrameOptionsList string
const ( FrameOptionsListDeny FrameOptionsList = "DENY" FrameOptionsListSameorigin FrameOptionsList = "SAMEORIGIN" )
Enum values for FrameOptionsList
func (FrameOptionsList) Values ¶ added in v1.10.0
func (FrameOptionsList) Values() []FrameOptionsList
Values returns all known values for FrameOptionsList. 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 FunctionAlreadyExists ¶ added in v1.4.0
type FunctionAlreadyExists struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
A function with the same name already exists in this Amazon Web Services account. To create a function, you must provide a unique name. To update an existing function, use UpdateFunction .
func (*FunctionAlreadyExists) Error ¶ added in v1.4.0
func (e *FunctionAlreadyExists) Error() string
func (*FunctionAlreadyExists) ErrorCode ¶ added in v1.4.0
func (e *FunctionAlreadyExists) ErrorCode() string
func (*FunctionAlreadyExists) ErrorFault ¶ added in v1.4.0
func (e *FunctionAlreadyExists) ErrorFault() smithy.ErrorFault
func (*FunctionAlreadyExists) ErrorMessage ¶ added in v1.4.0
func (e *FunctionAlreadyExists) ErrorMessage() string
type FunctionAssociation ¶ added in v1.4.0
type FunctionAssociation struct { // The event type of the function, either viewer-request or viewer-response . You // cannot use origin-facing event types ( origin-request and origin-response ) with // a CloudFront function. // // This member is required. EventType EventType // The Amazon Resource Name (ARN) of the function. // // This member is required. FunctionARN *string // contains filtered or unexported fields }
A CloudFront function that is associated with a cache behavior in a CloudFront distribution.
type FunctionAssociations ¶ added in v1.4.0
type FunctionAssociations struct { // The number of CloudFront functions in the list. // // This member is required. Quantity *int32 // The CloudFront functions that are associated with a cache behavior in a // CloudFront distribution. Your functions must be published to the LIVE stage to // associate them with a cache behavior. Items []FunctionAssociation // contains filtered or unexported fields }
A list of CloudFront functions that are associated with a cache behavior in a CloudFront distribution. Your functions must be published to the LIVE stage to associate them with a cache behavior.
type FunctionConfig ¶ added in v1.4.0
type FunctionConfig struct { // A comment to describe the function. // // This member is required. Comment *string // The function's runtime environment version. // // This member is required. Runtime FunctionRuntime // The configuration for the key value store associations. KeyValueStoreAssociations *KeyValueStoreAssociations // contains filtered or unexported fields }
Contains configuration information about a CloudFront function.
type FunctionInUse ¶ added in v1.4.0
type FunctionInUse struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
Cannot delete the function because it's attached to one or more cache behaviors.
func (*FunctionInUse) Error ¶ added in v1.4.0
func (e *FunctionInUse) Error() string
func (*FunctionInUse) ErrorCode ¶ added in v1.4.0
func (e *FunctionInUse) ErrorCode() string
func (*FunctionInUse) ErrorFault ¶ added in v1.4.0
func (e *FunctionInUse) ErrorFault() smithy.ErrorFault
func (*FunctionInUse) ErrorMessage ¶ added in v1.4.0
func (e *FunctionInUse) ErrorMessage() string
type FunctionList ¶ added in v1.4.0
type FunctionList struct { // The maximum number of functions requested. // // This member is required. MaxItems *int32 // The number of functions returned in the response. // // This member is required. Quantity *int32 // Contains the functions in the list. Items []FunctionSummary // 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 functions where you left off. NextMarker *string // contains filtered or unexported fields }
A list of CloudFront functions.
type FunctionMetadata ¶ added in v1.4.0
type FunctionMetadata struct { // The Amazon Resource Name (ARN) of the function. The ARN uniquely identifies the // function. // // This member is required. FunctionARN *string // The date and time when the function was most recently updated. // // This member is required. LastModifiedTime *time.Time // The date and time when the function was created. CreatedTime *time.Time // The stage that the function is in, either DEVELOPMENT or LIVE . // // When a function is in the DEVELOPMENT stage, you can test the function with // TestFunction , and update it with UpdateFunction . // // When a function is in the LIVE stage, you can attach the function to a // distribution's cache behavior, using the function's ARN. Stage FunctionStage // contains filtered or unexported fields }
Contains metadata about a CloudFront function.
type FunctionRuntime ¶ added in v1.4.0
type FunctionRuntime string
const ( FunctionRuntimeCloudfrontJs10 FunctionRuntime = "cloudfront-js-1.0" FunctionRuntimeCloudfrontJs20 FunctionRuntime = "cloudfront-js-2.0" )
Enum values for FunctionRuntime
func (FunctionRuntime) Values ¶ added in v1.4.0
func (FunctionRuntime) Values() []FunctionRuntime
Values returns all known values for FunctionRuntime. 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 FunctionSizeLimitExceeded ¶ added in v1.4.0
type FunctionSizeLimitExceeded struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The function is too large. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
func (*FunctionSizeLimitExceeded) Error ¶ added in v1.4.0
func (e *FunctionSizeLimitExceeded) Error() string
func (*FunctionSizeLimitExceeded) ErrorCode ¶ added in v1.4.0
func (e *FunctionSizeLimitExceeded) ErrorCode() string
func (*FunctionSizeLimitExceeded) ErrorFault ¶ added in v1.4.0
func (e *FunctionSizeLimitExceeded) ErrorFault() smithy.ErrorFault
func (*FunctionSizeLimitExceeded) ErrorMessage ¶ added in v1.4.0
func (e *FunctionSizeLimitExceeded) ErrorMessage() string
type FunctionStage ¶ added in v1.4.0
type FunctionStage string
const ( FunctionStageDevelopment FunctionStage = "DEVELOPMENT" FunctionStageLive FunctionStage = "LIVE" )
Enum values for FunctionStage
func (FunctionStage) Values ¶ added in v1.4.0
func (FunctionStage) Values() []FunctionStage
Values returns all known values for FunctionStage. 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 FunctionSummary ¶ added in v1.4.0
type FunctionSummary struct { // Contains configuration information about a CloudFront function. // // This member is required. FunctionConfig *FunctionConfig // Contains metadata about a CloudFront function. // // This member is required. FunctionMetadata *FunctionMetadata // The name of the CloudFront function. // // This member is required. Name *string // The status of the CloudFront function. Status *string // contains filtered or unexported fields }
Contains configuration information and metadata about a CloudFront function.
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 // contains filtered or unexported fields }
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
func (GeoRestrictionType) Values() []GeoRestrictionType
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 GrpcConfig ¶ added in v1.42.0
type GrpcConfig struct { // Enables your CloudFront distribution to receive gRPC requests and to proxy them // directly to your origins. // // This member is required. Enabled *bool // contains filtered or unexported fields }
Amazon CloudFront supports gRPC, an open-source remote procedure call (RPC) framework built on HTTP/2. gRPC offers bi-directional streaming and binary protocol that buffers payloads, making it suitable for applications that require low latency communications.
To enable your distribution to handle gRPC requests, you must include HTTP/2 as one of the supported HTTP versions and allow HTTP methods, including POST .
For more information, see Using gRPC with CloudFront distributions in the Amazon CloudFront Developer Guide.
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 filtered or unexported fields }
Contains a list of HTTP header names.
type HttpVersion ¶
type HttpVersion string
const ( HttpVersionHttp11 HttpVersion = "http1.1" HttpVersionHttp2 HttpVersion = "http2" HttpVersionHttp3 HttpVersion = "http3" HttpVersionHttp2and3 HttpVersion = "http2and3" )
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
func (ICPRecordalStatus) Values() []ICPRecordalStatus
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 ErrorCodeOverride *string // contains filtered or unexported fields }
Deletion is not allowed for this entity.
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 ErrorCodeOverride *string // contains filtered or unexported fields }
The specified configuration for field-level encryption can't be associated with the specified cache behavior.
func (*IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior) Error ¶
func (e *IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior) Error() string
func (*IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior) ErrorCode ¶
func (e *IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior) ErrorCode() string
func (*IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior) ErrorFault ¶
func (e *IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior) ErrorFault() smithy.ErrorFault
func (*IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior) ErrorMessage ¶
func (e *IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior) ErrorMessage() string
type IllegalOriginAccessConfiguration ¶ added in v1.20.0
type IllegalOriginAccessConfiguration struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
An origin cannot contain both an origin access control (OAC) and an origin access identity (OAI).
func (*IllegalOriginAccessConfiguration) Error ¶ added in v1.20.0
func (e *IllegalOriginAccessConfiguration) Error() string
func (*IllegalOriginAccessConfiguration) ErrorCode ¶ added in v1.20.0
func (e *IllegalOriginAccessConfiguration) ErrorCode() string
func (*IllegalOriginAccessConfiguration) ErrorFault ¶ added in v1.20.0
func (e *IllegalOriginAccessConfiguration) ErrorFault() smithy.ErrorFault
func (*IllegalOriginAccessConfiguration) ErrorMessage ¶ added in v1.20.0
func (e *IllegalOriginAccessConfiguration) ErrorMessage() string
type IllegalUpdate ¶
type IllegalUpdate struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
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 ImportSource ¶ added in v1.31.0
type ImportSource struct { // The Amazon Resource Name (ARN) of the import source for the key value store. // // This member is required. SourceARN *string // The source type of the import source for the key value store. // // This member is required. SourceType ImportSourceType // contains filtered or unexported fields }
The import source for the key value store.
type ImportSourceType ¶ added in v1.31.0
type ImportSourceType string
const (
ImportSourceTypeS3 ImportSourceType = "S3"
)
Enum values for ImportSourceType
func (ImportSourceType) Values ¶ added in v1.31.0
func (ImportSourceType) Values() []ImportSourceType
Values returns all known values for ImportSourceType. 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 InconsistentQuantities ¶
type InconsistentQuantities struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
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 ErrorCodeOverride *string // contains filtered or unexported fields }
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 ErrorCodeOverride *string // contains filtered or unexported fields }
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 InvalidDomainNameForOriginAccessControl ¶ added in v1.20.0
type InvalidDomainNameForOriginAccessControl struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
An origin access control is associated with an origin whose domain name is not supported.
func (*InvalidDomainNameForOriginAccessControl) Error ¶ added in v1.20.0
func (e *InvalidDomainNameForOriginAccessControl) Error() string
func (*InvalidDomainNameForOriginAccessControl) ErrorCode ¶ added in v1.20.0
func (e *InvalidDomainNameForOriginAccessControl) ErrorCode() string
func (*InvalidDomainNameForOriginAccessControl) ErrorFault ¶ added in v1.20.0
func (e *InvalidDomainNameForOriginAccessControl) ErrorFault() smithy.ErrorFault
func (*InvalidDomainNameForOriginAccessControl) ErrorMessage ¶ added in v1.20.0
func (e *InvalidDomainNameForOriginAccessControl) ErrorMessage() string
type InvalidErrorCode ¶
type InvalidErrorCode struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
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 ErrorCodeOverride *string // contains filtered or unexported fields }
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 InvalidFunctionAssociation ¶ added in v1.4.0
type InvalidFunctionAssociation struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
A CloudFront function association is invalid.
func (*InvalidFunctionAssociation) Error ¶ added in v1.4.0
func (e *InvalidFunctionAssociation) Error() string
func (*InvalidFunctionAssociation) ErrorCode ¶ added in v1.4.0
func (e *InvalidFunctionAssociation) ErrorCode() string
func (*InvalidFunctionAssociation) ErrorFault ¶ added in v1.4.0
func (e *InvalidFunctionAssociation) ErrorFault() smithy.ErrorFault
func (*InvalidFunctionAssociation) ErrorMessage ¶ added in v1.4.0
func (e *InvalidFunctionAssociation) ErrorMessage() string
type InvalidGeoRestrictionParameter ¶
type InvalidGeoRestrictionParameter struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The specified geo restriction parameter is not valid.
func (*InvalidGeoRestrictionParameter) Error ¶
func (e *InvalidGeoRestrictionParameter) Error() string
func (*InvalidGeoRestrictionParameter) ErrorCode ¶
func (e *InvalidGeoRestrictionParameter) ErrorCode() string
func (*InvalidGeoRestrictionParameter) ErrorFault ¶
func (e *InvalidGeoRestrictionParameter) ErrorFault() smithy.ErrorFault
func (*InvalidGeoRestrictionParameter) ErrorMessage ¶
func (e *InvalidGeoRestrictionParameter) ErrorMessage() string
type InvalidHeadersForS3Origin ¶
type InvalidHeadersForS3Origin struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
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 (e *InvalidHeadersForS3Origin) ErrorFault() smithy.ErrorFault
func (*InvalidHeadersForS3Origin) ErrorMessage ¶
func (e *InvalidHeadersForS3Origin) ErrorMessage() string
type InvalidIfMatchVersion ¶
type InvalidIfMatchVersion struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
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 ErrorCodeOverride *string // contains filtered or unexported fields }
The specified Lambda@Edge function association is invalid.
func (*InvalidLambdaFunctionAssociation) Error ¶
func (e *InvalidLambdaFunctionAssociation) Error() string
func (*InvalidLambdaFunctionAssociation) ErrorCode ¶
func (e *InvalidLambdaFunctionAssociation) ErrorCode() string
func (*InvalidLambdaFunctionAssociation) ErrorFault ¶
func (e *InvalidLambdaFunctionAssociation) ErrorFault() smithy.ErrorFault
func (*InvalidLambdaFunctionAssociation) ErrorMessage ¶
func (e *InvalidLambdaFunctionAssociation) ErrorMessage() string
type InvalidLocationCode ¶
type InvalidLocationCode struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
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 ErrorCodeOverride *string // contains filtered or unexported fields }
The minimum protocol version specified is not valid.
func (*InvalidMinimumProtocolVersion) Error ¶
func (e *InvalidMinimumProtocolVersion) Error() string
func (*InvalidMinimumProtocolVersion) ErrorCode ¶
func (e *InvalidMinimumProtocolVersion) ErrorCode() string
func (*InvalidMinimumProtocolVersion) ErrorFault ¶
func (e *InvalidMinimumProtocolVersion) ErrorFault() smithy.ErrorFault
func (*InvalidMinimumProtocolVersion) ErrorMessage ¶
func (e *InvalidMinimumProtocolVersion) ErrorMessage() string
type InvalidOrigin ¶
type InvalidOrigin struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
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 InvalidOriginAccessControl ¶ added in v1.20.0
type InvalidOriginAccessControl struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The origin access control is not valid.
func (*InvalidOriginAccessControl) Error ¶ added in v1.20.0
func (e *InvalidOriginAccessControl) Error() string
func (*InvalidOriginAccessControl) ErrorCode ¶ added in v1.20.0
func (e *InvalidOriginAccessControl) ErrorCode() string
func (*InvalidOriginAccessControl) ErrorFault ¶ added in v1.20.0
func (e *InvalidOriginAccessControl) ErrorFault() smithy.ErrorFault
func (*InvalidOriginAccessControl) ErrorMessage ¶ added in v1.20.0
func (e *InvalidOriginAccessControl) ErrorMessage() string
type InvalidOriginAccessIdentity ¶
type InvalidOriginAccessIdentity struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The origin access identity is not valid or doesn't exist.
func (*InvalidOriginAccessIdentity) Error ¶
func (e *InvalidOriginAccessIdentity) Error() string
func (*InvalidOriginAccessIdentity) ErrorCode ¶
func (e *InvalidOriginAccessIdentity) ErrorCode() string
func (*InvalidOriginAccessIdentity) ErrorFault ¶
func (e *InvalidOriginAccessIdentity) ErrorFault() smithy.ErrorFault
func (*InvalidOriginAccessIdentity) ErrorMessage ¶
func (e *InvalidOriginAccessIdentity) ErrorMessage() string
type InvalidOriginKeepaliveTimeout ¶
type InvalidOriginKeepaliveTimeout struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The keep alive timeout specified for the origin is not valid.
func (*InvalidOriginKeepaliveTimeout) Error ¶
func (e *InvalidOriginKeepaliveTimeout) Error() string
func (*InvalidOriginKeepaliveTimeout) ErrorCode ¶
func (e *InvalidOriginKeepaliveTimeout) ErrorCode() string
func (*InvalidOriginKeepaliveTimeout) ErrorFault ¶
func (e *InvalidOriginKeepaliveTimeout) ErrorFault() smithy.ErrorFault
func (*InvalidOriginKeepaliveTimeout) ErrorMessage ¶
func (e *InvalidOriginKeepaliveTimeout) ErrorMessage() string
type InvalidOriginReadTimeout ¶
type InvalidOriginReadTimeout struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
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 ErrorCodeOverride *string // contains filtered or unexported fields }
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 ErrorCodeOverride *string // contains filtered or unexported fields }
The query string parameters specified are not valid.
func (*InvalidQueryStringParameters) Error ¶
func (e *InvalidQueryStringParameters) Error() string
func (*InvalidQueryStringParameters) ErrorCode ¶
func (e *InvalidQueryStringParameters) ErrorCode() string
func (*InvalidQueryStringParameters) ErrorFault ¶
func (e *InvalidQueryStringParameters) ErrorFault() smithy.ErrorFault
func (*InvalidQueryStringParameters) ErrorMessage ¶
func (e *InvalidQueryStringParameters) ErrorMessage() string
type InvalidRelativePath ¶
type InvalidRelativePath struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
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 ErrorCodeOverride *string // contains filtered or unexported fields }
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 ErrorCodeOverride *string // contains filtered or unexported fields }
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 ErrorCodeOverride *string // contains filtered or unexported fields }
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 ErrorCodeOverride *string // contains filtered or unexported fields }
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 ErrorCodeOverride *string // contains filtered or unexported fields }
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 ErrorCodeOverride *string // contains filtered or unexported fields }
A web ACL ID specified is not valid. To specify a web ACL created using the latest version of 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 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 // contains filtered or unexported fields }
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]in the Amazon CloudFront Developer Guide. // // [Specifying the Objects to Invalidate]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html#invalidation-specifying-objects // // This member is required. Paths *Paths // contains filtered or unexported fields }
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 Amazon Web // Services account. // // This member is required. Quantity *int32 // A complex type that contains one InvalidationSummary element for each // invalidation batch created by the current Amazon Web Services 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 // contains filtered or unexported fields }
The InvalidationList complex type describes the list of invalidation objects. For more information about invalidation, see Invalidating Objects (Web Distributions Only)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 // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
A key group.
A key group contains a list of public keys that you can use with CloudFront signed URLs and signed cookies.
type KeyGroupAlreadyExists ¶ added in v0.29.0
type KeyGroupAlreadyExists struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
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. The comment cannot be longer than 128 // characters. Comment *string // contains filtered or unexported fields }
A key group configuration.
A key group contains a list of public keys that you can use with CloudFront signed URLs and signed cookies.
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 // contains filtered or unexported fields }
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 filtered or unexported fields }
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 // contains filtered or unexported fields }
A list of CloudFront key pair identifiers.
type KeyValueStore ¶ added in v1.31.0
type KeyValueStore struct { // The Amazon Resource Name (ARN) of the key value store. // // This member is required. ARN *string // A comment for the key value store. // // This member is required. Comment *string // The unique Id for the key value store. // // This member is required. Id *string // The last-modified time of the key value store. // // This member is required. LastModifiedTime *time.Time // The name of the key value store. // // This member is required. Name *string // The status of the key value store. Status *string // contains filtered or unexported fields }
The key value store. Use this to separate data from function code, allowing you to update data without having to publish a new version of a function. The key value store holds keys and their corresponding values.
type KeyValueStoreAssociation ¶ added in v1.31.0
type KeyValueStoreAssociation struct { // The Amazon Resource Name (ARN) of the key value store association. // // This member is required. KeyValueStoreARN *string // contains filtered or unexported fields }
The key value store association.
type KeyValueStoreAssociations ¶ added in v1.31.0
type KeyValueStoreAssociations struct { // The quantity of key value store associations. // // This member is required. Quantity *int32 // The items of the key value store association. Items []KeyValueStoreAssociation // contains filtered or unexported fields }
The key value store associations.
type KeyValueStoreList ¶ added in v1.31.0
type KeyValueStoreList struct { // The maximum number of items in the key value store list. // // This member is required. MaxItems *int32 // The quantity of the key value store list. // // This member is required. Quantity *int32 // The items of the key value store list. Items []KeyValueStore // The next marker associated with the key value store list. NextMarker *string // contains filtered or unexported fields }
The key value store list.
type KinesisStreamConfig ¶ added in v0.29.0
type KinesisStreamConfig struct { // The Amazon Resource Name (ARN) of an 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] in the Amazon CloudFront Developer // Guide. // // [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 // // 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 filtered or unexported fields }
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@Edge 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@Edge function. You must specify the ARN of a function // version; you can't specify an alias or $LATEST. // // This member is required. LambdaFunctionARN *string // A flag that allows a Lambda@Edge function to have read access to the body // content. For more information, see [Accessing the Request Body by Choosing the Include Body Option]in the Amazon CloudFront Developer Guide. // // [Accessing the Request Body by Choosing the Include Body Option]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-include-body-access.html IncludeBody *bool // contains filtered or unexported fields }
A complex type that contains a Lambda@Edge function association.
type LambdaFunctionAssociations ¶
type LambdaFunctionAssociations struct { // The number of Lambda@Edge 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 // contains filtered or unexported fields }
A complex type that specifies a list of Lambda@Edge functions associations for a cache behavior.
If you want to invoke one or more Lambda@Edge 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 only one function.
If you don't want to invoke any Lambda@Edge 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, // amzn-s3-demo-bucket.s3.amazonaws.com . 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 and prefix , the values are // automatically deleted. 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 . 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. Prefix *string // contains filtered or unexported fields }
A complex type that specifies whether access logs are written for the distribution.
If you already enabled standard logging (legacy) and you want to enable standard logging (v2) to send your access logs to Amazon S3, we recommend that you specify a different Amazon S3 bucket or use a separate path in the same bucket (for example, use a log prefix or partitioning). This helps you keep track of which log files are associated with which logging subscription and prevents log files from overwriting each other. For more information, see Standard logging (access logs)in the Amazon CloudFront Developer Guide.
type Method ¶
type Method string
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" MinimumProtocolVersionTLSv122021 MinimumProtocolVersion = "TLSv1.2_2021" )
Enum values for MinimumProtocolVersion
func (MinimumProtocolVersion) Values ¶ added in v0.29.0
func (MinimumProtocolVersion) Values() []MinimumProtocolVersion
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 ErrorCodeOverride *string // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
A monitoring subscription. This structure contains information about whether additional CloudWatch metrics are enabled for a given CloudFront distribution.
type MonitoringSubscriptionAlreadyExists ¶ added in v1.20.0
type MonitoringSubscriptionAlreadyExists struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
A monitoring subscription already exists for the specified distribution.
func (*MonitoringSubscriptionAlreadyExists) Error ¶ added in v1.20.0
func (e *MonitoringSubscriptionAlreadyExists) Error() string
func (*MonitoringSubscriptionAlreadyExists) ErrorCode ¶ added in v1.20.0
func (e *MonitoringSubscriptionAlreadyExists) ErrorCode() string
func (*MonitoringSubscriptionAlreadyExists) ErrorFault ¶ added in v1.20.0
func (e *MonitoringSubscriptionAlreadyExists) ErrorFault() smithy.ErrorFault
func (*MonitoringSubscriptionAlreadyExists) ErrorMessage ¶ added in v1.20.0
func (e *MonitoringSubscriptionAlreadyExists) ErrorMessage() string
type NoSuchCachePolicy ¶
type NoSuchCachePolicy struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
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 ErrorCodeOverride *string // contains filtered or unexported fields }
The specified origin access identity does not exist.
func (*NoSuchCloudFrontOriginAccessIdentity) Error ¶
func (e *NoSuchCloudFrontOriginAccessIdentity) Error() string
func (*NoSuchCloudFrontOriginAccessIdentity) ErrorCode ¶
func (e *NoSuchCloudFrontOriginAccessIdentity) ErrorCode() string
func (*NoSuchCloudFrontOriginAccessIdentity) ErrorFault ¶
func (e *NoSuchCloudFrontOriginAccessIdentity) ErrorFault() smithy.ErrorFault
func (*NoSuchCloudFrontOriginAccessIdentity) ErrorMessage ¶
func (e *NoSuchCloudFrontOriginAccessIdentity) ErrorMessage() string
type NoSuchContinuousDeploymentPolicy ¶ added in v1.22.0
type NoSuchContinuousDeploymentPolicy struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The continuous deployment policy doesn't exist.
func (*NoSuchContinuousDeploymentPolicy) Error ¶ added in v1.22.0
func (e *NoSuchContinuousDeploymentPolicy) Error() string
func (*NoSuchContinuousDeploymentPolicy) ErrorCode ¶ added in v1.22.0
func (e *NoSuchContinuousDeploymentPolicy) ErrorCode() string
func (*NoSuchContinuousDeploymentPolicy) ErrorFault ¶ added in v1.22.0
func (e *NoSuchContinuousDeploymentPolicy) ErrorFault() smithy.ErrorFault
func (*NoSuchContinuousDeploymentPolicy) ErrorMessage ¶ added in v1.22.0
func (e *NoSuchContinuousDeploymentPolicy) ErrorMessage() string
type NoSuchDistribution ¶
type NoSuchDistribution struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
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 ErrorCodeOverride *string // contains filtered or unexported fields }
The specified configuration for field-level encryption doesn't exist.
func (*NoSuchFieldLevelEncryptionConfig) Error ¶
func (e *NoSuchFieldLevelEncryptionConfig) Error() string
func (*NoSuchFieldLevelEncryptionConfig) ErrorCode ¶
func (e *NoSuchFieldLevelEncryptionConfig) ErrorCode() string
func (*NoSuchFieldLevelEncryptionConfig) ErrorFault ¶
func (e *NoSuchFieldLevelEncryptionConfig) ErrorFault() smithy.ErrorFault
func (*NoSuchFieldLevelEncryptionConfig) ErrorMessage ¶
func (e *NoSuchFieldLevelEncryptionConfig) ErrorMessage() string
type NoSuchFieldLevelEncryptionProfile ¶
type NoSuchFieldLevelEncryptionProfile struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The specified profile for field-level encryption doesn't exist.
func (*NoSuchFieldLevelEncryptionProfile) Error ¶
func (e *NoSuchFieldLevelEncryptionProfile) Error() string
func (*NoSuchFieldLevelEncryptionProfile) ErrorCode ¶
func (e *NoSuchFieldLevelEncryptionProfile) ErrorCode() string
func (*NoSuchFieldLevelEncryptionProfile) ErrorFault ¶
func (e *NoSuchFieldLevelEncryptionProfile) ErrorFault() smithy.ErrorFault
func (*NoSuchFieldLevelEncryptionProfile) ErrorMessage ¶
func (e *NoSuchFieldLevelEncryptionProfile) ErrorMessage() string
type NoSuchFunctionExists ¶ added in v1.4.0
type NoSuchFunctionExists struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The function does not exist.
func (*NoSuchFunctionExists) Error ¶ added in v1.4.0
func (e *NoSuchFunctionExists) Error() string
func (*NoSuchFunctionExists) ErrorCode ¶ added in v1.4.0
func (e *NoSuchFunctionExists) ErrorCode() string
func (*NoSuchFunctionExists) ErrorFault ¶ added in v1.4.0
func (e *NoSuchFunctionExists) ErrorFault() smithy.ErrorFault
func (*NoSuchFunctionExists) ErrorMessage ¶ added in v1.4.0
func (e *NoSuchFunctionExists) ErrorMessage() string
type NoSuchInvalidation ¶
type NoSuchInvalidation struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
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 NoSuchMonitoringSubscription ¶ added in v1.20.0
type NoSuchMonitoringSubscription struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
A monitoring subscription does not exist for the specified distribution.
func (*NoSuchMonitoringSubscription) Error ¶ added in v1.20.0
func (e *NoSuchMonitoringSubscription) Error() string
func (*NoSuchMonitoringSubscription) ErrorCode ¶ added in v1.20.0
func (e *NoSuchMonitoringSubscription) ErrorCode() string
func (*NoSuchMonitoringSubscription) ErrorFault ¶ added in v1.20.0
func (e *NoSuchMonitoringSubscription) ErrorFault() smithy.ErrorFault
func (*NoSuchMonitoringSubscription) ErrorMessage ¶ added in v1.20.0
func (e *NoSuchMonitoringSubscription) ErrorMessage() string
type NoSuchOrigin ¶
type NoSuchOrigin struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
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 NoSuchOriginAccessControl ¶ added in v1.20.0
type NoSuchOriginAccessControl struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The origin access control does not exist.
func (*NoSuchOriginAccessControl) Error ¶ added in v1.20.0
func (e *NoSuchOriginAccessControl) Error() string
func (*NoSuchOriginAccessControl) ErrorCode ¶ added in v1.20.0
func (e *NoSuchOriginAccessControl) ErrorCode() string
func (*NoSuchOriginAccessControl) ErrorFault ¶ added in v1.20.0
func (e *NoSuchOriginAccessControl) ErrorFault() smithy.ErrorFault
func (*NoSuchOriginAccessControl) ErrorMessage ¶ added in v1.20.0
func (e *NoSuchOriginAccessControl) ErrorMessage() string
type NoSuchOriginRequestPolicy ¶
type NoSuchOriginRequestPolicy struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
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 (e *NoSuchOriginRequestPolicy) ErrorFault() smithy.ErrorFault
func (*NoSuchOriginRequestPolicy) ErrorMessage ¶
func (e *NoSuchOriginRequestPolicy) ErrorMessage() string
type NoSuchPublicKey ¶
type NoSuchPublicKey struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
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 ErrorCodeOverride *string // contains filtered or unexported fields }
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 ErrorCodeOverride *string // contains filtered or unexported fields }
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 NoSuchResponseHeadersPolicy ¶ added in v1.10.0
type NoSuchResponseHeadersPolicy struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The response headers policy does not exist.
func (*NoSuchResponseHeadersPolicy) Error ¶ added in v1.10.0
func (e *NoSuchResponseHeadersPolicy) Error() string
func (*NoSuchResponseHeadersPolicy) ErrorCode ¶ added in v1.10.0
func (e *NoSuchResponseHeadersPolicy) ErrorCode() string
func (*NoSuchResponseHeadersPolicy) ErrorFault ¶ added in v1.10.0
func (e *NoSuchResponseHeadersPolicy) ErrorFault() smithy.ErrorFault
func (*NoSuchResponseHeadersPolicy) ErrorMessage ¶ added in v1.10.0
func (e *NoSuchResponseHeadersPolicy) ErrorMessage() string
type NoSuchStreamingDistribution ¶
type NoSuchStreamingDistribution struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The specified streaming distribution does not exist.
func (*NoSuchStreamingDistribution) Error ¶
func (e *NoSuchStreamingDistribution) Error() string
func (*NoSuchStreamingDistribution) ErrorCode ¶
func (e *NoSuchStreamingDistribution) ErrorCode() string
func (*NoSuchStreamingDistribution) ErrorFault ¶
func (e *NoSuchStreamingDistribution) ErrorFault() smithy.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] in the Amazon CloudFront Developer Guide. // // [Origin Domain Name]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesDomainName // // 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]. // // For more information, see [Origin Connection Attempts] in the Amazon CloudFront Developer Guide. // // [Origin Connection Attempts]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#origin-connection-attempts // [Origin Response Timeout]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginResponseTimeout 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] in the Amazon CloudFront Developer Guide. // // [Origin Connection Timeout]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#origin-connection-timeout 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] in the Amazon CloudFront Developer Guide. // // [Adding Custom Headers to Origin Requests]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/add-origin-custom-headers.html 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 // The unique identifier of an origin access control for this origin. // // For more information, see [Restricting access to an Amazon S3 origin] in the Amazon CloudFront Developer Guide. // // [Restricting access to an Amazon S3 origin]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html OriginAccessControlId *string // An optional path that CloudFront appends to the origin domain name when // CloudFront requests content from the origin. // // For more information, see [Origin Path] in the Amazon CloudFront Developer Guide. // // [Origin Path]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginPath OriginPath *string // CloudFront Origin Shield. Using Origin Shield can help reduce the load on your // origin. // // For more information, see [Using Origin Shield] in the Amazon CloudFront Developer Guide. // // [Using Origin Shield]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html 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 // The VPC origin configuration. VpcOriginConfig *VpcOriginConfig // contains filtered or unexported fields }
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 Elemental MediaPackage endpoint
An 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 Distributionsin the Amazon CloudFront Developer Guide (quotas were formerly referred to as limits).
type OriginAccessControl ¶ added in v1.20.0
type OriginAccessControl struct { // The unique identifier of the origin access control. // // This member is required. Id *string // The origin access control. OriginAccessControlConfig *OriginAccessControlConfig // contains filtered or unexported fields }
A CloudFront origin access control, including its unique identifier.
type OriginAccessControlAlreadyExists ¶ added in v1.20.0
type OriginAccessControlAlreadyExists struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
An origin access control with the specified parameters already exists.
func (*OriginAccessControlAlreadyExists) Error ¶ added in v1.20.0
func (e *OriginAccessControlAlreadyExists) Error() string
func (*OriginAccessControlAlreadyExists) ErrorCode ¶ added in v1.20.0
func (e *OriginAccessControlAlreadyExists) ErrorCode() string
func (*OriginAccessControlAlreadyExists) ErrorFault ¶ added in v1.20.0
func (e *OriginAccessControlAlreadyExists) ErrorFault() smithy.ErrorFault
func (*OriginAccessControlAlreadyExists) ErrorMessage ¶ added in v1.20.0
func (e *OriginAccessControlAlreadyExists) ErrorMessage() string
type OriginAccessControlConfig ¶ added in v1.20.0
type OriginAccessControlConfig struct { // A name to identify the origin access control. You can specify up to 64 // characters. // // This member is required. Name *string // The type of origin that this origin access control is for. // // This member is required. OriginAccessControlOriginType OriginAccessControlOriginTypes // Specifies which requests CloudFront signs (adds authentication information to). // Specify always for the most common use case. For more information, see [origin access control advanced settings] in the // Amazon CloudFront Developer Guide. // // This field can have one of the following values: // // - always – CloudFront signs all origin requests, overwriting the Authorization // header from the viewer request if one exists. // // - never – CloudFront doesn't sign any origin requests. This value turns off // origin access control for all origins in all distributions that use this origin // access control. // // - no-override – If the viewer request doesn't contain the Authorization // header, then CloudFront signs the origin request. If the viewer request contains // the Authorization header, then CloudFront doesn't sign the origin request and // instead passes along the Authorization header from the viewer request. // WARNING: To pass along the Authorization header from the viewer request, you // must add the Authorization header to a [cache policy]for all cache behaviors that use // origins associated with this origin access control. // // [origin access control advanced settings]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html#oac-advanced-settings // [cache policy]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html // // This member is required. SigningBehavior OriginAccessControlSigningBehaviors // The signing protocol of the origin access control, which determines how // CloudFront signs (authenticates) requests. The only valid value is sigv4 . // // This member is required. SigningProtocol OriginAccessControlSigningProtocols // A description of the origin access control. Description *string // contains filtered or unexported fields }
A CloudFront origin access control configuration.
type OriginAccessControlInUse ¶ added in v1.20.0
type OriginAccessControlInUse struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
Cannot delete the origin access control because it's in use by one or more distributions.
func (*OriginAccessControlInUse) Error ¶ added in v1.20.0
func (e *OriginAccessControlInUse) Error() string
func (*OriginAccessControlInUse) ErrorCode ¶ added in v1.20.0
func (e *OriginAccessControlInUse) ErrorCode() string
func (*OriginAccessControlInUse) ErrorFault ¶ added in v1.20.0
func (e *OriginAccessControlInUse) ErrorFault() smithy.ErrorFault
func (*OriginAccessControlInUse) ErrorMessage ¶ added in v1.20.0
func (e *OriginAccessControlInUse) ErrorMessage() string
type OriginAccessControlList ¶ added in v1.20.0
type OriginAccessControlList struct { // If there are more items in the list than are in this response, this value is // true . // // This member is required. IsTruncated *bool // The value of the Marker field that was provided in the request. // // This member is required. Marker *string // The maximum number of origin access controls requested. // // This member is required. MaxItems *int32 // The number of origin access controls returned in the response. // // This member is required. Quantity *int32 // Contains the origin access controls in the list. Items []OriginAccessControlSummary // If there are more items in the list than are in this response, this element is // present. It contains the value to use in the Marker field of another request to // continue listing origin access controls. NextMarker *string // contains filtered or unexported fields }
A list of CloudFront origin access controls.
type OriginAccessControlOriginTypes ¶ added in v1.20.0
type OriginAccessControlOriginTypes string
const ( OriginAccessControlOriginTypesS3 OriginAccessControlOriginTypes = "s3" OriginAccessControlOriginTypesMediastore OriginAccessControlOriginTypes = "mediastore" OriginAccessControlOriginTypesMediapackagev2 OriginAccessControlOriginTypes = "mediapackagev2" OriginAccessControlOriginTypesLambda OriginAccessControlOriginTypes = "lambda" )
Enum values for OriginAccessControlOriginTypes
func (OriginAccessControlOriginTypes) Values ¶ added in v1.20.0
func (OriginAccessControlOriginTypes) Values() []OriginAccessControlOriginTypes
Values returns all known values for OriginAccessControlOriginTypes. 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 OriginAccessControlSigningBehaviors ¶ added in v1.20.0
type OriginAccessControlSigningBehaviors string
const ( OriginAccessControlSigningBehaviorsNever OriginAccessControlSigningBehaviors = "never" OriginAccessControlSigningBehaviorsAlways OriginAccessControlSigningBehaviors = "always" OriginAccessControlSigningBehaviorsNoOverride OriginAccessControlSigningBehaviors = "no-override" )
Enum values for OriginAccessControlSigningBehaviors
func (OriginAccessControlSigningBehaviors) Values ¶ added in v1.20.0
func (OriginAccessControlSigningBehaviors) Values() []OriginAccessControlSigningBehaviors
Values returns all known values for OriginAccessControlSigningBehaviors. 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 OriginAccessControlSigningProtocols ¶ added in v1.20.0
type OriginAccessControlSigningProtocols string
const (
OriginAccessControlSigningProtocolsSigv4 OriginAccessControlSigningProtocols = "sigv4"
)
Enum values for OriginAccessControlSigningProtocols
func (OriginAccessControlSigningProtocols) Values ¶ added in v1.20.0
func (OriginAccessControlSigningProtocols) Values() []OriginAccessControlSigningProtocols
Values returns all known values for OriginAccessControlSigningProtocols. 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 OriginAccessControlSummary ¶ added in v1.20.0
type OriginAccessControlSummary struct { // A description of the origin access control. // // This member is required. Description *string // The unique identifier of the origin access control. // // This member is required. Id *string // A unique name that identifies the origin access control. // // This member is required. Name *string // The type of origin that this origin access control is for. // // This member is required. OriginAccessControlOriginType OriginAccessControlOriginTypes // A value that specifies which requests CloudFront signs (adds authentication // information to). This field can have one of the following values: // // - never – CloudFront doesn't sign any origin requests. // // - always – CloudFront signs all origin requests, overwriting the Authorization // header from the viewer request if necessary. // // - no-override – If the viewer request doesn't contain the Authorization // header, CloudFront signs the origin request. If the viewer request contains the // Authorization header, CloudFront doesn't sign the origin request, but instead // passes along the Authorization header that it received in the viewer request. // // This member is required. SigningBehavior OriginAccessControlSigningBehaviors // The signing protocol of the origin access control. The signing protocol // determines how CloudFront signs (authenticates) requests. The only valid value // is sigv4 . // // This member is required. SigningProtocol OriginAccessControlSigningProtocols // contains filtered or unexported fields }
A CloudFront origin access control.
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]in the Amazon CloudFront Developer Guide. // // [Adding Custom Headers to Origin Requests]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/forward-custom-headers.html // // This member is required. HeaderName *string // The value for the header that you specified in the HeaderName field. // // This member is required. HeaderValue *string // contains filtered or unexported fields }
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 // The selection criteria for the origin group. For more information, see [Create an origin group] in the // Amazon CloudFront Developer Guide. // // [Create an origin group]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/high_availability_origin_failover.html#concept_origin_groups.creating SelectionCriteria OriginGroupSelectionCriteria // contains filtered or unexported fields }
An origin group includes two origins (a primary origin and a secondary 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 specify the origin group instead of a single origin, and CloudFront will failover from the primary origin to the secondary origin under the failover conditions that you've chosen.
Optionally, you can choose selection criteria for your origin group to specify how your origins are selected when your distribution routes viewer requests.
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 // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
A complex data type for the origins included in an origin group.
type OriginGroupSelectionCriteria ¶ added in v1.43.0
type OriginGroupSelectionCriteria string
const ( OriginGroupSelectionCriteriaDefault OriginGroupSelectionCriteria = "default" OriginGroupSelectionCriteriaMediaQualityBased OriginGroupSelectionCriteria = "media-quality-based" )
Enum values for OriginGroupSelectionCriteria
func (OriginGroupSelectionCriteria) Values ¶ added in v1.43.0
func (OriginGroupSelectionCriteria) Values() []OriginGroupSelectionCriteria
Values returns all known values for OriginGroupSelectionCriteria. 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 OriginGroups ¶
type OriginGroups struct { // The number of origin groups. // // This member is required. Quantity *int32 // The items (origin groups) in a distribution. Items []OriginGroup // contains filtered or unexported fields }
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
func (OriginProtocolPolicy) Values() []OriginProtocolPolicy
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 // contains filtered or unexported fields }
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 ErrorCodeOverride *string // contains filtered or unexported fields }
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 (e *OriginRequestPolicyAlreadyExists) Error() string
func (*OriginRequestPolicyAlreadyExists) ErrorCode ¶
func (e *OriginRequestPolicyAlreadyExists) ErrorCode() string
func (*OriginRequestPolicyAlreadyExists) ErrorFault ¶
func (e *OriginRequestPolicyAlreadyExists) ErrorFault() smithy.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. The comment cannot be longer // than 128 characters. Comment *string // contains filtered or unexported fields }
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" OriginRequestPolicyCookieBehaviorAllExcept OriginRequestPolicyCookieBehavior = "allExcept" )
Enum values for OriginRequestPolicyCookieBehavior
func (OriginRequestPolicyCookieBehavior) Values ¶ added in v0.29.0
func (OriginRequestPolicyCookieBehavior) Values() []OriginRequestPolicyCookieBehavior
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 – No cookies in viewer requests are 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 – Only 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. // // - allExcept – All cookies in viewer requests are included in requests that // CloudFront sends to the origin, except for those listed in the CookieNames // type, which are not included. // // This member is required. CookieBehavior OriginRequestPolicyCookieBehavior // Contains a list of cookie names. Cookies *CookieNames // contains filtered or unexported fields }
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" OriginRequestPolicyHeaderBehaviorAllExcept OriginRequestPolicyHeaderBehavior = "allExcept" )
Enum values for OriginRequestPolicyHeaderBehavior
func (OriginRequestPolicyHeaderBehavior) Values ¶ added in v0.29.0
func (OriginRequestPolicyHeaderBehavior) Values() []OriginRequestPolicyHeaderBehavior
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 – No HTTP headers in viewer requests are 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 – Only 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. // // - allExcept – All HTTP headers in viewer requests are included in requests // that CloudFront sends to the origin, except for those listed in the Headers // type, which are not included. // // This member is required. HeaderBehavior OriginRequestPolicyHeaderBehavior // Contains a list of HTTP header names. Headers *Headers // contains filtered or unexported fields }
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 ErrorCodeOverride *string // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
A list of origin request policies.
type OriginRequestPolicyQueryStringBehavior ¶
type OriginRequestPolicyQueryStringBehavior string
const ( OriginRequestPolicyQueryStringBehaviorNone OriginRequestPolicyQueryStringBehavior = "none" OriginRequestPolicyQueryStringBehaviorWhitelist OriginRequestPolicyQueryStringBehavior = "whitelist" OriginRequestPolicyQueryStringBehaviorAll OriginRequestPolicyQueryStringBehavior = "all" OriginRequestPolicyQueryStringBehaviorAllExcept OriginRequestPolicyQueryStringBehavior = "allExcept" )
Enum values for OriginRequestPolicyQueryStringBehavior
func (OriginRequestPolicyQueryStringBehavior) Values ¶ added in v0.29.0
func (OriginRequestPolicyQueryStringBehavior) Values() []OriginRequestPolicyQueryStringBehavior
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 – No query strings in viewer requests are 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 – Only 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. // // - allExcept – All query strings in viewer requests are included in requests // that CloudFront sends to the origin, except for those listed in the // QueryStringNames type, which are not included. // // This member is required. QueryStringBehavior OriginRequestPolicyQueryStringBehavior // Contains the specific query strings in viewer requests that either are or are // not included in requests that CloudFront sends to the origin. The behavior // depends on whether the QueryStringBehavior field in the // OriginRequestPolicyQueryStringsConfig 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 // contains filtered or unexported fields }
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 Amazon Web // Services) or custom (created in this Amazon Web Services account). // // This member is required. Type OriginRequestPolicyType // contains filtered or unexported fields }
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
func (OriginRequestPolicyType) Values() []OriginRequestPolicyType
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 Amazon Web Services Region for Origin Shield. // // Specify the Amazon Web Services 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 Amazon Web // Services Region for Origin Shield. For the list of Amazon Web Services Regions // that you can specify, and for help choosing the best Region for your origin, see // [Choosing the Amazon Web Services Region for Origin Shield]in the Amazon CloudFront Developer Guide. // // [Choosing the Amazon Web Services Region for Origin Shield]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html#choose-origin-shield-region OriginShieldRegion *string // contains filtered or unexported fields }
CloudFront Origin Shield.
Using Origin Shield can help reduce the load on your origin. For more information, see Using Origin Shieldin 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 // contains filtered or unexported fields }
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 filtered or unexported fields }
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 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] 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. // // [Compression support]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-policy-compressed-objects // // 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 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 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] 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. // // [Compression support]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-policy-compressed-objects EnableAcceptEncodingBrotli *bool // contains filtered or unexported fields }
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 also 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 // contains filtered or unexported fields }
A complex type that contains information about the objects that you want to invalidate. For more information, see Specifying the Objects to Invalidatein the Amazon CloudFront Developer Guide.
type PreconditionFailed ¶
type PreconditionFailed struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The precondition in one or more of the request 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], or with [field-level encryption]. // // [signed URLs and signed cookies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html // [field-level encryption]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/field-level-encryption.html // // This member is required. PublicKeyConfig *PublicKeyConfig // contains filtered or unexported fields }
A public key that you can use with signed URLs and signed cookies, or with field-level encryption.
type PublicKeyAlreadyExists ¶
type PublicKeyAlreadyExists struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
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], or with [field-level encryption]. // // [signed URLs and signed cookies]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html // [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. The comment cannot be longer than 128 // characters. Comment *string // contains filtered or unexported fields }
Configuration information about a public key that you can use with signed URLs and signed cookies, or with field-level encryption.
type PublicKeyInUse ¶
type PublicKeyInUse struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
A list of public keys that you can use with signed URLs and signed cookies, or with field-level encryption.
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. The comment cannot be longer than 128 // characters. Comment *string // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
Configuration for query argument-profile mapping for field-level encryption.
type QueryArgProfileEmpty ¶
type QueryArgProfileEmpty struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
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 filtered or unexported fields }
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] in the Amazon CloudFront Developer // Guide. // // [Real-time log configuration fields]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html#understand-real-time-log-config-fields // // 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 // contains filtered or unexported fields }
A real-time log configuration.
type RealtimeLogConfigAlreadyExists ¶ added in v0.29.0
type RealtimeLogConfigAlreadyExists struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
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 (e *RealtimeLogConfigAlreadyExists) Error() string
func (*RealtimeLogConfigAlreadyExists) ErrorCode ¶ added in v0.29.0
func (e *RealtimeLogConfigAlreadyExists) ErrorCode() string
func (*RealtimeLogConfigAlreadyExists) ErrorFault ¶ added in v0.29.0
func (e *RealtimeLogConfigAlreadyExists) ErrorFault() smithy.ErrorFault
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 ErrorCodeOverride *string // contains filtered or unexported fields }
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 RealtimeLogConfigOwnerMismatch ¶ added in v1.4.0
type RealtimeLogConfigOwnerMismatch struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The specified real-time log configuration belongs to a different Amazon Web Services account.
func (*RealtimeLogConfigOwnerMismatch) Error ¶ added in v1.4.0
func (e *RealtimeLogConfigOwnerMismatch) Error() string
func (*RealtimeLogConfigOwnerMismatch) ErrorCode ¶ added in v1.4.0
func (e *RealtimeLogConfigOwnerMismatch) ErrorCode() string
func (*RealtimeLogConfigOwnerMismatch) ErrorFault ¶ added in v1.4.0
func (e *RealtimeLogConfigOwnerMismatch) ErrorFault() smithy.ErrorFault
func (*RealtimeLogConfigOwnerMismatch) ErrorMessage ¶ added in v1.4.0
func (e *RealtimeLogConfigOwnerMismatch) 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 // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
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
func (RealtimeMetricsSubscriptionStatus) Values() []RealtimeMetricsSubscriptionStatus
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 ReferrerPolicyList ¶ added in v1.10.0
type ReferrerPolicyList string
const ( ReferrerPolicyListNoReferrer ReferrerPolicyList = "no-referrer" ReferrerPolicyListNoReferrerWhenDowngrade ReferrerPolicyList = "no-referrer-when-downgrade" ReferrerPolicyListOrigin ReferrerPolicyList = "origin" ReferrerPolicyListOriginWhenCrossOrigin ReferrerPolicyList = "origin-when-cross-origin" ReferrerPolicyListSameOrigin ReferrerPolicyList = "same-origin" ReferrerPolicyListStrictOrigin ReferrerPolicyList = "strict-origin" ReferrerPolicyListStrictOriginWhenCrossOrigin ReferrerPolicyList = "strict-origin-when-cross-origin" ReferrerPolicyListUnsafeUrl ReferrerPolicyList = "unsafe-url" )
Enum values for ReferrerPolicyList
func (ReferrerPolicyList) Values ¶ added in v1.10.0
func (ReferrerPolicyList) Values() []ReferrerPolicyList
Values returns all known values for ReferrerPolicyList. 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 ErrorCodeOverride *string // contains filtered or unexported fields }
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 ResponseHeadersPolicy ¶ added in v1.10.0
type ResponseHeadersPolicy struct { // The identifier for the response headers policy. // // This member is required. Id *string // The date and time when the response headers policy was last modified. // // This member is required. LastModifiedTime *time.Time // A response headers policy configuration. // // This member is required. ResponseHeadersPolicyConfig *ResponseHeadersPolicyConfig // contains filtered or unexported fields }
A response headers policy.
A response headers policy contains information about a set of HTTP response headers.
After you create a response headers policy, you can use its ID to attach it to one or more cache behaviors in a CloudFront distribution. When it's attached to a cache behavior, the response headers policy affects the HTTP headers that CloudFront includes in HTTP responses to requests that match the cache behavior. CloudFront adds or removes response headers according to the configuration of the response headers policy.
For more information, see Adding or removing HTTP headers in CloudFront responses in the Amazon CloudFront Developer Guide.
type ResponseHeadersPolicyAccessControlAllowHeaders ¶ added in v1.10.0
type ResponseHeadersPolicyAccessControlAllowHeaders struct { // The list of HTTP header names. You can specify * to allow all headers. // // This member is required. Items []string // The number of HTTP header names in the list. // // This member is required. Quantity *int32 // contains filtered or unexported fields }
A list of HTTP header names that CloudFront includes as values for the Access-Control-Allow-Headers HTTP response header.
For more information about the Access-Control-Allow-Headers HTTP response header, see Access-Control-Allow-Headersin the MDN Web Docs.
type ResponseHeadersPolicyAccessControlAllowMethods ¶ added in v1.10.0
type ResponseHeadersPolicyAccessControlAllowMethods struct { // The list of HTTP methods. Valid values are: // // - GET // // - DELETE // // - HEAD // // - OPTIONS // // - PATCH // // - POST // // - PUT // // - ALL // // ALL is a special value that includes all of the listed HTTP methods. // // This member is required. Items []ResponseHeadersPolicyAccessControlAllowMethodsValues // The number of HTTP methods in the list. // // This member is required. Quantity *int32 // contains filtered or unexported fields }
A list of HTTP methods that CloudFront includes as values for the Access-Control-Allow-Methods HTTP response header.
For more information about the Access-Control-Allow-Methods HTTP response header, see Access-Control-Allow-Methodsin the MDN Web Docs.
type ResponseHeadersPolicyAccessControlAllowMethodsValues ¶ added in v1.10.0
type ResponseHeadersPolicyAccessControlAllowMethodsValues string
const ( ResponseHeadersPolicyAccessControlAllowMethodsValuesGet ResponseHeadersPolicyAccessControlAllowMethodsValues = "GET" ResponseHeadersPolicyAccessControlAllowMethodsValuesPost ResponseHeadersPolicyAccessControlAllowMethodsValues = "POST" ResponseHeadersPolicyAccessControlAllowMethodsValuesOptions ResponseHeadersPolicyAccessControlAllowMethodsValues = "OPTIONS" ResponseHeadersPolicyAccessControlAllowMethodsValuesPut ResponseHeadersPolicyAccessControlAllowMethodsValues = "PUT" ResponseHeadersPolicyAccessControlAllowMethodsValuesDelete ResponseHeadersPolicyAccessControlAllowMethodsValues = "DELETE" ResponseHeadersPolicyAccessControlAllowMethodsValuesPatch ResponseHeadersPolicyAccessControlAllowMethodsValues = "PATCH" ResponseHeadersPolicyAccessControlAllowMethodsValuesHead ResponseHeadersPolicyAccessControlAllowMethodsValues = "HEAD" ResponseHeadersPolicyAccessControlAllowMethodsValuesAll ResponseHeadersPolicyAccessControlAllowMethodsValues = "ALL" )
Enum values for ResponseHeadersPolicyAccessControlAllowMethodsValues
func (ResponseHeadersPolicyAccessControlAllowMethodsValues) Values ¶ added in v1.10.0
func (ResponseHeadersPolicyAccessControlAllowMethodsValues) Values() []ResponseHeadersPolicyAccessControlAllowMethodsValues
Values returns all known values for ResponseHeadersPolicyAccessControlAllowMethodsValues. 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 ResponseHeadersPolicyAccessControlAllowOrigins ¶ added in v1.10.0
type ResponseHeadersPolicyAccessControlAllowOrigins struct { // The list of origins (domain names). You can specify * to allow all origins. // // This member is required. Items []string // The number of origins in the list. // // This member is required. Quantity *int32 // contains filtered or unexported fields }
A list of origins (domain names) that CloudFront can use as the value for the Access-Control-Allow-Origin HTTP response header.
For more information about the Access-Control-Allow-Origin HTTP response header, see Access-Control-Allow-Originin the MDN Web Docs.
type ResponseHeadersPolicyAccessControlExposeHeaders ¶ added in v1.10.0
type ResponseHeadersPolicyAccessControlExposeHeaders struct { // The number of HTTP headers in the list. // // This member is required. Quantity *int32 // The list of HTTP headers. You can specify * to expose all headers. Items []string // contains filtered or unexported fields }
A list of HTTP headers that CloudFront includes as values for the Access-Control-Expose-Headers HTTP response header.
For more information about the Access-Control-Expose-Headers HTTP response header, see Access-Control-Expose-Headersin the MDN Web Docs.
type ResponseHeadersPolicyAlreadyExists ¶ added in v1.10.0
type ResponseHeadersPolicyAlreadyExists struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
A response headers policy with this name already exists. You must provide a unique name. To modify an existing response headers policy, use UpdateResponseHeadersPolicy .
func (*ResponseHeadersPolicyAlreadyExists) Error ¶ added in v1.10.0
func (e *ResponseHeadersPolicyAlreadyExists) Error() string
func (*ResponseHeadersPolicyAlreadyExists) ErrorCode ¶ added in v1.10.0
func (e *ResponseHeadersPolicyAlreadyExists) ErrorCode() string
func (*ResponseHeadersPolicyAlreadyExists) ErrorFault ¶ added in v1.10.0
func (e *ResponseHeadersPolicyAlreadyExists) ErrorFault() smithy.ErrorFault
func (*ResponseHeadersPolicyAlreadyExists) ErrorMessage ¶ added in v1.10.0
func (e *ResponseHeadersPolicyAlreadyExists) ErrorMessage() string
type ResponseHeadersPolicyConfig ¶ added in v1.10.0
type ResponseHeadersPolicyConfig struct { // A name to identify the response headers policy. // // The name must be unique for response headers policies in this Amazon Web // Services account. // // This member is required. Name *string // A comment to describe the response headers policy. // // The comment cannot be longer than 128 characters. Comment *string // A configuration for a set of HTTP response headers that are used for // cross-origin resource sharing (CORS). CorsConfig *ResponseHeadersPolicyCorsConfig // A configuration for a set of custom HTTP response headers. CustomHeadersConfig *ResponseHeadersPolicyCustomHeadersConfig // A configuration for a set of HTTP headers to remove from the HTTP response. RemoveHeadersConfig *ResponseHeadersPolicyRemoveHeadersConfig // A configuration for a set of security-related HTTP response headers. SecurityHeadersConfig *ResponseHeadersPolicySecurityHeadersConfig // A configuration for enabling the Server-Timing header in HTTP responses sent // from CloudFront. ServerTimingHeadersConfig *ResponseHeadersPolicyServerTimingHeadersConfig // contains filtered or unexported fields }
A response headers policy configuration.
A response headers policy configuration contains metadata about the response headers policy, and configurations for sets of HTTP response headers.
type ResponseHeadersPolicyContentSecurityPolicy ¶ added in v1.10.0
type ResponseHeadersPolicyContentSecurityPolicy struct { // The policy directives and their values that CloudFront includes as values for // the Content-Security-Policy HTTP response header. // // This member is required. ContentSecurityPolicy *string // A Boolean that determines whether CloudFront overrides the // Content-Security-Policy HTTP response header received from the origin with the // one specified in this response headers policy. // // This member is required. Override *bool // contains filtered or unexported fields }
The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header.
For more information about the Content-Security-Policy HTTP response header, see Content-Security-Policyin the MDN Web Docs.
type ResponseHeadersPolicyContentTypeOptions ¶ added in v1.10.0
type ResponseHeadersPolicyContentTypeOptions struct { // A Boolean that determines whether CloudFront overrides the // X-Content-Type-Options HTTP response header received from the origin with the // one specified in this response headers policy. // // This member is required. Override *bool // contains filtered or unexported fields }
Determines whether CloudFront includes the X-Content-Type-Options HTTP response header with its value set to nosniff .
For more information about the X-Content-Type-Options HTTP response header, see X-Content-Type-Options in the MDN Web Docs.
type ResponseHeadersPolicyCorsConfig ¶ added in v1.10.0
type ResponseHeadersPolicyCorsConfig struct { // A Boolean that CloudFront uses as the value for the // Access-Control-Allow-Credentials HTTP response header. // // For more information about the Access-Control-Allow-Credentials HTTP response // header, see [Access-Control-Allow-Credentials]in the MDN Web Docs. // // [Access-Control-Allow-Credentials]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials // // This member is required. AccessControlAllowCredentials *bool // A list of HTTP header names that CloudFront includes as values for the // Access-Control-Allow-Headers HTTP response header. // // For more information about the Access-Control-Allow-Headers HTTP response // header, see [Access-Control-Allow-Headers]in the MDN Web Docs. // // [Access-Control-Allow-Headers]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers // // This member is required. AccessControlAllowHeaders *ResponseHeadersPolicyAccessControlAllowHeaders // A list of HTTP methods that CloudFront includes as values for the // Access-Control-Allow-Methods HTTP response header. // // For more information about the Access-Control-Allow-Methods HTTP response // header, see [Access-Control-Allow-Methods]in the MDN Web Docs. // // [Access-Control-Allow-Methods]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Methods // // This member is required. AccessControlAllowMethods *ResponseHeadersPolicyAccessControlAllowMethods // A list of origins (domain names) that CloudFront can use as the value for the // Access-Control-Allow-Origin HTTP response header. // // For more information about the Access-Control-Allow-Origin HTTP response // header, see [Access-Control-Allow-Origin]in the MDN Web Docs. // // [Access-Control-Allow-Origin]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin // // This member is required. AccessControlAllowOrigins *ResponseHeadersPolicyAccessControlAllowOrigins // A Boolean that determines whether CloudFront overrides HTTP response headers // received from the origin with the ones specified in this response headers // policy. // // This member is required. OriginOverride *bool // A list of HTTP headers that CloudFront includes as values for the // Access-Control-Expose-Headers HTTP response header. // // For more information about the Access-Control-Expose-Headers HTTP response // header, see [Access-Control-Expose-Headers]in the MDN Web Docs. // // [Access-Control-Expose-Headers]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers AccessControlExposeHeaders *ResponseHeadersPolicyAccessControlExposeHeaders // A number that CloudFront uses as the value for the Access-Control-Max-Age HTTP // response header. // // For more information about the Access-Control-Max-Age HTTP response header, see [Access-Control-Max-Age] // in the MDN Web Docs. // // [Access-Control-Max-Age]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Max-Age AccessControlMaxAgeSec *int32 // contains filtered or unexported fields }
A configuration for a set of HTTP response headers that are used for cross-origin resource sharing (CORS). CloudFront adds these headers to HTTP responses that it sends for CORS requests that match a cache behavior associated with this response headers policy.
For more information about CORS, see Cross-Origin Resource Sharing (CORS) in the MDN Web Docs.
type ResponseHeadersPolicyCustomHeader ¶ added in v1.10.0
type ResponseHeadersPolicyCustomHeader struct { // The HTTP response header name. // // This member is required. Header *string // A Boolean that determines whether CloudFront overrides a response header with // the same name received from the origin with the header specified here. // // This member is required. Override *bool // The value for the HTTP response header. // // This member is required. Value *string // contains filtered or unexported fields }
An HTTP response header name and its value. CloudFront includes this header in HTTP responses that it sends for requests that match a cache behavior that's associated with this response headers policy.
type ResponseHeadersPolicyCustomHeadersConfig ¶ added in v1.10.0
type ResponseHeadersPolicyCustomHeadersConfig struct { // The number of HTTP response headers in the list. // // This member is required. Quantity *int32 // The list of HTTP response headers and their values. Items []ResponseHeadersPolicyCustomHeader // contains filtered or unexported fields }
A list of HTTP response header names and their values. CloudFront includes these headers in HTTP responses that it sends for requests that match a cache behavior that's associated with this response headers policy.
type ResponseHeadersPolicyFrameOptions ¶ added in v1.10.0
type ResponseHeadersPolicyFrameOptions struct { // The value of the X-Frame-Options HTTP response header. Valid values are DENY // and SAMEORIGIN . // // For more information about these values, see [X-Frame-Options] in the MDN Web Docs. // // [X-Frame-Options]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options // // This member is required. FrameOption FrameOptionsList // A Boolean that determines whether CloudFront overrides the X-Frame-Options HTTP // response header received from the origin with the one specified in this response // headers policy. // // This member is required. Override *bool // contains filtered or unexported fields }
Determines whether CloudFront includes the X-Frame-Options HTTP response header and the header's value.
For more information about the X-Frame-Options HTTP response header, see X-Frame-Options in the MDN Web Docs.
type ResponseHeadersPolicyInUse ¶ added in v1.10.0
type ResponseHeadersPolicyInUse struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
Cannot delete the response headers policy because it is attached to one or more cache behaviors in a CloudFront distribution.
func (*ResponseHeadersPolicyInUse) Error ¶ added in v1.10.0
func (e *ResponseHeadersPolicyInUse) Error() string
func (*ResponseHeadersPolicyInUse) ErrorCode ¶ added in v1.10.0
func (e *ResponseHeadersPolicyInUse) ErrorCode() string
func (*ResponseHeadersPolicyInUse) ErrorFault ¶ added in v1.10.0
func (e *ResponseHeadersPolicyInUse) ErrorFault() smithy.ErrorFault
func (*ResponseHeadersPolicyInUse) ErrorMessage ¶ added in v1.10.0
func (e *ResponseHeadersPolicyInUse) ErrorMessage() string
type ResponseHeadersPolicyList ¶ added in v1.10.0
type ResponseHeadersPolicyList struct { // The maximum number of response headers policies requested. // // This member is required. MaxItems *int32 // The number of response headers policies returned. // // This member is required. Quantity *int32 // The response headers policies in the list. Items []ResponseHeadersPolicySummary // 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 response headers policies where you left // off. NextMarker *string // contains filtered or unexported fields }
A list of response headers policies.
type ResponseHeadersPolicyReferrerPolicy ¶ added in v1.10.0
type ResponseHeadersPolicyReferrerPolicy struct { // A Boolean that determines whether CloudFront overrides the Referrer-Policy HTTP // response header received from the origin with the one specified in this response // headers policy. // // This member is required. Override *bool // The value of the Referrer-Policy HTTP response header. Valid values are: // // - no-referrer // // - no-referrer-when-downgrade // // - origin // // - origin-when-cross-origin // // - same-origin // // - strict-origin // // - strict-origin-when-cross-origin // // - unsafe-url // // For more information about these values, see [Referrer-Policy] in the MDN Web Docs. // // [Referrer-Policy]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy // // This member is required. ReferrerPolicy ReferrerPolicyList // contains filtered or unexported fields }
Determines whether CloudFront includes the Referrer-Policy HTTP response header and the header's value.
For more information about the Referrer-Policy HTTP response header, see Referrer-Policy in the MDN Web Docs.
type ResponseHeadersPolicyRemoveHeader ¶ added in v1.23.0
type ResponseHeadersPolicyRemoveHeader struct { // The HTTP header name. // // This member is required. Header *string // contains filtered or unexported fields }
The name of an HTTP header that CloudFront removes from HTTP responses to requests that match the cache behavior that this response headers policy is attached to.
type ResponseHeadersPolicyRemoveHeadersConfig ¶ added in v1.23.0
type ResponseHeadersPolicyRemoveHeadersConfig struct { // The number of HTTP header names in the list. // // This member is required. Quantity *int32 // The list of HTTP header names. Items []ResponseHeadersPolicyRemoveHeader // contains filtered or unexported fields }
A list of HTTP header names that CloudFront removes from HTTP responses to requests that match the cache behavior that this response headers policy is attached to.
type ResponseHeadersPolicySecurityHeadersConfig ¶ added in v1.10.0
type ResponseHeadersPolicySecurityHeadersConfig struct { // The policy directives and their values that CloudFront includes as values for // the Content-Security-Policy HTTP response header. // // For more information about the Content-Security-Policy HTTP response header, // see [Content-Security-Policy]in the MDN Web Docs. // // [Content-Security-Policy]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy ContentSecurityPolicy *ResponseHeadersPolicyContentSecurityPolicy // Determines whether CloudFront includes the X-Content-Type-Options HTTP response // header with its value set to nosniff . // // For more information about the X-Content-Type-Options HTTP response header, see [X-Content-Type-Options] // in the MDN Web Docs. // // [X-Content-Type-Options]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options ContentTypeOptions *ResponseHeadersPolicyContentTypeOptions // Determines whether CloudFront includes the X-Frame-Options HTTP response header // and the header's value. // // For more information about the X-Frame-Options HTTP response header, see [X-Frame-Options] in // the MDN Web Docs. // // [X-Frame-Options]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options FrameOptions *ResponseHeadersPolicyFrameOptions // Determines whether CloudFront includes the Referrer-Policy HTTP response header // and the header's value. // // For more information about the Referrer-Policy HTTP response header, see [Referrer-Policy] in // the MDN Web Docs. // // [Referrer-Policy]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy ReferrerPolicy *ResponseHeadersPolicyReferrerPolicy // Determines whether CloudFront includes the Strict-Transport-Security HTTP // response header and the header's value. // // For more information about the Strict-Transport-Security HTTP response header, // see [Security headers]in the Amazon CloudFront Developer Guide and [Strict-Transport-Security] in the MDN Web Docs. // // [Strict-Transport-Security]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security // [Security headers]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/understanding-response-headers-policies.html#understanding-response-headers-policies-security StrictTransportSecurity *ResponseHeadersPolicyStrictTransportSecurity // Determines whether CloudFront includes the X-XSS-Protection HTTP response // header and the header's value. // // For more information about the X-XSS-Protection HTTP response header, see [X-XSS-Protection] in // the MDN Web Docs. // // [X-XSS-Protection]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection XSSProtection *ResponseHeadersPolicyXSSProtection // contains filtered or unexported fields }
A configuration for a set of security-related HTTP response headers. CloudFront adds these headers to HTTP responses that it sends for requests that match a cache behavior associated with this response headers policy.
type ResponseHeadersPolicyServerTimingHeadersConfig ¶ added in v1.17.0
type ResponseHeadersPolicyServerTimingHeadersConfig struct { // A Boolean that determines whether CloudFront adds the Server-Timing header to // HTTP responses that it sends in response to requests that match a cache behavior // that's associated with this response headers policy. // // This member is required. Enabled *bool // A number 0–100 (inclusive) that specifies the percentage of responses that you // want CloudFront to add the Server-Timing header to. When you set the sampling // rate to 100, CloudFront adds the Server-Timing header to the HTTP response for // every request that matches the cache behavior that this response headers policy // is attached to. When you set it to 50, CloudFront adds the header to 50% of the // responses for requests that match the cache behavior. You can set the sampling // rate to any number 0–100 with up to four decimal places. SamplingRate *float64 // contains filtered or unexported fields }
A configuration for enabling the Server-Timing header in HTTP responses sent from CloudFront. CloudFront adds this header to HTTP responses that it sends in response to requests that match a cache behavior that's associated with this response headers policy.
You can use the Server-Timing header to view metrics that can help you gain insights about the behavior and performance of CloudFront. For example, you can see which cache layer served a cache hit, or the first byte latency from the origin when there was a cache miss. You can use the metrics in the Server-Timing header to troubleshoot issues or test the efficiency of your CloudFront configuration. For more information, see Server-Timing headerin the Amazon CloudFront Developer Guide.
type ResponseHeadersPolicyStrictTransportSecurity ¶ added in v1.10.0
type ResponseHeadersPolicyStrictTransportSecurity struct { // A number that CloudFront uses as the value for the max-age directive in the // Strict-Transport-Security HTTP response header. // // This member is required. AccessControlMaxAgeSec *int32 // A Boolean that determines whether CloudFront overrides the // Strict-Transport-Security HTTP response header received from the origin with the // one specified in this response headers policy. // // This member is required. Override *bool // A Boolean that determines whether CloudFront includes the includeSubDomains // directive in the Strict-Transport-Security HTTP response header. IncludeSubdomains *bool // A Boolean that determines whether CloudFront includes the preload directive in // the Strict-Transport-Security HTTP response header. Preload *bool // contains filtered or unexported fields }
Determines whether CloudFront includes the Strict-Transport-Security HTTP response header and the header's value.
For more information about the Strict-Transport-Security HTTP response header, see Strict-Transport-Securityin the MDN Web Docs.
type ResponseHeadersPolicySummary ¶ added in v1.10.0
type ResponseHeadersPolicySummary struct { // The response headers policy. // // This member is required. ResponseHeadersPolicy *ResponseHeadersPolicy // The type of response headers policy, either managed (created by Amazon Web // Services) or custom (created in this Amazon Web Services account). // // This member is required. Type ResponseHeadersPolicyType // contains filtered or unexported fields }
Contains a response headers policy.
type ResponseHeadersPolicyType ¶ added in v1.10.0
type ResponseHeadersPolicyType string
const ( ResponseHeadersPolicyTypeManaged ResponseHeadersPolicyType = "managed" ResponseHeadersPolicyTypeCustom ResponseHeadersPolicyType = "custom" )
Enum values for ResponseHeadersPolicyType
func (ResponseHeadersPolicyType) Values ¶ added in v1.10.0
func (ResponseHeadersPolicyType) Values() []ResponseHeadersPolicyType
Values returns all known values for ResponseHeadersPolicyType. 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 ResponseHeadersPolicyXSSProtection ¶ added in v1.10.0
type ResponseHeadersPolicyXSSProtection struct { // A Boolean that determines whether CloudFront overrides the X-XSS-Protection // HTTP response header received from the origin with the one specified in this // response headers policy. // // This member is required. Override *bool // A Boolean that determines the value of the X-XSS-Protection HTTP response // header. When this setting is true , the value of the X-XSS-Protection header is // 1 . When this setting is false , the value of the X-XSS-Protection header is 0 . // // For more information about these settings, see [X-XSS-Protection] in the MDN Web Docs. // // [X-XSS-Protection]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection // // This member is required. Protection *bool // A Boolean that determines whether CloudFront includes the mode=block directive // in the X-XSS-Protection header. // // For more information about this directive, see [X-XSS-Protection] in the MDN Web Docs. // // [X-XSS-Protection]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection ModeBlock *bool // A reporting URI, which CloudFront uses as the value of the report directive in // the X-XSS-Protection header. // // You cannot specify a ReportUri when ModeBlock is true . // // For more information about using a reporting URL, see [X-XSS-Protection] in the MDN Web Docs. // // [X-XSS-Protection]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection ReportUri *string // contains filtered or unexported fields }
Determines whether CloudFront includes the X-XSS-Protection HTTP response header and the header's value.
For more information about the X-XSS-Protection HTTP response header, see X-XSS-Protection in the MDN Web Docs.
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 // contains filtered or unexported fields }
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] in the Amazon CloudFront Developer Guide. // // [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 // // This member is required. OriginAccessIdentity *string // contains filtered or unexported fields }
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 { // If you're using origin access control (OAC) instead of origin access identity, // specify an empty OriginAccessIdentity element. For more information, see [Restricting access to an Amazon Web Services] in // the Amazon CloudFront Developer Guide. // // 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 // // The 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] in the Amazon // CloudFront Developer Guide. // // [Serving Private Content through CloudFront]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html // [Restricting access to an Amazon Web Services]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-origin.html // // This member is required. OriginAccessIdentity *string // contains filtered or unexported fields }
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
func (SSLSupportMethod) Values() []SSLSupportMethod
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 SessionStickinessConfig ¶ added in v1.21.0
type SessionStickinessConfig struct { // The amount of time after which you want sessions to cease if no requests are // received. Allowed values are 300–3600 seconds (5–60 minutes). // // The value must be less than or equal to MaximumTTL . // // This member is required. IdleTTL *int32 // The maximum amount of time to consider requests from the viewer as being part // of the same session. Allowed values are 300–3600 seconds (5–60 minutes). // // The value must be greater than or equal to IdleTTL . // // This member is required. MaximumTTL *int32 // contains filtered or unexported fields }
Session stickiness provides the ability to define multiple requests from a single viewer as a single session. This prevents the potentially inconsistent experience of sending some of a given user's requests to your staging distribution, while others are sent to your primary distribution. Define the session duration using TTL values.
type Signer ¶
type Signer struct { // An Amazon Web Services account number that contains active CloudFront key pairs // that CloudFront can use to verify the signatures of signed URLs and signed // cookies. If the Amazon Web Services 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 // contains filtered or unexported fields }
A list of Amazon Web Services 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 StagingDistributionDnsNames ¶ added in v1.21.0
type StagingDistributionDnsNames struct { // The number of CloudFront domain names in your staging distribution. // // This member is required. Quantity *int32 // The CloudFront domain name of the staging distribution. Items []string // contains filtered or unexported fields }
The CloudFront domain name of the staging distribution.
type StagingDistributionInUse ¶ added in v1.21.0
type StagingDistributionInUse struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
A continuous deployment policy for this staging distribution already exists.
func (*StagingDistributionInUse) Error ¶ added in v1.21.0
func (e *StagingDistributionInUse) Error() string
func (*StagingDistributionInUse) ErrorCode ¶ added in v1.21.0
func (e *StagingDistributionInUse) ErrorCode() string
func (*StagingDistributionInUse) ErrorFault ¶ added in v1.21.0
func (e *StagingDistributionInUse) ErrorFault() smithy.ErrorFault
func (*StagingDistributionInUse) ErrorMessage ¶ added in v1.21.0
func (e *StagingDistributionInUse) ErrorMessage() string
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 // contains filtered or unexported fields }
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 Amazon Web Services account ID. // // This member is required. ARN *string // A complex type that lists the Amazon Web Services 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 Amazon Web Services account number of the // trusted signer or self if the signer is the Amazon Web Services 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 Amazon // Web Services 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] in the Amazon CloudFront Developer Guide. // // [Serving Private Content through CloudFront]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html // // 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 // contains filtered or unexported fields }
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 ErrorCodeOverride *string // contains filtered or unexported fields }
The caller reference you attempted to create the streaming distribution with is associated with another distribution
func (*StreamingDistributionAlreadyExists) Error ¶
func (e *StreamingDistributionAlreadyExists) Error() string
func (*StreamingDistributionAlreadyExists) ErrorCode ¶
func (e *StreamingDistributionAlreadyExists) ErrorCode() string
func (*StreamingDistributionAlreadyExists) ErrorFault ¶
func (e *StreamingDistributionAlreadyExists) ErrorFault() smithy.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 Amazon Web Services 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]in the Amazon // CloudFront Developer Guide. // // [Serving Private Content through CloudFront]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html // // 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 // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
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 Amazon // Web Services account. // // This member is required. Quantity *int32 // A complex type that contains one StreamingDistributionSummary element for each // distribution that was created by the current Amazon Web Services 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 // contains filtered or unexported fields }
A streaming distribution list.
type StreamingDistributionNotDisabled ¶
type StreamingDistributionNotDisabled struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The specified CloudFront distribution is not disabled. You must disable the distribution before you can delete it.
func (*StreamingDistributionNotDisabled) Error ¶
func (e *StreamingDistributionNotDisabled) Error() string
func (*StreamingDistributionNotDisabled) ErrorCode ¶
func (e *StreamingDistributionNotDisabled) ErrorCode() string
func (*StreamingDistributionNotDisabled) ErrorFault ¶
func (e *StreamingDistributionNotDisabled) ErrorFault() smithy.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 Amazon Web Services 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 Amazon Web Services 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] in the Amazon CloudFront Developer Guide. // // [Serving Private Content through CloudFront]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html // // This member is required. TrustedSigners *TrustedSigners // contains filtered or unexported fields }
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, // amzn-s3-demo-bucket.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 // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
A complex type that contains zero or more Tag elements.
type Tags ¶
type Tags struct { // A complex type that contains Tag elements. Items []Tag // contains filtered or unexported fields }
A complex type that contains zero or more Tag elements.
type TestFunctionFailed ¶ added in v1.4.0
type TestFunctionFailed struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The CloudFront function failed.
func (*TestFunctionFailed) Error ¶ added in v1.4.0
func (e *TestFunctionFailed) Error() string
func (*TestFunctionFailed) ErrorCode ¶ added in v1.4.0
func (e *TestFunctionFailed) ErrorCode() string
func (*TestFunctionFailed) ErrorFault ¶ added in v1.4.0
func (e *TestFunctionFailed) ErrorFault() smithy.ErrorFault
func (*TestFunctionFailed) ErrorMessage ¶ added in v1.4.0
func (e *TestFunctionFailed) ErrorMessage() string
type TestResult ¶ added in v1.4.0
type TestResult struct { // The amount of time that the function took to run as a percentage of the maximum // allowed time. For example, a compute utilization of 35 means that the function // completed in 35% of the maximum allowed time. ComputeUtilization *string // If the result of testing the function was an error, this field contains the // error message. FunctionErrorMessage *string // Contains the log lines that the function wrote (if any) when running the test. FunctionExecutionLogs []string // The event object returned by the function. For more information about the // structure of the event object, see [Event object structure]in the Amazon CloudFront Developer Guide. // // [Event object structure]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/functions-event-structure.html FunctionOutput *string // Contains configuration information and metadata about the CloudFront function // that was tested. FunctionSummary *FunctionSummary // contains filtered or unexported fields }
Contains the result of testing a CloudFront function with TestFunction .
type TooLongCSPInResponseHeadersPolicy ¶ added in v1.18.0
type TooLongCSPInResponseHeadersPolicy struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The length of the Content-Security-Policy header value in the response headers policy exceeds the maximum.
For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
func (*TooLongCSPInResponseHeadersPolicy) Error ¶ added in v1.18.0
func (e *TooLongCSPInResponseHeadersPolicy) Error() string
func (*TooLongCSPInResponseHeadersPolicy) ErrorCode ¶ added in v1.18.0
func (e *TooLongCSPInResponseHeadersPolicy) ErrorCode() string
func (*TooLongCSPInResponseHeadersPolicy) ErrorFault ¶ added in v1.18.0
func (e *TooLongCSPInResponseHeadersPolicy) ErrorFault() smithy.ErrorFault
func (*TooLongCSPInResponseHeadersPolicy) ErrorMessage ¶ added in v1.18.0
func (e *TooLongCSPInResponseHeadersPolicy) ErrorMessage() string
type TooManyCacheBehaviors ¶
type TooManyCacheBehaviors struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
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 ErrorCodeOverride *string // contains filtered or unexported fields }
You have reached the maximum number of cache policies for this Amazon Web Services account. For more information, see Quotas(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 ErrorCodeOverride *string // contains filtered or unexported fields }
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 ErrorCodeOverride *string // contains filtered or unexported fields }
Processing your request would cause you to exceed the maximum number of origin access identities allowed.
func (*TooManyCloudFrontOriginAccessIdentities) Error ¶
func (e *TooManyCloudFrontOriginAccessIdentities) Error() string
func (*TooManyCloudFrontOriginAccessIdentities) ErrorCode ¶
func (e *TooManyCloudFrontOriginAccessIdentities) ErrorCode() string
func (*TooManyCloudFrontOriginAccessIdentities) ErrorFault ¶
func (e *TooManyCloudFrontOriginAccessIdentities) ErrorFault() smithy.ErrorFault
func (*TooManyCloudFrontOriginAccessIdentities) ErrorMessage ¶
func (e *TooManyCloudFrontOriginAccessIdentities) ErrorMessage() string
type TooManyContinuousDeploymentPolicies ¶ added in v1.22.0
type TooManyContinuousDeploymentPolicies struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
You have reached the maximum number of continuous deployment policies for this Amazon Web Services account.
func (*TooManyContinuousDeploymentPolicies) Error ¶ added in v1.22.0
func (e *TooManyContinuousDeploymentPolicies) Error() string
func (*TooManyContinuousDeploymentPolicies) ErrorCode ¶ added in v1.22.0
func (e *TooManyContinuousDeploymentPolicies) ErrorCode() string
func (*TooManyContinuousDeploymentPolicies) ErrorFault ¶ added in v1.22.0
func (e *TooManyContinuousDeploymentPolicies) ErrorFault() smithy.ErrorFault
func (*TooManyContinuousDeploymentPolicies) ErrorMessage ¶ added in v1.22.0
func (e *TooManyContinuousDeploymentPolicies) ErrorMessage() string
type TooManyCookieNamesInWhiteList ¶
type TooManyCookieNamesInWhiteList struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
Your request contains more cookie names in the whitelist than are allowed per cache behavior.
func (*TooManyCookieNamesInWhiteList) Error ¶
func (e *TooManyCookieNamesInWhiteList) Error() string
func (*TooManyCookieNamesInWhiteList) ErrorCode ¶
func (e *TooManyCookieNamesInWhiteList) ErrorCode() string
func (*TooManyCookieNamesInWhiteList) ErrorFault ¶
func (e *TooManyCookieNamesInWhiteList) ErrorFault() smithy.ErrorFault
func (*TooManyCookieNamesInWhiteList) ErrorMessage ¶
func (e *TooManyCookieNamesInWhiteList) ErrorMessage() string
type TooManyCookiesInCachePolicy ¶
type TooManyCookiesInCachePolicy struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The number of cookies in the cache policy exceeds the maximum. For more information, see Quotas(formerly known as limits) in the Amazon CloudFront Developer Guide.
func (*TooManyCookiesInCachePolicy) Error ¶
func (e *TooManyCookiesInCachePolicy) Error() string
func (*TooManyCookiesInCachePolicy) ErrorCode ¶
func (e *TooManyCookiesInCachePolicy) ErrorCode() string
func (*TooManyCookiesInCachePolicy) ErrorFault ¶
func (e *TooManyCookiesInCachePolicy) ErrorFault() smithy.ErrorFault
func (*TooManyCookiesInCachePolicy) ErrorMessage ¶
func (e *TooManyCookiesInCachePolicy) ErrorMessage() string
type TooManyCookiesInOriginRequestPolicy ¶
type TooManyCookiesInOriginRequestPolicy struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The number of cookies in the origin request policy exceeds the maximum. For more information, see Quotas(formerly known as limits) in the Amazon CloudFront Developer Guide.
func (*TooManyCookiesInOriginRequestPolicy) Error ¶
func (e *TooManyCookiesInOriginRequestPolicy) Error() string
func (*TooManyCookiesInOriginRequestPolicy) ErrorCode ¶
func (e *TooManyCookiesInOriginRequestPolicy) ErrorCode() string
func (*TooManyCookiesInOriginRequestPolicy) ErrorFault ¶
func (e *TooManyCookiesInOriginRequestPolicy) ErrorFault() smithy.ErrorFault
func (*TooManyCookiesInOriginRequestPolicy) ErrorMessage ¶
func (e *TooManyCookiesInOriginRequestPolicy) ErrorMessage() string
type TooManyCustomHeadersInResponseHeadersPolicy ¶ added in v1.10.0
type TooManyCustomHeadersInResponseHeadersPolicy struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The number of custom headers in the response headers policy exceeds the maximum.
For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
func (*TooManyCustomHeadersInResponseHeadersPolicy) Error ¶ added in v1.10.0
func (e *TooManyCustomHeadersInResponseHeadersPolicy) Error() string
func (*TooManyCustomHeadersInResponseHeadersPolicy) ErrorCode ¶ added in v1.10.0
func (e *TooManyCustomHeadersInResponseHeadersPolicy) ErrorCode() string
func (*TooManyCustomHeadersInResponseHeadersPolicy) ErrorFault ¶ added in v1.10.0
func (e *TooManyCustomHeadersInResponseHeadersPolicy) ErrorFault() smithy.ErrorFault
func (*TooManyCustomHeadersInResponseHeadersPolicy) ErrorMessage ¶ added in v1.10.0
func (e *TooManyCustomHeadersInResponseHeadersPolicy) ErrorMessage() string
type TooManyDistributionCNAMEs ¶
type TooManyDistributionCNAMEs struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
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 (e *TooManyDistributionCNAMEs) ErrorFault() smithy.ErrorFault
func (*TooManyDistributionCNAMEs) ErrorMessage ¶
func (e *TooManyDistributionCNAMEs) ErrorMessage() string
type TooManyDistributions ¶
type TooManyDistributions struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
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 ErrorCodeOverride *string // contains filtered or unexported fields }
The maximum number of distributions have been associated with the specified cache policy. For more information, see Quotas(formerly known as limits) in the Amazon CloudFront Developer Guide.
func (*TooManyDistributionsAssociatedToCachePolicy) Error ¶
func (e *TooManyDistributionsAssociatedToCachePolicy) Error() string
func (*TooManyDistributionsAssociatedToCachePolicy) ErrorCode ¶
func (e *TooManyDistributionsAssociatedToCachePolicy) ErrorCode() string
func (*TooManyDistributionsAssociatedToCachePolicy) ErrorFault ¶
func (e *TooManyDistributionsAssociatedToCachePolicy) ErrorFault() smithy.ErrorFault
func (*TooManyDistributionsAssociatedToCachePolicy) ErrorMessage ¶
func (e *TooManyDistributionsAssociatedToCachePolicy) ErrorMessage() string
type TooManyDistributionsAssociatedToFieldLevelEncryptionConfig ¶
type TooManyDistributionsAssociatedToFieldLevelEncryptionConfig struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The maximum number of distributions have been associated with the specified configuration for field-level encryption.
func (*TooManyDistributionsAssociatedToFieldLevelEncryptionConfig) Error ¶
func (e *TooManyDistributionsAssociatedToFieldLevelEncryptionConfig) Error() string
func (*TooManyDistributionsAssociatedToFieldLevelEncryptionConfig) ErrorCode ¶
func (e *TooManyDistributionsAssociatedToFieldLevelEncryptionConfig) ErrorCode() string
func (*TooManyDistributionsAssociatedToFieldLevelEncryptionConfig) ErrorFault ¶
func (e *TooManyDistributionsAssociatedToFieldLevelEncryptionConfig) ErrorFault() smithy.ErrorFault
func (*TooManyDistributionsAssociatedToFieldLevelEncryptionConfig) ErrorMessage ¶
func (e *TooManyDistributionsAssociatedToFieldLevelEncryptionConfig) ErrorMessage() string
type TooManyDistributionsAssociatedToKeyGroup ¶ added in v0.29.0
type TooManyDistributionsAssociatedToKeyGroup struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The number of distributions that reference this key group is more than the maximum allowed. For more information, see Quotas(formerly known as limits) in the Amazon CloudFront Developer Guide.
func (*TooManyDistributionsAssociatedToKeyGroup) Error ¶ added in v0.29.0
func (e *TooManyDistributionsAssociatedToKeyGroup) Error() string
func (*TooManyDistributionsAssociatedToKeyGroup) ErrorCode ¶ added in v0.29.0
func (e *TooManyDistributionsAssociatedToKeyGroup) ErrorCode() string
func (*TooManyDistributionsAssociatedToKeyGroup) ErrorFault ¶ added in v0.29.0
func (e *TooManyDistributionsAssociatedToKeyGroup) ErrorFault() smithy.ErrorFault
func (*TooManyDistributionsAssociatedToKeyGroup) ErrorMessage ¶ added in v0.29.0
func (e *TooManyDistributionsAssociatedToKeyGroup) ErrorMessage() string
type TooManyDistributionsAssociatedToOriginAccessControl ¶ added in v1.20.0
type TooManyDistributionsAssociatedToOriginAccessControl struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The maximum number of distributions have been associated with the specified origin access control.
For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
func (*TooManyDistributionsAssociatedToOriginAccessControl) Error ¶ added in v1.20.0
func (e *TooManyDistributionsAssociatedToOriginAccessControl) Error() string
func (*TooManyDistributionsAssociatedToOriginAccessControl) ErrorCode ¶ added in v1.20.0
func (e *TooManyDistributionsAssociatedToOriginAccessControl) ErrorCode() string
func (*TooManyDistributionsAssociatedToOriginAccessControl) ErrorFault ¶ added in v1.20.0
func (e *TooManyDistributionsAssociatedToOriginAccessControl) ErrorFault() smithy.ErrorFault
func (*TooManyDistributionsAssociatedToOriginAccessControl) ErrorMessage ¶ added in v1.20.0
func (e *TooManyDistributionsAssociatedToOriginAccessControl) ErrorMessage() string
type TooManyDistributionsAssociatedToOriginRequestPolicy ¶
type TooManyDistributionsAssociatedToOriginRequestPolicy struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The maximum number of distributions have been associated with the specified origin request policy. For more information, see Quotas(formerly known as limits) in the Amazon CloudFront Developer Guide.
func (*TooManyDistributionsAssociatedToOriginRequestPolicy) Error ¶
func (e *TooManyDistributionsAssociatedToOriginRequestPolicy) Error() string
func (*TooManyDistributionsAssociatedToOriginRequestPolicy) ErrorCode ¶
func (e *TooManyDistributionsAssociatedToOriginRequestPolicy) ErrorCode() string
func (*TooManyDistributionsAssociatedToOriginRequestPolicy) ErrorFault ¶
func (e *TooManyDistributionsAssociatedToOriginRequestPolicy) ErrorFault() smithy.ErrorFault
func (*TooManyDistributionsAssociatedToOriginRequestPolicy) ErrorMessage ¶
func (e *TooManyDistributionsAssociatedToOriginRequestPolicy) ErrorMessage() string
type TooManyDistributionsAssociatedToResponseHeadersPolicy ¶ added in v1.10.0
type TooManyDistributionsAssociatedToResponseHeadersPolicy struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The maximum number of distributions have been associated with the specified response headers policy.
For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
func (*TooManyDistributionsAssociatedToResponseHeadersPolicy) Error ¶ added in v1.10.0
func (e *TooManyDistributionsAssociatedToResponseHeadersPolicy) Error() string
func (*TooManyDistributionsAssociatedToResponseHeadersPolicy) ErrorCode ¶ added in v1.10.0
func (e *TooManyDistributionsAssociatedToResponseHeadersPolicy) ErrorCode() string
func (*TooManyDistributionsAssociatedToResponseHeadersPolicy) ErrorFault ¶ added in v1.10.0
func (e *TooManyDistributionsAssociatedToResponseHeadersPolicy) ErrorFault() smithy.ErrorFault
func (*TooManyDistributionsAssociatedToResponseHeadersPolicy) ErrorMessage ¶ added in v1.10.0
func (e *TooManyDistributionsAssociatedToResponseHeadersPolicy) ErrorMessage() string
type TooManyDistributionsWithFunctionAssociations ¶ added in v1.4.0
type TooManyDistributionsWithFunctionAssociations struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
You have reached the maximum number of distributions that are associated with a CloudFront function. For more information, see Quotas(formerly known as limits) in the Amazon CloudFront Developer Guide.
func (*TooManyDistributionsWithFunctionAssociations) Error ¶ added in v1.4.0
func (e *TooManyDistributionsWithFunctionAssociations) Error() string
func (*TooManyDistributionsWithFunctionAssociations) ErrorCode ¶ added in v1.4.0
func (e *TooManyDistributionsWithFunctionAssociations) ErrorCode() string
func (*TooManyDistributionsWithFunctionAssociations) ErrorFault ¶ added in v1.4.0
func (e *TooManyDistributionsWithFunctionAssociations) ErrorFault() smithy.ErrorFault
func (*TooManyDistributionsWithFunctionAssociations) ErrorMessage ¶ added in v1.4.0
func (e *TooManyDistributionsWithFunctionAssociations) ErrorMessage() string
type TooManyDistributionsWithLambdaAssociations ¶
type TooManyDistributionsWithLambdaAssociations struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
Processing your request would cause the maximum number of distributions with Lambda@Edge function associations per owner to be exceeded.
func (*TooManyDistributionsWithLambdaAssociations) Error ¶
func (e *TooManyDistributionsWithLambdaAssociations) Error() string
func (*TooManyDistributionsWithLambdaAssociations) ErrorCode ¶
func (e *TooManyDistributionsWithLambdaAssociations) ErrorCode() string
func (*TooManyDistributionsWithLambdaAssociations) ErrorFault ¶
func (e *TooManyDistributionsWithLambdaAssociations) ErrorFault() smithy.ErrorFault
func (*TooManyDistributionsWithLambdaAssociations) ErrorMessage ¶
func (e *TooManyDistributionsWithLambdaAssociations) ErrorMessage() string
type TooManyDistributionsWithSingleFunctionARN ¶
type TooManyDistributionsWithSingleFunctionARN struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The maximum number of distributions have been associated with the specified Lambda@Edge function.
func (*TooManyDistributionsWithSingleFunctionARN) Error ¶
func (e *TooManyDistributionsWithSingleFunctionARN) Error() string
func (*TooManyDistributionsWithSingleFunctionARN) ErrorCode ¶
func (e *TooManyDistributionsWithSingleFunctionARN) ErrorCode() string
func (*TooManyDistributionsWithSingleFunctionARN) ErrorFault ¶
func (e *TooManyDistributionsWithSingleFunctionARN) ErrorFault() smithy.ErrorFault
func (*TooManyDistributionsWithSingleFunctionARN) ErrorMessage ¶
func (e *TooManyDistributionsWithSingleFunctionARN) ErrorMessage() string
type TooManyFieldLevelEncryptionConfigs ¶
type TooManyFieldLevelEncryptionConfigs struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The maximum number of configurations for field-level encryption have been created.
func (*TooManyFieldLevelEncryptionConfigs) Error ¶
func (e *TooManyFieldLevelEncryptionConfigs) Error() string
func (*TooManyFieldLevelEncryptionConfigs) ErrorCode ¶
func (e *TooManyFieldLevelEncryptionConfigs) ErrorCode() string
func (*TooManyFieldLevelEncryptionConfigs) ErrorFault ¶
func (e *TooManyFieldLevelEncryptionConfigs) ErrorFault() smithy.ErrorFault
func (*TooManyFieldLevelEncryptionConfigs) ErrorMessage ¶
func (e *TooManyFieldLevelEncryptionConfigs) ErrorMessage() string
type TooManyFieldLevelEncryptionContentTypeProfiles ¶
type TooManyFieldLevelEncryptionContentTypeProfiles struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The maximum number of content type profiles for field-level encryption have been created.
func (*TooManyFieldLevelEncryptionContentTypeProfiles) Error ¶
func (e *TooManyFieldLevelEncryptionContentTypeProfiles) Error() string
func (*TooManyFieldLevelEncryptionContentTypeProfiles) ErrorCode ¶
func (e *TooManyFieldLevelEncryptionContentTypeProfiles) ErrorCode() string
func (*TooManyFieldLevelEncryptionContentTypeProfiles) ErrorFault ¶
func (e *TooManyFieldLevelEncryptionContentTypeProfiles) ErrorFault() smithy.ErrorFault
func (*TooManyFieldLevelEncryptionContentTypeProfiles) ErrorMessage ¶
func (e *TooManyFieldLevelEncryptionContentTypeProfiles) ErrorMessage() string
type TooManyFieldLevelEncryptionEncryptionEntities ¶
type TooManyFieldLevelEncryptionEncryptionEntities struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The maximum number of encryption entities for field-level encryption have been created.
func (*TooManyFieldLevelEncryptionEncryptionEntities) Error ¶
func (e *TooManyFieldLevelEncryptionEncryptionEntities) Error() string
func (*TooManyFieldLevelEncryptionEncryptionEntities) ErrorCode ¶
func (e *TooManyFieldLevelEncryptionEncryptionEntities) ErrorCode() string
func (*TooManyFieldLevelEncryptionEncryptionEntities) ErrorFault ¶
func (e *TooManyFieldLevelEncryptionEncryptionEntities) ErrorFault() smithy.ErrorFault
func (*TooManyFieldLevelEncryptionEncryptionEntities) ErrorMessage ¶
func (e *TooManyFieldLevelEncryptionEncryptionEntities) ErrorMessage() string
type TooManyFieldLevelEncryptionFieldPatterns ¶
type TooManyFieldLevelEncryptionFieldPatterns struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The maximum number of field patterns for field-level encryption have been created.
func (*TooManyFieldLevelEncryptionFieldPatterns) Error ¶
func (e *TooManyFieldLevelEncryptionFieldPatterns) Error() string
func (*TooManyFieldLevelEncryptionFieldPatterns) ErrorCode ¶
func (e *TooManyFieldLevelEncryptionFieldPatterns) ErrorCode() string
func (*TooManyFieldLevelEncryptionFieldPatterns) ErrorFault ¶
func (e *TooManyFieldLevelEncryptionFieldPatterns) ErrorFault() smithy.ErrorFault
func (*TooManyFieldLevelEncryptionFieldPatterns) ErrorMessage ¶
func (e *TooManyFieldLevelEncryptionFieldPatterns) ErrorMessage() string
type TooManyFieldLevelEncryptionProfiles ¶
type TooManyFieldLevelEncryptionProfiles struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The maximum number of profiles for field-level encryption have been created.
func (*TooManyFieldLevelEncryptionProfiles) Error ¶
func (e *TooManyFieldLevelEncryptionProfiles) Error() string
func (*TooManyFieldLevelEncryptionProfiles) ErrorCode ¶
func (e *TooManyFieldLevelEncryptionProfiles) ErrorCode() string
func (*TooManyFieldLevelEncryptionProfiles) ErrorFault ¶
func (e *TooManyFieldLevelEncryptionProfiles) ErrorFault() smithy.ErrorFault
func (*TooManyFieldLevelEncryptionProfiles) ErrorMessage ¶
func (e *TooManyFieldLevelEncryptionProfiles) ErrorMessage() string
type TooManyFieldLevelEncryptionQueryArgProfiles ¶
type TooManyFieldLevelEncryptionQueryArgProfiles struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The maximum number of query arg profiles for field-level encryption have been created.
func (*TooManyFieldLevelEncryptionQueryArgProfiles) Error ¶
func (e *TooManyFieldLevelEncryptionQueryArgProfiles) Error() string
func (*TooManyFieldLevelEncryptionQueryArgProfiles) ErrorCode ¶
func (e *TooManyFieldLevelEncryptionQueryArgProfiles) ErrorCode() string
func (*TooManyFieldLevelEncryptionQueryArgProfiles) ErrorFault ¶
func (e *TooManyFieldLevelEncryptionQueryArgProfiles) ErrorFault() smithy.ErrorFault
func (*TooManyFieldLevelEncryptionQueryArgProfiles) ErrorMessage ¶
func (e *TooManyFieldLevelEncryptionQueryArgProfiles) ErrorMessage() string
type TooManyFunctionAssociations ¶ added in v1.4.0
type TooManyFunctionAssociations struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
You have reached the maximum number of CloudFront function associations for this distribution. For more information, see Quotas(formerly known as limits) in the Amazon CloudFront Developer Guide.
func (*TooManyFunctionAssociations) Error ¶ added in v1.4.0
func (e *TooManyFunctionAssociations) Error() string
func (*TooManyFunctionAssociations) ErrorCode ¶ added in v1.4.0
func (e *TooManyFunctionAssociations) ErrorCode() string
func (*TooManyFunctionAssociations) ErrorFault ¶ added in v1.4.0
func (e *TooManyFunctionAssociations) ErrorFault() smithy.ErrorFault
func (*TooManyFunctionAssociations) ErrorMessage ¶ added in v1.4.0
func (e *TooManyFunctionAssociations) ErrorMessage() string
type TooManyFunctions ¶ added in v1.4.0
type TooManyFunctions struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
You have reached the maximum number of CloudFront functions for this Amazon Web Services account. For more information, see Quotas(formerly known as limits) in the Amazon CloudFront Developer Guide.
func (*TooManyFunctions) Error ¶ added in v1.4.0
func (e *TooManyFunctions) Error() string
func (*TooManyFunctions) ErrorCode ¶ added in v1.4.0
func (e *TooManyFunctions) ErrorCode() string
func (*TooManyFunctions) ErrorFault ¶ added in v1.4.0
func (e *TooManyFunctions) ErrorFault() smithy.ErrorFault
func (*TooManyFunctions) ErrorMessage ¶ added in v1.4.0
func (e *TooManyFunctions) ErrorMessage() string
type TooManyHeadersInCachePolicy ¶
type TooManyHeadersInCachePolicy struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The number of headers in the cache policy exceeds the maximum. For more information, see Quotas(formerly known as limits) in the Amazon CloudFront Developer Guide.
func (*TooManyHeadersInCachePolicy) Error ¶
func (e *TooManyHeadersInCachePolicy) Error() string
func (*TooManyHeadersInCachePolicy) ErrorCode ¶
func (e *TooManyHeadersInCachePolicy) ErrorCode() string
func (*TooManyHeadersInCachePolicy) ErrorFault ¶
func (e *TooManyHeadersInCachePolicy) ErrorFault() smithy.ErrorFault
func (*TooManyHeadersInCachePolicy) ErrorMessage ¶
func (e *TooManyHeadersInCachePolicy) ErrorMessage() string
type TooManyHeadersInForwardedValues ¶
type TooManyHeadersInForwardedValues struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
Your request contains too many headers in forwarded values.
func (*TooManyHeadersInForwardedValues) Error ¶
func (e *TooManyHeadersInForwardedValues) Error() string
func (*TooManyHeadersInForwardedValues) ErrorCode ¶
func (e *TooManyHeadersInForwardedValues) ErrorCode() string
func (*TooManyHeadersInForwardedValues) ErrorFault ¶
func (e *TooManyHeadersInForwardedValues) ErrorFault() smithy.ErrorFault
func (*TooManyHeadersInForwardedValues) ErrorMessage ¶
func (e *TooManyHeadersInForwardedValues) ErrorMessage() string
type TooManyHeadersInOriginRequestPolicy ¶
type TooManyHeadersInOriginRequestPolicy struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The number of headers in the origin request policy exceeds the maximum. For more information, see Quotas(formerly known as limits) in the Amazon CloudFront Developer Guide.
func (*TooManyHeadersInOriginRequestPolicy) Error ¶
func (e *TooManyHeadersInOriginRequestPolicy) Error() string
func (*TooManyHeadersInOriginRequestPolicy) ErrorCode ¶
func (e *TooManyHeadersInOriginRequestPolicy) ErrorCode() string
func (*TooManyHeadersInOriginRequestPolicy) ErrorFault ¶
func (e *TooManyHeadersInOriginRequestPolicy) ErrorFault() smithy.ErrorFault
func (*TooManyHeadersInOriginRequestPolicy) ErrorMessage ¶
func (e *TooManyHeadersInOriginRequestPolicy) ErrorMessage() string
type TooManyInvalidationsInProgress ¶
type TooManyInvalidationsInProgress struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
You have exceeded the maximum number of allowable InProgress invalidation batch requests, or invalidation objects.
func (*TooManyInvalidationsInProgress) Error ¶
func (e *TooManyInvalidationsInProgress) Error() string
func (*TooManyInvalidationsInProgress) ErrorCode ¶
func (e *TooManyInvalidationsInProgress) ErrorCode() string
func (*TooManyInvalidationsInProgress) ErrorFault ¶
func (e *TooManyInvalidationsInProgress) ErrorFault() smithy.ErrorFault
func (*TooManyInvalidationsInProgress) ErrorMessage ¶
func (e *TooManyInvalidationsInProgress) ErrorMessage() string
type TooManyKeyGroups ¶ added in v0.29.0
type TooManyKeyGroups struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
You have reached the maximum number of key groups for this Amazon Web Services account. For more information, see Quotas(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 ErrorCodeOverride *string // contains filtered or unexported fields }
The number of key groups referenced by this distribution is more than the maximum allowed. For more information, see Quotas(formerly known as limits) in the Amazon CloudFront Developer Guide.
func (*TooManyKeyGroupsAssociatedToDistribution) Error ¶ added in v0.29.0
func (e *TooManyKeyGroupsAssociatedToDistribution) Error() string
func (*TooManyKeyGroupsAssociatedToDistribution) ErrorCode ¶ added in v0.29.0
func (e *TooManyKeyGroupsAssociatedToDistribution) ErrorCode() string
func (*TooManyKeyGroupsAssociatedToDistribution) ErrorFault ¶ added in v0.29.0
func (e *TooManyKeyGroupsAssociatedToDistribution) ErrorFault() smithy.ErrorFault
func (*TooManyKeyGroupsAssociatedToDistribution) ErrorMessage ¶ added in v0.29.0
func (e *TooManyKeyGroupsAssociatedToDistribution) ErrorMessage() string
type TooManyLambdaFunctionAssociations ¶
type TooManyLambdaFunctionAssociations struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
Your request contains more Lambda@Edge function associations than are allowed per distribution.
func (*TooManyLambdaFunctionAssociations) Error ¶
func (e *TooManyLambdaFunctionAssociations) Error() string
func (*TooManyLambdaFunctionAssociations) ErrorCode ¶
func (e *TooManyLambdaFunctionAssociations) ErrorCode() string
func (*TooManyLambdaFunctionAssociations) ErrorFault ¶
func (e *TooManyLambdaFunctionAssociations) ErrorFault() smithy.ErrorFault
func (*TooManyLambdaFunctionAssociations) ErrorMessage ¶
func (e *TooManyLambdaFunctionAssociations) ErrorMessage() string
type TooManyOriginAccessControls ¶ added in v1.20.0
type TooManyOriginAccessControls struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The number of origin access controls in your Amazon Web Services account exceeds the maximum allowed.
For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
func (*TooManyOriginAccessControls) Error ¶ added in v1.20.0
func (e *TooManyOriginAccessControls) Error() string
func (*TooManyOriginAccessControls) ErrorCode ¶ added in v1.20.0
func (e *TooManyOriginAccessControls) ErrorCode() string
func (*TooManyOriginAccessControls) ErrorFault ¶ added in v1.20.0
func (e *TooManyOriginAccessControls) ErrorFault() smithy.ErrorFault
func (*TooManyOriginAccessControls) ErrorMessage ¶ added in v1.20.0
func (e *TooManyOriginAccessControls) ErrorMessage() string
type TooManyOriginCustomHeaders ¶
type TooManyOriginCustomHeaders struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
Your request contains too many origin custom headers.
func (*TooManyOriginCustomHeaders) Error ¶
func (e *TooManyOriginCustomHeaders) Error() string
func (*TooManyOriginCustomHeaders) ErrorCode ¶
func (e *TooManyOriginCustomHeaders) ErrorCode() string
func (*TooManyOriginCustomHeaders) ErrorFault ¶
func (e *TooManyOriginCustomHeaders) ErrorFault() smithy.ErrorFault
func (*TooManyOriginCustomHeaders) ErrorMessage ¶
func (e *TooManyOriginCustomHeaders) ErrorMessage() string
type TooManyOriginGroupsPerDistribution ¶
type TooManyOriginGroupsPerDistribution struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
Processing your request would cause you to exceed the maximum number of origin groups allowed.
func (*TooManyOriginGroupsPerDistribution) Error ¶
func (e *TooManyOriginGroupsPerDistribution) Error() string
func (*TooManyOriginGroupsPerDistribution) ErrorCode ¶
func (e *TooManyOriginGroupsPerDistribution) ErrorCode() string
func (*TooManyOriginGroupsPerDistribution) ErrorFault ¶
func (e *TooManyOriginGroupsPerDistribution) ErrorFault() smithy.ErrorFault
func (*TooManyOriginGroupsPerDistribution) ErrorMessage ¶
func (e *TooManyOriginGroupsPerDistribution) ErrorMessage() string
type TooManyOriginRequestPolicies ¶
type TooManyOriginRequestPolicies struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
You have reached the maximum number of origin request policies for this Amazon Web Services account. For more information, see Quotas(formerly known as limits) in the Amazon CloudFront Developer Guide.
func (*TooManyOriginRequestPolicies) Error ¶
func (e *TooManyOriginRequestPolicies) Error() string
func (*TooManyOriginRequestPolicies) ErrorCode ¶
func (e *TooManyOriginRequestPolicies) ErrorCode() string
func (*TooManyOriginRequestPolicies) ErrorFault ¶
func (e *TooManyOriginRequestPolicies) ErrorFault() smithy.ErrorFault
func (*TooManyOriginRequestPolicies) ErrorMessage ¶
func (e *TooManyOriginRequestPolicies) ErrorMessage() string
type TooManyOrigins ¶
type TooManyOrigins struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
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 ErrorCodeOverride *string // contains filtered or unexported fields }
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 ErrorCodeOverride *string // contains filtered or unexported fields }
The number of public keys in this key group is more than the maximum allowed. For more information, see Quotas(formerly known as limits) in the Amazon CloudFront Developer Guide.
func (*TooManyPublicKeysInKeyGroup) Error ¶ added in v0.29.0
func (e *TooManyPublicKeysInKeyGroup) Error() string
func (*TooManyPublicKeysInKeyGroup) ErrorCode ¶ added in v0.29.0
func (e *TooManyPublicKeysInKeyGroup) ErrorCode() string
func (*TooManyPublicKeysInKeyGroup) ErrorFault ¶ added in v0.29.0
func (e *TooManyPublicKeysInKeyGroup) ErrorFault() smithy.ErrorFault
func (*TooManyPublicKeysInKeyGroup) ErrorMessage ¶ added in v0.29.0
func (e *TooManyPublicKeysInKeyGroup) ErrorMessage() string
type TooManyQueryStringParameters ¶
type TooManyQueryStringParameters struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
Your request contains too many query string parameters.
func (*TooManyQueryStringParameters) Error ¶
func (e *TooManyQueryStringParameters) Error() string
func (*TooManyQueryStringParameters) ErrorCode ¶
func (e *TooManyQueryStringParameters) ErrorCode() string
func (*TooManyQueryStringParameters) ErrorFault ¶
func (e *TooManyQueryStringParameters) ErrorFault() smithy.ErrorFault
func (*TooManyQueryStringParameters) ErrorMessage ¶
func (e *TooManyQueryStringParameters) ErrorMessage() string
type TooManyQueryStringsInCachePolicy ¶
type TooManyQueryStringsInCachePolicy struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The number of query strings in the cache policy exceeds the maximum. For more information, see Quotas(formerly known as limits) in the Amazon CloudFront Developer Guide.
func (*TooManyQueryStringsInCachePolicy) Error ¶
func (e *TooManyQueryStringsInCachePolicy) Error() string
func (*TooManyQueryStringsInCachePolicy) ErrorCode ¶
func (e *TooManyQueryStringsInCachePolicy) ErrorCode() string
func (*TooManyQueryStringsInCachePolicy) ErrorFault ¶
func (e *TooManyQueryStringsInCachePolicy) ErrorFault() smithy.ErrorFault
func (*TooManyQueryStringsInCachePolicy) ErrorMessage ¶
func (e *TooManyQueryStringsInCachePolicy) ErrorMessage() string
type TooManyQueryStringsInOriginRequestPolicy ¶
type TooManyQueryStringsInOriginRequestPolicy struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The number of query strings in the origin request policy exceeds the maximum. For more information, see Quotas(formerly known as limits) in the Amazon CloudFront Developer Guide.
func (*TooManyQueryStringsInOriginRequestPolicy) Error ¶
func (e *TooManyQueryStringsInOriginRequestPolicy) Error() string
func (*TooManyQueryStringsInOriginRequestPolicy) ErrorCode ¶
func (e *TooManyQueryStringsInOriginRequestPolicy) ErrorCode() string
func (*TooManyQueryStringsInOriginRequestPolicy) ErrorFault ¶
func (e *TooManyQueryStringsInOriginRequestPolicy) ErrorFault() smithy.ErrorFault
func (*TooManyQueryStringsInOriginRequestPolicy) ErrorMessage ¶
func (e *TooManyQueryStringsInOriginRequestPolicy) ErrorMessage() string
type TooManyRealtimeLogConfigs ¶ added in v0.29.0
type TooManyRealtimeLogConfigs struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
You have reached the maximum number of real-time log configurations for this Amazon Web Services account. For more information, see Quotas(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 (e *TooManyRealtimeLogConfigs) ErrorFault() smithy.ErrorFault
func (*TooManyRealtimeLogConfigs) ErrorMessage ¶ added in v0.29.0
func (e *TooManyRealtimeLogConfigs) ErrorMessage() string
type TooManyRemoveHeadersInResponseHeadersPolicy ¶ added in v1.23.0
type TooManyRemoveHeadersInResponseHeadersPolicy struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The number of headers in RemoveHeadersConfig in the response headers policy exceeds the maximum.
For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
func (*TooManyRemoveHeadersInResponseHeadersPolicy) Error ¶ added in v1.23.0
func (e *TooManyRemoveHeadersInResponseHeadersPolicy) Error() string
func (*TooManyRemoveHeadersInResponseHeadersPolicy) ErrorCode ¶ added in v1.23.0
func (e *TooManyRemoveHeadersInResponseHeadersPolicy) ErrorCode() string
func (*TooManyRemoveHeadersInResponseHeadersPolicy) ErrorFault ¶ added in v1.23.0
func (e *TooManyRemoveHeadersInResponseHeadersPolicy) ErrorFault() smithy.ErrorFault
func (*TooManyRemoveHeadersInResponseHeadersPolicy) ErrorMessage ¶ added in v1.23.0
func (e *TooManyRemoveHeadersInResponseHeadersPolicy) ErrorMessage() string
type TooManyResponseHeadersPolicies ¶ added in v1.10.0
type TooManyResponseHeadersPolicies struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
You have reached the maximum number of response headers policies for this Amazon Web Services account.
For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
func (*TooManyResponseHeadersPolicies) Error ¶ added in v1.10.0
func (e *TooManyResponseHeadersPolicies) Error() string
func (*TooManyResponseHeadersPolicies) ErrorCode ¶ added in v1.10.0
func (e *TooManyResponseHeadersPolicies) ErrorCode() string
func (*TooManyResponseHeadersPolicies) ErrorFault ¶ added in v1.10.0
func (e *TooManyResponseHeadersPolicies) ErrorFault() smithy.ErrorFault
func (*TooManyResponseHeadersPolicies) ErrorMessage ¶ added in v1.10.0
func (e *TooManyResponseHeadersPolicies) ErrorMessage() string
type TooManyStreamingDistributionCNAMEs ¶
type TooManyStreamingDistributionCNAMEs struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
Your request contains more CNAMEs than are allowed per distribution.
func (*TooManyStreamingDistributionCNAMEs) Error ¶
func (e *TooManyStreamingDistributionCNAMEs) Error() string
func (*TooManyStreamingDistributionCNAMEs) ErrorCode ¶
func (e *TooManyStreamingDistributionCNAMEs) ErrorCode() string
func (*TooManyStreamingDistributionCNAMEs) ErrorFault ¶
func (e *TooManyStreamingDistributionCNAMEs) ErrorFault() smithy.ErrorFault
func (*TooManyStreamingDistributionCNAMEs) ErrorMessage ¶
func (e *TooManyStreamingDistributionCNAMEs) ErrorMessage() string
type TooManyStreamingDistributions ¶
type TooManyStreamingDistributions struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
Processing your request would cause you to exceed the maximum number of streaming distributions allowed.
func (*TooManyStreamingDistributions) Error ¶
func (e *TooManyStreamingDistributions) Error() string
func (*TooManyStreamingDistributions) ErrorCode ¶
func (e *TooManyStreamingDistributions) ErrorCode() string
func (*TooManyStreamingDistributions) ErrorFault ¶
func (e *TooManyStreamingDistributions) ErrorFault() smithy.ErrorFault
func (*TooManyStreamingDistributions) ErrorMessage ¶
func (e *TooManyStreamingDistributions) ErrorMessage() string
type TooManyTrustedSigners ¶
type TooManyTrustedSigners struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
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 TrafficConfig ¶ added in v1.21.0
type TrafficConfig struct { // The type of traffic configuration. // // This member is required. Type ContinuousDeploymentPolicyType // Determines which HTTP requests are sent to the staging distribution. SingleHeaderConfig *ContinuousDeploymentSingleHeaderConfig // Contains the percentage of traffic to send to the staging distribution. SingleWeightConfig *ContinuousDeploymentSingleWeightConfig // contains filtered or unexported fields }
The traffic configuration of your continuous deployment.
type TrustedKeyGroupDoesNotExist ¶ added in v0.29.0
type TrustedKeyGroupDoesNotExist struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The specified key group does not exist.
func (*TrustedKeyGroupDoesNotExist) Error ¶ added in v0.29.0
func (e *TrustedKeyGroupDoesNotExist) Error() string
func (*TrustedKeyGroupDoesNotExist) ErrorCode ¶ added in v0.29.0
func (e *TrustedKeyGroupDoesNotExist) ErrorCode() string
func (*TrustedKeyGroupDoesNotExist) ErrorFault ¶ added in v0.29.0
func (e *TrustedKeyGroupDoesNotExist) ErrorFault() smithy.ErrorFault
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 // contains filtered or unexported fields }
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 ErrorCodeOverride *string // contains filtered or unexported fields }
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 (e *TrustedSignerDoesNotExist) ErrorFault() smithy.ErrorFault
func (*TrustedSignerDoesNotExist) ErrorMessage ¶
func (e *TrustedSignerDoesNotExist) ErrorMessage() string
type TrustedSigners ¶
type TrustedSigners struct { // This field is true if any of the Amazon Web Services accounts in the list are // configured as trusted signers. If not, this field is false . // // This member is required. Enabled *bool // The number of Amazon Web Services accounts in the list. // // This member is required. Quantity *int32 // A list of Amazon Web Services account identifiers. Items []string // contains filtered or unexported fields }
A list of Amazon Web Services accounts whose public keys CloudFront can use to verify the signatures of signed URLs and signed cookies.
type UnsupportedOperation ¶ added in v1.4.0
type UnsupportedOperation struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
This operation is not supported in this region.
func (*UnsupportedOperation) Error ¶ added in v1.4.0
func (e *UnsupportedOperation) Error() string
func (*UnsupportedOperation) ErrorCode ¶ added in v1.4.0
func (e *UnsupportedOperation) ErrorCode() string
func (*UnsupportedOperation) ErrorFault ¶ added in v1.4.0
func (e *UnsupportedOperation) ErrorFault() smithy.ErrorFault
func (*UnsupportedOperation) ErrorMessage ¶ added in v1.4.0
func (e *UnsupportedOperation) ErrorMessage() string
type ViewerCertificate ¶
type ViewerCertificate struct { // If the distribution uses Aliases (alternate domain names or CNAMEs) and the // SSL/TLS certificate is stored in [Certificate Manager (ACM)], 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 // MinimumProtocolVersion and SSLSupportMethod . // // [Certificate Manager (ACM)]: https://docs.aws.amazon.com/acm/latest/userguide/acm-overview.html 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 [Identity and Access Management (IAM)], provide the ID of the IAM certificate. // // If you specify an IAM certificate ID, you must also specify values for // MinimumProtocolVersion and SSLSupportMethod . // // [Identity and Access Management (IAM)]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html 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] and [Supported Protocols and Ciphers Between Viewers and CloudFront] 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. // // [Security Policy]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValues-security-policy // [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 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)]. 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 [Amazon Web Services Support Center] // . // // If the distribution uses the CloudFront domain name such as // d111111abcdef8.cloudfront.net , don't set a value for this field. // // [server name indication (SNI)]: https://en.wikipedia.org/wiki/Server_Name_Indication // [Amazon Web Services Support Center]: https://console.aws.amazon.com/support/home SSLSupportMethod SSLSupportMethod // contains filtered or unexported fields }
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)(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 Policyin the Amazon CloudFront Developer Guide.
The location of the SSL/TLS certificate, Certificate Manager (ACM)(recommended) or Identity and Access Management (IAM). 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 and Using Alternate Domain Names and HTTPS 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
func (ViewerProtocolPolicy) Values() []ViewerProtocolPolicy
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.
type VpcOrigin ¶ added in v1.42.0
type VpcOrigin struct { // The VPC origin ARN. // // This member is required. Arn *string // The VPC origin created time. // // This member is required. CreatedTime *time.Time // The VPC origin ID. // // This member is required. Id *string // The VPC origin last modified time. // // This member is required. LastModifiedTime *time.Time // The VPC origin status. // // This member is required. Status *string // The VPC origin endpoint configuration. // // This member is required. VpcOriginEndpointConfig *VpcOriginEndpointConfig // contains filtered or unexported fields }
An Amazon CloudFront VPC origin.
type VpcOriginConfig ¶ added in v1.42.0
type VpcOriginConfig struct { // The VPC origin ID. // // This member is required. VpcOriginId *string // 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 [Keep-alive timeout (custom origins only)] in the Amazon CloudFront Developer Guide. // // [Keep-alive timeout (custom origins only)]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginKeepaliveTimeout 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 [Response timeout (custom origins only)] in the Amazon CloudFront Developer Guide. // // [Response timeout (custom origins only)]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginResponseTimeout OriginReadTimeout *int32 // contains filtered or unexported fields }
An Amazon CloudFront VPC origin configuration.
type VpcOriginEndpointConfig ¶ added in v1.42.0
type VpcOriginEndpointConfig struct { // The ARN of the CloudFront VPC origin endpoint configuration. // // This member is required. Arn *string // The HTTP port for the CloudFront VPC origin endpoint configuration. // // This member is required. HTTPPort *int32 // The HTTPS port of the CloudFront VPC origin endpoint configuration. // // This member is required. HTTPSPort *int32 // The name of the CloudFront VPC origin endpoint configuration. // // This member is required. Name *string // The origin protocol policy for the CloudFront VPC origin endpoint configuration. // // This member is required. OriginProtocolPolicy OriginProtocolPolicy // A complex type that contains information about the SSL/TLS protocols that // CloudFront can use when establishing an HTTPS connection with your origin. OriginSslProtocols *OriginSslProtocols // contains filtered or unexported fields }
An Amazon CloudFront VPC origin endpoint configuration.
type VpcOriginList ¶ added in v1.42.0
type VpcOriginList struct { // A flag that indicates whether more VPC origins 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 VPC origins in the list. // // This member is required. IsTruncated *bool // The marker associated with the VPC origins list. // // This member is required. Marker *string // The maximum number of items included in the list. // // This member is required. MaxItems *int32 // The number of VPC origins in the list. // // This member is required. Quantity *int32 // The items of the VPC origins list. Items []VpcOriginSummary // The next marker associated with the VPC origins list. NextMarker *string // contains filtered or unexported fields }
A list of CloudFront VPC origins.
type VpcOriginSummary ¶ added in v1.42.0
type VpcOriginSummary struct { // The VPC origin summary ARN. // // This member is required. Arn *string // The VPC origin summary created time. // // This member is required. CreatedTime *time.Time // The VPC origin summary ID. // // This member is required. Id *string // The VPC origin summary last modified time. // // This member is required. LastModifiedTime *time.Time // The VPC origin summary name. // // This member is required. Name *string // The VPC origin summary origin endpoint ARN. // // This member is required. OriginEndpointArn *string // The VPC origin summary status. // // This member is required. Status *string // contains filtered or unexported fields }
A summary of the CloudFront VPC origin.