Class AllowedMethods
The HTTP methods that the Behavior will accept requests on.
Inheritance
System.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
Constructors
AllowedMethods(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
AllowedMethods(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
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. |
Constructors
AllowedMethods(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected AllowedMethods(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
AllowedMethods(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected AllowedMethods(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
ALLOW_ALL
All supported HTTP methods.
public static AllowedMethods ALLOW_ALL { get; }
Property Value
ALLOW_GET_HEAD
ALLOW_GET_HEAD_OPTIONS
HEAD, GET, and OPTIONS.
public static AllowedMethods ALLOW_GET_HEAD_OPTIONS { get; }
Property Value
Methods
HTTP methods supported.
public virtual string[] Methods { get; }
Property Value
System.String[]