Skip to content

AllowedMethods

Source code in docs_src/capo_cloudfront/types/allowed_methods.py
class AllowedMethods(TypedDict, closed=True):
    quantity: "capo_cloudfront.types.integer.integer"
    """<p>The number of HTTP methods that you want CloudFront to forward to your origin. Valid values are 2 (for <code>GET</code> and <code>HEAD</code> requests), 3 (for <code>GET</code>, <code>HEAD</code>, and <code>OPTIONS</code> requests) and 7 (for <code>GET, HEAD, OPTIONS, PUT, PATCH, POST</code>, and <code>DELETE</code> requests).</p>"""
    items: "capo_cloudfront.types.methods_list.MethodsList"
    """<p>A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.</p>"""
    cached_methods: NotRequired["capo_cloudfront.types.cached_methods.CachedMethods"]

cached_methods instance-attribute

cached_methods: NotRequired[CachedMethods]

items instance-attribute

items: MethodsList

A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.

quantity instance-attribute

quantity: integer

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).