@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:36:57.073Z") public enum FailoverStatusCode extends java.lang.Enum<FailoverStatusCode>
Example:
// Configuring origin fallback options for the CloudFrontWebDistribution // Configuring origin fallback options for the CloudFrontWebDistribution CloudFrontWebDistribution.Builder.create(this, "ADistribution") .originConfigs(List.of(SourceConfiguration.builder() .s3OriginSource(S3OriginConfig.builder() .s3BucketSource(Bucket.fromBucketName(this, "aBucket", "myoriginbucket")) .originPath("/") .originHeaders(Map.of( "myHeader", "42")) .originShieldRegion("us-west-2") .build()) .failoverS3OriginSource(S3OriginConfig.builder() .s3BucketSource(Bucket.fromBucketName(this, "aBucketFallback", "myoriginbucketfallback")) .originPath("/somewhere") .originHeaders(Map.of( "myHeader2", "21")) .originShieldRegion("us-east-1") .build()) .failoverCriteriaStatusCodes(List.of(FailoverStatusCode.INTERNAL_SERVER_ERROR)) .behaviors(List.of(Behavior.builder() .isDefaultBehavior(true) .build())) .build())) .build();
Enum Constant and Description |
---|
BAD_GATEWAY
Bad Gateway (502).
|
FORBIDDEN
Forbidden (403).
|
GATEWAY_TIMEOUT
Gateway Timeout (504).
|
INTERNAL_SERVER_ERROR
Internal Server Error (500).
|
NOT_FOUND
Not found (404).
|
SERVICE_UNAVAILABLE
Service Unavailable (503).
|
Modifier and Type | Method and Description |
---|---|
static FailoverStatusCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FailoverStatusCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FailoverStatusCode FORBIDDEN
public static final FailoverStatusCode NOT_FOUND
public static final FailoverStatusCode INTERNAL_SERVER_ERROR
public static final FailoverStatusCode BAD_GATEWAY
public static final FailoverStatusCode SERVICE_UNAVAILABLE
public static final FailoverStatusCode GATEWAY_TIMEOUT
public static FailoverStatusCode[] values()
for (FailoverStatusCode c : FailoverStatusCode.values()) System.out.println(c);
public static FailoverStatusCode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null