Interface OriginBindConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
OriginBindConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:43.727Z")
@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)
.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())
.s3OriginConfig(S3OriginConfigProperty.builder()
.originAccessIdentity("originAccessIdentity")
.build())
.build())
.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.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
-
builder
- Returns:
- a
OriginBindConfig.BuilderofOriginBindConfig
-