Show / Hide Table of Contents

Class AllowedMethods

The HTTP methods that the Behavior will accept requests on.

Inheritance
object
AllowedMethods
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AllowedMethods : DeputyBase
Syntax (vb)
Public Class AllowedMethods Inherits DeputyBase
Remarks

ExampleMetadata: infused

Examples
// Create a Distribution with configured HTTP methods and viewer protocol policy of the cache.
            Bucket myBucket;

            var myWebDistribution = new Distribution(this, "myDist", new DistributionProps {
                DefaultBehavior = new BehaviorOptions {
                    Origin = new S3Origin(myBucket),
                    AllowedMethods = AllowedMethods.ALLOW_ALL,
                    ViewerProtocolPolicy = ViewerProtocolPolicy.REDIRECT_TO_HTTPS
                }
            });

Synopsis

Properties

ALLOW_ALL

All supported HTTP methods.

ALLOW_GET_HEAD

HEAD and GET.

ALLOW_GET_HEAD_OPTIONS

HEAD, GET, and OPTIONS.

Methods

HTTP methods supported.

Properties

ALLOW_ALL

All supported HTTP methods.

public static AllowedMethods ALLOW_ALL { get; }
Property Value

AllowedMethods

Remarks

ExampleMetadata: infused

ALLOW_GET_HEAD

HEAD and GET.

public static AllowedMethods ALLOW_GET_HEAD { get; }
Property Value

AllowedMethods

Remarks

ExampleMetadata: infused

ALLOW_GET_HEAD_OPTIONS

HEAD, GET, and OPTIONS.

public static AllowedMethods ALLOW_GET_HEAD_OPTIONS { get; }
Property Value

AllowedMethods

Remarks

ExampleMetadata: infused

Methods

HTTP methods supported.

public virtual string[] Methods { get; }
Property Value

string[]

Remarks

ExampleMetadata: infused

Back to top Generated by DocFX