Enum OriginProtocolPolicy
java.lang.Object
java.lang.Enum<OriginProtocolPolicy>
software.amazon.awscdk.services.cloudfront.OriginProtocolPolicy
- All Implemented Interfaces:
Serializable
,Comparable<OriginProtocolPolicy>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-04T00:39:29.073Z")
@Stability(Stable)
public enum OriginProtocolPolicy
extends Enum<OriginProtocolPolicy>
Defines what protocols CloudFront will use to connect to an origin.
Example:
import software.amazon.awscdk.services.elasticloadbalancingv2.*; ApplicationLoadBalancer loadBalancer; LoadBalancerV2Origin origin = LoadBalancerV2Origin.Builder.create(loadBalancer) .connectionAttempts(3) .connectionTimeout(Duration.seconds(5)) .readTimeout(Duration.seconds(45)) .keepaliveTimeout(Duration.seconds(45)) .protocolPolicy(OriginProtocolPolicy.MATCH_VIEWER) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionConnect on HTTP only.Connect on HTTPS only.Connect with the same protocol as the viewer. -
Method Summary
Modifier and TypeMethodDescriptionstatic OriginProtocolPolicy
Returns the enum constant of this type with the specified name.static OriginProtocolPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
HTTP_ONLY
Connect on HTTP only. -
MATCH_VIEWER
Connect with the same protocol as the viewer. -
HTTPS_ONLY
Connect on HTTPS only.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-