Interface CfnDistributionPropsMixin.OriginGroupProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDistributionPropsMixin.OriginGroupProperty.Jsii$Proxy
- Enclosing class:
CfnDistributionPropsMixin
You create an origin group to support origin failover in CloudFront. When you create or update a distribution, you can specify the origin group instead of a single origin, and CloudFront will failover from the primary origin to the secondary origin under the failover conditions that you've chosen.
Optionally, you can choose selection criteria for your origin group to specify how your origins are selected when your distribution routes viewer requests.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.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())
.selectionCriteria("selectionCriteria")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDistributionPropsMixin.OriginGroupPropertystatic final classAn implementation forCfnDistributionPropsMixin.OriginGroupProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectA complex type that contains information about the failover criteria for an origin group.default StringgetId()The origin group's ID.default ObjectA complex type that contains information about the origins in an origin group.default StringThe selection criteria for the origin group.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getFailoverCriteria
A complex type that contains information about the failover criteria for an origin group.Returns union: either
IResolvableorCfnDistributionPropsMixin.OriginGroupFailoverCriteriaProperty- See Also:
-
getId
The origin group's ID.- See Also:
-
getMembers
A complex type that contains information about the origins in an origin group.Returns union: either
IResolvableorCfnDistributionPropsMixin.OriginGroupMembersProperty- See Also:
-
getSelectionCriteria
The selection criteria for the origin group.For more information, see Create an origin group in the Amazon CloudFront Developer Guide .
- See Also:
-
builder
-