Class AllowedMethods
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cloudfront.AllowedMethods
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:43.416Z")
@Stability(Stable)
public class AllowedMethods
extends software.amazon.jsii.JsiiObject
The HTTP methods that the Behavior will accept requests on.
Example:
// Create a Distribution with configured HTTP methods and viewer protocol policy of the cache. Bucket myBucket; Distribution myWebDistribution = Distribution.Builder.create(this, "myDist") .defaultBehavior(BehaviorOptions.builder() .origin(new S3Origin(myBucket)) .allowedMethods(AllowedMethods.ALLOW_ALL) .viewerProtocolPolicy(ViewerProtocolPolicy.REDIRECT_TO_HTTPS) .build()) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Field Summary
Modifier and TypeFieldDescriptionstatic final AllowedMethods
All supported HTTP methods.static final AllowedMethods
HEAD and GET.static final AllowedMethods
HEAD, GET, and OPTIONS. -
Constructor Summary
ModifierConstructorDescriptionprotected
AllowedMethods
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
AllowedMethods
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
ALLOW_ALL
All supported HTTP methods. -
ALLOW_GET_HEAD
HEAD and GET. -
ALLOW_GET_HEAD_OPTIONS
HEAD, GET, and OPTIONS.
-
-
Constructor Details
-
AllowedMethods
protected AllowedMethods(software.amazon.jsii.JsiiObjectRef objRef) -
AllowedMethods
protected AllowedMethods(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
getMethods
HTTP methods supported.
-