A complex type that controls which HTTP methods CloudFront processes and forwards
to your Amazon S3 bucket or your custom origin. There are two options: - CloudFront
forwards only GET and HEAD requests. - CloudFront forwards DELETE, GET, HEAD, OPTIONS,
PATCH, POST, and PUT requests. If you choose the second option, 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 may not want users to have permission
to delete objects from your origin.
Declaration Syntax
C# |
public class AllowedMethods
Members
All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
AllowedMethods()()()() | Initializes a new instance of the AllowedMethods class | |
Equals(Object) | (Inherited from Object.) | |
GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType()()()() | Gets the type of the current instance. (Inherited from Object.) | |
Items |
Gets and sets the property Items. A complex type that contains the HTTP methods that
you want CloudFront to process and forward to your origin.
| |
Quantity |
Gets and sets the property Quantity. The number of HTTP methods that you want CloudFront
to forward to your origin. Valid values are 2 (for GET and HEAD requests) and 7 (for
DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT requests).
| |
ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) | |
WithItems(array<String>[]()[][]) | Obsolete.
Sets the Items property
| |
WithItems(IEnumerable<(Of <<'(String>)>>)) | Obsolete.
Sets the Items property
| |
WithQuantity(Int32) | Obsolete.
Sets the Quantity property
|
Inheritance Hierarchy
Object | |
AllowedMethods |