CacheSettings

public struct CacheSettings : AWSShape

Undocumented

  • Declaration

    Swift

    public static var _members: [AWSShapeMember]
  • The HTTP methods that are processed and forwarded to the distribution’s origin. You can specify the following options: GET,HEAD - The distribution forwards the GET and HEAD methods. GET,HEAD,OPTIONS - The distribution forwards the GET, HEAD, and OPTIONS methods. GET,HEAD,OPTIONS,PUT,PATCH,POST,DELETE - The distribution forwards the GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE methods. If you specify the third option, you might need to restrict access to your distribution’s origin so users can’t perform operations that you don’t want them to. For example, you might not want users to have permission to delete objects from your origin.

    Declaration

    Swift

    public let allowedHTTPMethods: String?
  • The HTTP method responses that are cached by your distribution. You can specify the following options: GET,HEAD - The distribution caches responses to the GET and HEAD methods. GET,HEAD,OPTIONS - The distribution caches responses to the GET, HEAD, and OPTIONS methods.

    Declaration

    Swift

    public let cachedHTTPMethods: String?
  • The default amount of time that objects stay in the distribution’s cache before the distribution forwards another request to the origin to determine whether the content has been updated. The value specified applies only when the origin does not add HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects.

    Declaration

    Swift

    public let defaultTTL: Int64?
  • An object that describes the cookies that are forwarded to the origin. Your content is cached based on the cookies that are forwarded.

    Declaration

    Swift

    public let forwardedCookies: CookieObject?
  • An object that describes the headers that are forwarded to the origin. Your content is cached based on the headers that are forwarded.

    Declaration

    Swift

    public let forwardedHeaders: HeaderObject?
  • An object that describes the query strings that are forwarded to the origin. Your content is cached based on the query strings that are forwarded.

    Declaration

    Swift

    public let forwardedQueryStrings: QueryStringObject?
  • The maximum amount of time that objects stay in the distribution’s cache before the distribution forwards another request to the origin to determine whether the object has been updated. The value specified applies only when the origin adds HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects.

    Declaration

    Swift

    public let maximumTTL: Int64?
  • The minimum amount of time that objects stay in the distribution’s cache before the distribution forwards another request to the origin to determine whether the object has been updated. A value of 0 must be specified for minimumTTL if the distribution is configured to forward all headers to the origin.

    Declaration

    Swift

    public let minimumTTL: Int64?
  • Undocumented

    Declaration

    Swift

    public init(allowedHTTPMethods: String? = nil, cachedHTTPMethods: String? = nil, defaultTTL: Int64? = nil, forwardedCookies: CookieObject? = nil, forwardedHeaders: HeaderObject? = nil, forwardedQueryStrings: QueryStringObject? = nil, maximumTTL: Int64? = nil, minimumTTL: Int64? = nil)
  • Declaration

    Swift

    public func validate(name: String) throws