public static interface CfnDistribution.OriginGroupProperty
You create an origin group to support origin failover in CloudFront. When you create or update a distribution, you can specifiy the origin group instead of a single origin, and CloudFront will failover from the primary origin to the second origin under the failover conditions that you've chosen.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.cloudfront.*; OriginGroupProperty originGroupProperty = OriginGroupProperty.builder() .failoverCriteria(OriginGroupFailoverCriteriaProperty.builder() .statusCodes(StatusCodesProperty.builder() .items(List.of(123)) .quantity(123) .build()) .build()) .id("id") .members(OriginGroupMembersProperty.builder() .items(List.of(OriginGroupMemberProperty.builder() .originId("originId") .build())) .quantity(123) .build()) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnDistribution.OriginGroupProperty.Builder
A builder for
CfnDistribution.OriginGroupProperty |
static class |
CfnDistribution.OriginGroupProperty.Jsii$Proxy
An implementation for
CfnDistribution.OriginGroupProperty |
Modifier and Type | Method and Description |
---|---|
static CfnDistribution.OriginGroupProperty.Builder |
builder() |
java.lang.Object |
getFailoverCriteria()
A complex type that contains information about the failover criteria for an origin group.
|
java.lang.String |
getId()
The origin group's ID.
|
java.lang.Object |
getMembers()
A complex type that contains information about the origins in an origin group.
|
java.lang.Object getFailoverCriteria()
java.lang.String getId()
java.lang.Object getMembers()
static CfnDistribution.OriginGroupProperty.Builder builder()