Class HttpOrigin
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cloudfront.OriginBase
software.amazon.awscdk.services.cloudfront.origins.HttpOrigin
- All Implemented Interfaces:
IOrigin
,software.amazon.jsii.JsiiSerializable
- Direct Known Subclasses:
LoadBalancerV2Origin
,S3StaticWebsiteOrigin
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-06T23:25:05.620Z")
@Stability(Stable)
public class HttpOrigin
extends OriginBase
An Origin for an HTTP server or S3 bucket configured for website hosting.
Example:
// Adding realtime logs config to a Cloudfront Distribution on default behavior. import software.amazon.awscdk.services.kinesis.*; Stream stream; RealtimeLogConfig realTimeConfig = RealtimeLogConfig.Builder.create(this, "realtimeLog") .endPoints(List.of(Endpoint.fromKinesisStream(stream))) .fields(List.of("timestamp", "c-ip", "time-to-first-byte", "sc-status")) .realtimeLogConfigName("my-delivery-stream") .samplingRate(100) .build(); Distribution.Builder.create(this, "myCdn") .defaultBehavior(BehaviorOptions.builder() .origin(new HttpOrigin("www.example.com")) .realtimeLogConfig(realTimeConfig) .build()) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.cloudfront.IOrigin
IOrigin.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionHttpOrigin
(String domainName) HttpOrigin
(String domainName, HttpOriginProps props) protected
HttpOrigin
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
HttpOrigin
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class software.amazon.awscdk.services.cloudfront.OriginBase
bind, renderS3OriginConfig
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
HttpOrigin
protected HttpOrigin(software.amazon.jsii.JsiiObjectRef objRef) -
HttpOrigin
protected HttpOrigin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
HttpOrigin
- Parameters:
domainName
- This parameter is required.props
-
-
HttpOrigin
- Parameters:
domainName
- This parameter is required.
-
-
Method Details
-
renderCustomOriginConfig
@Stability(Stable) @Nullable protected CfnDistribution.CustomOriginConfigProperty renderCustomOriginConfig()- Overrides:
renderCustomOriginConfig
in classOriginBase
-