@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:00:50.300Z") @Stability(value=Experimental) public enum ViewerProtocolPolicy extends Enum<ViewerProtocolPolicy>
| Enum Constant and Description |
|---|
ALLOW_ALL
(experimental) Both HTTP and HTTPS supported.
|
HTTPS_ONLY
(experimental) HTTPS only.
|
REDIRECT_TO_HTTPS
(experimental) Will redirect HTTP requests to HTTPS.
|
| Modifier and Type | Method and Description |
|---|---|
static ViewerProtocolPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ViewerProtocolPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Experimental) public static final ViewerProtocolPolicy HTTPS_ONLY
@Stability(value=Experimental) public static final ViewerProtocolPolicy REDIRECT_TO_HTTPS
@Stability(value=Experimental) public static final ViewerProtocolPolicy ALLOW_ALL
public static ViewerProtocolPolicy[] values()
for (ViewerProtocolPolicy c : ViewerProtocolPolicy.values()) System.out.println(c);
public static ViewerProtocolPolicy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2021. All rights reserved.