Interface CfnDistribution.LegacyCustomOriginProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDistribution.LegacyCustomOriginProperty.Jsii$Proxy
- Enclosing class:
CfnDistribution
@Stability(Stable)
public static interface CfnDistribution.LegacyCustomOriginProperty
extends software.amazon.jsii.JsiiSerializable
A custom origin.
A custom origin is any origin that is not an Amazon S3 bucket, with one exception. An Amazon S3 bucket that is configured with static website hosting is a custom origin.
This property is legacy. We recommend that you use Origin instead.
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.*; LegacyCustomOriginProperty legacyCustomOriginProperty = LegacyCustomOriginProperty.builder() .dnsName("dnsName") .originProtocolPolicy("originProtocolPolicy") .originSslProtocols(List.of("originSslProtocols")) // the properties below are optional .httpPort(123) .httpsPort(123) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnDistribution.LegacyCustomOriginProperty
static final class
An implementation forCfnDistribution.LegacyCustomOriginProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The domain name assigned to your CloudFront distribution.default Number
The HTTP port that CloudFront uses to connect to the origin.default Number
The HTTPS port that CloudFront uses to connect to the origin.Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin.The minimum SSL/TLS protocol version that CloudFront uses when communicating with your origin server over HTTPs.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDnsName
The domain name assigned to your CloudFront distribution.- See Also:
-
getOriginProtocolPolicy
Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin.- See Also:
-
getOriginSslProtocols
The minimum SSL/TLS protocol version that CloudFront uses when communicating with your origin server over HTTPs.For more information, see Minimum Origin SSL Protocol in the Amazon CloudFront Developer Guide .
- See Also:
-
getHttpPort
The HTTP port that CloudFront uses to connect to the origin.Specify the HTTP port that the origin listens on.
Default: - 80
- See Also:
-
getHttpsPort
The HTTPS port that CloudFront uses to connect to the origin.Specify the HTTPS port that the origin listens on.
Default: - 443
- See Also:
-
builder
-