Interface OriginBindConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
OriginBindConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-17T14:40:47.114Z")
@Stability(Stable)
public interface OriginBindConfig
extends software.amazon.jsii.JsiiSerializable
The struct returned from
IOrigin.bind.
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.*;
IOrigin origin;
OriginBindConfig originBindConfig = OriginBindConfig.builder()
.failoverConfig(OriginFailoverConfig.builder()
.failoverOrigin(origin)
// the properties below are optional
.statusCodes(List.of(123))
.build())
.originProperty(OriginProperty.builder()
.domainName("domainName")
.id("id")
// the properties below are optional
.connectionAttempts(123)
.connectionTimeout(123)
.customOriginConfig(CustomOriginConfigProperty.builder()
.originProtocolPolicy("originProtocolPolicy")
// the properties below are optional
.httpPort(123)
.httpsPort(123)
.ipAddressType("ipAddressType")
.originKeepaliveTimeout(123)
.originReadTimeout(123)
.originSslProtocols(List.of("originSslProtocols"))
.build())
.originAccessControlId("originAccessControlId")
.originCustomHeaders(List.of(OriginCustomHeaderProperty.builder()
.headerName("headerName")
.headerValue("headerValue")
.build()))
.originPath("originPath")
.originShield(OriginShieldProperty.builder()
.enabled(false)
.originShieldRegion("originShieldRegion")
.build())
.responseCompletionTimeout(123)
.s3OriginConfig(S3OriginConfigProperty.builder()
.originAccessIdentity("originAccessIdentity")
.originReadTimeout(123)
.build())
.vpcOriginConfig(VpcOriginConfigProperty.builder()
.vpcOriginId("vpcOriginId")
// the properties below are optional
.originKeepaliveTimeout(123)
.originReadTimeout(123)
.ownerAccountId("ownerAccountId")
.build())
.build())
.selectionCriteria(OriginSelectionCriteria.DEFAULT)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forOriginBindConfigstatic final classAn implementation forOriginBindConfig -
Method Summary
Modifier and TypeMethodDescriptionstatic OriginBindConfig.Builderbuilder()default OriginFailoverConfigThe failover configuration for this Origin.default CfnDistribution.OriginPropertyThe CloudFormation OriginProperty configuration for this Origin.default OriginSelectionCriteriaThe selection criteria for how your origins are selected.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getFailoverConfig
The failover configuration for this Origin.Default: - nothing is returned
-
getOriginProperty
The CloudFormation OriginProperty configuration for this Origin.Default: - nothing is returned
-
getSelectionCriteria
The selection criteria for how your origins are selected.Default: - OriginSelectionCriteria.DEFAULT
- See Also:
-
builder
- Returns:
- a
OriginBindConfig.BuilderofOriginBindConfig
-