@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-11T17:58:48.610Z") @Stability(value=Stable) public class AllowedMethods extends software.amazon.jsii.JsiiObject
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();
| Modifier and Type | Field and Description |
|---|---|
static AllowedMethods |
ALLOW_ALL
All supported HTTP methods.
|
static AllowedMethods |
ALLOW_GET_HEAD
HEAD and GET.
|
static AllowedMethods |
ALLOW_GET_HEAD_OPTIONS
HEAD, GET, and OPTIONS.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AllowedMethods(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
AllowedMethods(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getMethods()
HTTP methods supported.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final AllowedMethods ALLOW_ALL
@Stability(value=Stable) public static final AllowedMethods ALLOW_GET_HEAD
@Stability(value=Stable) public static final AllowedMethods ALLOW_GET_HEAD_OPTIONS
Copyright © 2022. All rights reserved.