Struct aws_sdk_cloudfront::model::allowed_methods::Builder [−][src]
#[non_exhaustive]pub struct Builder { /* fields omitted */ }
Expand description
A builder for AllowedMethods
Implementations
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).
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).
Appends an item to items
.
To override the contents of this collection use set_items
.
A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.
A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.
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
andHEAD
requests. -
CloudFront caches responses to
GET
,HEAD
, andOPTIONS
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.
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
andHEAD
requests. -
CloudFront caches responses to
GET
,HEAD
, andOPTIONS
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.
Consumes the builder and constructs a AllowedMethods
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl UnwindSafe for Builder
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more